diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..a44e82c --- /dev/null +++ b/AUTHORS @@ -0,0 +1 @@ +Taku Kudo <taku@chasen.org> diff --git a/BSD b/BSD new file mode 100644 index 0000000..93be020 --- /dev/null +++ b/BSD @@ -0,0 +1,27 @@ +Copyright (c) 2005-2007, Taku Kudo +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are +permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the + following disclaimer in the documentation and/or other + materials provided with the distribution. + + * Neither the name of Taku Kudo nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..6d0fd98 --- /dev/null +++ b/COPYING @@ -0,0 +1,3 @@ +CRF++ is copyrighted free software by Taku Kudo <taku@chasen.org>, +and is released under any of the LGPL (see the file LGPL) or the +BSD License (see the file BSD). diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..b42a17a --- /dev/null +++ b/INSTALL @@ -0,0 +1,182 @@ +Basic Installation +================== + + These are generic installation instructions. + + 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, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + 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 at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' 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. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes awhile. 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. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +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 must use a version of `make' that +supports the `VPATH' variable, such as 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 `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have 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' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=PATH' 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' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +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 host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +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. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--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. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. diff --git a/LGPL b/LGPL new file mode 100644 index 0000000..223ede7 --- /dev/null +++ b/LGPL @@ -0,0 +1,504 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + <one line to give the library's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + <signature of Ty Coon>, 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e7eb51f --- /dev/null +++ b/Makefile @@ -0,0 +1,857 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + + + + +pkgdatadir = $(datadir)/CRF++ +pkgincludedir = $(includedir)/CRF++ +pkglibdir = $(libdir)/CRF++ +pkglibexecdir = $(libexecdir)/CRF++ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +bin_PROGRAMS = crf_learn$(EXEEXT) crf_test$(EXEEXT) +subdir = . +DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \ + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(srcdir)/Makefile.msvc.in $(srcdir)/config.h.in \ + $(top_srcdir)/configure $(top_srcdir)/swig/version.h.in \ + AUTHORS COPYING ChangeLog INSTALL NEWS config.guess config.sub \ + depcomp install-sh ltmain.sh missing mkinstalldirs +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = Makefile.msvc swig/version.h +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \ + "$(DESTDIR)$(includedir)" +LTLIBRARIES = $(lib_LTLIBRARIES) +libcrfpp_la_LIBADD = +am_libcrfpp_la_OBJECTS = libcrfpp.lo lbfgs.lo param.lo encoder.lo \ + feature.lo feature_cache.lo feature_index.lo node.lo path.lo \ + tagger.lo +libcrfpp_la_OBJECTS = $(am_libcrfpp_la_OBJECTS) +PROGRAMS = $(bin_PROGRAMS) +am_crf_learn_OBJECTS = crf_learn.$(OBJEXT) +crf_learn_OBJECTS = $(am_crf_learn_OBJECTS) +crf_learn_DEPENDENCIES = libcrfpp.la +am_crf_test_OBJECTS = crf_test.$(OBJEXT) +crf_test_OBJECTS = $(am_crf_test_OBJECTS) +crf_test_DEPENDENCIES = libcrfpp.la +DEFAULT_INCLUDES = -I. +depcomp = +am__depfiles_maybe = +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(libcrfpp_la_SOURCES) $(crf_learn_SOURCES) \ + $(crf_test_SOURCES) +DIST_SOURCES = $(libcrfpp_la_SOURCES) $(crf_learn_SOURCES) \ + $(crf_test_SOURCES) +HEADERS = $(include_HEADERS) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = ${SHELL} /home/taku/proj/crfpp/missing --run aclocal-1.11 +AMTAR = ${SHELL} /home/taku/proj/crfpp/missing --run tar +AR = ar +AUTOCONF = ${SHELL} /home/taku/proj/crfpp/missing --run autoconf +AUTOHEADER = ${SHELL} /home/taku/proj/crfpp/missing --run autoheader +AUTOMAKE = ${SHELL} /home/taku/proj/crfpp/missing --run automake-1.11 +AWK = mawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -O3 -Wall +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -O3 -Wall +CYGPATH_W = echo +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DLLTOOL = false +DSYMUTIL = +DUMPBIN = +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /bin/grep -E +EXEEXT = +FGREP = /bin/grep -F +GREP = /bin/grep +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LD = /usr/bin/ld -m elf_x86_64 +LDFLAGS = +LIBOBJS = +LIBS = -lpthread -lpthread -lm -lm -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIPO = +LN_S = ln -s +LTLIBOBJS = +MAKEINFO = ${SHELL} /home/taku/proj/crfpp/missing --run makeinfo +MANIFEST_TOOL = : +MKDIR_P = /bin/mkdir -p +NM = /usr/bin/nm -B +NMEDIT = +OBJDUMP = objdump +OBJEXT = o +OTOOL = +OTOOL64 = +PACKAGE = CRF++ +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_URL = +PACKAGE_VERSION = +PATH_SEPARATOR = : +RANLIB = ranlib +SED = /bin/sed +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.55 +abs_builddir = /home/taku/proj/crfpp +abs_srcdir = /home/taku/proj/crfpp +abs_top_builddir = /home/taku/proj/crfpp +abs_top_srcdir = /home/taku/proj/crfpp +ac_ct_AR = ar +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_DUMPBIN = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = ${SHELL} /home/taku/proj/crfpp/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_build_prefix = +top_builddir = . +top_srcdir = . +EXTRA_DIST = README Makefile.msvc.in merge-models.pl +EXTRA_DIRS = doc example sdk perl python ruby java swig +AUTOMAKE_OPTIONS = no-dependencies +lib_LTLIBRARIES = libcrfpp.la +libcrfpp_la_SOURCES = crfpp.h thread.h libcrfpp.cpp lbfgs.cpp scoped_ptr.h param.cpp param.h encoder.cpp feature.cpp stream_wrapper.h \ + feature_cache.cpp feature_index.cpp node.cpp path.cpp tagger.cpp \ + common.h darts.h encoder.h feature_cache.h feature_index.h \ + freelist.h lbfgs.h mmap.h node.h path.h tagger.h timer.h winmain.h + +include_HEADERS = crfpp.h +crf_learn_SOURCES = crf_learn.cpp +crf_learn_LDADD = libcrfpp.la +crf_test_SOURCES = crf_test.cpp +crf_test_LDADD = libcrfpp.la +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .cpp .lo .o .obj +am--refresh: + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +config.h: stamp-h1 + @if test ! -f $@; then \ + rm -f stamp-h1; \ + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ + else :; fi + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 +Makefile.msvc: $(top_builddir)/config.status $(srcdir)/Makefile.msvc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +swig/version.h: $(top_builddir)/config.status $(top_srcdir)/swig/version.h.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +libcrfpp.la: $(libcrfpp_la_OBJECTS) $(libcrfpp_la_DEPENDENCIES) + $(CXXLINK) -rpath $(libdir) $(libcrfpp_la_OBJECTS) $(libcrfpp_la_LIBADD) $(LIBS) +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p || test -f $$p1; \ + then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list +crf_learn$(EXEEXT): $(crf_learn_OBJECTS) $(crf_learn_DEPENDENCIES) + @rm -f crf_learn$(EXEEXT) + $(CXXLINK) $(crf_learn_OBJECTS) $(crf_learn_LDADD) $(LIBS) +crf_test$(EXEEXT): $(crf_test_OBJECTS) $(crf_test_DEPENDENCIES) + @rm -f crf_test$(EXEEXT) + $(CXXLINK) $(crf_test_OBJECTS) $(crf_test_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +.cpp.o: + $(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: + $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: + $(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool config.lt +install-includeHEADERS: $(include_HEADERS) + @$(NORMAL_INSTALL) + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ + done + +uninstall-includeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(includedir)" && rm -f $$files + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @$(am__cd) '$(distuninstallcheck_dir)' \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) config.h +install-binPROGRAMS: install-libLTLIBRARIES + +installdirs: + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ + clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-hdr distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-includeHEADERS + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-binPROGRAMS install-libLTLIBRARIES + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \ + uninstall-libLTLIBRARIES + +.MAKE: all install-am install-strip + +.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ + clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ + clean-libtool ctags dist dist-all dist-bzip2 dist-gzip \ + dist-hook dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ + distcheck distclean distclean-compile distclean-generic \ + distclean-hdr distclean-libtool distclean-tags distcleancheck \ + distdir distuninstallcheck dvi dvi-am html html-am info \ + info-am install install-am install-binPROGRAMS install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am \ + install-includeHEADERS install-info install-info-am \ + install-libLTLIBRARIES install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-binPROGRAMS \ + uninstall-includeHEADERS uninstall-libLTLIBRARIES + + +dist-hook: + for subdir in $(EXTRA_DIRS); do \ + cp -rp $$subdir $(distdir); \ + rm -f $(distdir)/$$subdir/*~; \ + rm -f $(distdir)/$$subdir/*.{bak,orig}; \ + rm -rf $(distdir)/$$subdir/CVS; \ + rm -rf $(distdir)/$$subdir/.svn; \ + rm -rf $(distdir)/.svn; \ + rm -rf $(distdir)/*/.svn; \ + rm -rf $(distdir)/*/*/.svn; \ + rm -rf $(distdir)/$$subdir/*/CVS; \ + rm -rf $(distdir)/$$subdir/*/.svn; \ + find $(distdir) -name .svn | xargs rm -fr; \ + done + +win: + (cd src; rm -f *.exe *.obj *.dll) +# (cd src; wcmd /c make.bat) + +win-dist: + rm -f CRF++-0.55.zip + mkdir -p CRF++-0.55/doc + mkdir -p CRF++-0.55/example + mkdir -p CRF++-0.55/sdk + cp -f crf_learn.exe CRF++-0.55 + cp -f crf_test.exe CRF++-0.55 + cp -f libcrfpp.dll CRF++-0.55 + cp -f libcrfpp.lib CRF++-0.55/sdk + cp -f crfpp.h CRF++-0.55/sdk +# cp -f sdk/model CRF++-0.55/sdk + cp -f sdk/example.cpp CRF++-0.55/sdk + cp -fr doc/*.html doc/*.css doc/doxygen CRF++-0.55/doc + cp -f README COPYING AUTHORS LGPL BSD CRF++-0.55 + cp -fr example/* CRF++-0.55/example + find CRF++-0.55 -name CVS | xargs rm -rf + find CRF++-0.55 -name .svn | xargs rm -rf + zip -r CRF++-0.55.zip CRF++-0.55 + rm -fr CRF++-0.55 + +dist-all-package: + (test -f Makefile) && $(MAKE) distclean + ./configure + $(MAKE) dist + $(MAKE) clean + $(MAKE) script-clean + $(MAKE) script-dist + $(MAKE) win + $(MAKE) win-dist + +script-dist: + for subdir in perl ruby python java; do \ + rm -fr CRF++-$${subdir}-0.55; \ + mkdir CRF++-$${subdir}-0.55; \ + cp -r $${subdir}/* CRF++-$${subdir}-0.55; \ + cp -r doc/bindings.html CRF++-$${subdir}-0.55; \ + find ./CRF++-$${subdir}-0.55 -type d -name CVS | xargs rm -fr; \ + rm -f CRF++-$${subdir}-0.55/*~; \ + tar zcfv CRF++-$${subdir}-0.55.tar.gz CRF++-$${subdir}-0.55; \ + rm -fr CRF++-$${subdir}-0.55; \ + done + +script-clean: + (cd perl; $(MAKE) clean; rm -f Makefile.old Makefile) + (cd ruby; $(MAKE) clean; rm -f Makefile *.log) + (cd python; python setup.py clean --all) + (cd java; $(MAKE) clean;) + +export-package: +# ./upload.pl -p crfpp -n crfpp -r 0.55 -f CRF++-0.55.tar.gz +# ./upload.pl -p crfpp -n crfpp-win32 -r 0.55 -f CRF++-0.55.zip + scp doc/*.html sf:public_html/crfpp/ + scp doc/*.css sf:public_html/crfpp/ + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..ad42dd5 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,90 @@ +EXTRA_DIST = README Makefile.msvc.in merge-models.pl +EXTRA_DIRS = doc example sdk perl python ruby java swig +bin_PROGRAMS = crf_learn crf_test + +AUTOMAKE_OPTIONS = no-dependencies +lib_LTLIBRARIES = libcrfpp.la +libcrfpp_la_SOURCES = crfpp.h thread.h libcrfpp.cpp lbfgs.cpp scoped_ptr.h param.cpp param.h encoder.cpp feature.cpp stream_wrapper.h \ + feature_cache.cpp feature_index.cpp node.cpp path.cpp tagger.cpp \ + common.h darts.h encoder.h feature_cache.h feature_index.h \ + freelist.h lbfgs.h mmap.h node.h path.h tagger.h timer.h winmain.h +include_HEADERS = crfpp.h + +dist-hook: + for subdir in $(EXTRA_DIRS); do \ + cp -rp $$subdir $(distdir); \ + rm -f $(distdir)/$$subdir/*~; \ + rm -f $(distdir)/$$subdir/*.{bak,orig}; \ + rm -rf $(distdir)/$$subdir/CVS; \ + rm -rf $(distdir)/$$subdir/.svn; \ + rm -rf $(distdir)/.svn; \ + rm -rf $(distdir)/*/.svn; \ + rm -rf $(distdir)/*/*/.svn; \ + rm -rf $(distdir)/$$subdir/*/CVS; \ + rm -rf $(distdir)/$$subdir/*/.svn; \ + find $(distdir) -name .svn | xargs rm -fr; \ + done + +win: + (cd src; rm -f *.exe *.obj *.dll) +# (cd src; wcmd /c make.bat) + +win-dist: + rm -f @PACKAGE@-@VERSION@.zip + mkdir -p @PACKAGE@-@VERSION@/doc + mkdir -p @PACKAGE@-@VERSION@/example + mkdir -p @PACKAGE@-@VERSION@/sdk + cp -f crf_learn.exe @PACKAGE@-@VERSION@ + cp -f crf_test.exe @PACKAGE@-@VERSION@ + cp -f libcrfpp.dll @PACKAGE@-@VERSION@ + cp -f libcrfpp.lib @PACKAGE@-@VERSION@/sdk + cp -f crfpp.h @PACKAGE@-@VERSION@/sdk +# cp -f sdk/model @PACKAGE@-@VERSION@/sdk + cp -f sdk/example.cpp @PACKAGE@-@VERSION@/sdk + cp -fr doc/*.html doc/*.css doc/doxygen @PACKAGE@-@VERSION@/doc + cp -f README COPYING AUTHORS LGPL BSD @PACKAGE@-@VERSION@ + cp -fr example/* @PACKAGE@-@VERSION@/example + find @PACKAGE@-@VERSION@ -name CVS | xargs rm -rf + find @PACKAGE@-@VERSION@ -name .svn | xargs rm -rf + zip -r @PACKAGE@-@VERSION@.zip @PACKAGE@-@VERSION@ + rm -fr @PACKAGE@-@VERSION@ + +crf_learn_SOURCES = crf_learn.cpp +crf_learn_LDADD = libcrfpp.la + +crf_test_SOURCES = crf_test.cpp +crf_test_LDADD = libcrfpp.la + +dist-all-package: + (test -f Makefile) && $(MAKE) distclean + ./configure + $(MAKE) dist + $(MAKE) clean + $(MAKE) script-clean + $(MAKE) script-dist + $(MAKE) win + $(MAKE) win-dist + +script-dist: + for subdir in perl ruby python java; do \ + rm -fr CRF++-$${subdir}-@VERSION@; \ + mkdir CRF++-$${subdir}-@VERSION@; \ + cp -r $${subdir}/* CRF++-$${subdir}-@VERSION@; \ + cp -r doc/bindings.html CRF++-$${subdir}-@VERSION@; \ + find ./CRF++-$${subdir}-@VERSION@ -type d -name CVS | xargs rm -fr; \ + rm -f CRF++-$${subdir}-@VERSION@/*~; \ + tar zcfv CRF++-$${subdir}-@VERSION@.tar.gz CRF++-$${subdir}-@VERSION@; \ + rm -fr CRF++-$${subdir}-@VERSION@; \ + done + +script-clean: + (cd perl; $(MAKE) clean; rm -f Makefile.old Makefile) + (cd ruby; $(MAKE) clean; rm -f Makefile *.log) + (cd python; python setup.py clean --all) + (cd java; $(MAKE) clean;) + +export-package: +# ./upload.pl -p crfpp -n crfpp -r @VERSION@ -f CRF++-@VERSION@.tar.gz +# ./upload.pl -p crfpp -n crfpp-win32 -r @VERSION@ -f CRF++-@VERSION@.zip + scp doc/*.html sf:public_html/crfpp/ + scp doc/*.css sf:public_html/crfpp/ diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..c5c8702 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,857 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + + + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = crf_learn$(EXEEXT) crf_test$(EXEEXT) +subdir = . +DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \ + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(srcdir)/Makefile.msvc.in $(srcdir)/config.h.in \ + $(top_srcdir)/configure $(top_srcdir)/swig/version.h.in \ + AUTHORS COPYING ChangeLog INSTALL NEWS config.guess config.sub \ + depcomp install-sh ltmain.sh missing mkinstalldirs +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = Makefile.msvc swig/version.h +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \ + "$(DESTDIR)$(includedir)" +LTLIBRARIES = $(lib_LTLIBRARIES) +libcrfpp_la_LIBADD = +am_libcrfpp_la_OBJECTS = libcrfpp.lo lbfgs.lo param.lo encoder.lo \ + feature.lo feature_cache.lo feature_index.lo node.lo path.lo \ + tagger.lo +libcrfpp_la_OBJECTS = $(am_libcrfpp_la_OBJECTS) +PROGRAMS = $(bin_PROGRAMS) +am_crf_learn_OBJECTS = crf_learn.$(OBJEXT) +crf_learn_OBJECTS = $(am_crf_learn_OBJECTS) +crf_learn_DEPENDENCIES = libcrfpp.la +am_crf_test_OBJECTS = crf_test.$(OBJEXT) +crf_test_OBJECTS = $(am_crf_test_OBJECTS) +crf_test_DEPENDENCIES = libcrfpp.la +DEFAULT_INCLUDES = -I.@am__isrc@ +depcomp = +am__depfiles_maybe = +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES = $(libcrfpp_la_SOURCES) $(crf_learn_SOURCES) \ + $(crf_test_SOURCES) +DIST_SOURCES = $(libcrfpp_la_SOURCES) $(crf_learn_SOURCES) \ + $(crf_test_SOURCES) +HEADERS = $(include_HEADERS) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +EXTRA_DIST = README Makefile.msvc.in merge-models.pl +EXTRA_DIRS = doc example sdk perl python ruby java swig +AUTOMAKE_OPTIONS = no-dependencies +lib_LTLIBRARIES = libcrfpp.la +libcrfpp_la_SOURCES = crfpp.h thread.h libcrfpp.cpp lbfgs.cpp scoped_ptr.h param.cpp param.h encoder.cpp feature.cpp stream_wrapper.h \ + feature_cache.cpp feature_index.cpp node.cpp path.cpp tagger.cpp \ + common.h darts.h encoder.h feature_cache.h feature_index.h \ + freelist.h lbfgs.h mmap.h node.h path.h tagger.h timer.h winmain.h + +include_HEADERS = crfpp.h +crf_learn_SOURCES = crf_learn.cpp +crf_learn_LDADD = libcrfpp.la +crf_test_SOURCES = crf_test.cpp +crf_test_LDADD = libcrfpp.la +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .cpp .lo .o .obj +am--refresh: + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): + +config.h: stamp-h1 + @if test ! -f $@; then \ + rm -f stamp-h1; \ + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ + else :; fi + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 +Makefile.msvc: $(top_builddir)/config.status $(srcdir)/Makefile.msvc.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +swig/version.h: $(top_builddir)/config.status $(top_srcdir)/swig/version.h.in + cd $(top_builddir) && $(SHELL) ./config.status $@ +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +libcrfpp.la: $(libcrfpp_la_OBJECTS) $(libcrfpp_la_DEPENDENCIES) + $(CXXLINK) -rpath $(libdir) $(libcrfpp_la_OBJECTS) $(libcrfpp_la_LIBADD) $(LIBS) +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p || test -f $$p1; \ + then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) files[d] = files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files + +clean-binPROGRAMS: + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ + echo " rm -f" $$list; \ + rm -f $$list +crf_learn$(EXEEXT): $(crf_learn_OBJECTS) $(crf_learn_DEPENDENCIES) + @rm -f crf_learn$(EXEEXT) + $(CXXLINK) $(crf_learn_OBJECTS) $(crf_learn_LDADD) $(LIBS) +crf_test$(EXEEXT): $(crf_test_OBJECTS) $(crf_test_DEPENDENCIES) + @rm -f crf_test$(EXEEXT) + $(CXXLINK) $(crf_test_OBJECTS) $(crf_test_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +.cpp.o: + $(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: + $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: + $(LTCXXCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool config.lt +install-includeHEADERS: $(include_HEADERS) + @$(NORMAL_INSTALL) + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)" + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \ + done + +uninstall-includeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(includedir)" && rm -f $$files + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" distdir="$(distdir)" \ + dist-hook + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @$(am__cd) '$(distuninstallcheck_dir)' \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) config.h +install-binPROGRAMS: install-libLTLIBRARIES + +installdirs: + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ + clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-hdr distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-includeHEADERS + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-binPROGRAMS install-libLTLIBRARIES + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \ + uninstall-libLTLIBRARIES + +.MAKE: all install-am install-strip + +.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ + clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ + clean-libtool ctags dist dist-all dist-bzip2 dist-gzip \ + dist-hook dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ + distcheck distclean distclean-compile distclean-generic \ + distclean-hdr distclean-libtool distclean-tags distcleancheck \ + distdir distuninstallcheck dvi dvi-am html html-am info \ + info-am install install-am install-binPROGRAMS install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am \ + install-includeHEADERS install-info install-info-am \ + install-libLTLIBRARIES install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-binPROGRAMS \ + uninstall-includeHEADERS uninstall-libLTLIBRARIES + + +dist-hook: + for subdir in $(EXTRA_DIRS); do \ + cp -rp $$subdir $(distdir); \ + rm -f $(distdir)/$$subdir/*~; \ + rm -f $(distdir)/$$subdir/*.{bak,orig}; \ + rm -rf $(distdir)/$$subdir/CVS; \ + rm -rf $(distdir)/$$subdir/.svn; \ + rm -rf $(distdir)/.svn; \ + rm -rf $(distdir)/*/.svn; \ + rm -rf $(distdir)/*/*/.svn; \ + rm -rf $(distdir)/$$subdir/*/CVS; \ + rm -rf $(distdir)/$$subdir/*/.svn; \ + find $(distdir) -name .svn | xargs rm -fr; \ + done + +win: + (cd src; rm -f *.exe *.obj *.dll) +# (cd src; wcmd /c make.bat) + +win-dist: + rm -f @PACKAGE@-@VERSION@.zip + mkdir -p @PACKAGE@-@VERSION@/doc + mkdir -p @PACKAGE@-@VERSION@/example + mkdir -p @PACKAGE@-@VERSION@/sdk + cp -f crf_learn.exe @PACKAGE@-@VERSION@ + cp -f crf_test.exe @PACKAGE@-@VERSION@ + cp -f libcrfpp.dll @PACKAGE@-@VERSION@ + cp -f libcrfpp.lib @PACKAGE@-@VERSION@/sdk + cp -f crfpp.h @PACKAGE@-@VERSION@/sdk +# cp -f sdk/model @PACKAGE@-@VERSION@/sdk + cp -f sdk/example.cpp @PACKAGE@-@VERSION@/sdk + cp -fr doc/*.html doc/*.css doc/doxygen @PACKAGE@-@VERSION@/doc + cp -f README COPYING AUTHORS LGPL BSD @PACKAGE@-@VERSION@ + cp -fr example/* @PACKAGE@-@VERSION@/example + find @PACKAGE@-@VERSION@ -name CVS | xargs rm -rf + find @PACKAGE@-@VERSION@ -name .svn | xargs rm -rf + zip -r @PACKAGE@-@VERSION@.zip @PACKAGE@-@VERSION@ + rm -fr @PACKAGE@-@VERSION@ + +dist-all-package: + (test -f Makefile) && $(MAKE) distclean + ./configure + $(MAKE) dist + $(MAKE) clean + $(MAKE) script-clean + $(MAKE) script-dist + $(MAKE) win + $(MAKE) win-dist + +script-dist: + for subdir in perl ruby python java; do \ + rm -fr CRF++-$${subdir}-@VERSION@; \ + mkdir CRF++-$${subdir}-@VERSION@; \ + cp -r $${subdir}/* CRF++-$${subdir}-@VERSION@; \ + cp -r doc/bindings.html CRF++-$${subdir}-@VERSION@; \ + find ./CRF++-$${subdir}-@VERSION@ -type d -name CVS | xargs rm -fr; \ + rm -f CRF++-$${subdir}-@VERSION@/*~; \ + tar zcfv CRF++-$${subdir}-@VERSION@.tar.gz CRF++-$${subdir}-@VERSION@; \ + rm -fr CRF++-$${subdir}-@VERSION@; \ + done + +script-clean: + (cd perl; $(MAKE) clean; rm -f Makefile.old Makefile) + (cd ruby; $(MAKE) clean; rm -f Makefile *.log) + (cd python; python setup.py clean --all) + (cd java; $(MAKE) clean;) + +export-package: +# ./upload.pl -p crfpp -n crfpp -r @VERSION@ -f CRF++-@VERSION@.tar.gz +# ./upload.pl -p crfpp -n crfpp-win32 -r @VERSION@ -f CRF++-@VERSION@.zip + scp doc/*.html sf:public_html/crfpp/ + scp doc/*.css sf:public_html/crfpp/ + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/Makefile.msvc b/Makefile.msvc new file mode 100644 index 0000000..861dbcb --- /dev/null +++ b/Makefile.msvc @@ -0,0 +1,36 @@ +CC = cl +CXXC = cl +LINK=link +CFLAGS = /O2 /GA /GL /Gy /Oi /Ob2 /nologo /W3 /EHsc /MT /wd4244 +LDFLAGS = /link /OPT:REF /OPT:ICF /LTCG /NXCOMPAT /DYNAMICBASE ADVAPI32.LIB +DEFS = -D_CRT_SECURE_NO_DEPRECATE -DDLL_EXPORT \ + -DUNICODE -D_UNICODE \ + -DHAVE_WINDOWS_H -DVERSION="\"0.55\"" -DPACKAGE="\"CRF++\"" +INC = -I. -I.. +DEL = del + +OBJ = encoder.obj feature.obj feature_cache.obj libcrfpp.obj \ + feature_index.obj node.obj param.obj path.obj tagger.obj lbfgs.obj + +.c.obj: + $(CXXC) $(CFLAGS) $(INC) $(DEFS) -c $< + +.cpp.obj: + $(CXXC) $(CFLAGS) $(INC) $(DEFS) -c $< + +.c.obj: + $(CC) $(CFLAGS) $(INC) $(DEFS) -c $< + +all: libcrfpp crf_learn crf_test + +libcrfpp: $(OBJ) + $(LINK) $(LDFLAGS) /out:$@.dll $(OBJ) /dll + +crf_learn: $(OBJ) crf_learn.obj + $(LINK) $(LDFLAGS) /out:$@.exe crf_learn.obj libcrfpp.lib + +crf_test: $(OBJ) crf_test.obj + $(LINK) $(LDFLAGS) /out:$@.exe crf_test.obj libcrfpp.lib + +clean: + del *.obj crf_learn.exe crf_test.exe *.dll diff --git a/Makefile.msvc.in b/Makefile.msvc.in new file mode 100644 index 0000000..6a52847 --- /dev/null +++ b/Makefile.msvc.in @@ -0,0 +1,36 @@ +CC = cl +CXXC = cl +LINK=link +CFLAGS = /O2 /GA /GL /Gy /Oi /Ob2 /nologo /W3 /EHsc /MT /wd4244 +LDFLAGS = /link /OPT:REF /OPT:ICF /LTCG /NXCOMPAT /DYNAMICBASE ADVAPI32.LIB +DEFS = -D_CRT_SECURE_NO_DEPRECATE -DDLL_EXPORT \ + -DUNICODE -D_UNICODE \ + -DHAVE_WINDOWS_H -DVERSION="\"@VERSION@\"" -DPACKAGE="\"@PACKAGE@\"" +INC = -I. -I.. +DEL = del + +OBJ = encoder.obj feature.obj feature_cache.obj libcrfpp.obj \ + feature_index.obj node.obj param.obj path.obj tagger.obj lbfgs.obj + +.c.obj: + $(CXXC) $(CFLAGS) $(INC) $(DEFS) -c $< + +.cpp.obj: + $(CXXC) $(CFLAGS) $(INC) $(DEFS) -c $< + +.c.obj: + $(CC) $(CFLAGS) $(INC) $(DEFS) -c $< + +all: libcrfpp crf_learn crf_test + +libcrfpp: $(OBJ) + $(LINK) $(LDFLAGS) /out:$@.dll $(OBJ) /dll + +crf_learn: $(OBJ) crf_learn.obj + $(LINK) $(LDFLAGS) /out:$@.exe crf_learn.obj libcrfpp.lib + +crf_test: $(OBJ) crf_test.obj + $(LINK) $(LDFLAGS) /out:$@.exe crf_test.obj libcrfpp.lib + +clean: + del *.obj crf_learn.exe crf_test.exe *.dll diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/README b/README new file mode 100644 index 0000000..de14f52 --- /dev/null +++ b/README @@ -0,0 +1,2 @@ +see doc/index.html + diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 0000000..5f01fe3 --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,9410 @@ +# generated automatically by aclocal 1.11.1 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, +[m4_warning([this file was generated for autoconf 2.68. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically `autoreconf'.])]) + +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, +# Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +m4_define([_LT_COPYING], [dnl +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, +# Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +]) + +# serial 57 LT_INIT + + +# LT_PREREQ(VERSION) +# ------------------ +# Complain and exit if this libtool version is less that VERSION. +m4_defun([LT_PREREQ], +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, + [m4_default([$3], + [m4_fatal([Libtool version $1 or higher is required], + 63)])], + [$2])]) + + +# _LT_CHECK_BUILDDIR +# ------------------ +# Complain if the absolute build directory name contains unusual characters +m4_defun([_LT_CHECK_BUILDDIR], +[case `pwd` in + *\ * | *\ *) + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; +esac +]) + + +# LT_INIT([OPTIONS]) +# ------------------ +AC_DEFUN([LT_INIT], +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +])# LT_INIT + +# Old names: +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +m4_defun([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +]) + + +# _LT_FILEUTILS_DEFAULTS +# ---------------------- +# It is okay to use these file commands and assume they have been set +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. +m4_defun([_LT_FILEUTILS_DEFAULTS], +[: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} +])# _LT_FILEUTILS_DEFAULTS + + +# _LT_SETUP +# --------- +m4_defun([_LT_SETUP], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl + +_LT_DECL([], [host_alias], [0], [The host system])dnl +_LT_DECL([], [host], [0])dnl +_LT_DECL([], [host_os], [0])dnl +dnl +_LT_DECL([], [build_alias], [0], [The build system])dnl +_LT_DECL([], [build], [0])dnl +_LT_DECL([], [build_os], [0])dnl +dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +dnl +AC_REQUIRE([AC_PROG_LN_S])dnl +test -z "$LN_S" && LN_S="ln -s" +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl +dnl +AC_REQUIRE([LT_CMD_MAX_LEN])dnl +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl +dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl +m4_require([_LT_CMD_RELOAD])dnl +m4_require([_LT_CHECK_MAGIC_METHOD])dnl +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl +m4_require([_LT_CMD_OLD_ARCHIVE])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_WITH_SYSROOT])dnl + +_LT_CONFIG_LIBTOOL_INIT([ +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi +]) +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +_LT_CHECK_OBJDIR + +m4_require([_LT_TAG_COMPILER])dnl + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + _LT_PATH_MAGIC + fi + ;; +esac + +# Use C for the default configuration in the libtool script +LT_SUPPORTED_TAG([CC]) +_LT_LANG_C_CONFIG +_LT_LANG_DEFAULT_CONFIG +_LT_CONFIG_COMMANDS +])# _LT_SETUP + + +# _LT_PREPARE_SED_QUOTE_VARS +# -------------------------- +# Define a few sed substitution that help us do robust quoting. +m4_defun([_LT_PREPARE_SED_QUOTE_VARS], +[# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([["`\\]]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' +]) + +# _LT_PROG_LTMAIN +# --------------- +# Note that this code is called both from `configure', and `config.status' +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, +# `config.status' has no value for ac_aux_dir unless we are using Automake, +# so we pass a copy along to make sure it has a sensible value anyway. +m4_defun([_LT_PROG_LTMAIN], +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) +ltmain="$ac_aux_dir/ltmain.sh" +])# _LT_PROG_LTMAIN + + + +# So that we can recreate a full libtool script including additional +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS +# in macros and then make a single call at the end using the `libtool' +# label. + + +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) +# ---------------------------------------- +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL_INIT], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) + + +# _LT_CONFIG_LIBTOOL([COMMANDS]) +# ------------------------------ +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) + + +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) +# ----------------------------------------------------- +m4_defun([_LT_CONFIG_SAVE_COMMANDS], +[_LT_CONFIG_LIBTOOL([$1]) +_LT_CONFIG_LIBTOOL_INIT([$2]) +]) + + +# _LT_FORMAT_COMMENT([COMMENT]) +# ----------------------------- +# Add leading comment marks to the start of each line, and a trailing +# full-stop to the whole comment if one is not present already. +m4_define([_LT_FORMAT_COMMENT], +[m4_ifval([$1], [ +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) +)]) + + + + + +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) +# ------------------------------------------------------------------- +# CONFIGNAME is the name given to the value in the libtool script. +# VARNAME is the (base) name used in the configure script. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on +# VARNAME. Any other value will be used directly. +m4_define([_LT_DECL], +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], + [m4_ifval([$1], [$1], [$2])]) + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) + m4_ifval([$4], + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) + lt_dict_add_subkey([lt_decl_dict], [$2], + [tagged?], [m4_ifval([$5], [yes], [no])])]) +]) + + +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) +# -------------------------------------------------------- +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) + + +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_tag_varnames], +[_lt_decl_filter([tagged?], [yes], $@)]) + + +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) +# --------------------------------------------------------- +m4_define([_lt_decl_filter], +[m4_case([$#], + [0], [m4_fatal([$0: too few arguments: $#])], + [1], [m4_fatal([$0: too few arguments: $#: $1])], + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], + [lt_dict_filter([lt_decl_dict], $@)])[]dnl +]) + + +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) +# -------------------------------------------------- +m4_define([lt_decl_quote_varnames], +[_lt_decl_filter([value], [1], $@)]) + + +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_dquote_varnames], +[_lt_decl_filter([value], [2], $@)]) + + +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_varnames_tagged], +[m4_assert([$# <= 2])dnl +_$0(m4_quote(m4_default([$1], [[, ]])), + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) +m4_define([_lt_decl_varnames_tagged], +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) + + +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_all_varnames], +[_$0(m4_quote(m4_default([$1], [[, ]])), + m4_if([$2], [], + m4_quote(lt_decl_varnames), + m4_quote(m4_shift($@))))[]dnl +]) +m4_define([_lt_decl_all_varnames], +[lt_join($@, lt_decl_varnames_tagged([$1], + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl +]) + + +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) +# ------------------------------------ +# Quote a variable value, and forward it to `config.status' so that its +# declaration there will have the same value as in `configure'. VARNAME +# must have a single quote delimited value for this to work. +m4_define([_LT_CONFIG_STATUS_DECLARE], +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) + + +# _LT_CONFIG_STATUS_DECLARATIONS +# ------------------------------ +# We delimit libtool config variables with single quotes, so when +# we write them to config.status, we have to be sure to quote all +# embedded single quotes properly. In configure, this macro expands +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: +# +# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAGS +# ---------------- +# Output comment and list of tags supported by the script +m4_defun([_LT_LIBTOOL_TAGS], +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl +available_tags="_LT_TAGS"dnl +]) + + +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) +# ----------------------------------- +# Extract the dictionary values for VARNAME (optionally with TAG) and +# expand to a commented shell variable setting: +# +# # Some comment about what VAR is for. +# visible_name=$lt_internal_name +m4_define([_LT_LIBTOOL_DECLARE], +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], + [description])))[]dnl +m4_pushdef([_libtool_name], + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), + [0], [_libtool_name=[$]$1], + [1], [_libtool_name=$lt_[]$1], + [2], [_libtool_name=$lt_[]$1], + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl +]) + + +# _LT_LIBTOOL_CONFIG_VARS +# ----------------------- +# Produce commented declarations of non-tagged libtool config variables +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG +# section) are produced by _LT_LIBTOOL_TAG_VARS. +m4_defun([_LT_LIBTOOL_CONFIG_VARS], +[m4_foreach([_lt_var], + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAG_VARS(TAG) +# ------------------------- +m4_define([_LT_LIBTOOL_TAG_VARS], +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) + + +# _LT_TAGVAR(VARNAME, [TAGNAME]) +# ------------------------------ +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) + + +# _LT_CONFIG_COMMANDS +# ------------------- +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of +# variables for single and double quote escaping we saved from calls +# to _LT_DECL, we can put quote escaped variables declarations +# into `config.status', and then the shell code to quote escape them in +# for loops in `config.status'. Finally, any additional code accumulated +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. +m4_defun([_LT_CONFIG_COMMANDS], +[AC_PROVIDE_IFELSE([LT_OUTPUT], + dnl If the libtool generation code has been placed in $CONFIG_LT, + dnl instead of duplicating it all over again into config.status, + dnl then we will have config.status run $CONFIG_LT later, so it + dnl needs to know what name is stored there: + [AC_CONFIG_COMMANDS([libtool], + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], + dnl If the libtool generation code is destined for config.status, + dnl expand the accumulated commands and init code now: + [AC_CONFIG_COMMANDS([libtool], + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) +])#_LT_CONFIG_COMMANDS + + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], +[ + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +_LT_CONFIG_STATUS_DECLARATIONS +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$[]1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_quote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_dquote_varnames); do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +_LT_OUTPUT_LIBTOOL_INIT +]) + +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) +# ------------------------------------ +# Generate a child script FILE with all initialization necessary to +# reuse the environment learned by the parent script, and make the +# file executable. If COMMENT is supplied, it is inserted after the +# `#!' sequence but before initialization text begins. After this +# macro, additional text can be appended to FILE to form the body of +# the child script. The macro ends with non-zero status if the +# file could not be fully written (such as if the disk is full). +m4_ifdef([AS_INIT_GENERATED], +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], +[m4_defun([_LT_GENERATED_FILE_INIT], +[m4_require([AS_PREPARE])]dnl +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl +[lt_write_fail=0 +cat >$1 <<_ASEOF || lt_write_fail=1 +#! $SHELL +# Generated by $as_me. +$2 +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$1 <<\_ASEOF || lt_write_fail=1 +AS_SHELL_SANITIZE +_AS_PREPARE +exec AS_MESSAGE_FD>&1 +_ASEOF +test $lt_write_fail = 0 && chmod +x $1[]dnl +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT + +# LT_OUTPUT +# --------- +# This macro allows early generation of the libtool script (before +# AC_OUTPUT is called), incase it is used in configure for compilation +# tests. +AC_DEFUN([LT_OUTPUT], +[: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], +[# Run this file to recreate a libtool stub with the current configuration.]) + +cat >>"$CONFIG_LT" <<\_LTEOF +lt_cl_silent=false +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +\`$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to <bug-libtool@gnu.org>." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2010 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permision to copy, distribute and modify it." + +while test $[#] != 0 +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try \`$[0] --help' for more information.]) ;; + + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try \`$[0] --help' for more information.]) ;; + esac + shift +done + +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null +fi +_LTEOF + +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +lt_cl_success=: +test "$silent" = yes && + lt_config_lt_args="$lt_config_lt_args --quiet" +exec AS_MESSAGE_LOG_FD>/dev/null +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false +exec AS_MESSAGE_LOG_FD>>config.log +$lt_cl_success || AS_EXIT(1) +])# LT_OUTPUT + + +# _LT_CONFIG(TAG) +# --------------- +# If TAG is the built-in tag, create an initial libtool script with a +# default configuration from the untagged config vars. Otherwise add code +# to config.status for appending the configuration named by TAG from the +# matching tagged config vars. +m4_defun([_LT_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_CONFIG_SAVE_COMMANDS([ + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl + m4_if(_LT_TAG, [C], [ + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +_LT_COPYING +_LT_LIBTOOL_TAGS + +# ### BEGIN LIBTOOL CONFIG +_LT_LIBTOOL_CONFIG_VARS +_LT_LIBTOOL_TAG_VARS +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + _LT_PROG_LTMAIN + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + _LT_PROG_REPLACE_SHELLFNS + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +], +[cat <<_LT_EOF >> "$ofile" + +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded +dnl in a comment (ie after a #). +# ### BEGIN LIBTOOL TAG CONFIG: $1 +_LT_LIBTOOL_TAG_VARS(_LT_TAG) +# ### END LIBTOOL TAG CONFIG: $1 +_LT_EOF +])dnl /m4_if +], +[m4_if([$1], [], [ + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile'], []) +])dnl /_LT_CONFIG_SAVE_COMMANDS +])# _LT_CONFIG + + +# LT_SUPPORTED_TAG(TAG) +# --------------------- +# Trace this macro to discover what tags are supported by the libtool +# --tag option, using: +# autoconf --trace 'LT_SUPPORTED_TAG:$1' +AC_DEFUN([LT_SUPPORTED_TAG], []) + + +# C support is built-in for now +m4_define([_LT_LANG_C_enabled], []) +m4_define([_LT_TAGS], []) + + +# LT_LANG(LANG) +# ------------- +# Enable libtool support for the given language if not already enabled. +AC_DEFUN([LT_LANG], +[AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +])# LT_LANG + + +# _LT_LANG(LANGNAME) +# ------------------ +m4_defun([_LT_LANG], +[m4_ifdef([_LT_LANG_]$1[_enabled], [], + [LT_SUPPORTED_TAG([$1])dnl + m4_append([_LT_TAGS], [$1 ])dnl + m4_define([_LT_LANG_]$1[_enabled], [])dnl + _LT_LANG_$1_CONFIG($1)])dnl +])# _LT_LANG + + +# _LT_LANG_DEFAULT_CONFIG +# ----------------------- +m4_defun([_LT_LANG_DEFAULT_CONFIG], +[AC_PROVIDE_IFELSE([AC_PROG_CXX], + [LT_LANG(CXX)], + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) + +AC_PROVIDE_IFELSE([AC_PROG_F77], + [LT_LANG(F77)], + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) + +AC_PROVIDE_IFELSE([AC_PROG_FC], + [LT_LANG(FC)], + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) + +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal +dnl pulling things in needlessly. +AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], + [LT_LANG(GCJ)], + [m4_ifdef([AC_PROG_GCJ], + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([A][M_PROG_GCJ], + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([LT_PROG_GCJ], + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) + +AC_PROVIDE_IFELSE([LT_PROG_RC], + [LT_LANG(RC)], + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) +])# _LT_LANG_DEFAULT_CONFIG + +# Obsolete macros: +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) +dnl AC_DEFUN([AC_LIBTOOL_F77], []) +dnl AC_DEFUN([AC_LIBTOOL_FC], []) +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) +dnl AC_DEFUN([AC_LIBTOOL_RC], []) + + +# _LT_TAG_COMPILER +# ---------------- +m4_defun([_LT_TAG_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_TAG_COMPILER + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +m4_defun([_LT_COMPILER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +m4_defun([_LT_LINKER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* +])# _LT_LINKER_BOILERPLATE + +# _LT_REQUIRED_DARWIN_CHECKS +# ------------------------- +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + AC_CHECK_TOOL([LIPO], [lipo], [:]) + AC_CHECK_TOOL([OTOOL], [otool], [:]) + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) + _LT_DECL([], [DSYMUTIL], [1], + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) + _LT_DECL([], [NMEDIT], [1], + [Tool to change global to local symbols on Mac OS X]) + _LT_DECL([], [LIPO], [1], + [Tool to manipulate fat objects and archives on Mac OS X]) + _LT_DECL([], [OTOOL], [1], + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) + _LT_DECL([], [OTOOL64], [1], + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi]) + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS="$save_LDFLAGS" + ]) + AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], + [lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD + echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD + $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD + echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD + $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + ]) + case $host_os in + rhapsody* | darwin1.[[012]]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[[012]]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac +]) + + +# _LT_DARWIN_LINKER_FEATURES +# -------------------------- +# Checks for linker and compiler features on darwin +m4_defun([_LT_DARWIN_LINKER_FEATURES], +[ + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_automatic, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='' + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + m4_if([$1], [CXX], +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi +],[]) + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi +]) + +# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) +# ---------------------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +# Store the results from the different compilers for each TAGNAME. +# Allow to override them for all tags through lt_cv_aix_libpath. +m4_defun([_LT_SYS_MODULE_PATH_AIX], +[m4_require([_LT_DECL_SED])dnl +if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], + [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ + lt_aix_libpath_sed='[ + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }]' + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi],[]) + if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then + _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" + fi + ]) + aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) +fi +])# _LT_SYS_MODULE_PATH_AIX + + +# _LT_SHELL_INIT(ARG) +# ------------------- +m4_define([_LT_SHELL_INIT], +[m4_divert_text([M4SH-INIT], [$1 +])])# _LT_SHELL_INIT + + + +# _LT_PROG_ECHO_BACKSLASH +# ----------------------- +# Find how we can fake an echo command that does not interpret backslash. +# In particular, with Autoconf 2.60 or later we add some code to the start +# of the generated configure script which will find a shell with a builtin +# printf (which we can use as an echo command). +m4_defun([_LT_PROG_ECHO_BACKSLASH], +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +AC_MSG_CHECKING([how to print strings]) +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$[]1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + +case "$ECHO" in + printf*) AC_MSG_RESULT([printf]) ;; + print*) AC_MSG_RESULT([print -r]) ;; + *) AC_MSG_RESULT([cat]) ;; +esac + +m4_ifdef([_AS_DETECT_SUGGESTED], +[_AS_DETECT_SUGGESTED([ + test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO + ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test "X`printf %s $ECHO`" = "X$ECHO" \ + || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) + +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) +])# _LT_PROG_ECHO_BACKSLASH + + +# _LT_WITH_SYSROOT +# ---------------- +AC_DEFUN([_LT_WITH_SYSROOT], +[AC_MSG_CHECKING([for sysroot]) +AC_ARG_WITH([sysroot], +[ --with-sysroot[=DIR] Search for dependent libraries within DIR + (or the compiler's sysroot if not specified).], +[], [with_sysroot=no]) + +dnl lt_sysroot will always be passed unquoted. We quote it here +dnl in case the user passed a directory name. +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + AC_MSG_RESULT([${with_sysroot}]) + AC_MSG_ERROR([The sysroot must be an absolute path.]) + ;; +esac + + AC_MSG_RESULT([${lt_sysroot:-no}]) +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl +[dependent libraries, and in which our libraries should be installed.])]) + +# _LT_ENABLE_LOCK +# --------------- +m4_defun([_LT_ENABLE_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AS_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" +])# _LT_ENABLE_LOCK + + +# _LT_PROG_AR +# ----------- +m4_defun([_LT_PROG_AR], +[AC_CHECK_TOOLS(AR, [ar], false) +: ${AR=ar} +: ${AR_FLAGS=cru} +_LT_DECL([], [AR], [1], [The archiver]) +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) + +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], + [lt_cv_ar_at_file=no + AC_COMPILE_IFELSE([AC_LANG_PROGRAM], + [echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' + AC_TRY_EVAL([lt_ar_try]) + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + AC_TRY_EVAL([lt_ar_try]) + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + ]) + ]) + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi +_LT_DECL([], [archiver_list_spec], [1], + [How to feed a file listing to the archiver]) +])# _LT_PROG_AR + + +# _LT_CMD_OLD_ARCHIVE +# ------------------- +m4_defun([_LT_CMD_OLD_ARCHIVE], +[_LT_PROG_AR + +AC_CHECK_TOOL(STRIP, strip, :) +test -z "$STRIP" && STRIP=: +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) + +AC_CHECK_TOOL(RANLIB, ranlib, :) +test -z "$RANLIB" && RANLIB=: +_LT_DECL([], [RANLIB], [1], + [Commands used to install an old-style archive]) + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac +_LT_DECL([], [old_postinstall_cmds], [2]) +_LT_DECL([], [old_postuninstall_cmds], [2]) +_LT_TAGDECL([], [old_archive_cmds], [2], + [Commands used to build an old-style archive]) +_LT_DECL([], [lock_old_archive_extraction], [0], + [Whether to use a lock for old archive extraction]) +])# _LT_CMD_OLD_ARCHIVE + + +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([_LT_COMPILER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $RM conftest* +]) + +if test x"[$]$2" = xyes; then + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +])# _LT_COMPILER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) + + +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------- +# Check whether the given linker option works +AC_DEFUN([_LT_LINKER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +])# _LT_LINKER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) + + +# LT_CMD_MAX_LEN +#--------------- +AC_DEFUN([LT_CMD_MAX_LEN], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +])# LT_CMD_MAX_LEN + +# Old name: +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) + + +# _LT_HEADER_DLFCN +# ---------------- +m4_defun([_LT_HEADER_DLFCN], +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl +])# _LT_HEADER_DLFCN + + +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ---------------------------------------------------------------- +m4_defun([_LT_TRY_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test "$cross_compiling" = yes; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +[#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include <dlfcn.h> +#endif + +#include <stdio.h> + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +}] +_LT_EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_dlunknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_TRY_DLOPEN_SELF + + +# LT_SYS_DLOPEN_SELF +# ------------------ +AC_DEFUN([LT_SYS_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +])# LT_SYS_DLOPEN_SELF + +# Old name: +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) + + +# _LT_COMPILER_C_O([TAGNAME]) +# --------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler. +# This macro does not hard code the compiler like AC_PROG_CC_C_O. +m4_defun([_LT_COMPILER_C_O], +[m4_require([_LT_DECL_SED])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* +]) +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], + [Does compiler simultaneously support -c and -o options?]) +])# _LT_COMPILER_C_O + + +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) +# ---------------------------------- +# Check to see if we can do hard links to lock some files if needed +m4_defun([_LT_COMPILER_FILE_LOCKS], +[m4_require([_LT_ENABLE_LOCK])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_COMPILER_C_O([$1]) + +hard_links="nottested" +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) +])# _LT_COMPILER_FILE_LOCKS + + +# _LT_CHECK_OBJDIR +# ---------------- +m4_defun([_LT_CHECK_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +_LT_DECL([], [objdir], [0], + [The name of the directory that contains temporary libtool files])dnl +m4_pattern_allow([LT_OBJDIR])dnl +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", + [Define to the sub-directory in which libtool stores uninstalled libraries.]) +])# _LT_CHECK_OBJDIR + + +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) +# -------------------------------------- +# Check hardcoding attributes. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || + test -n "$_LT_TAGVAR(runpath_var, $1)" || + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then + # Linking always hardcodes the temporary library directory. + _LT_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) + +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi +_LT_TAGDECL([], [hardcode_action], [0], + [How to hardcode a shared library path into an executable]) +])# _LT_LINKER_HARDCODE_LIBPATH + + +# _LT_CMD_STRIPLIB +# ---------------- +m4_defun([_LT_CMD_STRIPLIB], +[m4_require([_LT_DECL_EGREP]) +striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) +_LT_DECL([], [striplib], [1]) +])# _LT_CMD_STRIPLIB + + +# _LT_SYS_DYNAMIC_LINKER([TAG]) +# ----------------------------- +# PORTME Fill in your ld.so characteristics +m4_defun([_LT_SYS_DYNAMIC_LINKER], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_OBJDUMP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +AC_MSG_CHECKING([dynamic linker characteristics]) +m4_if([$1], + [], [ +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[[lt_foo]]++; } + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[[4-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib<name>.so + # instead of lib<name>.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[[45]]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[123]]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[[3-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], + [lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], + [lt_cv_shlibpath_overrides_runpath=yes])]) + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + ]) + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + +_LT_DECL([], [variables_saved_for_relink], [1], + [Variables whose values should be saved in libtool wrapper scripts and + restored at link time]) +_LT_DECL([], [need_lib_prefix], [0], + [Do we need the "lib" prefix for modules?]) +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) +_LT_DECL([], [version_type], [0], [Library versioning type]) +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) +_LT_DECL([], [shlibpath_overrides_runpath], [0], + [Is shlibpath searched before the hard-coded library search path?]) +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) +_LT_DECL([], [library_names_spec], [1], + [[List of archive names. First name is the real one, the rest are links. + The last name is the one that the linker finds with -lNAME]]) +_LT_DECL([], [soname_spec], [1], + [[The coded name of the library, if different from the real name]]) +_LT_DECL([], [install_override_mode], [1], + [Permission mode override for installation of shared libraries]) +_LT_DECL([], [postinstall_cmds], [2], + [Command to use after installation of a shared archive]) +_LT_DECL([], [postuninstall_cmds], [2], + [Command to use after uninstallation of a shared archive]) +_LT_DECL([], [finish_cmds], [2], + [Commands used to finish a libtool library installation in a directory]) +_LT_DECL([], [finish_eval], [1], + [[As "finish_cmds", except a single script fragment to be evaled but + not shown]]) +_LT_DECL([], [hardcode_into_libs], [0], + [Whether we should hardcode library paths into libraries]) +_LT_DECL([], [sys_lib_search_path_spec], [2], + [Compile-time system search path for libraries]) +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], + [Run-time system search path for libraries]) +])# _LT_SYS_DYNAMIC_LINKER + + +# _LT_PATH_TOOL_PREFIX(TOOL) +# -------------------------- +# find a file program which can recognize shared library +AC_DEFUN([_LT_PATH_TOOL_PREFIX], +[m4_require([_LT_DECL_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="m4_if([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +])# _LT_PATH_TOOL_PREFIX + +# Old name: +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) + + +# _LT_PATH_MAGIC +# -------------- +# find a file program which can recognize a shared library +m4_defun([_LT_PATH_MAGIC], +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# _LT_PATH_MAGIC + + +# LT_PATH_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([LT_PATH_LD], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl + +AC_ARG_WITH([gnu-ld], + [AS_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no])dnl + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break + ;; + *) + test "$with_gnu_ld" != yes && break + ;; + esac + fi + done + IFS="$lt_save_ifs" +else + lt_cv_path_LD="$LD" # Let the user override the test with a path. +fi]) +LD="$lt_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT($LD) +else + AC_MSG_RESULT(no) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +_LT_PATH_LD_GNU +AC_SUBST([LD]) + +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) +])# LT_PATH_LD + +# Old names: +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_PROG_LD], []) +dnl AC_DEFUN([AC_PROG_LD], []) + + +# _LT_PATH_LD_GNU +#- -------------- +m4_defun([_LT_PATH_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 </dev/null` in +*GNU* | *'with BFD'*) + lt_cv_prog_gnu_ld=yes + ;; +*) + lt_cv_prog_gnu_ld=no + ;; +esac]) +with_gnu_ld=$lt_cv_prog_gnu_ld +])# _LT_PATH_LD_GNU + + +# _LT_CMD_RELOAD +# -------------- +# find reload flag for linker +# -- PORTME Some linkers may need a different reload flag. +m4_defun([_LT_CMD_RELOAD], +[AC_CACHE_CHECK([for $LD option to reload object files], + lt_cv_ld_reload_flag, + [lt_cv_ld_reload_flag='-r']) +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac +_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl +_LT_TAGDECL([], [reload_cmds], [2])dnl +])# _LT_CMD_RELOAD + + +# _LT_CHECK_MAGIC_METHOD +# ---------------------- +# how to check for library dependencies +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_MAGIC_METHOD], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +AC_CACHE_CHECK([how to recognize dependent libraries], +lt_cv_deplibs_check_method, +[lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[[4-9]]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[[45]]*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[[3-9]]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + +_LT_DECL([], [deplibs_check_method], [1], + [Method to check whether dependent libraries are shared objects]) +_LT_DECL([], [file_magic_cmd], [1], + [Command to use when deplibs_check_method = "file_magic"]) +_LT_DECL([], [file_magic_glob], [1], + [How to find potential files when deplibs_check_method = "file_magic"]) +_LT_DECL([], [want_nocaseglob], [1], + [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) +])# _LT_CHECK_MAGIC_METHOD + + +# LT_PATH_NM +# ---------- +# find the pathname to a BSD- or MS-compatible name lister +AC_DEFUN([LT_PATH_NM], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi]) +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + AC_SUBST([DUMPBIN]) + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl + +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +])# LT_PATH_NM + +# Old names: +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_PROG_NM], []) +dnl AC_DEFUN([AC_PROG_NM], []) + +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB +# -------------------------------- +# how to determine the name of the shared library +# associated with a specific link library. +# -- PORTME fill in with the dynamic library characteristics +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], +[m4_require([_LT_DECL_EGREP]) +m4_require([_LT_DECL_OBJDUMP]) +m4_require([_LT_DECL_DLLTOOL]) +AC_CACHE_CHECK([how to associate runtime and link libraries], +lt_cv_sharedlib_from_linklib_cmd, +[lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac +]) +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + +_LT_DECL([], [sharedlib_from_linklib_cmd], [1], + [Command to associate shared and link libraries]) +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB + + +# _LT_PATH_MANIFEST_TOOL +# ---------------------- +# locate the manifest tool +m4_defun([_LT_PATH_MANIFEST_TOOL], +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], + [lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&AS_MESSAGE_LOG_FD + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest*]) +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl +])# _LT_PATH_MANIFEST_TOOL + + +# LT_LIB_M +# -------- +# check for math library +AC_DEFUN([LT_LIB_M], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +AC_SUBST([LIBM]) +])# LT_LIB_M + +# Old name: +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_CHECK_LIBM], []) + + +# _LT_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------- +m4_defun([_LT_COMPILER_NO_RTTI], +[m4_require([_LT_TAG_COMPILER])dnl + +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; + *) + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; + esac + + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], + [Compiler flag to turn off builtin functions]) +])# _LT_COMPILER_NO_RTTI + + +# _LT_CMD_GLOBAL_SYMBOLS +# ---------------------- +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([LT_PATH_NM])dnl +AC_REQUIRE([LT_PATH_LD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_TAG_COMPILER])dnl + +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris*) + symcode='[[BDRT]]' + ;; +sco3.2v5*) + symcode='[[DT]]' + ;; +sysv4.2uw2*) + symcode='[[DT]]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[[ABDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK ['"\ +" {last_section=section; section=\$ 3};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx]" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT@&t@_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT@&t@_DLSYM_CONST +#else +# define LT@&t@_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT@&t@_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[[]] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], + [Take the output of nm and produce a listing of raw symbols and C names]) +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], + [Transform the output of nm in a proper C declaration]) +_LT_DECL([global_symbol_to_c_name_address], + [lt_cv_sys_global_symbol_to_c_name_address], [1], + [Transform the output of nm in a C name address pair]) +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], + [Transform the output of nm in a C name address pair when lib prefix is needed]) +_LT_DECL([], [nm_file_list_spec], [1], + [Specify filename containing input files for $NM]) +]) # _LT_CMD_GLOBAL_SYMBOLS + + +# _LT_COMPILER_PIC([TAGNAME]) +# --------------------------- +m4_defun([_LT_COMPILER_PIC], +[m4_require([_LT_TAG_COMPILER])dnl +_LT_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_TAGVAR(lt_prog_compiler_static, $1)= + +m4_if([$1], [CXX], [ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test "$GCC" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + _LT_TAGVAR(lt_prog_compiler_static, $1)= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + hpux9* | hpux10* | hpux11*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' + ;; + nagfor*) + # NAG Fortran compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ F* | *Sun*Fortran*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + *Sun\ C*) + # Sun C 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + esac + ;; + + newsos6) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + rdos*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + solaris*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + unicos*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" + ;; +esac + +AC_CACHE_CHECK([for $compiler option to produce PIC], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], + [Additional compiler flags for building library objects]) + +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], + [How to pass a linker flag through the compiler]) +# +# Check to make sure the static flag actually works. +# +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], + [Compiler flag to prevent dynamic linking]) +])# _LT_COMPILER_PIC + + +# _LT_LINKER_SHLIBS([TAGNAME]) +# ---------------------------- +# See if the linker supports building shared libraries. +m4_defun([_LT_LINKER_SHLIBS], +[AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +m4_if([$1], [CXX], [ + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + case $host_os in + aix[[4-9]]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + _LT_TAGVAR(link_all_deplibs, $1)=no + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac +], [ + runpath_var= + _LT_TAGVAR(allow_undefined_flag, $1)= + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(archive_cmds, $1)= + _LT_TAGVAR(archive_expsym_cmds, $1)= + _LT_TAGVAR(compiler_needs_object, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(hardcode_automatic, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= + _LT_TAGVAR(hardcode_libdir_separator, $1)= + _LT_TAGVAR(hardcode_minus_L, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_TAGVAR(inherit_rpath, $1)=no + _LT_TAGVAR(link_all_deplibs, $1)=unknown + _LT_TAGVAR(module_cmds, $1)= + _LT_TAGVAR(module_expsym_cmds, $1)= + _LT_TAGVAR(old_archive_from_new_cmds, $1)= + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_TAGVAR(thread_safe_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + _LT_TAGVAR(link_all_deplibs, $1)=no + ;; + esac + + _LT_TAGVAR(ld_shlibs, $1)=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; + *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + _LT_TAGVAR(whole_archive_flag_spec, $1)= + tmp_sharedflag='--shared' ;; + xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + sunos4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then + runpath_var= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + _LT_TAGVAR(link_all_deplibs, $1)=no + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + bsdi[[45]]*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + esac + ;; + + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + freebsd1*) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + m4_if($1, [], [ + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + _LT_LINKER_OPTION([if $CC understands -b], + _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], + [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], + [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) + ;; + esac + fi + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], + [lt_cv_irix_exported_symbol], + [save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + AC_LINK_IFELSE( + [AC_LANG_SOURCE( + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], + [C++], [[int foo (void) { return 0; }]], + [Fortran 77], [[ + subroutine foo + end]], + [Fortran], [[ + subroutine foo + end]])])], + [lt_cv_irix_exported_symbol=yes], + [lt_cv_irix_exported_symbol=no]) + LDFLAGS="$save_LDFLAGS"]) + if test "$lt_cv_irix_exported_symbol" = yes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + solaris*) + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' + ;; + esac + fi + fi +]) +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld + +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl +_LT_DECL([], [extract_expsyms_cmds], [2], + [The commands to extract the exported symbol list from a shared archive]) + +# +# Do we need to explicitly link libc? +# +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_CACHE_CHECK([whether -lc should be explicitly linked in], + [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), + [$RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) + _LT_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) + then + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no + else + lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + ]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) + ;; + esac + fi + ;; +esac + +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], + [Whether or not to add -lc for building shared libraries]) +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], + [enable_shared_with_static_runtimes], [0], + [Whether or not to disallow shared libs when runtime libs are static]) +_LT_TAGDECL([], [export_dynamic_flag_spec], [1], + [Compiler flag to allow reflexive dlopens]) +_LT_TAGDECL([], [whole_archive_flag_spec], [1], + [Compiler flag to generate shared objects directly from archives]) +_LT_TAGDECL([], [compiler_needs_object], [1], + [Whether the compiler copes with passing no objects directly]) +_LT_TAGDECL([], [old_archive_from_new_cmds], [2], + [Create an old-style archive from a shared archive]) +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], + [Create a temporary old-style archive to link instead of a shared archive]) +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) +_LT_TAGDECL([], [archive_expsym_cmds], [2]) +_LT_TAGDECL([], [module_cmds], [2], + [Commands used to build a loadable module if different from building + a shared archive.]) +_LT_TAGDECL([], [module_expsym_cmds], [2]) +_LT_TAGDECL([], [with_gnu_ld], [1], + [Whether we are building with GNU ld or not]) +_LT_TAGDECL([], [allow_undefined_flag], [1], + [Flag that allows shared libraries with undefined symbols to be built]) +_LT_TAGDECL([], [no_undefined_flag], [1], + [Flag that enforces no undefined symbols]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], + [Flag to hardcode $libdir into a binary during linking. + This must work even if $libdir does not exist]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], + [[If ld is used when linking, flag to hardcode $libdir into a binary + during linking. This must work even if $libdir does not exist]]) +_LT_TAGDECL([], [hardcode_libdir_separator], [1], + [Whether we need a single "-rpath" flag with a separated argument]) +_LT_TAGDECL([], [hardcode_direct], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary]) +_LT_TAGDECL([], [hardcode_direct_absolute], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary and the resulting library dependency is + "absolute", i.e impossible to change by setting ${shlibpath_var} if the + library is relocated]) +_LT_TAGDECL([], [hardcode_minus_L], [0], + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_shlibpath_var], [0], + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_automatic], [0], + [Set to "yes" if building a shared library automatically hardcodes DIR + into the library and all subsequent libraries and executables linked + against it]) +_LT_TAGDECL([], [inherit_rpath], [0], + [Set to yes if linker adds runtime paths of dependent libraries + to runtime path list]) +_LT_TAGDECL([], [link_all_deplibs], [0], + [Whether libtool must link a program against all its dependency libraries]) +_LT_TAGDECL([], [always_export_symbols], [0], + [Set to "yes" if exported symbols are required]) +_LT_TAGDECL([], [export_symbols_cmds], [2], + [The commands to list exported symbols]) +_LT_TAGDECL([], [exclude_expsyms], [1], + [Symbols that should not be listed in the preloaded symbols]) +_LT_TAGDECL([], [include_expsyms], [1], + [Symbols that must always be exported]) +_LT_TAGDECL([], [prelink_cmds], [2], + [Commands necessary for linking programs (against libraries) with templates]) +_LT_TAGDECL([], [postlink_cmds], [2], + [Commands necessary for finishing linking programs]) +_LT_TAGDECL([], [file_list_spec], [1], + [Specify filename containing input files]) +dnl FIXME: Not yet implemented +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], +dnl [Compiler flag to generate thread safe objects]) +])# _LT_LINKER_SHLIBS + + +# _LT_LANG_C_CONFIG([TAG]) +# ------------------------ +# Ensure that the configuration variables for a C compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_C_CONFIG], +[m4_require([_LT_DECL_EGREP])dnl +lt_save_CC="$CC" +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + +_LT_TAG_COMPILER +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + LT_SYS_DLOPEN_SELF + _LT_CMD_STRIPLIB + + # Report which library types will actually be built + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_CONFIG($1) +fi +AC_LANG_POP +CC="$lt_save_CC" +])# _LT_LANG_C_CONFIG + + +# _LT_LANG_CXX_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a C++ compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_CXX_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_PATH_MANIFEST_TOOL])dnl +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_PROG_CXXCPP +else + _lt_caught_CXX_error=yes +fi + +AC_LANG_PUSH(C++) +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(compiler_needs_object, $1)=no +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + else + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + LT_PATH_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) + _LT_TAGVAR(ld_shlibs, $1)=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX([$1]) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + # Don't use ranlib + _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' + _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + freebsd[[12]]*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + freebsd-elf*) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + gnu*) + ;; + + haiku*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + hpux9*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + case $host in + osf3*) + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + ;; + *) + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ + '"$_LT_TAGVAR(old_archive_cmds, $1)" + _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ + '"$_LT_TAGVAR(reload_cmds, $1)" + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + + _LT_TAGVAR(GCC, $1)="$GXX" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +AC_LANG_POP +])# _LT_LANG_CXX_CONFIG + + +# _LT_FUNC_STRIPNAME_CNF +# ---------------------- +# func_stripname_cnf prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# +# This function is identical to the (non-XSI) version of func_stripname, +# except this one can be used by m4 code that may be executed by configure, +# rather than the libtool script. +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl +AC_REQUIRE([_LT_DECL_SED]) +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf +])# _LT_FUNC_STRIPNAME_CNF + +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) +# --------------------------------- +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl +# Dependencies to place before and after the object being linked: +_LT_TAGVAR(predep_objects, $1)= +_LT_TAGVAR(postdep_objects, $1)= +_LT_TAGVAR(predeps, $1)= +_LT_TAGVAR(postdeps, $1)= +_LT_TAGVAR(compiler_lib_search_path, $1)= + +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF +int a; +void foo (void) { a = 0; } +_LT_EOF +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer*4 a + a=0 + return + end +_LT_EOF +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer a + a=0 + return + end +_LT_EOF +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF +public class foo { + private int a; + public void bar (void) { + a = 0; + } +}; +_LT_EOF +]) + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +esac + +dnl Parse the compiler output and extract the necessary +dnl objects, libraries and library flags. +if AC_TRY_EVAL(ac_compile); then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" + else + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$_LT_TAGVAR(postdeps, $1)"; then + _LT_TAGVAR(postdeps, $1)="${prev}${p}" + else + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then + _LT_TAGVAR(predep_objects, $1)="$p" + else + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" + fi + else + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then + _LT_TAGVAR(postdep_objects, $1)="$p" + else + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling $1 test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +m4_if([$1], [CXX], +[case $host_os in +interix[[3-9]]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + _LT_TAGVAR(predep_objects,$1)= + _LT_TAGVAR(postdep_objects,$1)= + _LT_TAGVAR(postdeps,$1)= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac +]) + +case " $_LT_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac + _LT_TAGVAR(compiler_lib_search_dirs, $1)= +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], + [The directories searched by this compiler when creating a shared library]) +_LT_TAGDECL([], [predep_objects], [1], + [Dependencies to place before and after the objects being linked to + create a shared library]) +_LT_TAGDECL([], [postdep_objects], [1]) +_LT_TAGDECL([], [predeps], [1]) +_LT_TAGDECL([], [postdeps], [1]) +_LT_TAGDECL([], [compiler_lib_search_path], [1], + [The library search path used internally by the compiler when linking + a shared library]) +])# _LT_SYS_HIDDEN_LIBDEPS + + +# _LT_LANG_F77_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a Fortran 77 compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_F77_CONFIG], +[AC_LANG_PUSH(Fortran 77) +if test -z "$F77" || test "X$F77" = "Xno"; then + _lt_disable_F77=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the F77 compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_F77" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC="$CC" + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${F77-"f77"} + CFLAGS=$FFLAGS + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + GCC=$G77 + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)="$G77" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC="$lt_save_CC" + CFLAGS="$lt_save_CFLAGS" +fi # test "$_lt_disable_F77" != yes + +AC_LANG_POP +])# _LT_LANG_F77_CONFIG + + +# _LT_LANG_FC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for a Fortran compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_FC_CONFIG], +[AC_LANG_PUSH(Fortran) + +if test -z "$FC" || test "X$FC" = "Xno"; then + _lt_disable_FC=yes +fi + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for fc test sources. +ac_ext=${ac_fc_srcext-f} + +# Object file extension for compiled fc test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the FC compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_FC" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC="$CC" + lt_save_GCC=$GCC + lt_save_CFLAGS=$CFLAGS + CC=${FC-"f95"} + CFLAGS=$FCFLAGS + compiler=$CC + GCC=$ac_cv_fc_compiler_gnu + + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS +fi # test "$_lt_disable_FC" != yes + +AC_LANG_POP +])# _LT_LANG_FC_CONFIG + + +# _LT_LANG_GCJ_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Java Compiler compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_GCJ_CONFIG], +[AC_REQUIRE([LT_PROG_GCJ])dnl +AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC=yes +CC=${GCJ-"gcj"} +CFLAGS=$GCJFLAGS +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)="$LD" +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(reload_flag, $1)=$reload_flag +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_GCJ_CONFIG + + +# _LT_LANG_RC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for the Windows resource compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_RC_CONFIG], +[AC_REQUIRE([LT_PROG_RC])dnl +AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' + +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +lt_save_CFLAGS=$CFLAGS +lt_save_GCC=$GCC +GCC= +CC=${RC-"windres"} +CFLAGS= +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +if test -n "$compiler"; then + : + _LT_CONFIG($1) +fi + +GCC=$lt_save_GCC +AC_LANG_RESTORE +CC=$lt_save_CC +CFLAGS=$lt_save_CFLAGS +])# _LT_LANG_RC_CONFIG + + +# LT_PROG_GCJ +# ----------- +AC_DEFUN([LT_PROG_GCJ], +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_GCJ], []) + + +# LT_PROG_RC +# ---------- +AC_DEFUN([LT_PROG_RC], +[AC_CHECK_TOOL(RC, windres,) +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_RC], []) + + +# _LT_DECL_EGREP +# -------------- +# If we don't have a new enough Autoconf to choose the best grep +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_EGREP], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_REQUIRE([AC_PROG_FGREP])dnl +test -z "$GREP" && GREP=grep +_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) +_LT_DECL([], [EGREP], [1], [An ERE matcher]) +_LT_DECL([], [FGREP], [1], [A literal string matcher]) +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too +AC_SUBST([GREP]) +]) + + +# _LT_DECL_OBJDUMP +# -------------- +# If we don't have a new enough Autoconf to choose the best objdump +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_OBJDUMP], +[AC_CHECK_TOOL(OBJDUMP, objdump, false) +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) +AC_SUBST([OBJDUMP]) +]) + +# _LT_DECL_DLLTOOL +# ---------------- +# Ensure DLLTOOL variable is set. +m4_defun([_LT_DECL_DLLTOOL], +[AC_CHECK_TOOL(DLLTOOL, dlltool, false) +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) +AC_SUBST([DLLTOOL]) +]) + +# _LT_DECL_SED +# ------------ +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +m4_defun([_LT_DECL_SED], +[AC_PROG_SED +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" +_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], + [Sed that helps us avoid accidentally triggering echo(1) options like -n]) +])# _LT_DECL_SED + +m4_ifndef([AC_PROG_SED], [ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # + +m4_defun([AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +IFS=$as_save_IFS +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done +]) +SED=$lt_cv_path_SED +AC_SUBST([SED]) +AC_MSG_RESULT([$SED]) +])#AC_PROG_SED +])#m4_ifndef + +# Old name: +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_SED], []) + + +# _LT_CHECK_SHELL_FEATURES +# ------------------------ +# Find out whether the shell is Bourne or XSI compatible, +# or has some other useful features. +m4_defun([_LT_CHECK_SHELL_FEATURES], +[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +AC_MSG_RESULT([$xsi_shell]) +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) + +AC_MSG_CHECKING([whether the shell understands "+="]) +lt_shell_append=no +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +AC_MSG_RESULT([$lt_shell_append]) +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl +])# _LT_CHECK_SHELL_FEATURES + + +# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) +# ------------------------------------------------------ +# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and +# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. +m4_defun([_LT_PROG_FUNCTION_REPLACE], +[dnl { +sed -e '/^$1 ()$/,/^} # $1 /c\ +$1 ()\ +{\ +m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) +} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: +]) + + +# _LT_PROG_REPLACE_SHELLFNS +# ------------------------- +# Replace existing portable implementations of several shell functions with +# equivalent extended shell implementations where those features are available.. +m4_defun([_LT_PROG_REPLACE_SHELLFNS], +[if test x"$xsi_shell" = xyes; then + _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac]) + + _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl + func_basename_result="${1##*/}"]) + + _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}"]) + + _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"}]) + + _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl + func_split_long_opt_name=${1%%=*} + func_split_long_opt_arg=${1#*=}]) + + _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl + func_split_short_opt_arg=${1#??} + func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) + + _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac]) + + _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) + + _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) + + _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) +fi + +if test x"$lt_shell_append" = xyes; then + _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) + + _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl + func_quote_for_eval "${2}" +dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ + eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) +fi +]) + +# _LT_PATH_CONVERSION_FUNCTIONS +# ----------------------------- +# Determine which file name conversion functions should be used by +# func_to_host_file (and, implicitly, by func_to_host_path). These are needed +# for certain cross-compile configurations and native mingw. +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_MSG_CHECKING([how to convert $build file names to $host format]) +AC_CACHE_VAL(lt_cv_to_host_file_cmd, +[case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac +]) +to_host_file_cmd=$lt_cv_to_host_file_cmd +AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], + [0], [convert $build file names to $host format])dnl + +AC_MSG_CHECKING([how to convert $build file names to toolchain format]) +AC_CACHE_VAL(lt_cv_to_tool_file_cmd, +[#assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac +]) +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], + [0], [convert $build files to toolchain format])dnl +])# _LT_PATH_CONVERSION_FUNCTIONS + +# Helper functions for option handling. -*- Autoconf -*- +# +# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 7 ltoptions.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) + + +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) +# ------------------------------------------ +m4_define([_LT_MANGLE_OPTION], +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) + + +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) +# --------------------------------------- +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a +# matching handler defined, dispatch to it. Other OPTION-NAMEs are +# saved as a flag. +m4_define([_LT_SET_OPTION], +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), + _LT_MANGLE_DEFUN([$1], [$2]), + [m4_warning([Unknown $1 option `$2'])])[]dnl +]) + + +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) +# ------------------------------------------------------------ +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +m4_define([_LT_IF_OPTION], +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) + + +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) +# ------------------------------------------------------- +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME +# are set. +m4_define([_LT_UNLESS_OPTIONS], +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), + [m4_define([$0_found])])])[]dnl +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 +])[]dnl +]) + + +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) +# ---------------------------------------- +# OPTION-LIST is a space-separated list of Libtool options associated +# with MACRO-NAME. If any OPTION has a matching handler declared with +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about +# the unknown option and exit. +m4_defun([_LT_SET_OPTIONS], +[# Set options +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [_LT_SET_OPTION([$1], _LT_Option)]) + +m4_if([$1],[LT_INIT],[ + dnl + dnl Simply set some default values (i.e off) if boolean options were not + dnl specified: + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no + ]) + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no + ]) + dnl + dnl If no reference was made to various pairs of opposing options, then + dnl we run the default mode handler for the pair. For example, if neither + dnl `shared' nor `disable-shared' was passed, we enable building of shared + dnl archives by default: + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], + [_LT_ENABLE_FAST_INSTALL]) + ]) +])# _LT_SET_OPTIONS + + + +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) +# ----------------------------------------- +m4_define([_LT_MANGLE_DEFUN], +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) + + +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) +# ----------------------------------------------- +m4_define([LT_OPTION_DEFINE], +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl +])# LT_OPTION_DEFINE + + +# dlopen +# ------ +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes +]) + +AU_DEFUN([AC_LIBTOOL_DLOPEN], +[_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) + + +# win32-dll +# --------- +# Declare package support for building win32 dll's. +LT_OPTION_DEFINE([LT_INIT], [win32-dll], +[enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; +esac + +test -z "$AS" && AS=as +_LT_DECL([], [AS], [1], [Assembler program])dnl + +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl + +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl +])# win32-dll + +AU_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) + + +# _LT_ENABLE_SHARED([DEFAULT]) +# ---------------------------- +# implement the --enable-shared flag, and supports the `shared' and +# `disable-shared' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_SHARED], +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([shared], + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) + + _LT_DECL([build_libtool_libs], [enable_shared], [0], + [Whether or not to build shared libraries]) +])# _LT_ENABLE_SHARED + +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) + +AC_DEFUN([AC_DISABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) + +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_SHARED], []) +dnl AC_DEFUN([AM_DISABLE_SHARED], []) + + + +# _LT_ENABLE_STATIC([DEFAULT]) +# ---------------------------- +# implement the --enable-static flag, and support the `static' and +# `disable-static' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_STATIC], +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([static], + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_static=]_LT_ENABLE_STATIC_DEFAULT) + + _LT_DECL([build_old_libs], [enable_static], [0], + [Whether or not to build static libraries]) +])# _LT_ENABLE_STATIC + +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) + +AC_DEFUN([AC_DISABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], [disable-static]) +]) + +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_STATIC], []) +dnl AC_DEFUN([AM_DISABLE_STATIC], []) + + + +# _LT_ENABLE_FAST_INSTALL([DEFAULT]) +# ---------------------------------- +# implement the --enable-fast-install flag, and support the `fast-install' +# and `disable-fast-install' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_FAST_INSTALL], +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([fast-install], + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) + +_LT_DECL([fast_install], [enable_fast_install], [0], + [Whether or not to optimize for fast installation])dnl +])# _LT_ENABLE_FAST_INSTALL + +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) + +# Old names: +AU_DEFUN([AC_ENABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) + +AU_DEFUN([AC_DISABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) + + +# _LT_WITH_PIC([MODE]) +# -------------------- +# implement the --with-pic flag, and support the `pic-only' and `no-pic' +# LT_INIT options. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +m4_define([_LT_WITH_PIC], +[AC_ARG_WITH([pic], + [AS_HELP_STRING([--with-pic], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [pic_mode="$withval"], + [pic_mode=default]) + +test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) + +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl +])# _LT_WITH_PIC + +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) + +# Old name: +AU_DEFUN([AC_LIBTOOL_PICMODE], +[_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) + + +m4_define([_LTDL_MODE], []) +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], + [m4_define([_LTDL_MODE], [nonrecursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [recursive], + [m4_define([_LTDL_MODE], [recursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [subproject], + [m4_define([_LTDL_MODE], [subproject])]) + +m4_define([_LTDL_TYPE], []) +LT_OPTION_DEFINE([LTDL_INIT], [installable], + [m4_define([_LTDL_TYPE], [installable])]) +LT_OPTION_DEFINE([LTDL_INIT], [convenience], + [m4_define([_LTDL_TYPE], [convenience])]) + +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 6 ltsugar.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) + + +# lt_join(SEP, ARG1, [ARG2...]) +# ----------------------------- +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their +# associated separator. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier +# versions in m4sugar had bugs. +m4_define([lt_join], +[m4_if([$#], [1], [], + [$#], [2], [[$2]], + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) +m4_define([_lt_join], +[m4_if([$#$2], [2], [], + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) + + +# lt_car(LIST) +# lt_cdr(LIST) +# ------------ +# Manipulate m4 lists. +# These macros are necessary as long as will still need to support +# Autoconf-2.59 which quotes differently. +m4_define([lt_car], [[$1]]) +m4_define([lt_cdr], +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], + [$#], 1, [], + [m4_dquote(m4_shift($@))])]) +m4_define([lt_unquote], $1) + + +# lt_append(MACRO-NAME, STRING, [SEPARATOR]) +# ------------------------------------------ +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. +# Note that neither SEPARATOR nor STRING are expanded; they are appended +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). +# No SEPARATOR is output if MACRO-NAME was previously undefined (different +# than defined and empty). +# +# This macro is needed until we can rely on Autoconf 2.62, since earlier +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. +m4_define([lt_append], +[m4_define([$1], + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) + + + +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) +# ---------------------------------------------------------- +# Produce a SEP delimited list of all paired combinations of elements of +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list +# has the form PREFIXmINFIXSUFFIXn. +# Needed until we can rely on m4_combine added in Autoconf 2.62. +m4_define([lt_combine], +[m4_if(m4_eval([$# > 3]), [1], + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl +[[m4_foreach([_Lt_prefix], [$2], + [m4_foreach([_Lt_suffix], + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) + + +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) +# ----------------------------------------------------------------------- +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. +m4_define([lt_if_append_uniq], +[m4_ifdef([$1], + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], + [lt_append([$1], [$2], [$3])$4], + [$5])], + [lt_append([$1], [$2], [$3])$4])]) + + +# lt_dict_add(DICT, KEY, VALUE) +# ----------------------------- +m4_define([lt_dict_add], +[m4_define([$1($2)], [$3])]) + + +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) +# -------------------------------------------- +m4_define([lt_dict_add_subkey], +[m4_define([$1($2:$3)], [$4])]) + + +# lt_dict_fetch(DICT, KEY, [SUBKEY]) +# ---------------------------------- +m4_define([lt_dict_fetch], +[m4_ifval([$3], + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) + + +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) +# ----------------------------------------------------------------- +m4_define([lt_if_dict_fetch], +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], + [$5], + [$6])]) + + +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) +# -------------------------------------------------------------- +m4_define([lt_dict_filter], +[m4_if([$5], [], [], + [lt_join(m4_quote(m4_default([$4], [[, ]])), + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl +]) + +# ltversion.m4 -- version numbers -*- Autoconf -*- +# +# Copyright (C) 2004 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# @configure_input@ + +# serial 3293 ltversion.m4 +# This file is part of GNU Libtool + +m4_define([LT_PACKAGE_VERSION], [2.4]) +m4_define([LT_PACKAGE_REVISION], [1.3293]) + +AC_DEFUN([LTVERSION_VERSION], +[macro_version='2.4' +macro_revision='1.3293' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) + +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004. +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 5 lt~obsolete.m4 + +# These exist entirely to fool aclocal when bootstrapping libtool. +# +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) +# which have later been changed to m4_define as they aren't part of the +# exported API, or moved to Autoconf or Automake where they belong. +# +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us +# using a macro with the same name in our local m4/libtool.m4 it'll +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define +# and doesn't know about Autoconf macros at all.) +# +# So we provide this file, which has a silly filename so it's always +# included after everything else. This provides aclocal with the +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything +# because those macros already exist, or will be overwritten later. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. +# +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. +# Yes, that means every name once taken will need to remain here until +# we give up compatibility with versions before 1.7, at which point +# we need to keep only those names which we still refer to. + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) + +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) + +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.11' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.11.1], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.11.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 9 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +m4_define([_AM_COND_VALUE_$1], [$2])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 10 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + am__universal=false + m4_case([$1], [CC], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac], + [CXX], + [case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac]) + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 5 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[{ + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 16 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.62])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. +AC_CONFIG_COMMANDS_PRE(dnl +[m4_provide_if([_AM_COMPILER_EXEEXT], + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl +]) + +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further +dnl mangled by Autoconf and run in a shell conditional statement. +m4_define([_AC_COMPILER_EXEEXT], +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 6 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check for `mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[[\\\"\#\$\&\'\`$am_lf]]*) + AC_MSG_ERROR([unsafe absolute working directory name]);; +esac +case $srcdir in + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Public sister of _AM_SUBST_NOTMAKE. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. +AM_MISSING_PROG([AMTAR], [tar]) +m4_if([$1], [v7], + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar <conftest.tar]) + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..7192bb6 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,106 @@ +#!/bin/sh + +[ -f configure.in ] || { + echo "autogen.sh: run this command only at the top of the source tree." + exit 1 +} + +DIE=0 + +(autoconf --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have autoconf installed." + echo "Get ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.13.tar.gz" + echo "(or a newer version if it is available)" + DIE=1 + NO_AUTOCONF=yes +} + +(automake --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have automake installed." + echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4.tar.gz" + echo "(or a newer version if it is available)" + DIE=1 + NO_AUTOMAKE=yes +} + +# if no automake, don't bother testing for aclocal +test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: Missing \`aclocal'. The version of \`automake'" + echo "installed doesn't appear recent enough." + echo "Get ftp://ftp.gnu.org/pub/gnu/automake/automake-1.4.tar.gz" + echo "(or a newer version if it is available)" + DIE=1 +} + +# if no autoconf, don't bother testing for autoheader +test -n "$NO_AUTOCONF" || (autoheader --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: Missing \`autoheader'. The version of \`autoheader'" + echo "installed doesn't appear recent enough." + echo "Get ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-2.13.tar.gz" + echo "(or a newer version if it is available)" + DIE=1 +} + +grep "^AM_PROG_LIBTOOL" configure.in >/dev/null && { + (libtool --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: You must have \`libtool' installed." + echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.3.tar.gz" + echo "(or a newer version if it is available)" + DIE=1 + } +} + +grep "^AM_GNU_GETTEXT" configure.in >/dev/null && { + grep "sed.*POTFILES" configure.in >/dev/null || \ + (gettext --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "**Error**: You must have \`gettext' installed." + echo "Get ftp://ftp.gnu.org/pub/gnu/gettext-0.10.35.tar.gz" + echo "(or a newer version if it is available)" + DIE=1 + } +} + +if test "$DIE" -eq 1; then + exit 1 +fi + +if test -z "$*"; then + echo "**Warning**: I am going to run \`configure' with no arguments." + echo "If you wish to pass any to it, please specify them on the" + echo \`$0\'" command line." + echo +fi + +echo "Generating configure script and Makefiles." + +if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then + echo "Running gettextize..." + rm -f config.status + gettextize --force --copy +fi +if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then + echo "Running libtoolize..." + libtoolize --force --copy +fi + +echo "Running aclocal ..." +aclocal -I . +echo "Running autoheader..." +autoheader +echo "Running automake ..." +automake --add-missing --copy +echo "Running autoconf ..." +autoconf + +echo "Configuring." +conf_flags="--enable-maintainer-mode" +echo Running ./configure $conf_flags "$@" ... +./configure $conf_flags "$@" +echo "Now type 'make' to compile." + diff --git a/common.h b/common.h new file mode 100644 index 0000000..6efc79d --- /dev/null +++ b/common.h @@ -0,0 +1,273 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: common.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_COMMON_H_ +#define CRFPP_COMMON_H_ + +#include <cstdlib> +#include <cstdio> +#include <cstring> +#include <string> +#include <sstream> +#include <iostream> +#include <algorithm> +#include <cmath> + +#if defined(_WIN32) && !defined(__CYGWIN__) +#define NOMINMAX +#include <windows.h> +#endif + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#define COPYRIGHT "CRF++: Yet Another CRF Tool Kit\nCopyright (C) " \ + "2005-2012 Taku Kudo, All rights reserved.\n" +#define MODEL_VERSION 100 + +#if defined(_WIN32) && !defined(__CYGWIN__) +# define OUTPUT_MODE std::ios::binary|std::ios::out +#else +# define OUTPUT_MODE std::ios::out +#endif + +#define BUF_SIZE 8192 + +namespace CRFPP { +// helper functions defined in the paper +inline double sigma(double x) { + if (x > 0) return 1.0; + else if (x < 0) return -1.0; + return 0.0; +} + +template <class Iterator> +inline size_t tokenizeCSV(char *str, + Iterator out, size_t max) { + char *eos = str + std::strlen(str); + char *start = 0; + char *end = 0; + size_t n = 0; + + for (; str < eos; ++str) { + while (*str == ' ' || *str == '\t') ++str; // skip white spaces + bool inquote = false; + if (*str == '"') { + start = ++str; + end = start; + for (; str < eos; ++str) { + if (*str == '"') { + str++; + if (*str != '"') + break; + } + *end++ = *str; + } + inquote = true; + str = std::find(str, eos, ','); + } else { + start = str; + str = std::find(str, eos, ','); + end = str; + } + if (max-- > 1) *end = '\0'; + *out++ = start; + ++n; + if (max == 0) break; + } + + return n; +} + +template <class Iterator> +inline size_t tokenize(char *str, const char *del, + Iterator out, size_t max) { + char *stre = str + std::strlen(str); + const char *dele = del + std::strlen(del); + size_t size = 0; + + while (size < max) { + char *n = std::find_first_of(str, stre, del, dele); + *n = '\0'; + *out++ = str; + ++size; + if (n == stre) break; + str = n + 1; + } + + return size; +} + +// continus run of space is regarded as one space +template <class Iterator> +inline size_t tokenize2(char *str, const char *del, + Iterator out, size_t max) { + char *stre = str + std::strlen(str); + const char *dele = del + std::strlen(del); + size_t size = 0; + + while (size < max) { + char *n = std::find_first_of(str, stre, del, dele); + *n = '\0'; + if (*str != '\0') { + *out++ = str; + ++size; + } + if (n == stre) break; + str = n + 1; + } + + return size; +} + +void inline dtoa(double val, char *s) { + std::sprintf(s, "%-16f", val); + char *p = s; + for (; *p != ' '; ++p) {} + *p = '\0'; + return; +} + +template <class T> inline void itoa(T val, char *s) { + char *t; + T mod; + + if (val < 0) { + *s++ = '-'; + val = -val; + } + t = s; + + while (val) { + mod = val % 10; + *t++ = static_cast<char>(mod)+ '0'; + val /= 10; + } + + if (s == t) *t++ = '0'; + *t = '\0'; + std::reverse(s, t); + + return; +} + +template <class T> +inline void uitoa(T val, char *s) { + char *t; + T mod; + t = s; + + while (val) { + mod = val % 10; + *t++ = static_cast<char>(mod) + '0'; + val /= 10; + } + + if (s == t) *t++ = '0'; + *t = '\0'; + std::reverse(s, t); + + return; +} + +#if defined(_WIN32) && !defined(__CYGWIN__) +std::wstring Utf8ToWide(const std::string &input); +std::string WideToUtf8(const std::wstring &input); +#endif + +#if defined(_WIN32) && !defined(__CYGWIN__) +#define WPATH(path) (CRFPP::Utf8ToWide(path).c_str()) +#else +#define WPATH(path) (path) +#endif + +#define _ITOA(_n) do { \ + char buf[64]; \ + itoa(_n, buf); \ + append(buf); \ + return *this; } while (0) + +#define _UITOA(_n) do { \ + char buf[64]; \ + uitoa(_n, buf); \ + append(buf); \ + return *this; } while (0) + +#define _DTOA(_n) do { \ + char buf[64]; \ + dtoa(_n, buf); \ + append(buf); \ + return *this; } while (0) + +class string_buffer: public std::string { + public: + string_buffer& operator<<(double _n) { _DTOA(_n); } + string_buffer& operator<<(short int _n) { _ITOA(_n); } + string_buffer& operator<<(int _n) { _ITOA(_n); } + string_buffer& operator<<(long int _n) { _ITOA(_n); } + string_buffer& operator<<(unsigned short int _n) { _UITOA(_n); } + string_buffer& operator<<(unsigned int _n) { _UITOA(_n); } + string_buffer& operator<<(unsigned long int _n) { _UITOA(_n); } + string_buffer& operator<<(char _n) { + push_back(_n); + return *this; + } + string_buffer& operator<<(const char* _n) { + append(_n); + return *this; + } + string_buffer& operator<<(const std::string& _n) { + append(_n); + return *this; + } +}; + +class die { + public: + die() {} + ~die() { + std::cerr << std::endl; + exit(-1); + } + int operator&(std::ostream&) { return 0; } +}; + +struct whatlog { + std::ostringstream stream_; + std::string str_; + const char *str() { + str_ = stream_.str(); + return str_.c_str(); + } +}; + +class wlog { + public: + wlog(whatlog *what) : what_(what) { + what_->stream_.clear(); + } + bool operator&(std::ostream &) { + return false; + } + private: + whatlog *what_; +}; +} // CRFPP + +#define WHAT what_.stream_ + +#define CHECK_FALSE(condition) \ + if (condition) {} else return \ + wlog(&what_) & what_.stream_ << \ + __FILE__ << "(" << __LINE__ << ") [" << #condition << "] " + +#define CHECK_DIE(condition) \ +(condition) ? 0 : die() & std::cerr << __FILE__ << \ +"(" << __LINE__ << ") [" << #condition << "] " + +#endif diff --git a/config.guess b/config.guess new file mode 100755 index 0000000..45bee13 --- /dev/null +++ b/config.guess @@ -0,0 +1,1465 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + +timestamp='2005-04-22' + +# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Per Bothner <per@bothner.com>. +# Please send patches to <config-patches@gnu.org>. Submit a context +# diff and a properly formatted ChangeLog entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit build system type. + +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 <config-patches@gnu.org>." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +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 0 ;; + --version | -v ) + echo "$version" ; exit 0 ;; + --help | --h* | -h ) + echo "$usage"; exit 0 ;; + -- ) # 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 -q "$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 ;' + +# 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 + +# 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 tupples: *-*-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 ;; + *) 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 __ELF__ >/dev/null + 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 0 ;; + amd64:OpenBSD:*:*) + echo x86_64-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + amiga:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + cats:OpenBSD:*:*) + echo arm-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + hp300:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + luna88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + macppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvmeppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sgi:OpenBSD:*:*) + echo mips64-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sun3:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + *:OpenBSD:*:*) + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit 0 ;; + macppc:MirBSD:*:*) + echo powerppc-unknown-mirbsd${UNAME_RELEASE} + exit 0 ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit 0 ;; + 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'` + exit 0 ;; + 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 0 ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit 0 ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit 0;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit 0 ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit 0 ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit 0 ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit 0 ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit 0 ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit 0;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit 0;; + 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 0 ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit 0 ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit 0 ;; + 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 0 ;; + esac ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + i86pc:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + 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 0 ;; + 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 0 ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit 0 ;; + 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 0 ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit 0 ;; + # 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 0 ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit 0 ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit 0 ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit 0 ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit 0 ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit 0 ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit 0 ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit 0 ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit 0 ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit 0 ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include <stdio.h> /* 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 \ + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ + && exit 0 + echo mips-mips-riscos${UNAME_RELEASE} + exit 0 ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit 0 ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit 0 ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit 0 ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit 0 ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit 0 ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit 0 ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit 0 ;; + 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 0 ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit 0 ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit 0 ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit 0 ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit 0 ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit 0 ;; + ????????: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 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit 0 ;; + 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 0 ;; + *: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 <sys/systemcfg.h> + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 + echo rs6000-ibm-aix3.2.5 + 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 0 ;; + *:AIX:*:[45]) + 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 0 ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit 0 ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit 0 ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit 0 ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit 0 ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit 0 ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit 0 ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit 0 ;; + 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 <stdlib.h> + #include <unistd.h> + + 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 + # avoid double evaluation of $set_cc_for_build + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit 0 ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit 0 ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include <unistd.h> + 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 && $dummy && exit 0 + echo unknown-hitachi-hiuxwe2 + exit 0 ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit 0 ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit 0 ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit 0 ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit 0 ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit 0 ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit 0 ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit 0 ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit 0 ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit 0 ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit 0 ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit 0 ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + 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 0 ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + 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 0 ;; + 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 0 ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit 0 ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + *:FreeBSD:*:*) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit 0 ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit 0 ;; + i*:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit 0 ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit 0 ;; + x86:Interix*:[34]*) + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' + exit 0 ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit 0 ;; + 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 0 ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit 0 ;; + amd64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit 0 ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit 0 ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit 0 ;; + *: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/[-(].*//'`-gnu + exit 0 ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit 0 ;; + arm*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + cris:Linux:*:*) + echo cris-axis-linux-gnu + exit 0 ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-gnu + exit 0 ;; + frv:Linux:*:*) + echo frv-unknown-linux-gnu + exit 0 ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + mips:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips + #undef mipsel + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mipsel + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips + #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-gnu" && exit 0 + ;; + mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips64 + #undef mips64el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mips64el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips64 + #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-gnu" && exit 0 + ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit 0 ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit 0 ;; + 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 ld.so.1 >/dev/null + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit 0 ;; + 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-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac + exit 0 ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit 0 ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit 0 ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu + exit 0 ;; + i*86:Linux:*:*) + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. cd to the root directory to prevent + # problems with other programs or directories called `ld' in the path. + # Set LC_ALL=C to ensure ld outputs messages in English. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ + | sed -ne '/supported targets:/!d + s/[ ][ ]*/ /g + s/.*supported targets: *// + s/ .*// + p'` + case "$ld_supported_targets" in + elf32-i386) + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" + ;; + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-gnuaout" + exit 0 ;; + coff-i386) + echo "${UNAME_MACHINE}-pc-linux-gnucoff" + exit 0 ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" + exit 0 ;; + esac + # Determine whether the default compiler is a.out or elf + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include <features.h> + #ifdef __ELF__ + # ifdef __GLIBC__ + # if __GLIBC__ >= 2 + LIBC=gnu + # else + LIBC=gnulibc1 + # endif + # else + LIBC=gnulibc1 + # endif + #else + #ifdef __INTEL_COMPILER + LIBC=gnu + #else + LIBC=gnuaout + #endif + #endif + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 + ;; + 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 0 ;; + 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 0 ;; + 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 0 ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit 0 ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit 0 ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit 0 ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit 0 ;; + 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 0 ;; + i*86:*:5:[78]*) + 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 0 ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL + elif /bin/uname -X 2>/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 0 ;; + 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 i386. + echo i386-pc-msdosdjgpp + exit 0 ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit 0 ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit 0 ;; + 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 0 ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit 0 ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit 0 ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit 0 ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + 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 0 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4 && exit 0 ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit 0 ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit 0 ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + *: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 0 ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says <Richard.M.Bartel@ccMail.Census.GOV> + echo i586-unisys-sysv4 + exit 0 ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes <hewes@openmarket.com>. + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit 0 ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit 0 ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit 0 ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit 0 ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit 0 ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit 0 ;; + 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 0 ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit 0 ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit 0 ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit 0 ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit 0 ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit 0 ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit 0 ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit 0 ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit 0 ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in + *86) UNAME_PROCESSOR=i686 ;; + unknown) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit 0 ;; + *: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 0 ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit 0 ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit 0 ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit 0 ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit 0 ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit 0 ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit 0 ;; + *: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 0 ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit 0 ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit 0 ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit 0 ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit 0 ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit 0 ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit 0 ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit 0 ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit 0 ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms && exit 0 ;; + I*) echo ia64-dec-vms && exit 0 ;; + V*) echo vax-dec-vms && exit 0 ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit 0 ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c <<EOF +#ifdef _SEQUENT_ +# include <sys/types.h> +# include <sys/utsname.h> +#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 <sys/param.h> + 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"); 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 <sys/param.h> +# 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 && $dummy && exit 0 + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } + +# 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 0 ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + c34*) + echo c34-convex-bsd + exit 0 ;; + c38*) + echo c38-convex-bsd + exit 0 ;; + c4*) + echo c4-convex-bsd + exit 0 ;; + esac +fi + +cat >&2 <<EOF +$0: unable to guess system type + +This script, last modified $timestamp, has failed to recognize +the operating system you are using. It is advised that you +download the most up to date version of the config scripts from + + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess +and + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub + +If the version you run ($0) is already up to date, please +send the following data and any information you think might be +pertinent to <config-patches@gnu.org> 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: diff --git a/config.h b/config.h new file mode 100644 index 0000000..6fde012 --- /dev/null +++ b/config.h @@ -0,0 +1,105 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if you have the <ctype.h> header file. */ +#define HAVE_CTYPE_H 1 + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the <fcntl.h> header file. */ +#define HAVE_FCNTL_H 1 + +/* Define to 1 if you have the `getpagesize' function. */ +#define HAVE_GETPAGESIZE 1 + +/* Define to 1 if you have the <inttypes.h> header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `m' library (-lm). */ +#define HAVE_LIBM 1 + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#define HAVE_LIBPTHREAD 1 + +/* Define to 1 if you have the <math.h> header file. */ +#define HAVE_MATH_H 1 + +/* Define to 1 if you have the <memory.h> header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have a working `mmap' system call. */ +#define HAVE_MMAP 1 + +/* Define to 1 if you have the <pthread.h> header file. */ +#define HAVE_PTHREAD_H 1 + +/* Define to 1 if you have the <stdint.h> header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <string.h> header file. */ +#define HAVE_STRING_H 1 + +/* */ +#define HAVE_SYS_CONF_SC_NPROCESSORS_CONF 1 + +/* Define to 1 if you have the <sys/mman.h> header file. */ +#define HAVE_SYS_MMAN_H 1 + +/* Define to 1 if you have the <sys/param.h> header file. */ +#define HAVE_SYS_PARAM_H 1 + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/times.h> header file. */ +#define HAVE_SYS_TIMES_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* */ +#define HAVE_TLS_KEYWORD 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "CRF++" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* Define to 1 if you have the ANSI C header files. */ +/* #undef STDC_HEADERS */ + +/* Version number of package */ +#define VERSION "0.55" + +/* Define to `unsigned int' if <sys/types.h> does not define. */ +/* #undef size_t */ diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..f2e7e7e --- /dev/null +++ b/config.h.in @@ -0,0 +1,104 @@ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if you have the <ctype.h> header file. */ +#undef HAVE_CTYPE_H + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the <fcntl.h> header file. */ +#undef HAVE_FCNTL_H + +/* Define to 1 if you have the `getpagesize' function. */ +#undef HAVE_GETPAGESIZE + +/* Define to 1 if you have the <inttypes.h> header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the `m' library (-lm). */ +#undef HAVE_LIBM + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#undef HAVE_LIBPTHREAD + +/* Define to 1 if you have the <math.h> header file. */ +#undef HAVE_MATH_H + +/* Define to 1 if you have the <memory.h> header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have a working `mmap' system call. */ +#undef HAVE_MMAP + +/* Define to 1 if you have the <pthread.h> header file. */ +#undef HAVE_PTHREAD_H + +/* Define to 1 if you have the <stdint.h> header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the <stdlib.h> header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the <strings.h> header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the <string.h> header file. */ +#undef HAVE_STRING_H + +/* */ +#undef HAVE_SYS_CONF_SC_NPROCESSORS_CONF + +/* Define to 1 if you have the <sys/mman.h> header file. */ +#undef HAVE_SYS_MMAN_H + +/* Define to 1 if you have the <sys/param.h> header file. */ +#undef HAVE_SYS_PARAM_H + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the <sys/times.h> header file. */ +#undef HAVE_SYS_TIMES_H + +/* Define to 1 if you have the <sys/types.h> header file. */ +#undef HAVE_SYS_TYPES_H + +/* */ +#undef HAVE_TLS_KEYWORD + +/* Define to 1 if you have the <unistd.h> header file. */ +#undef HAVE_UNISTD_H + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Version number of package */ +#undef VERSION + +/* Define to `unsigned int' if <sys/types.h> does not define. */ +#undef size_t diff --git a/config.log b/config.log new file mode 100644 index 0000000..568e234 --- /dev/null +++ b/config.log @@ -0,0 +1,1056 @@ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by configure, which was +generated by GNU Autoconf 2.68. Invocation command line was + + $ ./configure --enable-maintainer-mode + +## --------- ## +## Platform. ## +## --------- ## + +hostname = ubuntu +uname -m = x86_64 +uname -r = 3.0.0-12-generic +uname -s = Linux +uname -v = #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 + +/usr/bin/uname -p = unknown +/bin/uname -X = unknown + +/bin/arch = unknown +/usr/bin/arch -k = unknown +/usr/convex/getsysinfo = unknown +/usr/bin/hostinfo = unknown +/bin/machine = unknown +/usr/bin/oslevel = unknown +/bin/universe = unknown + +PATH: /usr/local/sbin +PATH: /usr/local/bin +PATH: /usr/sbin +PATH: /usr/bin +PATH: /sbin +PATH: /bin +PATH: /usr/games +PATH: /home/taku/.root/bin +PATH: /usr/bin/X11 +PATH: /home/taku/.root/bin/inno + + +## ----------- ## +## Core tests. ## +## ----------- ## + +configure:2548: checking for a BSD-compatible install +configure:2616: result: /usr/bin/install -c +configure:2627: checking whether build environment is sane +configure:2677: result: yes +configure:2818: checking for a thread-safe mkdir -p +configure:2857: result: /bin/mkdir -p +configure:2870: checking for gawk +configure:2900: result: no +configure:2870: checking for mawk +configure:2886: found /usr/bin/mawk +configure:2897: result: mawk +configure:2908: checking whether make sets $(MAKE) +configure:2930: result: yes +configure:3059: checking for gcc +configure:3075: found /usr/bin/gcc +configure:3086: result: gcc +configure:3315: checking for C compiler version +configure:3324: gcc --version >&5 +gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 +Copyright (C) 2011 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. + +configure:3335: $? = 0 +configure:3324: gcc -v >&5 +Using built-in specs. +COLLECT_GCC=gcc +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu +Thread model: posix +gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) +configure:3335: $? = 0 +configure:3324: gcc -V >&5 +gcc: error: unrecognized option '-V' +gcc: fatal error: no input files +compilation terminated. +configure:3335: $? = 4 +configure:3324: gcc -qversion >&5 +gcc: error: unrecognized option '-qversion' +gcc: fatal error: no input files +compilation terminated. +configure:3335: $? = 4 +configure:3355: checking whether the C compiler works +configure:3377: gcc conftest.c >&5 +configure:3381: $? = 0 +configure:3429: result: yes +configure:3432: checking for C compiler default output file name +configure:3434: result: a.out +configure:3440: checking for suffix of executables +configure:3447: gcc -o conftest conftest.c >&5 +configure:3451: $? = 0 +configure:3473: result: +configure:3495: checking whether we are cross compiling +configure:3503: gcc -o conftest conftest.c >&5 +configure:3507: $? = 0 +configure:3514: ./conftest +configure:3518: $? = 0 +configure:3533: result: no +configure:3538: checking for suffix of object files +configure:3560: gcc -c conftest.c >&5 +configure:3564: $? = 0 +configure:3585: result: o +configure:3589: checking whether we are using the GNU C compiler +configure:3608: gcc -c conftest.c >&5 +configure:3608: $? = 0 +configure:3617: result: yes +configure:3626: checking whether gcc accepts -g +configure:3646: gcc -c -g conftest.c >&5 +configure:3646: $? = 0 +configure:3687: result: yes +configure:3704: checking for gcc option to accept ISO C89 +configure:3768: gcc -c -g -O2 conftest.c >&5 +configure:3768: $? = 0 +configure:3781: result: none needed +configure:3812: checking for style of include used by make +configure:3840: result: GNU +configure:3865: checking dependency style of gcc +configure:3975: result: gcc3 +configure:4048: checking for g++ +configure:4064: found /usr/bin/g++ +configure:4075: result: g++ +configure:4102: checking for C++ compiler version +configure:4111: g++ --version >&5 +g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 +Copyright (C) 2011 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. + +configure:4122: $? = 0 +configure:4111: g++ -v >&5 +Using built-in specs. +COLLECT_GCC=g++ +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu +Thread model: posix +gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) +configure:4122: $? = 0 +configure:4111: g++ -V >&5 +g++: error: unrecognized option '-V' +g++: fatal error: no input files +compilation terminated. +configure:4122: $? = 4 +configure:4111: g++ -qversion >&5 +g++: error: unrecognized option '-qversion' +g++: fatal error: no input files +compilation terminated. +configure:4122: $? = 4 +configure:4126: checking whether we are using the GNU C++ compiler +configure:4145: g++ -c conftest.cpp >&5 +configure:4145: $? = 0 +configure:4154: result: yes +configure:4163: checking whether g++ accepts -g +configure:4183: g++ -c -g conftest.cpp >&5 +configure:4183: $? = 0 +configure:4224: result: yes +configure:4249: checking dependency style of g++ +configure:4359: result: gcc3 +configure:4380: checking how to run the C preprocessor +configure:4411: gcc -E conftest.c +configure:4411: $? = 0 +configure:4425: gcc -E conftest.c +conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory +compilation terminated. +configure:4425: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "" +| #define PACKAGE_TARNAME "" +| #define PACKAGE_VERSION "" +| #define PACKAGE_STRING "" +| #define PACKAGE_BUGREPORT "" +| #define PACKAGE_URL "" +| #define PACKAGE "CRF++" +| #define VERSION "0.55" +| /* end confdefs.h. */ +| #include <ac_nonexistent.h> +configure:4450: result: gcc -E +configure:4470: gcc -E conftest.c +configure:4470: $? = 0 +configure:4484: gcc -E conftest.c +conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory +compilation terminated. +configure:4484: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "" +| #define PACKAGE_TARNAME "" +| #define PACKAGE_VERSION "" +| #define PACKAGE_STRING "" +| #define PACKAGE_BUGREPORT "" +| #define PACKAGE_URL "" +| #define PACKAGE "CRF++" +| #define VERSION "0.55" +| /* end confdefs.h. */ +| #include <ac_nonexistent.h> +configure:4513: checking for grep that handles long lines and -e +configure:4571: result: /bin/grep +configure:4576: checking for egrep +configure:4638: result: /bin/grep -E +configure:4644: checking whether gcc needs -traditional +configure:4678: result: no +configure:4685: checking whether make sets $(MAKE) +configure:4707: result: yes +configure:4716: checking for library containing strerror +configure:4747: gcc -o conftest -g -O2 conftest.c >&5 +configure:4747: $? = 0 +configure:4764: result: none required +configure:4776: checking build system type +configure:4790: result: x86_64-unknown-linux-gnu +configure:4810: checking host system type +configure:4823: result: x86_64-unknown-linux-gnu +configure:4901: checking how to print strings +configure:4928: result: printf +configure:4949: checking for a sed that does not truncate output +configure:5013: result: /bin/sed +configure:5031: checking for fgrep +configure:5093: result: /bin/grep -F +configure:5128: checking for ld used by gcc +configure:5195: result: /usr/bin/ld +configure:5202: checking if the linker (/usr/bin/ld) is GNU ld +configure:5217: result: yes +configure:5229: checking for BSD- or MS-compatible name lister (nm) +configure:5278: result: /usr/bin/nm -B +configure:5408: checking the name lister (/usr/bin/nm -B) interface +configure:5415: g++ -c -g -O2 conftest.cpp >&5 +configure:5418: /usr/bin/nm -B "conftest.o" +configure:5421: output +0000000000000000 B some_variable +configure:5428: result: BSD nm +configure:5431: checking whether ln -s works +configure:5435: result: yes +configure:5443: checking the maximum length of command line arguments +configure:5568: result: 1572864 +configure:5585: checking whether the shell understands some XSI constructs +configure:5595: result: yes +configure:5599: checking whether the shell understands "+=" +configure:5605: result: yes +configure:5640: checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format +configure:5680: result: func_convert_file_noop +configure:5687: checking how to convert x86_64-unknown-linux-gnu file names to toolchain format +configure:5707: result: func_convert_file_noop +configure:5714: checking for /usr/bin/ld option to reload object files +configure:5721: result: -r +configure:5795: checking for objdump +configure:5811: found /usr/bin/objdump +configure:5822: result: objdump +configure:5854: checking how to recognize dependent libraries +configure:6056: result: pass_all +configure:6141: checking for dlltool +configure:6171: result: no +configure:6201: checking how to associate runtime and link libraries +configure:6228: result: printf %s\n +configure:6289: checking for ar +configure:6305: found /usr/bin/ar +configure:6316: result: ar +configure:6353: checking for archiver @FILE support +configure:6370: g++ -c -g -O2 conftest.cpp >&5 +configure:6370: $? = 0 +configure:6373: ar cru libconftest.a @conftest.lst >&5 +configure:6376: $? = 0 +configure:6381: ar cru libconftest.a @conftest.lst >&5 +ar: conftest.o: No such file or directory +configure:6384: $? = 1 +configure:6396: result: @ +configure:6454: checking for strip +configure:6470: found /usr/bin/strip +configure:6481: result: strip +configure:6553: checking for ranlib +configure:6569: found /usr/bin/ranlib +configure:6580: result: ranlib +configure:6682: checking command to parse /usr/bin/nm -B output from gcc object +configure:6801: g++ -c -g -O2 conftest.cpp >&5 +configure:6804: $? = 0 +configure:6808: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm +configure:6811: $? = 0 +configure:6877: g++ -o conftest -g -O2 conftest.cpp conftstm.o >&5 +configure:6880: $? = 0 +configure:6918: result: ok +configure:6955: checking for sysroot +configure:6985: result: no +configure:7062: g++ -c -g -O2 conftest.cpp >&5 +configure:7065: $? = 0 +configure:7228: checking for mt +configure:7244: found /bin/mt +configure:7255: result: mt +configure:7278: checking if mt is a manifest tool +configure:7284: mt '-?' +configure:7292: result: no +configure:7919: checking for ANSI C header files +configure:7939: g++ -c -g -O2 conftest.cpp >&5 +configure:7939: $? = 0 +./configure: line 7953: conftest.cpp: command not found +configure:8023: result: no +configure:8036: checking for sys/types.h +configure:8036: g++ -c -g -O2 conftest.cpp >&5 +configure:8036: $? = 0 +configure:8036: result: yes +configure:8036: checking for sys/stat.h +configure:8036: g++ -c -g -O2 conftest.cpp >&5 +configure:8036: $? = 0 +configure:8036: result: yes +configure:8036: checking for stdlib.h +configure:8036: g++ -c -g -O2 conftest.cpp >&5 +configure:8036: $? = 0 +configure:8036: result: yes +configure:8036: checking for string.h +configure:8036: g++ -c -g -O2 conftest.cpp >&5 +configure:8036: $? = 0 +configure:8036: result: yes +configure:8036: checking for memory.h +configure:8036: g++ -c -g -O2 conftest.cpp >&5 +configure:8036: $? = 0 +configure:8036: result: yes +configure:8036: checking for strings.h +configure:8036: g++ -c -g -O2 conftest.cpp >&5 +configure:8036: $? = 0 +configure:8036: result: yes +configure:8036: checking for inttypes.h +configure:8036: g++ -c -g -O2 conftest.cpp >&5 +configure:8036: $? = 0 +configure:8036: result: yes +configure:8036: checking for stdint.h +configure:8036: g++ -c -g -O2 conftest.cpp >&5 +configure:8036: $? = 0 +configure:8036: result: yes +configure:8036: checking for unistd.h +configure:8036: g++ -c -g -O2 conftest.cpp >&5 +configure:8036: $? = 0 +configure:8036: result: yes +configure:8050: checking for dlfcn.h +configure:8050: g++ -c -g -O2 conftest.cpp >&5 +configure:8050: $? = 0 +configure:8050: result: yes +configure:8247: checking for objdir +configure:8262: result: .libs +configure:8529: checking if gcc supports -fno-rtti -fno-exceptions +configure:8547: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5 +cc1: warning: command line option '-fno-rtti' is valid for C++/ObjC++ but not for C [enabled by default] +configure:8551: $? = 0 +configure:8564: result: no +configure:8874: checking for gcc option to produce PIC +configure:8881: result: -fPIC -DPIC +configure:8889: checking if gcc PIC flag -fPIC -DPIC works +configure:8907: gcc -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5 +configure:8911: $? = 0 +configure:8924: result: yes +configure:8953: checking if gcc static flag -static works +configure:8981: result: yes +configure:8996: checking if gcc supports -c -o file.o +configure:9017: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5 +configure:9021: $? = 0 +configure:9043: result: yes +configure:9051: checking if gcc supports -c -o file.o +configure:9098: result: yes +configure:9131: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries +configure:10293: result: yes +configure:10330: checking whether -lc should be explicitly linked in +configure:10338: gcc -c -g -O2 conftest.c >&5 +configure:10341: $? = 0 +configure:10356: gcc -shared -fPIC -DPIC conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /bin/grep -lc \>/dev/null 2\>\&1 +configure:10359: $? = 0 +configure:10373: result: no +configure:10538: checking dynamic linker characteristics +configure:11053: gcc -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5 +configure:11053: $? = 0 +configure:11287: result: GNU/Linux ld.so +configure:11394: checking how to hardcode library paths into programs +configure:11419: result: immediate +configure:11959: checking whether stripping libraries is possible +configure:11964: result: yes +configure:11999: checking if libtool supports shared libraries +configure:12001: result: yes +configure:12004: checking whether to build shared libraries +configure:12025: result: yes +configure:12028: checking whether to build static libraries +configure:12032: result: yes +configure:12055: checking how to run the C++ preprocessor +configure:12082: g++ -E conftest.cpp +configure:12082: $? = 0 +configure:12096: g++ -E conftest.cpp +conftest.cpp:22:28: fatal error: ac_nonexistent.h: No such file or directory +compilation terminated. +configure:12096: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "" +| #define PACKAGE_TARNAME "" +| #define PACKAGE_VERSION "" +| #define PACKAGE_STRING "" +| #define PACKAGE_BUGREPORT "" +| #define PACKAGE_URL "" +| #define PACKAGE "CRF++" +| #define VERSION "0.55" +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_DLFCN_H 1 +| #define LT_OBJDIR ".libs/" +| /* end confdefs.h. */ +| #include <ac_nonexistent.h> +configure:12121: result: g++ -E +configure:12141: g++ -E conftest.cpp +configure:12141: $? = 0 +configure:12155: g++ -E conftest.cpp +conftest.cpp:22:28: fatal error: ac_nonexistent.h: No such file or directory +compilation terminated. +configure:12155: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "" +| #define PACKAGE_TARNAME "" +| #define PACKAGE_VERSION "" +| #define PACKAGE_STRING "" +| #define PACKAGE_BUGREPORT "" +| #define PACKAGE_URL "" +| #define PACKAGE "CRF++" +| #define VERSION "0.55" +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_DLFCN_H 1 +| #define LT_OBJDIR ".libs/" +| /* end confdefs.h. */ +| #include <ac_nonexistent.h> +configure:12325: checking for ld used by g++ +configure:12392: result: /usr/bin/ld -m elf_x86_64 +configure:12399: checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld +configure:12414: result: yes +configure:12469: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries +configure:13473: result: yes +configure:13508: g++ -c -g -O2 conftest.cpp >&5 +configure:13511: $? = 0 +configure:14031: checking for g++ option to produce PIC +configure:14038: result: -fPIC -DPIC +configure:14046: checking if g++ PIC flag -fPIC -DPIC works +configure:14064: g++ -c -g -O2 -fPIC -DPIC -DPIC conftest.cpp >&5 +configure:14068: $? = 0 +configure:14081: result: yes +configure:14104: checking if g++ static flag -static works +configure:14132: result: yes +configure:14144: checking if g++ supports -c -o file.o +configure:14165: g++ -c -g -O2 -o out/conftest2.o conftest.cpp >&5 +configure:14169: $? = 0 +configure:14191: result: yes +configure:14196: checking if g++ supports -c -o file.o +configure:14243: result: yes +configure:14273: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries +configure:14310: result: yes +configure:14453: checking dynamic linker characteristics +configure:15136: result: GNU/Linux ld.so +configure:15189: checking how to hardcode library paths into programs +configure:15214: result: immediate +configure:15276: checking for ANSI C header files +configure:15380: result: no +configure:15393: checking for string.h +configure:15393: result: yes +configure:15393: checking for stdlib.h +configure:15393: result: yes +configure:15393: checking for unistd.h +configure:15393: result: yes +configure:15393: checking fcntl.h usability +configure:15393: g++ -c -g -O2 conftest.cpp >&5 +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking fcntl.h presence +configure:15393: g++ -E conftest.cpp +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking for fcntl.h +configure:15393: result: yes +configure:15393: checking for sys/stat.h +configure:15393: result: yes +configure:15393: checking sys/mman.h usability +configure:15393: g++ -c -g -O2 conftest.cpp >&5 +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking sys/mman.h presence +configure:15393: g++ -E conftest.cpp +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking for sys/mman.h +configure:15393: result: yes +configure:15393: checking sys/times.h usability +configure:15393: g++ -c -g -O2 conftest.cpp >&5 +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking sys/times.h presence +configure:15393: g++ -E conftest.cpp +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking for sys/times.h +configure:15393: result: yes +configure:15393: checking ctype.h usability +configure:15393: g++ -c -g -O2 conftest.cpp >&5 +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking ctype.h presence +configure:15393: g++ -E conftest.cpp +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking for ctype.h +configure:15393: result: yes +configure:15393: checking for sys/types.h +configure:15393: result: yes +configure:15393: checking math.h usability +configure:15393: g++ -c -g -O2 conftest.cpp >&5 +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking math.h presence +configure:15393: g++ -E conftest.cpp +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking for math.h +configure:15393: result: yes +configure:15393: checking pthread.h usability +configure:15393: g++ -c -g -O2 conftest.cpp >&5 +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking pthread.h presence +configure:15393: g++ -E conftest.cpp +configure:15393: $? = 0 +configure:15393: result: yes +configure:15393: checking for pthread.h +configure:15393: result: yes +configure:15404: checking for size_t +configure:15404: g++ -c -g -O2 conftest.cpp >&5 +configure:15404: $? = 0 +configure:15404: g++ -c -g -O2 conftest.cpp >&5 +conftest.cpp: In function 'int main()': +conftest.cpp:69:20: error: expected primary-expression before ')' token +configure:15404: $? = 1 +configure: failed program was: +| /* confdefs.h */ +| #define PACKAGE_NAME "" +| #define PACKAGE_TARNAME "" +| #define PACKAGE_VERSION "" +| #define PACKAGE_STRING "" +| #define PACKAGE_BUGREPORT "" +| #define PACKAGE_URL "" +| #define PACKAGE "CRF++" +| #define VERSION "0.55" +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_DLFCN_H 1 +| #define LT_OBJDIR ".libs/" +| #define HAVE_STRING_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_FCNTL_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_SYS_MMAN_H 1 +| #define HAVE_SYS_TIMES_H 1 +| #define HAVE_CTYPE_H 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_MATH_H 1 +| #define HAVE_PTHREAD_H 1 +| /* end confdefs.h. */ +| #include <stdio.h> +| #ifdef HAVE_SYS_TYPES_H +| # include <sys/types.h> +| #endif +| #ifdef HAVE_SYS_STAT_H +| # include <sys/stat.h> +| #endif +| #ifdef STDC_HEADERS +| # include <stdlib.h> +| # include <stddef.h> +| #else +| # ifdef HAVE_STDLIB_H +| # include <stdlib.h> +| # endif +| #endif +| #ifdef HAVE_STRING_H +| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H +| # include <memory.h> +| # endif +| # include <string.h> +| #endif +| #ifdef HAVE_STRINGS_H +| # include <strings.h> +| #endif +| #ifdef HAVE_INTTYPES_H +| # include <inttypes.h> +| #endif +| #ifdef HAVE_STDINT_H +| # include <stdint.h> +| #endif +| #ifdef HAVE_UNISTD_H +| # include <unistd.h> +| #endif +| int +| main () +| { +| if (sizeof ((size_t))) +| return 0; +| ; +| return 0; +| } +configure:15404: result: yes +configure:15416: checking for pow in -lm +configure:15441: g++ -o conftest -g -O2 conftest.cpp -lm >&5 +configure:15441: $? = 0 +configure:15450: result: yes +configure:15461: checking for exp in -lm +configure:15486: g++ -o conftest -g -O2 conftest.cpp -lm -lm >&5 +configure:15486: $? = 0 +configure:15495: result: yes +configure:15506: checking for log in -lm +configure:15531: g++ -o conftest -g -O2 conftest.cpp -lm -lm -lm >&5 +configure:15531: $? = 0 +configure:15540: result: yes +configure:15551: checking for pthread_create in -lpthread +configure:15576: g++ -o conftest -g -O2 conftest.cpp -lpthread -lm -lm -lm >&5 +configure:15576: $? = 0 +configure:15585: result: yes +configure:15596: checking for pthread_join in -lpthread +configure:15621: g++ -o conftest -g -O2 conftest.cpp -lpthread -lpthread -lm -lm -lm >&5 +configure:15621: $? = 0 +configure:15630: result: yes +configure:15647: checking for stdlib.h +configure:15647: result: yes +configure:15647: checking for unistd.h +configure:15647: result: yes +configure:15647: checking for sys/param.h +configure:15647: g++ -c -g -O2 conftest.cpp >&5 +configure:15647: $? = 0 +configure:15647: result: yes +configure:15667: checking for getpagesize +configure:15667: g++ -o conftest -g -O2 conftest.cpp -lpthread -lpthread -lm -lm -lm >&5 +configure:15667: $? = 0 +configure:15667: result: yes +configure:15676: checking for working mmap +configure:15823: g++ -o conftest -g -O2 conftest.cpp -lpthread -lpthread -lm -lm -lm >&5 +configure:15823: $? = 0 +configure:15823: ./conftest +configure:15823: $? = 0 +configure:15833: result: yes +configure:15843: checking whether make is GNU Make +configure:15846: result: yes +configure:16112: checking if g++ supports stl <string> (required) +configure:16129: g++ -c -O3 -Wall conftest.cpp >&5 +configure:16129: $? = 0 +configure:16141: result: yes +configure:16145: checking if g++ supports stl <vector> (required) +configure:16162: g++ -c -O3 -Wall conftest.cpp >&5 +configure:16162: $? = 0 +configure:16174: result: yes +configure:16178: checking if g++ supports stl <map> (required) +configure:16195: g++ -c -O3 -Wall conftest.cpp >&5 +configure:16195: $? = 0 +configure:16207: result: yes +configure:16211: checking if g++ supports stl <set> (required) +configure:16228: g++ -c -O3 -Wall conftest.cpp >&5 +configure:16228: $? = 0 +configure:16240: result: yes +configure:16244: checking if g++ supports stl <iostream> (required) +configure:16261: g++ -c -O3 -Wall conftest.cpp >&5 +configure:16261: $? = 0 +configure:16273: result: yes +configure:16277: checking if g++ supports stl <fstream> (required) +configure:16294: g++ -c -O3 -Wall conftest.cpp >&5 +configure:16294: $? = 0 +configure:16306: result: yes +configure:16310: checking if g++ supports stl <sstream> (required) +configure:16327: g++ -c -O3 -Wall conftest.cpp >&5 +configure:16327: $? = 0 +configure:16339: result: yes +configure:16343: checking if g++ supports stl <stdexcept> (required) +configure:16360: g++ -c -O3 -Wall conftest.cpp >&5 +configure:16360: $? = 0 +configure:16372: result: yes +configure:16377: checking if g++ supports template <class T> (required) +configure:16396: g++ -c -O3 -Wall conftest.cpp >&5 +configure:16396: $? = 0 +configure:16408: result: yes +configure:16412: checking if g++ supports const_cast<> (required) +configure:16430: g++ -c -O3 -Wall conftest.cpp >&5 +conftest.cpp: In function 'int main()': +conftest.cpp:51:9: warning: unused variable 'c1' [-Wunused-variable] +configure:16430: $? = 0 +configure:16442: result: yes +configure:16446: checking if g++ supports static_cast<> (required) +configure:16464: g++ -c -O3 -Wall conftest.cpp >&5 +conftest.cpp: In function 'int main()': +conftest.cpp:51:10: warning: unused variable 'c1' [-Wunused-variable] +configure:16464: $? = 0 +configure:16476: result: yes +configure:16480: checking if g++ supports dynamic_cast<> (required) +configure:16499: g++ -c -O3 -Wall conftest.cpp >&5 +conftest.cpp: In function 'int main()': +conftest.cpp:52:9: warning: unused variable 'c1' [-Wunused-variable] +configure:16499: $? = 0 +configure:16511: result: yes +configure:16515: checking if g++ supports exception handler (required) +configure:16538: g++ -c -O3 -Wall conftest.cpp >&5 +conftest.cpp: In function 'int main()': +conftest.cpp:51:11: warning: unused variable 'i' [-Wunused-variable] +configure:16538: $? = 0 +configure:16550: result: yes +configure:16554: checking if g++ supports namespaces (required) +configure:16572: g++ -c -O3 -Wall conftest.cpp >&5 +conftest.cpp: In function 'int main()': +conftest.cpp:51:3: warning: unused variable 'a' [-Wunused-variable] +configure:16572: $? = 0 +configure:16583: result: yes +configure:16587: checking if g++ supports __thread (optional) +configure:16604: g++ -c -O3 -Wall conftest.cpp >&5 +configure:16604: $? = 0 +configure:16614: result: yes +configure:16627: checking if g++ supports _SC_NPROCESSORS_CONF (optional) +configure:16645: g++ -c -O3 -Wall conftest.cpp >&5 +configure:16645: $? = 0 +configure:16655: result: yes +configure:16666: checking if g++ environment provides all required features +configure:16674: result: yes +configure:16816: creating ./config.status + +## ---------------------- ## +## Running config.status. ## +## ---------------------- ## + +This file was extended by config.status, which was +generated by GNU Autoconf 2.68. Invocation command line was + + CONFIG_FILES = + CONFIG_HEADERS = + CONFIG_LINKS = + CONFIG_COMMANDS = + $ ./config.status + +on ubuntu + +config.status:1175: creating Makefile +config.status:1175: creating Makefile.msvc +config.status:1175: creating swig/version.h +config.status:1175: creating config.h +config.status:1404: executing depfiles commands +config.status:1404: executing libtool commands +configure:19324: WARNING: unrecognized options: --enable-maintainer-mode + +## ---------------- ## +## Cache variables. ## +## ---------------- ## + +ac_cv_build=x86_64-unknown-linux-gnu +ac_cv_c_compiler_gnu=yes +ac_cv_cxx_compiler_gnu=yes +ac_cv_env_CCC_set= +ac_cv_env_CCC_value= +ac_cv_env_CC_set= +ac_cv_env_CC_value= +ac_cv_env_CFLAGS_set= +ac_cv_env_CFLAGS_value= +ac_cv_env_CPPFLAGS_set= +ac_cv_env_CPPFLAGS_value= +ac_cv_env_CPP_set= +ac_cv_env_CPP_value= +ac_cv_env_CXXCPP_set= +ac_cv_env_CXXCPP_value= +ac_cv_env_CXXFLAGS_set= +ac_cv_env_CXXFLAGS_value= +ac_cv_env_CXX_set= +ac_cv_env_CXX_value= +ac_cv_env_LDFLAGS_set= +ac_cv_env_LDFLAGS_value= +ac_cv_env_LIBS_set= +ac_cv_env_LIBS_value= +ac_cv_env_build_alias_set= +ac_cv_env_build_alias_value= +ac_cv_env_host_alias_set= +ac_cv_env_host_alias_value= +ac_cv_env_target_alias_set= +ac_cv_env_target_alias_value= +ac_cv_func_getpagesize=yes +ac_cv_func_mmap_fixed_mapped=yes +ac_cv_header_ctype_h=yes +ac_cv_header_dlfcn_h=yes +ac_cv_header_fcntl_h=yes +ac_cv_header_inttypes_h=yes +ac_cv_header_math_h=yes +ac_cv_header_memory_h=yes +ac_cv_header_pthread_h=yes +ac_cv_header_stdc=no +ac_cv_header_stdint_h=yes +ac_cv_header_stdlib_h=yes +ac_cv_header_string_h=yes +ac_cv_header_strings_h=yes +ac_cv_header_sys_mman_h=yes +ac_cv_header_sys_param_h=yes +ac_cv_header_sys_stat_h=yes +ac_cv_header_sys_times_h=yes +ac_cv_header_sys_types_h=yes +ac_cv_header_unistd_h=yes +ac_cv_host=x86_64-unknown-linux-gnu +ac_cv_lib_m_exp=yes +ac_cv_lib_m_log=yes +ac_cv_lib_m_pow=yes +ac_cv_lib_pthread_pthread_create=yes +ac_cv_lib_pthread_pthread_join=yes +ac_cv_objext=o +ac_cv_path_EGREP='/bin/grep -E' +ac_cv_path_FGREP='/bin/grep -F' +ac_cv_path_GREP=/bin/grep +ac_cv_path_SED=/bin/sed +ac_cv_path_install='/usr/bin/install -c' +ac_cv_path_mkdir=/bin/mkdir +ac_cv_prog_AWK=mawk +ac_cv_prog_CPP='gcc -E' +ac_cv_prog_CXXCPP='g++ -E' +ac_cv_prog_ac_ct_AR=ar +ac_cv_prog_ac_ct_CC=gcc +ac_cv_prog_ac_ct_CXX=g++ +ac_cv_prog_ac_ct_MANIFEST_TOOL=mt +ac_cv_prog_ac_ct_OBJDUMP=objdump +ac_cv_prog_ac_ct_RANLIB=ranlib +ac_cv_prog_ac_ct_STRIP=strip +ac_cv_prog_cc_c89= +ac_cv_prog_cc_g=yes +ac_cv_prog_cxx_g=yes +ac_cv_prog_gcc_traditional=no +ac_cv_prog_make_make_set=yes +ac_cv_search_strerror='none required' +ac_cv_type_size_t=yes +am_cv_CC_dependencies_compiler_type=gcc3 +am_cv_CXX_dependencies_compiler_type=gcc3 +lt_cv_ar_at_file=@ +lt_cv_archive_cmds_need_lc=no +lt_cv_deplibs_check_method=pass_all +lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_ld_reload_flag=-r +lt_cv_nm_interface='BSD nm' +lt_cv_objdir=.libs +lt_cv_path_LD=/usr/bin/ld +lt_cv_path_LDCXX='/usr/bin/ld -m elf_x86_64' +lt_cv_path_NM='/usr/bin/nm -B' +lt_cv_path_mainfest_tool=no +lt_cv_prog_compiler_c_o=yes +lt_cv_prog_compiler_c_o_CXX=yes +lt_cv_prog_compiler_pic='-fPIC -DPIC' +lt_cv_prog_compiler_pic_CXX='-fPIC -DPIC' +lt_cv_prog_compiler_pic_works=yes +lt_cv_prog_compiler_pic_works_CXX=yes +lt_cv_prog_compiler_rtti_exceptions=no +lt_cv_prog_compiler_static_works=yes +lt_cv_prog_compiler_static_works_CXX=yes +lt_cv_prog_gnu_ld=yes +lt_cv_prog_gnu_ldcxx=yes +lt_cv_sharedlib_from_linklib_cmd='printf %s\n' +lt_cv_shlibpath_overrides_runpath=no +lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\''' +lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\''' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\''' +lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' +lt_cv_sys_max_cmd_len=1572864 +lt_cv_to_host_file_cmd=func_convert_file_noop +lt_cv_to_tool_file_cmd=func_convert_file_noop + +## ----------------- ## +## Output variables. ## +## ----------------- ## + +ACLOCAL='${SHELL} /home/taku/proj/crfpp/missing --run aclocal-1.11' +AMDEPBACKSLASH='\' +AMDEP_FALSE='#' +AMDEP_TRUE='' +AMTAR='${SHELL} /home/taku/proj/crfpp/missing --run tar' +AR='ar' +AUTOCONF='${SHELL} /home/taku/proj/crfpp/missing --run autoconf' +AUTOHEADER='${SHELL} /home/taku/proj/crfpp/missing --run autoheader' +AUTOMAKE='${SHELL} /home/taku/proj/crfpp/missing --run automake-1.11' +AWK='mawk' +CC='gcc' +CCDEPMODE='depmode=gcc3' +CFLAGS='-O3 -Wall' +CPP='gcc -E' +CPPFLAGS='' +CXX='g++' +CXXCPP='g++ -E' +CXXDEPMODE='depmode=gcc3' +CXXFLAGS='-O3 -Wall' +CYGPATH_W='echo' +DEFS='-DHAVE_CONFIG_H' +DEPDIR='.deps' +DLLTOOL='false' +DSYMUTIL='' +DUMPBIN='' +ECHO_C='' +ECHO_N='-n' +ECHO_T='' +EGREP='/bin/grep -E' +EXEEXT='' +FGREP='/bin/grep -F' +GREP='/bin/grep' +INSTALL_DATA='${INSTALL} -m 644' +INSTALL_PROGRAM='${INSTALL}' +INSTALL_SCRIPT='${INSTALL}' +INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' +LD='/usr/bin/ld -m elf_x86_64' +LDFLAGS='' +LIBOBJS='' +LIBS='-lpthread -lpthread -lm -lm -lm ' +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +LIPO='' +LN_S='ln -s' +LTLIBOBJS='' +MAKEINFO='${SHELL} /home/taku/proj/crfpp/missing --run makeinfo' +MANIFEST_TOOL=':' +MKDIR_P='/bin/mkdir -p' +NM='/usr/bin/nm -B' +NMEDIT='' +OBJDUMP='objdump' +OBJEXT='o' +OTOOL64='' +OTOOL='' +PACKAGE='CRF++' +PACKAGE_BUGREPORT='' +PACKAGE_NAME='' +PACKAGE_STRING='' +PACKAGE_TARNAME='' +PACKAGE_URL='' +PACKAGE_VERSION='' +PATH_SEPARATOR=':' +RANLIB='ranlib' +SED='/bin/sed' +SET_MAKE='' +SHELL='/bin/bash' +STRIP='strip' +VERSION='0.55' +ac_ct_AR='ar' +ac_ct_CC='gcc' +ac_ct_CXX='g++' +ac_ct_DUMPBIN='' +am__EXEEXT_FALSE='' +am__EXEEXT_TRUE='#' +am__fastdepCC_FALSE='#' +am__fastdepCC_TRUE='' +am__fastdepCXX_FALSE='#' +am__fastdepCXX_TRUE='' +am__include='include' +am__isrc='' +am__leading_dot='.' +am__quote='' +am__tar='${AMTAR} chof - "$$tardir"' +am__untar='${AMTAR} xf -' +bindir='${exec_prefix}/bin' +build='x86_64-unknown-linux-gnu' +build_alias='' +build_cpu='x86_64' +build_os='linux-gnu' +build_vendor='unknown' +datadir='${datarootdir}' +datarootdir='${prefix}/share' +docdir='${datarootdir}/doc/${PACKAGE}' +dvidir='${docdir}' +exec_prefix='${prefix}' +host='x86_64-unknown-linux-gnu' +host_alias='' +host_cpu='x86_64' +host_os='linux-gnu' +host_vendor='unknown' +htmldir='${docdir}' +includedir='${prefix}/include' +infodir='${datarootdir}/info' +install_sh='${SHELL} /home/taku/proj/crfpp/install-sh' +libdir='${exec_prefix}/lib' +libexecdir='${exec_prefix}/libexec' +localedir='${datarootdir}/locale' +localstatedir='${prefix}/var' +mandir='${datarootdir}/man' +mkdir_p='/bin/mkdir -p' +oldincludedir='/usr/include' +pdfdir='${docdir}' +prefix='/usr/local' +program_transform_name='s,x,x,' +psdir='${docdir}' +sbindir='${exec_prefix}/sbin' +sharedstatedir='${prefix}/com' +sysconfdir='${prefix}/etc' +target_alias='' + +## ----------- ## +## confdefs.h. ## +## ----------- ## + +/* confdefs.h */ +#define PACKAGE_NAME "" +#define PACKAGE_TARNAME "" +#define PACKAGE_VERSION "" +#define PACKAGE_STRING "" +#define PACKAGE_BUGREPORT "" +#define PACKAGE_URL "" +#define PACKAGE "CRF++" +#define VERSION "0.55" +#define HAVE_SYS_TYPES_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRING_H 1 +#define HAVE_MEMORY_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_DLFCN_H 1 +#define LT_OBJDIR ".libs/" +#define HAVE_STRING_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_FCNTL_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_SYS_MMAN_H 1 +#define HAVE_SYS_TIMES_H 1 +#define HAVE_CTYPE_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_MATH_H 1 +#define HAVE_PTHREAD_H 1 +#define HAVE_LIBM 1 +#define HAVE_LIBM 1 +#define HAVE_LIBM 1 +#define HAVE_LIBPTHREAD 1 +#define HAVE_LIBPTHREAD 1 +#define HAVE_STDLIB_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_SYS_PARAM_H 1 +#define HAVE_GETPAGESIZE 1 +#define HAVE_MMAP 1 +#define HAVE_TLS_KEYWORD 1 +#define HAVE_SYS_CONF_SC_NPROCESSORS_CONF 1 + +configure: exit 0 diff --git a/config.status b/config.status new file mode 100755 index 0000000..8c6b9d6 --- /dev/null +++ b/config.status @@ -0,0 +1,2313 @@ +#! /bin/bash +# Generated by configure. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=${CONFIG_SHELL-/bin/bash} +export SHELL +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by $as_me, which was +generated by GNU Autoconf 2.68. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +# Files that config.status was made for. +config_files=" Makefile Makefile.msvc swig/version.h" +config_headers=" config.h" +config_commands=" depfiles libtool" + +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to the package provider." + +ac_cs_config="'--enable-maintainer-mode'" +ac_cs_version="\ +config.status +configured by ./configure, generated by GNU Autoconf 2.68, + with options \"$ac_cs_config\" + +Copyright (C) 2010 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='/home/taku/proj/crfpp' +srcdir='.' +INSTALL='/usr/bin/install -c' +MKDIR_P='/bin/mkdir -p' +AWK='mawk' +test -n "$AWK" || AWK=awk +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --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 + +if $ac_cs_recheck; then + set X '/bin/bash' './configure' '--enable-maintainer-mode' $ac_configure_extra_args --no-create --no-recursion + shift + $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6 + CONFIG_SHELL='/bin/bash' + export CONFIG_SHELL + exec "$@" +fi + +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +# +# INIT-COMMANDS +# +AMDEP_TRUE="" ac_aux_dir="." + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +double_quote_subst='s/\(["`\\]\)/\\\1/g' +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' +macro_version='2.4' +macro_revision='1.3293' +enable_shared='yes' +enable_static='yes' +pic_mode='default' +enable_fast_install='yes' +SHELL='/bin/bash' +ECHO='printf %s\n' +host_alias='' +host='x86_64-unknown-linux-gnu' +host_os='linux-gnu' +build_alias='' +build='x86_64-unknown-linux-gnu' +build_os='linux-gnu' +SED='/bin/sed' +Xsed='/bin/sed -e 1s/^X//' +GREP='/bin/grep' +EGREP='/bin/grep -E' +FGREP='/bin/grep -F' +LD='/usr/bin/ld -m elf_x86_64' +NM='/usr/bin/nm -B' +LN_S='ln -s' +max_cmd_len='1572864' +ac_objext='o' +exeext='' +lt_unset='unset' +lt_SP2NL='tr \040 \012' +lt_NL2SP='tr \015\012 \040\040' +lt_cv_to_host_file_cmd='func_convert_file_noop' +lt_cv_to_tool_file_cmd='func_convert_file_noop' +reload_flag=' -r' +reload_cmds='$LD$reload_flag -o $output$reload_objs' +OBJDUMP='objdump' +deplibs_check_method='pass_all' +file_magic_cmd='$MAGIC_CMD' +file_magic_glob='' +want_nocaseglob='no' +DLLTOOL='false' +sharedlib_from_linklib_cmd='printf %s\n' +AR='ar' +AR_FLAGS='cru' +archiver_list_spec='@' +STRIP='strip' +RANLIB='ranlib' +old_postinstall_cmds='chmod 644 $oldlib~$RANLIB $oldlib' +old_postuninstall_cmds='' +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib' +lock_old_archive_extraction='no' +CC='gcc' +CFLAGS='-O3 -Wall' +compiler='g++' +GCC='yes' +lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\'' | sed '\''/ __gnu_lto/d'\''' +lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' +lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\''' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\)[ ]*$/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\''' +nm_file_list_spec='@' +lt_sysroot='' +objdir='.libs' +MAGIC_CMD='file' +lt_prog_compiler_no_builtin_flag=' -fno-builtin' +lt_prog_compiler_pic=' -fPIC -DPIC' +lt_prog_compiler_wl='-Wl,' +lt_prog_compiler_static='-static' +lt_cv_prog_compiler_c_o='yes' +need_locks='no' +MANIFEST_TOOL=':' +DSYMUTIL='' +NMEDIT='' +LIPO='' +OTOOL='' +OTOOL64='' +libext='a' +shrext_cmds='.so' +extract_expsyms_cmds='' +archive_cmds_need_lc='no' +enable_shared_with_static_runtimes='no' +export_dynamic_flag_spec='${wl}--export-dynamic' +whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' +compiler_needs_object='no' +old_archive_from_new_cmds='' +old_archive_from_expsyms_cmds='' +archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' +archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' +module_cmds='' +module_expsym_cmds='' +with_gnu_ld='yes' +allow_undefined_flag='' +no_undefined_flag='' +hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' +hardcode_libdir_flag_spec_ld='' +hardcode_libdir_separator='' +hardcode_direct='no' +hardcode_direct_absolute='no' +hardcode_minus_L='no' +hardcode_shlibpath_var='unsupported' +hardcode_automatic='no' +inherit_rpath='no' +link_all_deplibs='no' +always_export_symbols='no' +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' +exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' +include_expsyms='' +prelink_cmds='' +postlink_cmds='' +file_list_spec='' +variables_saved_for_relink='PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH' +need_lib_prefix='no' +need_version='no' +version_type='linux' +runpath_var='LD_RUN_PATH' +shlibpath_var='LD_LIBRARY_PATH' +shlibpath_overrides_runpath='no' +libname_spec='lib$name' +library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' +soname_spec='${libname}${release}${shared_ext}$major' +install_override_mode='' +postinstall_cmds='' +postuninstall_cmds='' +finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' +finish_eval='' +hardcode_into_libs='yes' +sys_lib_search_path_spec='/usr/lib/gcc/x86_64-linux-gnu/4.6.1 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib ' +sys_lib_dlsearch_path_spec='/lib /usr/lib /lib32 /usr/lib32 /usr/lib/i386-linux-gnu/mesa /lib/i386-linux-gnu /usr/lib/i386-linux-gnu /lib/i686-linux-gnu /usr/lib/i686-linux-gnu /usr/local/lib /usr/lib/vmware-tools/lib32/libvmGuestLib.so /usr/lib/vmware-tools/lib64/libvmGuestLib.so /usr/lib/vmware-tools/lib32/libvmGuestLibJava.so /usr/lib/vmware-tools/lib64/libvmGuestLibJava.so /usr/lib/vmware-tools/lib32/libDeployPkg.so /usr/lib/vmware-tools/lib64/libDeployPkg.so /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/mesa /usr/local/lib ' +hardcode_action='immediate' +enable_dlopen='unknown' +enable_dlopen_self='unknown' +enable_dlopen_self_static='unknown' +old_striplib='strip --strip-debug' +striplib='strip --strip-unneeded' +compiler_lib_search_dirs='' +predep_objects='' +postdep_objects='' +predeps='' +postdeps='' +compiler_lib_search_path='' +LD_CXX='/usr/bin/ld -m elf_x86_64' +reload_flag_CXX=' -r' +reload_cmds_CXX='$LD$reload_flag -o $output$reload_objs' +old_archive_cmds_CXX='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib' +compiler_CXX='g++' +GCC_CXX='yes' +lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' +lt_prog_compiler_pic_CXX=' -fPIC -DPIC' +lt_prog_compiler_wl_CXX='-Wl,' +lt_prog_compiler_static_CXX='-static' +lt_cv_prog_compiler_c_o_CXX='yes' +archive_cmds_need_lc_CXX='no' +enable_shared_with_static_runtimes_CXX='no' +export_dynamic_flag_spec_CXX='${wl}--export-dynamic' +whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' +compiler_needs_object_CXX='no' +old_archive_from_new_cmds_CXX='' +old_archive_from_expsyms_cmds_CXX='' +archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' +archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' +module_cmds_CXX='' +module_expsym_cmds_CXX='' +with_gnu_ld_CXX='yes' +allow_undefined_flag_CXX='' +no_undefined_flag_CXX='' +hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' +hardcode_libdir_flag_spec_ld_CXX='' +hardcode_libdir_separator_CXX='' +hardcode_direct_CXX='no' +hardcode_direct_absolute_CXX='no' +hardcode_minus_L_CXX='no' +hardcode_shlibpath_var_CXX='unsupported' +hardcode_automatic_CXX='no' +inherit_rpath_CXX='no' +link_all_deplibs_CXX='no' +always_export_symbols_CXX='no' +export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' +exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' +include_expsyms_CXX='' +prelink_cmds_CXX='' +postlink_cmds_CXX='' +file_list_spec_CXX='' +hardcode_action_CXX='immediate' +compiler_lib_search_dirs_CXX='/usr/lib/gcc/x86_64-linux-gnu/4.6.1 /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../..' +predep_objects_CXX='/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtbeginS.o' +postdep_objects_CXX='/usr/lib/gcc/x86_64-linux-gnu/4.6.1/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crtn.o' +predeps_CXX='' +postdeps_CXX='-lstdc++ -lm -lgcc_s -lc -lgcc_s' +compiler_lib_search_path_CXX='-L/usr/lib/gcc/x86_64-linux-gnu/4.6.1 -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../..' + +LTCC='gcc' +LTCFLAGS='-g -O2' +compiler='gcc' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in SHELL ECHO SED GREP EGREP FGREP LD NM LN_S lt_SP2NL lt_NL2SP reload_flag OBJDUMP deplibs_check_method file_magic_cmd file_magic_glob want_nocaseglob DLLTOOL sharedlib_from_linklib_cmd AR AR_FLAGS archiver_list_spec STRIP RANLIB CC CFLAGS compiler lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address lt_cv_sys_global_symbol_to_c_name_address_lib_prefix nm_file_list_spec lt_prog_compiler_no_builtin_flag lt_prog_compiler_pic lt_prog_compiler_wl lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks MANIFEST_TOOL DSYMUTIL NMEDIT LIPO OTOOL OTOOL64 shrext_cmds export_dynamic_flag_spec whole_archive_flag_spec compiler_needs_object with_gnu_ld allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator exclude_expsyms include_expsyms file_list_spec variables_saved_for_relink libname_spec library_names_spec soname_spec install_override_mode finish_eval old_striplib striplib compiler_lib_search_dirs predep_objects postdep_objects predeps postdeps compiler_lib_search_path LD_CXX reload_flag_CXX compiler_CXX lt_prog_compiler_no_builtin_flag_CXX lt_prog_compiler_pic_CXX lt_prog_compiler_wl_CXX lt_prog_compiler_static_CXX lt_cv_prog_compiler_c_o_CXX export_dynamic_flag_spec_CXX whole_archive_flag_spec_CXX compiler_needs_object_CXX with_gnu_ld_CXX allow_undefined_flag_CXX no_undefined_flag_CXX hardcode_libdir_flag_spec_CXX hardcode_libdir_flag_spec_ld_CXX hardcode_libdir_separator_CXX exclude_expsyms_CXX include_expsyms_CXX file_list_spec_CXX compiler_lib_search_dirs_CXX predep_objects_CXX postdep_objects_CXX predeps_CXX postdeps_CXX compiler_lib_search_path_CXX; do + case `eval \\$ECHO \\""\\$$var"\\"` in + *[\\\`\"\$]*) + eval "lt_$var=\\\"\`\$ECHO \"\$$var\" | \$SED \"\$sed_quote_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\$$var\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds prelink_cmds postlink_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec reload_cmds_CXX old_archive_cmds_CXX old_archive_from_new_cmds_CXX old_archive_from_expsyms_cmds_CXX archive_cmds_CXX archive_expsym_cmds_CXX module_cmds_CXX module_expsym_cmds_CXX export_symbols_cmds_CXX prelink_cmds_CXX postlink_cmds_CXX; do + case `eval \\$ECHO \\""\\$$var"\\"` in + *[\\\`\"\$]*) + eval "lt_$var=\\\"\`\$ECHO \"\$$var\" | \$SED -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\$$var\\\"" + ;; + esac +done + +ac_aux_dir='.' +xsi_shell='yes' +lt_shell_append='yes' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='CRF++' + VERSION='0.55' + TIMESTAMP='' + RM='rm -f' + ofile='libtool' + + + + + + + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "Makefile.msvc") CONFIG_FILES="$CONFIG_FILES Makefile.msvc" ;; + "swig/version.h") CONFIG_FILES="$CONFIG_FILES swig/version.h" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +cat >>"$ac_tmp/subs1.awk" <<\_ACAWK && +S["am__EXEEXT_FALSE"]="" +S["am__EXEEXT_TRUE"]="#" +S["LTLIBOBJS"]="" +S["LIBOBJS"]="" +S["CXXCPP"]="g++ -E" +S["OTOOL64"]="" +S["OTOOL"]="" +S["LIPO"]="" +S["NMEDIT"]="" +S["DSYMUTIL"]="" +S["MANIFEST_TOOL"]=":" +S["RANLIB"]="ranlib" +S["ac_ct_AR"]="ar" +S["AR"]="ar" +S["DLLTOOL"]="false" +S["OBJDUMP"]="objdump" +S["LN_S"]="ln -s" +S["NM"]="/usr/bin/nm -B" +S["ac_ct_DUMPBIN"]="" +S["DUMPBIN"]="" +S["LD"]="/usr/bin/ld -m elf_x86_64" +S["FGREP"]="/bin/grep -F" +S["SED"]="/bin/sed" +S["LIBTOOL"]="$(SHELL) $(top_builddir)/libtool" +S["host_os"]="linux-gnu" +S["host_vendor"]="unknown" +S["host_cpu"]="x86_64" +S["host"]="x86_64-unknown-linux-gnu" +S["build_os"]="linux-gnu" +S["build_vendor"]="unknown" +S["build_cpu"]="x86_64" +S["build"]="x86_64-unknown-linux-gnu" +S["EGREP"]="/bin/grep -E" +S["GREP"]="/bin/grep" +S["CPP"]="gcc -E" +S["am__fastdepCXX_FALSE"]="#" +S["am__fastdepCXX_TRUE"]="" +S["CXXDEPMODE"]="depmode=gcc3" +S["ac_ct_CXX"]="g++" +S["CXXFLAGS"]="-O3 -Wall" +S["CXX"]="g++" +S["am__fastdepCC_FALSE"]="#" +S["am__fastdepCC_TRUE"]="" +S["CCDEPMODE"]="depmode=gcc3" +S["AMDEPBACKSLASH"]="\\" +S["AMDEP_FALSE"]="#" +S["AMDEP_TRUE"]="" +S["am__quote"]="" +S["am__include"]="include" +S["DEPDIR"]=".deps" +S["OBJEXT"]="o" +S["EXEEXT"]="" +S["ac_ct_CC"]="gcc" +S["CPPFLAGS"]="" +S["LDFLAGS"]="" +S["CFLAGS"]="-O3 -Wall" +S["CC"]="gcc" +S["am__untar"]="${AMTAR} xf -" +S["am__tar"]="${AMTAR} chof - \"$$tardir\"" +S["AMTAR"]="${SHELL} /home/taku/proj/crfpp/missing --run tar" +S["am__leading_dot"]="." +S["SET_MAKE"]="" +S["AWK"]="mawk" +S["mkdir_p"]="/bin/mkdir -p" +S["MKDIR_P"]="/bin/mkdir -p" +S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s" +S["STRIP"]="strip" +S["install_sh"]="${SHELL} /home/taku/proj/crfpp/install-sh" +S["MAKEINFO"]="${SHELL} /home/taku/proj/crfpp/missing --run makeinfo" +S["AUTOHEADER"]="${SHELL} /home/taku/proj/crfpp/missing --run autoheader" +S["AUTOMAKE"]="${SHELL} /home/taku/proj/crfpp/missing --run automake-1.11" +S["AUTOCONF"]="${SHELL} /home/taku/proj/crfpp/missing --run autoconf" +S["ACLOCAL"]="${SHELL} /home/taku/proj/crfpp/missing --run aclocal-1.11" +S["VERSION"]="0.55" +S["PACKAGE"]="CRF++" +S["CYGPATH_W"]="echo" +S["am__isrc"]="" +S["INSTALL_DATA"]="${INSTALL} -m 644" +S["INSTALL_SCRIPT"]="${INSTALL}" +S["INSTALL_PROGRAM"]="${INSTALL}" +S["target_alias"]="" +S["host_alias"]="" +S["build_alias"]="" +S["LIBS"]="-lpthread -lpthread -lm -lm -lm " +S["ECHO_T"]="" +S["ECHO_N"]="-n" +S["ECHO_C"]="" +S["DEFS"]="-DHAVE_CONFIG_H" +S["mandir"]="${datarootdir}/man" +S["localedir"]="${datarootdir}/locale" +S["libdir"]="${exec_prefix}/lib" +S["psdir"]="${docdir}" +S["pdfdir"]="${docdir}" +S["dvidir"]="${docdir}" +S["htmldir"]="${docdir}" +S["infodir"]="${datarootdir}/info" +S["docdir"]="${datarootdir}/doc/${PACKAGE}" +S["oldincludedir"]="/usr/include" +S["includedir"]="${prefix}/include" +S["localstatedir"]="${prefix}/var" +S["sharedstatedir"]="${prefix}/com" +S["sysconfdir"]="${prefix}/etc" +S["datadir"]="${datarootdir}" +S["datarootdir"]="${prefix}/share" +S["libexecdir"]="${exec_prefix}/libexec" +S["sbindir"]="${exec_prefix}/sbin" +S["bindir"]="${exec_prefix}/bin" +S["program_transform_name"]="s,x,x," +S["prefix"]="/usr/local" +S["exec_prefix"]="${prefix}" +S["PACKAGE_URL"]="" +S["PACKAGE_BUGREPORT"]="" +S["PACKAGE_STRING"]="" +S["PACKAGE_VERSION"]="" +S["PACKAGE_TARNAME"]="" +S["PACKAGE_NAME"]="" +S["PATH_SEPARATOR"]=":" +S["SHELL"]="/bin/bash" +_ACAWK +cat >>"$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +fi # test -n "$CONFIG_FILES" + +# 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 { +D["PACKAGE_NAME"]=" \"\"" +D["PACKAGE_TARNAME"]=" \"\"" +D["PACKAGE_VERSION"]=" \"\"" +D["PACKAGE_STRING"]=" \"\"" +D["PACKAGE_BUGREPORT"]=" \"\"" +D["PACKAGE_URL"]=" \"\"" +D["PACKAGE"]=" \"CRF++\"" +D["VERSION"]=" \"0.55\"" +D["HAVE_SYS_TYPES_H"]=" 1" +D["HAVE_SYS_STAT_H"]=" 1" +D["HAVE_STDLIB_H"]=" 1" +D["HAVE_STRING_H"]=" 1" +D["HAVE_MEMORY_H"]=" 1" +D["HAVE_STRINGS_H"]=" 1" +D["HAVE_INTTYPES_H"]=" 1" +D["HAVE_STDINT_H"]=" 1" +D["HAVE_UNISTD_H"]=" 1" +D["HAVE_DLFCN_H"]=" 1" +D["LT_OBJDIR"]=" \".libs/\"" +D["HAVE_STRING_H"]=" 1" +D["HAVE_STDLIB_H"]=" 1" +D["HAVE_UNISTD_H"]=" 1" +D["HAVE_FCNTL_H"]=" 1" +D["HAVE_SYS_STAT_H"]=" 1" +D["HAVE_SYS_MMAN_H"]=" 1" +D["HAVE_SYS_TIMES_H"]=" 1" +D["HAVE_CTYPE_H"]=" 1" +D["HAVE_SYS_TYPES_H"]=" 1" +D["HAVE_MATH_H"]=" 1" +D["HAVE_PTHREAD_H"]=" 1" +D["HAVE_LIBM"]=" 1" +D["HAVE_LIBM"]=" 1" +D["HAVE_LIBM"]=" 1" +D["HAVE_LIBPTHREAD"]=" 1" +D["HAVE_LIBPTHREAD"]=" 1" +D["HAVE_STDLIB_H"]=" 1" +D["HAVE_UNISTD_H"]=" 1" +D["HAVE_SYS_PARAM_H"]=" 1" +D["HAVE_GETPAGESIZE"]=" 1" +D["HAVE_MMAP"]=" 1" +D["HAVE_TLS_KEYWORD"]=" 1" +D["HAVE_SYS_CONF_SC_NPROCESSORS_CONF"]=" 1" + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\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 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + ac_datarootdir_hack=' + s&@datadir@&${datarootdir}&g + s&@docdir@&${datarootdir}/doc/${PACKAGE}&g + s&@infodir@&${datarootdir}/info&g + s&@localedir@&${datarootdir}/locale&g + s&@mandir@&${datarootdir}/man&g + s&\${datarootdir}&${prefix}/share&g' ;; +esac +ac_sed_extra="/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +} + +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, +# Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# An object symbol dumper. +OBJDUMP=$lt_OBJDUMP + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# How to create reloadable object files. +reload_flag=$lt_reload_flag_CXX +reload_cmds=$lt_reload_cmds_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 diff --git a/config.sub b/config.sub new file mode 100755 index 0000000..1761d8b --- /dev/null +++ b/config.sub @@ -0,0 +1,1626 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, +# Inc. + +timestamp='2007-06-28' + +# 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 <config-patches@gnu.org>. Submit a context +# diff and a properly formatted 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. + +# 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 <config-patches@gnu.org>." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +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-dietlibc | linux-newlib* | linux-uclibc* | \ + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-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) + os= + basic_machine=$1 + ;; + -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 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | mcore | mep \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64vr | mips64vrel \ + | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | mt \ + | msp430 \ + | nios | nios2 \ + | ns16k | ns32k \ + | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | score \ + | sh | sh[1234] | sh[24]a | 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 | tic80 | tron \ + | v850 | v850e \ + | we32k \ + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ + | z8k) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12) + # 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-* | c54x-* | c55x-* | c6x-* \ + | 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-* \ + | m32c-* | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64orion-* | mips64orionel-* \ + | 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-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* \ + | sh-* | sh[1234]-* | sh[24]a-* | 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-* \ + | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa-* \ + | ymp-* \ + | z8k-*) + ;; + # 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 + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + 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 + ;; + 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 + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + 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 + ;; + 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 + ;; + 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 + ;; + tic54x | c54x*) + basic_machine=tic54x-unknown + os=-coff + ;; + tic55x | c55x*) + basic_machine=tic55x-unknown + os=-coff + ;; + tic6x | c6x*) + basic_machine=tic6x-unknown + os=-coff + ;; + 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 + ;; + 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[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. + -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* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -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* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -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*) + # 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 + ;; + -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 + ;; + # 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 + ;; + -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: diff --git a/configure b/configure new file mode 100755 index 0000000..5444eaa --- /dev/null +++ b/configure @@ -0,0 +1,19328 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.68. +# +# +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software +# Foundation, Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : + +else + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 +test \$(( 1 + 1 )) = 2 || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" + if (eval "$as_required") 2>/dev/null; then : + as_have_required=yes +else + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : + +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir/$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : + CONFIG_SHELL=$as_shell as_have_required=yes + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : + break 2 +fi +fi + done;; + esac + as_found=false +done +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi; } +IFS=$as_save_IFS + + + if test "x$CONFIG_SHELL" != x; then : + # We cannot yet assume a decent shell, so we have to provide a + # neutralization value for shells without unset; and this also + # works around shells that cannot unset nonexistent variables. + # Preserve -v and -x to the replacement shell. + BASH_ENV=/dev/null + ENV=/dev/null + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV + export CONFIG_SHELL + case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; + esac + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} +fi + + if test x$as_have_required = xno; then : + $as_echo "$0: This script requires a shell more modern than all" + $as_echo "$0: the shells that I found on your system." + if test x${ZSH_VERSION+set} = xset ; then + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" + $as_echo "$0: be upgraded to zsh 4.3.4 or later." + else + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + +SHELL=${CONFIG_SHELL-/bin/sh} + + +test -n "$DJDIR" || exec 7<&0 </dev/null +exec 6>&1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME= +PACKAGE_TARNAME= +PACKAGE_VERSION= +PACKAGE_STRING= +PACKAGE_BUGREPORT= +PACKAGE_URL= + +ac_unique_file="crf_learn.cpp" +# Factoring default headers for most tests. +ac_includes_default="\ +#include <stdio.h> +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif +#ifdef HAVE_SYS_STAT_H +# include <sys/stat.h> +#endif +#ifdef STDC_HEADERS +# include <stdlib.h> +# include <stddef.h> +#else +# ifdef HAVE_STDLIB_H +# include <stdlib.h> +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include <memory.h> +# endif +# include <string.h> +#endif +#ifdef HAVE_STRINGS_H +# include <strings.h> +#endif +#ifdef HAVE_INTTYPES_H +# include <inttypes.h> +#endif +#ifdef HAVE_STDINT_H +# include <stdint.h> +#endif +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif" + +ac_header_list= +ac_subst_vars='am__EXEEXT_FALSE +am__EXEEXT_TRUE +LTLIBOBJS +LIBOBJS +CXXCPP +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +MANIFEST_TOOL +RANLIB +ac_ct_AR +AR +DLLTOOL +OBJDUMP +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +SED +LIBTOOL +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +EGREP +GREP +CPP +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +ac_ct_CXX +CXXFLAGS +CXX +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +with_sysroot +enable_libtool_lock +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS +CXX +CXXFLAGS +CCC +CPP +CXXCPP' + + +# 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 + $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used" >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures 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 + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a + nonstandard directory <lib dir> + LIBS libraries to pass to the linker, e.g. -l<library> + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if + you have headers in a nonstandard directory <include dir> + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CPP C preprocessor + CXXCPP 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.68 + +Copyright (C) 2010 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_compile + +# ac_fn_c_try_cpp LINENO +# ---------------------- +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_cpp + +# ac_fn_c_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 || + $as_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_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile + +# ac_fn_c_try_run LINENO +# ---------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_c_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_run + +# ac_fn_c_check_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 <limits.h> declares $2. + For example, HP-UX 11i <limits.h> declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + <limits.h> exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#endif + +#undef $2 + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char $2 (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_$2 || defined __stub___$2 +choke me +#endif + +int +main () +{ +return $2 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + eval "$3=yes" +else + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_func + +# ac_fn_cxx_try_cpp LINENO +# ------------------------ +# Try to preprocess conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_cpp () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } > conftest.i && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_cpp + +# ac_fn_cxx_try_link LINENO +# ------------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_link + +# ac_fn_cxx_try_run LINENO +# ------------------------ +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_cxx_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_cxx_try_run + +# ac_fn_cxx_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_cxx_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_cxx_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_cxx_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_cxx_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_cxx_check_header_mongrel + +# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES +# --------------------------------------------- +# Tests whether TYPE exists after having included INCLUDES, setting cache +# variable VAR accordingly. +ac_fn_cxx_check_type () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +$as_echo_n "checking for $2... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof ($2)) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +int +main () +{ +if (sizeof (($2))) + return 0; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + eval "$3=yes" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_cxx_check_type + +# ac_fn_cxx_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_cxx_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_cxx_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_cxx_check_header_compile + +# ac_fn_cxx_check_func LINENO FUNC VAR +# ------------------------------------ +# Tests whether FUNC exists, setting the cache variable VAR accordingly +ac_fn_cxx_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 <limits.h> declares $2. + For example, HP-UX 11i <limits.h> declares gettimeofday. */ +#define $2 innocuous_$2 + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $2 (); below. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + <limits.h> exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include <limits.h> +#else +# include <assert.h> +#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_cxx_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_cxx_check_func +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.68. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + $as_echo "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + $as_echo "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + $as_echo "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + $as_echo "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +$as_echo "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_URL "$PACKAGE_URL" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +as_fn_append ac_header_list " stdlib.h" +as_fn_append ac_header_list " unistd.h" +as_fn_append ac_header_list " sys/param.h" +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + +am__api_version='1.11' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if ${ac_cv_path_install+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in #(( + ./ | .// | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Reject unsafe characters in $srcdir or the absolute working directory +# name. Accept space and tab only in the latter. +am_lf=' +' +case `pwd` in + *[\\\"\#\$\&\'\`$am_lf]*) + as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; +esac +case $srcdir in + *[\\\"\#\$\&\'\`$am_lf\ \ ]*) + as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; +esac + +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t "$srcdir/configure" conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + as_fn_error $? "ls -t appears to fail. Make sure there is not a broken +alias in your environment" "$LINENO" 5 + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + as_fn_error $? "newly created file is older than distributed files! +Check your system clock" "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +if test x"${MISSING+set}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; + *) + MISSING="\${SHELL} $am_aux_dir/missing" ;; + esac +fi +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if test x"${install_sh}" != xset; then + case $am_aux_dir in + *\ * | *\ *) + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; + *) + install_sh="\${SHELL} $am_aux_dir/install-sh" + esac +fi + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if ${ac_cv_path_mkdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done + done +IFS=$as_save_IFS + +fi + + test -d ./--version && rmdir ./--version + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE=CRF++ + VERSION=0.55 + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + + + + + +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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_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 <stdio.h> +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 <stdarg.h> +#include <stdio.h> +#include <sys/types.h> +#include <sys/stat.h> +/* 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 +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo this is the am__doit target +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# Ignore all kinds of additional output from `make'. +case `$am_make -s -f confmf 2> /dev/null` in #( +*the\ am__doit\ target*) + am__include=include + am__quote= + _am_result=GNU + ;; +esac +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + case `$am_make -s -f confmf 2> /dev/null` in #( + *the\ am__doit\ target*) + am__include=.include + am__quote="\"" + _am_result=BSD + ;; + esac +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then : + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CC_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if ${ac_cv_cxx_compiler_gnu+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_compiler_gnu=yes +else + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if ${ac_cv_prog_cxx_g+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +else + CXXFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + +else + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + ac_cv_prog_cxx_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if ${am_cv_CXX_dependencies_compiler_type+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac + + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. Also, some Intel + # versions had trouble with output in subdirs + am__obj=sub/conftest.${OBJEXT-o} + am__minus_obj="-o $am__obj" + case $depmode in + gcc) + # This depmode causes a compiler race in universal mode. + test "$am__universal" = false || continue + ;; + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + msvisualcpp | msvcmsys) + # This compiler won't grok `-c -o', but also, the minuso test has + # not run yet. These depmodes are late enough in the game, and + # so weak that their functioning should not be impacted. + am__obj=conftest.${OBJEXT-o} + am__minus_obj= + ;; + none) break ;; + esac + if depmode=$depmode \ + source=sub/conftest.c object=$am__obj \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep $am__obj sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if ${ac_cv_prog_CPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + # <limits.h> 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 <limits.h> +#else +# include <assert.h> +#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 <ac_nonexistent.h> +_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 <limits.h> to <assert.h> if __STDC__ is defined, since + # <limits.h> 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 <limits.h> +#else +# include <assert.h> +#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 <ac_nonexistent.h> +_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" + { test -f "$ac_path_GREP" && $as_test_x "$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" + { test -f "$ac_path_EGREP" && $as_test_x "$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" + + +if test $ac_cv_c_compiler_gnu = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 +$as_echo_n "checking whether $CC needs -traditional... " >&6; } +if ${ac_cv_prog_gcc_traditional+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_pattern="Autoconf.*'x'" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <sgtty.h> +Autoconf TIOCGETP +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "$ac_pattern" >/dev/null 2>&1; then : + ac_cv_prog_gcc_traditional=yes +else + ac_cv_prog_gcc_traditional=no +fi +rm -f conftest* + + + if test $ac_cv_prog_gcc_traditional = no; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <termio.h> +Autoconf TCGETA +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "$ac_pattern" >/dev/null 2>&1; then : + ac_cv_prog_gcc_traditional=yes +fi +rm -f conftest* + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 +$as_echo "$ac_cv_prog_gcc_traditional" >&6; } + if test $ac_cv_prog_gcc_traditional = yes; then + CC="$CC -traditional" + fi +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 +$as_echo_n "checking for library containing strerror... " >&6; } +if ${ac_cv_search_strerror+:} 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 strerror (); +int +main () +{ +return strerror (); + ; + return 0; +} +_ACEOF +for ac_lib in '' cposix; 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_strerror=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_strerror+:} false; then : + break +fi +done +if ${ac_cv_search_strerror+:} false; then : + +else + ac_cv_search_strerror=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 +$as_echo "$ac_cv_search_strerror" >&6; } +ac_res=$ac_cv_search_strerror +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + +# 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 + + + +case $host_os in + *cygwin* ) CYGWIN=yes;; + * ) CYGWIN=no;; +esac + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.4' +macro_revision='1.3293' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' +else + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' +fi + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} + +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break + ;; + *) + test "$with_gnu_ld" != yes && break + ;; + esac + fi + done + IFS="$lt_save_ifs" +else + lt_cv_path_LD="$LD" # Let the user override the test with a path. +fi +fi + +LD="$lt_cv_path_LD" +if test -n "$LD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 </dev/null` in +*GNU* | *'with BFD'*) + lt_cv_prog_gnu_ld=yes + ;; +*) + lt_cv_prog_gnu_ld=no + ;; +esac +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if ${lt_cv_deplibs_check_method+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL + fi +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" + ;; +esac + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } + +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if ${lt_cv_sys_global_symbol_pipe+:} false; then : + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +LT_DLSYM_CONST struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +# Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +{ $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 <stdlib.h> +#include <stdarg.h> +#include <string.h> +#include <float.h> + +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 <string.h> + +_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 <stdlib.h> + +_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 <ctype.h> +#include <stdlib.h> +#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 dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf + + + + + +# Set options + + + + enable_dlopen=no + + + enable_win32_dll=no + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; pic_mode="$withval" +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if ${lt_cv_path_MAGIC_CMD+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + lt_prog_compiler_pic='-Xcompiler -fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ F* | *Sun*Fortran*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if ${lt_cv_prog_compiler_pic_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs=no + ;; + esac + + ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no + if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.19, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld='-rpath $libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + link_all_deplibs=no + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + freebsd1*) + ld_shlibs=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld='+b $libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib<name>.so + # instead of lib<name>.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" +if test "x$ac_cv_func_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if ${ac_cv_lib_dld_shl_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_shl_load=yes +else + ac_cv_lib_dld_shl_load=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" +if test "x$ac_cv_func_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if ${ac_cv_lib_dl_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dl_dlopen=yes +else + ac_cv_lib_dl_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if ${ac_cv_lib_svld_dlopen+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_svld_dlopen=yes +else + ac_cv_lib_svld_dlopen=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if ${ac_cv_lib_dld_dld_link+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_dld_dld_link=yes +else + ac_cv_lib_dld_dld_link=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include <dlfcn.h> +#endif + +#include <stdio.h> + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if ${lt_cv_dlopen_self_static+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include <dlfcn.h> +#endif + +#include <stdio.h> + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif + +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +CC="$lt_save_CC" + + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + # <limits.h> 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 <limits.h> +#else +# include <assert.h> +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <ac_nonexistent.h> +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since + # <limits.h> 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 <limits.h> +#else +# include <assert.h> +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <ac_nonexistent.h> +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +else + _lt_caught_CXX_error=yes +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_flag_spec_ld_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +reload_flag_CXX=$reload_flag +reload_cmds_CXX=$reload_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` + + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if ${lt_cv_path_LD+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break + ;; + *) + test "$with_gnu_ld" != yes && break + ;; + esac + fi + done + IFS="$lt_save_ifs" +else + lt_cv_path_LD="$LD" # Let the user override the test with a path. +fi +fi + +LD="$lt_cv_path_LD" +if test -n "$LD"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if ${lt_cv_prog_gnu_ld+:} false; then : + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 </dev/null` in +*GNU* | *'with BFD'*) + lt_cv_prog_gnu_ld=yes + ;; +*) + lt_cv_prog_gnu_ld=no + ;; +esac +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath__CXX +fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + fi + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_CXX=' ' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=yes + file_list_spec_CXX='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' + enable_shared_with_static_runtimes_CXX=yes + # Don't use ranlib + old_postinstall_cmds_CXX='chmod 644 $oldlib' + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + esac + ;; + darwin* | rhapsody*) + + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + else + whole_archive_flag_spec_CXX='' + fi + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + + else + ld_shlibs_CXX=no + fi + + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + freebsd[12]*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + gnu*) + ;; + + haiku*) + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs_CXX=yes + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5].* | *pgcpp\ [1-5].*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ + '"$old_archive_cmds_CXX" + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ + '"$reload_cmds_CXX" + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF + + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +esac + +if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + fi + + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac + if test "$pre_test_object_deps_done" = no; then + case ${prev} in + -L | -R) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + prev= + ;; + + *.lto.$objext) ;; # Ignore GCC LTO objects + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC* | sunCC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu | kopensolaris*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) + # IBM XL 8.0, 9.0 on PPC and BlueGene + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd* | netbsdelf*-gnu) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } +lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + # Also, AIX nm treats weak defined symbols like other global defined + # symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + case $cc_basename in + cl*) ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' + ;; + esac + ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs_CXX=no + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } +if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + then + lt_cv_archive_cmds_need_lc_CXX=no + else + lt_cv_archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } + archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib<name>.so + # instead of lib<name>.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$cc_basename in + yes,*) + # gcc + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' + ;; + + *) + # Assume MSVC wrapper + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' + ;; + esac + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +haiku*) + version_type=linux + need_lib_prefix=no + need_version=no + dynamic_linker="$host_os runtime_loader" + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... + postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + + fi # test -n "$compiler" + + CC=$lt_save_CC + CFLAGS=$lt_save_CFLAGS + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + + + +{ $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 <stdlib.h> +#include <stdarg.h> +#include <string.h> +#include <float.h> + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_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 <string.h> + +_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 <stdlib.h> + +_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 <ctype.h> +#include <stdlib.h> +#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_cxx_try_run "$LINENO"; then : + +else + ac_cv_header_stdc=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +$as_echo "#define STDC_HEADERS 1" >>confdefs.h + +fi + +for ac_header in string.h stdlib.h unistd.h fcntl.h \ + sys/stat.h sys/mman.h sys/times.h \ + ctype.h sys/types.h math.h pthread.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + +ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" +if test "x$ac_cv_type_size_t" = xyes; then : + +else + +cat >>confdefs.h <<_ACEOF +#define size_t unsigned int +_ACEOF + +fi + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 +$as_echo_n "checking for pow in -lm... " >&6; } +if ${ac_cv_lib_m_pow+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $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 pow (); +int +main () +{ +return pow (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_m_pow=yes +else + ac_cv_lib_m_pow=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 +$as_echo "$ac_cv_lib_m_pow" >&6; } +if test "x$ac_cv_lib_m_pow" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5 +$as_echo_n "checking for exp in -lm... " >&6; } +if ${ac_cv_lib_m_exp+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $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 exp (); +int +main () +{ +return exp (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_m_exp=yes +else + ac_cv_lib_m_exp=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5 +$as_echo "$ac_cv_lib_m_exp" >&6; } +if test "x$ac_cv_lib_m_exp" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5 +$as_echo_n "checking for log in -lm... " >&6; } +if ${ac_cv_lib_m_log+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lm $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 log (); +int +main () +{ +return log (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_m_log=yes +else + ac_cv_lib_m_log=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5 +$as_echo "$ac_cv_lib_m_log" >&6; } +if test "x$ac_cv_lib_m_log" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBM 1 +_ACEOF + + LIBS="-lm $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 +$as_echo_n "checking for pthread_create in -lpthread... " >&6; } +if ${ac_cv_lib_pthread_pthread_create+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread $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 pthread_create (); +int +main () +{ +return pthread_create (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_pthread_pthread_create=yes +else + ac_cv_lib_pthread_pthread_create=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } +if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPTHREAD 1 +_ACEOF + + LIBS="-lpthread $LIBS" + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5 +$as_echo_n "checking for pthread_join in -lpthread... " >&6; } +if ${ac_cv_lib_pthread_pthread_join+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread $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 pthread_join (); +int +main () +{ +return pthread_join (); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_lib_pthread_pthread_join=yes +else + ac_cv_lib_pthread_pthread_join=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5 +$as_echo "$ac_cv_lib_pthread_pthread_join" >&6; } +if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPTHREAD 1 +_ACEOF + + LIBS="-lpthread $LIBS" + +fi + + + + + for ac_header in $ac_header_list +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_cxx_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_func in getpagesize +do : + ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" +if test "x$ac_cv_func_getpagesize" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_GETPAGESIZE 1 +_ACEOF + +fi +done + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 +$as_echo_n "checking for working mmap... " >&6; } +if ${ac_cv_func_mmap_fixed_mapped+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + ac_cv_func_mmap_fixed_mapped=no +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default +/* malloc might have been renamed as rpl_malloc. */ +#undef malloc + +/* Thanks to Mike Haertel and Jim Avera for this test. + Here is a matrix of mmap possibilities: + mmap private not fixed + mmap private fixed at somewhere currently unmapped + mmap private fixed at somewhere already mapped + mmap shared not fixed + mmap shared fixed at somewhere currently unmapped + mmap shared fixed at somewhere already mapped + For private mappings, we should verify that changes cannot be read() + back from the file, nor mmap's back from the file at a different + address. (There have been systems where private was not correctly + implemented like the infamous i386 svr4.0, and systems where the + VM page cache was not coherent with the file system buffer cache + like early versions of FreeBSD and possibly contemporary NetBSD.) + For shared mappings, we should conversely verify that changes get + propagated back to all the places they're supposed to be. + + Grep wants private fixed already mapped. + The main things grep needs to know about mmap are: + * does it exist and is it safe to write into the mmap'd area + * how to use it (BSD variants) */ + +#include <fcntl.h> +#include <sys/mman.h> + +#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H +char *malloc (); +#endif + +/* This mess was copied from the GNU getpagesize.h. */ +#ifndef HAVE_GETPAGESIZE +# ifdef _SC_PAGESIZE +# define getpagesize() sysconf(_SC_PAGESIZE) +# else /* no _SC_PAGESIZE */ +# ifdef HAVE_SYS_PARAM_H +# include <sys/param.h> +# ifdef EXEC_PAGESIZE +# define getpagesize() EXEC_PAGESIZE +# else /* no EXEC_PAGESIZE */ +# ifdef NBPG +# define getpagesize() NBPG * CLSIZE +# ifndef CLSIZE +# define CLSIZE 1 +# endif /* no CLSIZE */ +# else /* no NBPG */ +# ifdef NBPC +# define getpagesize() NBPC +# else /* no NBPC */ +# ifdef PAGESIZE +# define getpagesize() PAGESIZE +# endif /* PAGESIZE */ +# endif /* no NBPC */ +# endif /* no NBPG */ +# endif /* no EXEC_PAGESIZE */ +# else /* no HAVE_SYS_PARAM_H */ +# define getpagesize() 8192 /* punt totally */ +# endif /* no HAVE_SYS_PARAM_H */ +# endif /* no _SC_PAGESIZE */ + +#endif /* no HAVE_GETPAGESIZE */ + +int +main () +{ + char *data, *data2, *data3; + const char *cdata2; + int i, pagesize; + int fd, fd2; + + pagesize = getpagesize (); + + /* First, make a file with some known garbage in it. */ + data = (char *) malloc (pagesize); + if (!data) + return 1; + for (i = 0; i < pagesize; ++i) + *(data + i) = rand (); + umask (0); + fd = creat ("conftest.mmap", 0600); + if (fd < 0) + return 2; + if (write (fd, data, pagesize) != pagesize) + return 3; + close (fd); + + /* Next, check that the tail of a page is zero-filled. File must have + non-zero length, otherwise we risk SIGBUS for entire page. */ + fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); + if (fd2 < 0) + return 4; + cdata2 = ""; + if (write (fd2, cdata2, 1) != 1) + return 5; + data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); + if (data2 == MAP_FAILED) + return 6; + for (i = 0; i < pagesize; ++i) + if (*(data2 + i)) + return 7; + close (fd2); + if (munmap (data2, pagesize)) + return 8; + + /* Next, try to mmap the file at a fixed address which already has + something else allocated at it. If we can, also make sure that + we see the same garbage. */ + fd = open ("conftest.mmap", O_RDWR); + if (fd < 0) + return 9; + if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, + MAP_PRIVATE | MAP_FIXED, fd, 0L)) + return 10; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data2 + i)) + return 11; + + /* Finally, make sure that changes to the mapped area do not + percolate back to the file as seen by read(). (This is a bug on + some variants of i386 svr4.0.) */ + for (i = 0; i < pagesize; ++i) + *(data2 + i) = *(data2 + i) + 1; + data3 = (char *) malloc (pagesize); + if (!data3) + return 12; + if (read (fd, data3, pagesize) != pagesize) + return 13; + for (i = 0; i < pagesize; ++i) + if (*(data + i) != *(data3 + i)) + return 14; + close (fd); + return 0; +} +_ACEOF +if ac_fn_cxx_try_run "$LINENO"; then : + ac_cv_func_mmap_fixed_mapped=yes +else + ac_cv_func_mmap_fixed_mapped=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 +$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } +if test $ac_cv_func_mmap_fixed_mapped = yes; then + +$as_echo "#define HAVE_MMAP 1" >>confdefs.h + +fi +rm -f conftest.mmap conftest.txt + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make is GNU Make" >&5 +$as_echo_n "checking whether make is GNU Make... " >&6; } +if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + if test "$host_vendor" = "sun" ; then + as_fn_error $? "\"SUN make does not work for building maxent. Please install GNU make\"" "$LINENO" 5 + fi +fi + +if test -n "$GCC"; then + CFLAGS="-O3 -Wall"; + CXXFLAGS="-O3 -Wall"; +fi + + + + + +# On Intel systems with gcc, we may need to compile with -mieee-fp to +# get full support for IEEE floating point. +# +# On Alpha/OSF systems, we need -mieee. +# +# On AIX systems, we need to limit the amount of stuff that goes in +# the TOC. +case "$host" in + i[3456789]86-*-*) + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -mieee-fp" >&5 +$as_echo_n "checking whether ${CC-cc} accepts -mieee-fp... " >&6; } + + 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 + + XCFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -mieee-fp" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, adding -mieee-fp to CFLAGS" >&5 +$as_echo " ok, adding -mieee-fp to CFLAGS" >&6; } +else + CFLAGS="$XCFLAGS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-c++} accepts -mieee-fp" >&5 +$as_echo_n "checking whether ${CXX-c++} accepts -mieee-fp... " >&6; } + + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + XCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -mieee-fp" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, adding -mieee-fp to CXXFLAGS" >&5 +$as_echo " ok, adding -mieee-fp to CXXFLAGS" >&6; } +else + CXXFLAGS="$XCXXFLAGS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + ;; + alpha*-*-*) + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -mieee" >&5 +$as_echo_n "checking whether ${CC-cc} accepts -mieee... " >&6; } + + 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 + + XCFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -mieee" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, adding -mieee to CFLAGS" >&5 +$as_echo " ok, adding -mieee to CFLAGS" >&6; } +else + CFLAGS="$XCFLAGS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-c++} accepts -mieee" >&5 +$as_echo_n "checking whether ${CXX-c++} accepts -mieee... " >&6; } + + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + XCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -mieee" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, adding -mieee to CXXFLAGS" >&5 +$as_echo " ok, adding -mieee to CXXFLAGS" >&6; } +else + CXXFLAGS="$XCXXFLAGS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + ;; + *ibm-aix4*) + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -mminimal-toc" >&5 +$as_echo_n "checking whether ${CC-cc} accepts -mminimal-toc... " >&6; } + + 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 + + XCFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -mminimal-toc" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, adding -mminimal-toc to CFLAGS" >&5 +$as_echo " ok, adding -mminimal-toc to CFLAGS" >&6; } +else + CFLAGS="$XCFLAGS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX-c++} accepts -mminimal-toc" >&5 +$as_echo_n "checking whether ${CXX-c++} accepts -mminimal-toc... " >&6; } + + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + XCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -mminimal-toc" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok, adding -mminimal-toc to CXXFLAGS" >&5 +$as_echo " ok, adding -mminimal-toc to CXXFLAGS" >&6; } +else + CXXFLAGS="$XCXXFLAGS" +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + ;; +esac + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <string> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports stl <string> (required)... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include <string> + +int +main () +{ + + ; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_stl_string=yes + +else + + config_error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <string> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} stl <string> does not work" >&2;} + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_string" >&5 +$as_echo "$ac_stl_string" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <vector> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports stl <vector> (required)... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include <vector> + +int +main () +{ + + ; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_stl_vector=yes + +else + + config_error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <vector> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} stl <vector> does not work" >&2;} + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_vector" >&5 +$as_echo "$ac_stl_vector" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <map> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports stl <map> (required)... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include <map> + +int +main () +{ + + ; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_stl_map=yes + +else + + config_error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <map> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} stl <map> does not work" >&2;} + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_map" >&5 +$as_echo "$ac_stl_map" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <set> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports stl <set> (required)... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include <set> + +int +main () +{ + + ; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_stl_set=yes + +else + + config_error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <set> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} stl <set> does not work" >&2;} + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_set" >&5 +$as_echo "$ac_stl_set" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <iostream> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports stl <iostream> (required)... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include <iostream> + +int +main () +{ + + ; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_stl_iostream=yes + +else + + config_error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <iostream> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} stl <iostream> does not work" >&2;} + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_iostream" >&5 +$as_echo "$ac_stl_iostream" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <fstream> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports stl <fstream> (required)... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include <fstream> + +int +main () +{ + + ; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_stl_fstream=yes + +else + + config_error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <fstream> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} stl <fstream> does not work" >&2;} + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_fstream" >&5 +$as_echo "$ac_stl_fstream" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <sstream> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports stl <sstream> (required)... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include <sstream> + +int +main () +{ + + ; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_stl_sstream=yes + +else + + config_error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <sstream> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} stl <sstream> does not work" >&2;} + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_sstream" >&5 +$as_echo "$ac_stl_sstream" >&6; } + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports stl <stdexcept> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports stl <stdexcept> (required)... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include <stdexcept> + +int +main () +{ + + ; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_stl_stdexcept=yes + +else + + config_error=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} stl <stdexcept> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} stl <stdexcept> does not work" >&2;} + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_stl_stdexcept" >&5 +$as_echo "$ac_stl_stdexcept" >&6; } + + +# check for const_cast +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports template <class T> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports template <class T> (required)... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + template <class T> T foo (T &i) { return i++; }; + +int +main () +{ + + int i = 0; + double d = 0.0; + foo(i); foo(d); + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_template=yes + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} template <class T> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} template <class T> does not work" >&2;} + config_error=yes + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_template" >&5 +$as_echo "$ac_template" >&6; } + +# check for const_cast +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports const_cast<> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports const_cast<> (required)... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + class foo; + +int +main () +{ + + const foo *c=0; + foo *c1=const_cast<foo*>(c); + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_const_cast=yes + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} const_cast<> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} const_cast<> does not work" >&2;} + config_error=yes + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_const_cast" >&5 +$as_echo "$ac_const_cast" >&6; } + +# check for static_cast<> +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports static_cast<> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports static_cast<> (required)... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + class foo; + +int +main () +{ + + foo *c = 0; + void *c1 = static_cast<void *>(c); + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_static_cast=yes + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} static_cast<> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} static_cast<> does not work" >&2;} + config_error=yes + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_static_cast" >&5 +$as_echo "$ac_static_cast" >&6; } + +# check for dynamic_cast<> +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports dynamic_cast<> (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports dynamic_cast<> (required)... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + class foo {}; + class bar: public foo {}; + +int +main () +{ + + bar *c = 0; + foo *c1 = dynamic_cast<foo *>(c); + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_dynamic_cast=yes + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} dynamic_cast<> does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} dynamic_cast<> does not work" >&2;} + config_error=yes + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_dynamic_cast" >&5 +$as_echo "$ac_dynamic_cast" >&6; } + +# check for try +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports exception handler (required)" >&5 +$as_echo_n "checking if ${CXX-c++} supports exception handler (required)... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + ; + +int +main () +{ + + try { + int i = 0; + } + catch (char *e) { + } + catch (...) { + } + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_exception=yes + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${CXX-c++} exception does not work" >&5 +$as_echo "$as_me: WARNING: ${CXX-c++} exception does not work" >&2;} + config_error=yes + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception" >&5 +$as_echo "$ac_exception" >&6; } + +# check for namespaces +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports namespaces (required) " >&5 +$as_echo_n "checking if ${CXX-c++} supports namespaces (required) ... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +namespace Foo { struct A {}; } +using namespace Foo; + +int +main () +{ + +A a; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + ac_namespaces=yes + +else + + config_error=yes + ac_namespaces=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_namespaces" >&5 +$as_echo "$ac_namespaces" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports __thread (optional)" >&5 +$as_echo_n "checking if ${CXX-c++} supports __thread (optional)... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +__thread int a = 0; + +int +main () +{ + + a = 10; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + enable_tls=yes + +else + + enable_tls=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tls" >&5 +$as_echo "$enable_tls" >&6; } + +if test "$enable_tls" = "no"; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: __thread keyword is not supported on this environment. \ +Error handling of MeCab, e.g., MeCab::getLastError(), is not thread safe." >&5 +$as_echo "$as_me: WARNING: __thread keyword is not supported on this environment. \ +Error handling of MeCab, e.g., MeCab::getLastError(), is not thread safe." >&2;} +else +$as_echo "#define HAVE_TLS_KEYWORD 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} supports _SC_NPROCESSORS_CONF (optional)" >&5 +$as_echo_n "checking if ${CXX-c++} supports _SC_NPROCESSORS_CONF (optional)... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include <unistd.h> + long n = sysconf(_SC_NPROCESSORS_CONF); + +int +main () +{ + + n = 10; + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO"; then : + + enable_sysconf_sc_nprocessors_conf=yes + +else + + enable_sysconf_sc_nprocessors_conf=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sysconf_sc_nprocessors_conf" >&5 +$as_echo "$enable_sysconf_sc_nprocessors_conf" >&6; } + +if test "$enable_sysconf_sc_nprocessors_conf" = "no"; then +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: _SC_NPROCESSORS_CONF on this environment." >&5 +$as_echo "$as_me: WARNING: _SC_NPROCESSORS_CONF on this environment." >&2;} +else +$as_echo "#define HAVE_SYS_CONF_SC_NPROCESSORS_CONF 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CXX-c++} environment provides all required features" >&5 +$as_echo_n "checking if ${CXX-c++} environment provides all required features... " >&6; } +if test "x$config_error" = xyes ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + as_fn_error $? "Your compiler is not powerful enough to compile CRF++. \ + If it should be, see config.log for more information of why it failed." "$LINENO" 5 +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + +ac_config_headers="$ac_config_headers config.h" + +ac_config_files="$ac_config_files Makefile Makefile.msvc swig/version.h" + +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 + + + if test -n "$EXEEXT"; then + am__EXEEXT_TRUE= + am__EXEEXT_FALSE='#' +else + am__EXEEXT_TRUE='#' + am__EXEEXT_FALSE= +fi + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + as_fn_error $? "conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +# Prefer a ksh shell builtin over an external printf program on Solaris, +# but without wasting forks for bash or zsh. +if test -z "$BASH_VERSION$ZSH_VERSION" \ + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='print -r --' + as_echo_n='print -rn --' +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in #( + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + +# Unset variables that we do not need and which cause bugs (e.g. in +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" +# suppresses any "Segmentation fault" message there. '((' could +# trigger a bug in pdksh 5.2.14. +for as_var in BASH_ENV ENV MAIL MAILPATH +do eval test x\${$as_var+set} = xset \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# CDPATH. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + $as_echo "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in #( + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by $as_me, which was +generated by GNU Autoconf 2.68. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to 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.68, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2010 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + $as_echo "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' +macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' +enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' +enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' +pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' +SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' +ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' +host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' +host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' +host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' +build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' +build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' +build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' +SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' +Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' +GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' +EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' +FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' +LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' +NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' +LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' +ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' +exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' +lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' +lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' +lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' +reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' +file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' +want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' +DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' +sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' +AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' +archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' +STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' +RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' +lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' +CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' +compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' +GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' +nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' +lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' +objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' +need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' +MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' +LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' +OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' +libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' +module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' +postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' +need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' +version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' +runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' +libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' +soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' +install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' +finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' +old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' +striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' +predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' +predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' +postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' +reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' +reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + +# Quote evaled strings. +for var in SHELL \ +ECHO \ +SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +OBJDUMP \ +deplibs_check_method \ +file_magic_cmd \ +file_magic_glob \ +want_nocaseglob \ +DLLTOOL \ +sharedlib_from_linklib_cmd \ +AR \ +AR_FLAGS \ +archiver_list_spec \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +nm_file_list_spec \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_pic \ +lt_prog_compiler_wl \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +MANIFEST_TOOL \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_flag_spec_ld \ +hardcode_libdir_separator \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +install_override_mode \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +reload_flag_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_flag_spec_ld_CXX \ +hardcode_libdir_separator_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postlink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +reload_cmds_CXX \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX \ +postlink_cmds_CXX; do + case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "Makefile.msvc") CONFIG_FILES="$CONFIG_FILES Makefile.msvc" ;; + "swig/version.h") CONFIG_FILES="$CONFIG_FILES swig/version.h" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' <conf$$subs.awk | sed ' +/^[^""]/{ + N + s/\n// +} +' >>$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# 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 +' <confdefs.h | sed ' +s/'"$ac_delim"'/"\\\ +"/g' >>$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || { + # Autoconf 2.62 quotes --file arguments for eval, but not when files + # are listed without --file. Let's play safe and only enable the eval + # if we detect the quoting. + case $CONFIG_FILES in + *\'*) eval set x "$CONFIG_FILES" ;; + *) set x $CONFIG_FILES ;; + esac + shift + for mf + do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir=$dirpart/$fdir; as_fn_mkdir_p + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done + done +} + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, +# Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that protects backslashes. +ECHO=$lt_ECHO + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# convert \$build file names to \$host format. +to_host_file_cmd=$lt_cv_to_host_file_cmd + +# convert \$build files to toolchain format. +to_tool_file_cmd=$lt_cv_to_tool_file_cmd + +# An object symbol dumper. +OBJDUMP=$lt_OBJDUMP + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob=$lt_file_magic_glob + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob=$lt_want_nocaseglob + +# DLL creation program. +DLLTOOL=$lt_DLLTOOL + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd + +# The archiver. +AR=$lt_AR + +# Flags to create an archive. +AR_FLAGS=$lt_AR_FLAGS + +# How to feed a file listing to the archiver. +archiver_list_spec=$lt_archiver_list_spec + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=$lock_old_archive_extraction + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# Specify filename containing input files for \$NM. +nm_file_list_spec=$lt_nm_file_list_spec + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot=$lt_sysroot + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Manifest tool. +MANIFEST_TOOL=$lt_MANIFEST_TOOL + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Permission mode override for installation of shared libraries. +install_override_mode=$lt_install_override_mode + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + if test x"$xsi_shell" = xyes; then + sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ +func_dirname ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_basename ()$/,/^} # func_basename /c\ +func_basename ()\ +{\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ +func_dirname_and_basename ()\ +{\ +\ case ${1} in\ +\ */*) func_dirname_result="${1%/*}${2}" ;;\ +\ * ) func_dirname_result="${3}" ;;\ +\ esac\ +\ func_basename_result="${1##*/}"\ +} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ +func_stripname ()\ +{\ +\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ +\ # positional parameters, so assign one to ordinary parameter first.\ +\ func_stripname_result=${3}\ +\ func_stripname_result=${func_stripname_result#"${1}"}\ +\ func_stripname_result=${func_stripname_result%"${2}"}\ +} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ +func_split_long_opt ()\ +{\ +\ func_split_long_opt_name=${1%%=*}\ +\ func_split_long_opt_arg=${1#*=}\ +} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ +func_split_short_opt ()\ +{\ +\ func_split_short_opt_arg=${1#??}\ +\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ +} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ +func_lo2o ()\ +{\ +\ case ${1} in\ +\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ +\ *) func_lo2o_result=${1} ;;\ +\ esac\ +} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_xform ()$/,/^} # func_xform /c\ +func_xform ()\ +{\ + func_xform_result=${1%.*}.lo\ +} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_arith ()$/,/^} # func_arith /c\ +func_arith ()\ +{\ + func_arith_result=$(( $* ))\ +} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_len ()$/,/^} # func_len /c\ +func_len ()\ +{\ + func_len_result=${#1}\ +} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + +fi + +if test x"$lt_shell_append" = xyes; then + sed -e '/^func_append ()$/,/^} # func_append /c\ +func_append ()\ +{\ + eval "${1}+=\\${2}"\ +} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ +func_append_quoted ()\ +{\ +\ func_quote_for_eval "${2}"\ +\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ +} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") +test 0 -eq $? || _lt_function_replace_fail=: + + + # Save a `func_append' function call where possible by direct use of '+=' + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +else + # Save a `func_append' function call even when '+=' is not available + sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ + && mv -f "$cfgfile.tmp" "$cfgfile" \ + || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") + test 0 -eq $? || _lt_function_replace_fail=: +fi + +if test x"$_lt_function_replace_fail" = x":"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 +$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} +fi + + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# How to create reloadable object files. +reload_flag=$lt_reload_flag_CXX +reload_cmds=$lt_reload_cmds_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Commands necessary for finishing linking programs. +postlink_cmds=$lt_postlink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..c954ff2 --- /dev/null +++ b/configure.in @@ -0,0 +1,289 @@ +dnl Process this file with autoconf to produce a configure script. +AC_INIT(crf_learn.cpp) +AH_TEMPLATE([HAVE_TLS_KEYWORD], []) +AH_TEMPLATE([HAVE_SYS_CONF_SC_NPROCESSORS_CONF], []) +AM_INIT_AUTOMAKE(CRF++, 0.55) + +dnl Checks for programs. +AC_PROG_CC +AC_PROG_CXX +AC_PROG_GCC_TRADITIONAL +AC_PROG_MAKE_SET +AC_ISC_POSIX +AC_CYGWIN +AC_LANG_CPLUSPLUS +AC_PROG_LIBTOOL + +dnl Checks for libraries. + +dnl Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS(string.h stdlib.h unistd.h fcntl.h \ + sys/stat.h sys/mman.h sys/times.h \ + ctype.h sys/types.h math.h pthread.h) + +AC_TYPE_SIZE_T + +dnl Checks for libraries. +AC_CHECK_LIB(m,pow) +AC_CHECK_LIB(m,exp) +AC_CHECK_LIB(m,log) +AC_CHECK_LIB(pthread,pthread_create) +AC_CHECK_LIB(pthread,pthread_join) +AC_FUNC_MMAP + +dnl +dnl Check for GNU make +dnl +AC_MSG_CHECKING(whether make is GNU Make) +if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) + if test "$host_vendor" = "sun" ; then + AC_MSG_ERROR("SUN make does not work for building maxent. Please install GNU make") + fi +fi + +dnl +dnl check gcc +dnl +if test -n "$GCC"; then + CFLAGS="-O3 -Wall"; + CXXFLAGS="-O3 -Wall"; +fi + +AC_DEFUN(ADD_CC_FLAG, [ + AC_MSG_CHECKING(whether ${CC-cc} accepts $1) + AC_LANG_SAVE + AC_LANG_C + XCFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $1" + AC_TRY_LINK([], [], + [AC_MSG_RESULT([ ok, adding $1 to CFLAGS])], + [CFLAGS="$XCFLAGS"]) + AC_LANG_RESTORE +]) + +AC_DEFUN(ADD_CXX_FLAG, [ + AC_MSG_CHECKING(whether ${CXX-c++} accepts $1) + AC_LANG_SAVE + AC_LANG_CPLUSPLUS + XCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS $1" + AC_TRY_LINK([], [], + [AC_MSG_RESULT([ ok, adding $1 to CXXFLAGS])], + [CXXFLAGS="$XCXXFLAGS"]) + AC_LANG_RESTORE +]) + +# On Intel systems with gcc, we may need to compile with -mieee-fp to +# get full support for IEEE floating point. +# +# On Alpha/OSF systems, we need -mieee. +# +# On AIX systems, we need to limit the amount of stuff that goes in +# the TOC. +case "$host" in +changequote(,)dnl + i[3456789]86-*-*) +changequote([,])dnl + ADD_CC_FLAG(-mieee-fp) + ADD_CXX_FLAG(-mieee-fp) + ;; + alpha*-*-*) + ADD_CC_FLAG(-mieee) + ADD_CXX_FLAG(-mieee) + ;; + *ibm-aix4*) + ADD_CC_FLAG(-mminimal-toc) + ADD_CXX_FLAG(-mminimal-toc) + ;; +esac + +dnl +dnl check C++ features +dnl +AC_DEFUN(CHECK_CXX_STL, [ + AC_MSG_CHECKING(if ${CXX-c++} supports stl <$1> (required)) + AC_TRY_COMPILE( + [ + #include <$1> + ], [ + ; + ], [ + ac_stl_$1=yes + ], [ + config_error=yes + AC_WARN(${CXX-c++} stl <$1> does not work) + ]) + AC_MSG_RESULT([$ac_stl_$1]) +]) + +CHECK_CXX_STL(string) +CHECK_CXX_STL(vector) +CHECK_CXX_STL(map) +CHECK_CXX_STL(set) +CHECK_CXX_STL(iostream) +CHECK_CXX_STL(fstream) +CHECK_CXX_STL(sstream) +CHECK_CXX_STL(stdexcept) + +# check for const_cast +AC_MSG_CHECKING([if ${CXX-c++} supports template <class T> (required)]) +AC_TRY_COMPILE( +[ + template <class T> T foo (T &i) { return i++; }; +],[ + int i = 0; + double d = 0.0; + foo(i); foo(d); +],[ + ac_template=yes +],[ + AC_WARN(${CXX-c++} template <class T> does not work) + config_error=yes +]) +AC_MSG_RESULT([$ac_template]) + +# check for const_cast +AC_MSG_CHECKING([if ${CXX-c++} supports const_cast<> (required)]) +AC_TRY_COMPILE( +[ + class foo; +],[ + const foo *c=0; + foo *c1=const_cast<foo*>(c); +],[ + ac_const_cast=yes +],[ + AC_WARN(${CXX-c++} const_cast<> does not work) + config_error=yes +]) +AC_MSG_RESULT([$ac_const_cast]) + +# check for static_cast<> +AC_MSG_CHECKING(if ${CXX-c++} supports static_cast<> (required)) +AC_TRY_COMPILE( +[ + class foo; +],[ + foo *c = 0; + void *c1 = static_cast<void *>(c); +],[ + ac_static_cast=yes +],[ + AC_WARN(${CXX-c++} static_cast<> does not work) + config_error=yes +]) +AC_MSG_RESULT([$ac_static_cast]) + +# check for dynamic_cast<> +AC_MSG_CHECKING(if ${CXX-c++} supports dynamic_cast<> (required)) +AC_TRY_COMPILE( +[ + class foo {}; + class bar: public foo {}; +],[ + bar *c = 0; + foo *c1 = dynamic_cast<foo *>(c); +],[ + ac_dynamic_cast=yes +],[ + AC_WARN(${CXX-c++} dynamic_cast<> does not work) + config_error=yes +]) +AC_MSG_RESULT([$ac_dynamic_cast]) + +# check for try +AC_MSG_CHECKING(if ${CXX-c++} supports exception handler (required)) +AC_TRY_COMPILE( +[ + ; +],[ + try { + int i = 0; + } + catch (char *e) { + } + catch (...) { + } +],[ + ac_exception=yes +],[ + AC_WARN(${CXX-c++} exception does not work) + config_error=yes +]) +AC_MSG_RESULT([$ac_exception]) + +# check for namespaces +AC_MSG_CHECKING(if ${CXX-c++} supports namespaces (required) ) +AC_TRY_COMPILE( +[ +namespace Foo { struct A {}; } +using namespace Foo; +],[ +A a; +],[ + ac_namespaces=yes +dnl AC_DEFINE(HAVE_CXX_NAMESPACE) +],[ + config_error=yes + ac_namespaces=no +]) +AC_MSG_RESULT([$ac_namespaces]) + + +dnl __thread keyword +AC_MSG_CHECKING([if ${CXX-c++} supports __thread (optional)]) +AC_TRY_COMPILE( +[ +__thread int a = 0; +],[ + a = 10; +],[ + enable_tls=yes +],[ + enable_tls=no +]) +AC_MSG_RESULT([$enable_tls]) + +if test "$enable_tls" = "no"; then +AC_MSG_WARN([__thread keyword is not supported on this environment. \ +Error handling of MeCab, e.g., MeCab::getLastError(), is not thread safe.]) +else +AC_DEFINE([HAVE_TLS_KEYWORD]) +fi + +AC_MSG_CHECKING([if ${CXX-c++} supports _SC_NPROCESSORS_CONF (optional)]) +AC_TRY_COMPILE( +[ + #include <unistd.h> + long n = sysconf(_SC_NPROCESSORS_CONF); +],[ + n = 10; +],[ + enable_sysconf_sc_nprocessors_conf=yes +],[ + enable_sysconf_sc_nprocessors_conf=no +]) +AC_MSG_RESULT([$enable_sysconf_sc_nprocessors_conf]) + +if test "$enable_sysconf_sc_nprocessors_conf" = "no"; then +AC_MSG_WARN([_SC_NPROCESSORS_CONF on this environment.]) +else +AC_DEFINE([HAVE_SYS_CONF_SC_NPROCESSORS_CONF]) +fi + +AC_MSG_CHECKING(if ${CXX-c++} environment provides all required features) +if test "x$config_error" = xyes ; then + AC_MSG_RESULT([no]) + AC_MSG_ERROR([Your compiler is not powerful enough to compile CRF++. \ + If it should be, see config.log for more information of why it failed.]) +fi +AC_MSG_RESULT([yes]) + +AC_SUBST(datarootdir) +AM_CONFIG_HEADER(config.h) +AC_OUTPUT([Makefile Makefile.msvc swig/version.h]) + diff --git a/crf_learn.cpp b/crf_learn.cpp new file mode 100644 index 0000000..8965ce6 --- /dev/null +++ b/crf_learn.cpp @@ -0,0 +1,13 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: crf_learn.cpp 1587 2007-02-12 09:00:36Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#include "crfpp.h" +#include "winmain.h" + +int main(int argc, char **argv) { + return crfpp_learn(argc, argv); +} diff --git a/crf_test.cpp b/crf_test.cpp new file mode 100644 index 0000000..1d0ba26 --- /dev/null +++ b/crf_test.cpp @@ -0,0 +1,13 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: crf_test.cpp 1587 2007-02-12 09:00:36Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#include "crfpp.h" +#include "winmain.h" + +int main(int argc, char **argv) { + return crfpp_test(argc, argv); +} diff --git a/crfpp.h b/crfpp.h new file mode 100644 index 0000000..b7f74bd --- /dev/null +++ b/crfpp.h @@ -0,0 +1,346 @@ +/* + CRF++ -- Yet Another CRF toolkit + + $Id: crfpp.h 1592 2007-02-12 09:40:53Z taku $; + + Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +*/ +#ifndef CRFPP_CRFPP_H_ +#define CRFPP_CRFPP_H_ + +/* C interface */ +#ifdef __cplusplus +#include <cstdio> +#else +#include <stdio.h> +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef _WIN32 +#include <windows.h> +# ifdef DLL_EXPORT +# define CRFPP_DLL_EXTERN __declspec(dllexport) +# define CRFPP_DLL_CLASS_EXTERN __declspec(dllexport) +# else +# define CRFPP_DLL_EXTERN __declspec(dllimport) +# endif +#endif + +#ifndef CRFPP_DLL_EXTERN +# define CRFPP_DLL_EXTERN extern +#endif + +#ifndef CRFPP_DLL_CLASS_EXTERN +# define CRFPP_DLL_CLASS_EXTERN +#endif + +#ifndef SWIG + typedef struct crfpp_t crfpp_t; + typedef struct crfpp_model_t crfpp_model_t; + + /* C interface */ + CRFPP_DLL_EXTERN crfpp_model_t* crfpp_model_new(int, char**); + CRFPP_DLL_EXTERN crfpp_model_t* crfpp_model_new2(const char*); + CRFPP_DLL_EXTERN const char * crfpp_model_strerror(crfpp_model_t *); + CRFPP_DLL_EXTERN crfpp_t* crfpp_model_new_tagger(crfpp_model_t *); + + CRFPP_DLL_EXTERN crfpp_t* crfpp_new(int, char**); + CRFPP_DLL_EXTERN crfpp_t* crfpp_new2(const char*); + CRFPP_DLL_EXTERN void crfpp_destroy(crfpp_t*); + CRFPP_DLL_EXTERN bool crfpp_add2(crfpp_t*, size_t, const char **); + CRFPP_DLL_EXTERN bool crfpp_add(crfpp_t*, const char*); + CRFPP_DLL_EXTERN size_t crfpp_size(crfpp_t*); + CRFPP_DLL_EXTERN size_t crfpp_xsize(crfpp_t*); + CRFPP_DLL_EXTERN size_t crfpp_dsize(crfpp_t*); + CRFPP_DLL_EXTERN const float* crfpp_weight_vector(crfpp_t*); + CRFPP_DLL_EXTERN size_t crfpp_result(crfpp_t*, size_t); + CRFPP_DLL_EXTERN size_t crfpp_answer(crfpp_t*, size_t); + CRFPP_DLL_EXTERN size_t crfpp_y(crfpp_t*, size_t); + CRFPP_DLL_EXTERN size_t crfpp_ysize(crfpp_t*); + CRFPP_DLL_EXTERN double crfpp_prob(crfpp_t*, size_t, size_t); + CRFPP_DLL_EXTERN double crfpp_prob2(crfpp_t*, size_t); + CRFPP_DLL_EXTERN double crfpp_prob3(crfpp_t*); + CRFPP_DLL_EXTERN void crfpp_set_penalty(crfpp_t *, size_t i, size_t j, double penalty); + CRFPP_DLL_EXTERN double crfpp_penalty(crfpp_t *, size_t i, size_t j); + CRFPP_DLL_EXTERN double crfpp_alpha(crfpp_t*, size_t, size_t); + CRFPP_DLL_EXTERN double crfpp_beta(crfpp_t*, size_t, size_t); + CRFPP_DLL_EXTERN double crfpp_emisstion_cost(crfpp_t*, size_t, size_t); + CRFPP_DLL_EXTERN double crfpp_next_transition_cost(crfpp_t*, size_t, + size_t, size_t); + CRFPP_DLL_EXTERN double crfpp_prev_transition_cost(crfpp_t*, size_t, + size_t, size_t); + CRFPP_DLL_EXTERN double crfpp_best_cost(crfpp_t*, size_t, size_t); + CRFPP_DLL_EXTERN const int* crfpp_emittion_vector(crfpp_t*, size_t, size_t); + CRFPP_DLL_EXTERN const int* crfpp_next_transition_vector(crfpp_t*, size_t, + size_t, size_t); + CRFPP_DLL_EXTERN const int* crfpp_prev_transition_vector(crfpp_t*, size_t, + size_t, size_t); + CRFPP_DLL_EXTERN double crfpp_Z(crfpp_t*); + CRFPP_DLL_EXTERN bool crfpp_parse(crfpp_t*); + CRFPP_DLL_EXTERN bool crfpp_empty(crfpp_t*); + CRFPP_DLL_EXTERN bool crfpp_clear(crfpp_t*); + CRFPP_DLL_EXTERN bool crfpp_next(crfpp_t*); + CRFPP_DLL_EXTERN int crfpp_test(int, char **); + CRFPP_DLL_EXTERN int crfpp_learn(int, char **); + CRFPP_DLL_EXTERN const char* crfpp_strerror(crfpp_t*); + CRFPP_DLL_EXTERN const char* crfpp_yname(crfpp_t*, size_t); + CRFPP_DLL_EXTERN const char* crfpp_y2(crfpp_t*, size_t); + CRFPP_DLL_EXTERN const char* crfpp_x(crfpp_t*, size_t, size_t); + CRFPP_DLL_EXTERN const char** crfpp_x2(crfpp_t*, size_t); + CRFPP_DLL_EXTERN const char* crfpp_parse_tostr(crfpp_t*, const char*); + CRFPP_DLL_EXTERN const char* crfpp_parse_tostr2(crfpp_t*, + const char*, size_t); + CRFPP_DLL_EXTERN const char* crfpp_parse_tostr3(crfpp_t*, const char*, + size_t, char *, size_t); + CRFPP_DLL_EXTERN const char* crfpp_tostr(crfpp_t*); + CRFPP_DLL_EXTERN const char* crfpp_tostr2(crfpp_t*, char *, size_t); + + CRFPP_DLL_EXTERN void crfpp_set_vlevel(crfpp_t *, unsigned int); + CRFPP_DLL_EXTERN unsigned int crfpp_vlevel(crfpp_t *); + CRFPP_DLL_EXTERN void crfpp_set_cost_factor(crfpp_t *, float); + CRFPP_DLL_EXTERN float crfpp_cost_factor(crfpp_t *); + CRFPP_DLL_EXTERN void crfpp_set_nbest(crfpp_t *, size_t); +#endif + +#ifdef __cplusplus +} +#endif + +/* C++ interface */ +#ifdef __cplusplus + +namespace CRFPP { + +class Tagger; + +class CRFPP_DLL_CLASS_EXTERN Model { + public: +#ifndef SWIG + // open model with parameters in argv[] + // e.g, argv[] = {"CRF++", "-m", "model", "-v3"}; + virtual bool open(int argc, char** argv) = 0; + + // open model with parameter arg, e.g. arg = "-m model -v3"; + virtual bool open(const char* arg) = 0; +#endif + + // create Tagger object. Returned object shared the same + // model object + virtual Tagger *createTagger() const = 0; + + virtual const char* what() = 0; + + virtual ~Model() {} +}; + +class CRFPP_DLL_CLASS_EXTERN Tagger { + public: +#ifndef SWIG + // open model with parameters in argv[] + // e.g, argv[] = {"CRF++", "-m", "model", "-v3"}; + virtual bool open(int argc, char** argv) = 0; + + // open model with parameter arg, e.g. arg = "-m model -v3"; + virtual bool open(const char* arg) = 0; + + // add str[] as tokens to the current context + virtual bool add(size_t size, const char **str) = 0; + + // close the current model + virtual void close() = 0; + + // return parameter vector. the size should be dsize(); + virtual const float *weight_vector() const = 0; +#endif + + // set vlevel + virtual void set_vlevel(unsigned int vlevel) = 0; + + // get vlevel + virtual unsigned int vlevel() const = 0; + + // set cost factor + virtual void set_cost_factor(float cost_factor) = 0; + + // get cost factor + virtual float cost_factor() const = 0; + + // set nbest + virtual void set_nbest(size_t nbest) = 0; + + // get nbest + virtual size_t nbest() const = 0; + + // add one line to the current context + virtual bool add(const char* str) = 0; + + // return size of tokens(lines) + virtual size_t size() const = 0; + + // return size of column + virtual size_t xsize() const = 0; + + // return size of features + virtual size_t dsize() const = 0; + + // return output tag-id of i-th token + virtual size_t result(size_t i) const = 0; + + // return answer tag-id of i-th token if it is available + virtual size_t answer(size_t i) const = 0; + + // alias of result(i) + virtual size_t y(size_t i) const = 0; + + // return output tag of i-th token as string + virtual const char* y2(size_t i) const = 0; + + // return i-th tag-id as string + virtual const char* yname(size_t i) const = 0; + + // return token at [i,j] as string(i:token j:column) + virtual const char* x(size_t i, size_t j) const = 0; + +#ifndef SWIG + // return an array of strings at i-th tokens + virtual const char** x(size_t) const = 0; +#endif + + // return size of output tags + virtual size_t ysize() const = 0; + + // return marginal probability of j-th tag id at i-th token + virtual double prob(size_t i, size_t j) const = 0; + + // return marginal probability of output tag at i-th token + // same as prob(i, tagger->y(i)); + virtual double prob(size_t i) const = 0; + + // return conditional probability of enter output + virtual double prob() const = 0; + + // set token-level penalty. It would be useful for implementing + // Dual decompositon decoding. + // e.g. + // "Dual Decomposition for Parsing with Non-Projective Head Automata" + // Terry Koo Alexander M. Rush Michael Collins Tommi Jaakkola David Sontag + virtual void set_penalty(size_t i, size_t j, double penalty) = 0; + virtual double penalty(size_t i, size_t j) const = 0; + + // return forward log-prob of the j-th tag at i-th token + virtual double alpha(size_t i, size_t j) const = 0; + + // return backward log-prob of the j-th tag at i-th token + virtual double beta(size_t i, size_t j) const = 0; + + // return emission cost of the j-th tag at i-th token + virtual double emission_cost(size_t i, size_t j) const = 0; + + // return transition cost of [j-th tag at i-th token] to + // [k-th tag at(i+1)-th token] + virtual double next_transition_cost(size_t i, + size_t j, size_t k) const = 0; + + // return transition cost of [j-th tag at i-th token] to + // [k-th tag at(i-1)-th token] + virtual double prev_transition_cost(size_t i, + size_t j, size_t k) const = 0; + + // return the best accumulative cost to the j-th tag at i-th token + // used in viterbi search + virtual double best_cost(size_t i, size_t j) const = 0; + +#ifndef SWIG + // return emission feature vector of the j-th tag at i-th token + virtual const int* emission_vector(size_t i, size_t j) const = 0; + + // return transition feature vector of [j-th tag at i-th token] to + // [k-th tag at(i+1)-th token] + virtual const int* next_transition_vector(size_t i, + size_t j, size_t k) const = 0; + + // return transition feature vector of [j-th tag at i-th token] to + // [k-th tag at(i-1)-th token] + virtual const int* prev_transition_vector(size_t i, + size_t j, size_t k) const = 0; +#endif + + // normalizing factor(log-prob) + virtual double Z() const = 0; + + // do parse and change the internal status, if failed, returns false + virtual bool parse() = 0; + + // return true if the context is empty + virtual bool empty() const = 0; + + // clear all context + virtual bool clear() = 0; + + // change the internal state to output next-optimal output. + // calling it n-th times, can get n-best results, + // Neeed to specify -nN option to use this function, where + // N>=2 + virtual bool next() = 0; + + // parse 'str' and return result as string + // 'str' must be written in CRF++'s input format + virtual const char* parse(const char* str) = 0; + +#ifndef SWIG + // return parsed result as string + virtual const char* toString() = 0; + + // return parsed result as string. + // Result is saved in the buffer 'result', 'size' is the + // size of the buffer. if failed, return NULL + virtual const char* toString(char* result , size_t size) = 0; + + // parse 'str' and return parsed result. + // You don't need to delete return value, but the buffer + // is rewritten whenever you call parse method. + // if failed, return NULL + virtual const char* parse(const char *str, size_t size) = 0; + + // parse 'str' and return parsed result. + // The result is stored in the buffer 'result'. + // 'size2' is the size of the buffer. if failed, return NULL + virtual const char* parse(const char *str, size_t size1, + char *result, size_t size2) = 0; +#endif + // return internal error code as string + virtual const char* what() = 0; + + virtual ~Tagger() {} +}; + +/* factory method */ + +// create CRFPP::Tagger instance with parameters in argv[] +// e.g, argv[] = {"CRF++", "-m", "model", "-v3"}; +CRFPP_DLL_EXTERN Tagger *createTagger(int argc, char **argv); + +// create CRFPP::Tagger instance with parameter in arg +// e.g. arg = "-m model -v3"; +CRFPP_DLL_EXTERN Tagger *createTagger(const char *arg); + +// create CRFPP::Model instance with parameters in argv[] +// e.g, argv[] = {"CRF++", "-m", "model", "-v3"}; +CRFPP_DLL_EXTERN Model *createModel(int argc, char **argv); + +// create CRFPP::Model instance with parameter in arg +// e.g. arg = "-m model -v3"; +CRFPP_DLL_EXTERN Model *createModel(const char *arg); + +// return error code of createTagger(); +CRFPP_DLL_EXTERN const char *getTaggerError(); + +// alias of getTaggerError(); +CRFPP_DLL_EXTERN const char *getLastError(); +} + +#endif +#endif diff --git a/darts.h b/darts.h new file mode 100644 index 0000000..0729124 --- /dev/null +++ b/darts.h @@ -0,0 +1,518 @@ +/* + Darts -- Double-ARray Trie System + + + Copyright(C) 2001-2007 Taku Kudo <taku@chasen.org> +*/ +#ifndef DARTS_H_ +#define DARTS_H_ + +#define DARTS_VERSION "0.31" +#include <vector> +#include <cstring> +#include <cstdio> + +#ifdef HAVE_ZLIB_H +namespace zlib { +#include <zlib.h> +} +#define SH(p)((unsigned short)(unsigned char)((p)[0]) | ((unsigned short)(unsigned char)((p)[1]) << 8)) +#define LG(p)((unsigned long)(SH(p)) |((unsigned long)(SH((p)+2)) << 16)) +#endif + +namespace CRFPP { + +namespace Darts { + +template <class T> inline T _max(T x, T y) { return(x > y) ? x : y; } +template <class T> inline T* _resize(T* ptr, size_t n, size_t l, T v) { + T *tmp = new T[l]; + for (size_t i = 0; i < n; ++i) tmp[i] = ptr[i]; + for (size_t i = n; i < l; ++i) tmp[i] = v; + delete [] ptr; + return tmp; +} + +template <class T> +class Length { + public: size_t operator()(const T *key) const + { size_t i; for (i = 0; key[i] != (T)0; ++i) {} return i; } +}; + +template <> class Length<char> { + public: size_t operator()(const char *key) const + { return std::strlen(key); } +}; + +template <class node_type_, class node_u_type_, + class array_type_, class array_u_type_, + class length_func_ = Length<node_type_> > +class DoubleArrayImpl { + private: + + struct node_t { + array_u_type_ code; + size_t depth; + size_t left; + size_t right; + }; + + struct unit_t { + array_type_ base; + array_u_type_ check; + }; + + unit_t *array_; + unsigned char *used_; + size_t size_; + size_t alloc_size_; + node_type_ **key_; + size_t key_size_; + size_t *length_; + array_type_ *value_; + size_t progress_; + size_t next_check_pos_; + bool no_delete_; + int error_; + int (*progress_func_)(size_t, size_t); + + size_t resize(const size_t new_size) { + unit_t tmp; + tmp.base = 0; + tmp.check = 0; + array_ = _resize(array_, alloc_size_, new_size, tmp); + used_ = _resize(used_, alloc_size_, new_size, + static_cast<unsigned char>(0)); + alloc_size_ = new_size; + return new_size; + } + + size_t fetch(const node_t &parent, std::vector <node_t> &siblings) { + if (error_ < 0) return 0; + + array_u_type_ prev = 0; + + for (size_t i = parent.left; i < parent.right; ++i) { + if ((length_ ? length_[i] : length_func_()(key_[i])) < parent.depth) + continue; + + const node_u_type_ *tmp = reinterpret_cast<node_u_type_ *>(key_[i]); + + array_u_type_ cur = 0; + if ((length_ ? length_[i] : length_func_()(key_[i])) != parent.depth) + cur = (array_u_type_)tmp[parent.depth] + 1; + + if (prev > cur) { + error_ = -3; + return 0; + } + + if (cur != prev || siblings.empty()) { + node_t tmp_node; + tmp_node.depth = parent.depth + 1; + tmp_node.code = cur; + tmp_node.left = i; + if (!siblings.empty()) siblings[siblings.size()-1].right = i; + + siblings.push_back(tmp_node); + } + + prev = cur; + } + + if (!siblings.empty()) + siblings[siblings.size()-1].right = parent.right; + + return siblings.size(); + } + + size_t insert(const std::vector <node_t> &siblings) { + if (error_ < 0) return 0; + + size_t begin = 0; + size_t pos = _max((size_t)siblings[0].code + 1, next_check_pos_) - 1; + size_t nonzero_num = 0; + int first = 0; + + if (alloc_size_ <= pos) resize(pos + 1); + + while (true) { + next: + ++pos; + + if (alloc_size_ <= pos) resize(pos + 1); + + if (array_[pos].check) { + ++nonzero_num; + continue; + } else if (!first) { + next_check_pos_ = pos; + first = 1; + } + + begin = pos - siblings[0].code; + if (alloc_size_ <= (begin + siblings[siblings.size()-1].code)) + resize(static_cast<size_t>(alloc_size_ * + _max(1.05, 1.0 * key_size_ / progress_))); + + if (used_[begin]) continue; + + for (size_t i = 1; i < siblings.size(); ++i) + if (array_[begin + siblings[i].code].check != 0) goto next; + + break; + } + + // -- Simple heuristics -- + // if the percentage of non-empty contents in check between the index + // 'next_check_pos' and 'check' is greater than some constant + // value(e.g. 0.9), + // new 'next_check_pos' index is written by 'check'. + if (1.0 * nonzero_num/(pos - next_check_pos_ + 1) >= 0.95) + next_check_pos_ = pos; + + used_[begin] = 1; + size_ = _max(size_, + begin + + static_cast<size_t>(siblings[siblings.size() - 1].code + 1)); + + for (size_t i = 0; i < siblings.size(); ++i) + array_[begin + siblings[i].code].check = begin; + + for (size_t i = 0; i < siblings.size(); ++i) { + std::vector <node_t> new_siblings; + + if (!fetch(siblings[i], new_siblings)) { + array_[begin + siblings[i].code].base = + value_ ? + static_cast<array_type_>(-value_[siblings[i].left]-1) : + static_cast<array_type_>(-siblings[i].left-1); + + if (value_ && (array_type_)(-value_[siblings[i].left]-1) >= 0) { + error_ = -2; + return 0; + } + + ++progress_; + if (progress_func_)(*progress_func_)(progress_, key_size_); + + } else { + size_t h = insert(new_siblings); + array_[begin + siblings[i].code].base = h; + } + } + + return begin; + } + + public: + + typedef array_type_ value_type; + typedef node_type_ key_type; + typedef array_type_ result_type; // for compatibility + + struct result_pair_type { + value_type value; + size_t length; + }; + + explicit DoubleArrayImpl(): array_(0), used_(0), + size_(0), alloc_size_(0), + no_delete_(0), error_(0) {} + ~DoubleArrayImpl() { clear(); } + + void set_result(value_type& x, value_type r, size_t) const { + x = r; + } + + void set_result(result_pair_type& x, value_type r, size_t l) const { + x.value = r; + x.length = l; + } + + void set_array(void *ptr, size_t size = 0) { + clear(); + array_ = reinterpret_cast<unit_t *>(ptr); + no_delete_ = true; + size_ = size; + } + + const void *array() const { + return const_cast<const void *>(reinterpret_cast<void *>(array_)); + } + + void clear() { + if (!no_delete_) + delete [] array_; + delete [] used_; + array_ = 0; + used_ = 0; + alloc_size_ = 0; + size_ = 0; + no_delete_ = false; + } + + size_t unit_size() const { return sizeof(unit_t); } + size_t size() const { return size_; } + size_t total_size() const { return size_ * sizeof(unit_t); } + + size_t nonzero_size() const { + size_t result = 0; + for (size_t i = 0; i < size_; ++i) + if (array_[i].check) ++result; + return result; + } + + int build(size_t key_size, + key_type **key, + size_t *length = 0, + value_type *value = 0, + int (*progress_func)(size_t, size_t) = 0) { + if (!key_size || !key) return 0; + + progress_func_ = progress_func; + key_ = key; + length_ = length; + key_size_ = key_size; + value_ = value; + progress_ = 0; + + resize(8192); + + array_[0].base = 1; + next_check_pos_ = 0; + + node_t root_node; + root_node.left = 0; + root_node.right = key_size; + root_node.depth = 0; + + std::vector <node_t> siblings; + fetch(root_node, siblings); + insert(siblings); + + size_ += (1 << 8 * sizeof(key_type)) + 1; + if (size_ >= alloc_size_) resize(size_); + + delete [] used_; + used_ = 0; + + return error_; + } + + int open(const char *file, + const char *mode = "rb", + size_t offset = 0, + size_t size = 0) { + std::FILE *fp = std::fopen(file, mode); + if (!fp) return -1; + if (std::fseek(fp, offset, SEEK_SET) != 0) return -1; + + if (!size) { + if (std::fseek(fp, 0L, SEEK_END) != 0) return -1; + size = std::ftell(fp); + if (std::fseek(fp, offset, SEEK_SET) != 0) return -1; + } + + clear(); + + size_ = size; + size_ /= sizeof(unit_t); + array_ = new unit_t[size_]; + if (size_ != std::fread(reinterpret_cast<unit_t *>(array_), + sizeof(unit_t), size_, fp)) return -1; + std::fclose(fp); + + return 0; + } + + int save(const char *file, + const char *mode = "wb", + size_t offset = 0) { + if (!size_) return -1; + std::FILE *fp = std::fopen(file, mode); + if (!fp) return -1; + if (size_ != std::fwrite(reinterpret_cast<unit_t *>(array_), + sizeof(unit_t), size_, fp)) + return -1; + std::fclose(fp); + return 0; + } + +#ifdef HAVE_ZLIB_H + int gzopen(const char *file, + const char *mode = "rb", + size_t offset = 0, + size_t size = 0) { + std::FILE *fp = std::fopen(file, mode); + if (!fp) return -1; + clear(); + + size_ = size; + if (!size_) { + if (-1L != static_cast<long>(std::fseek(fp, -8, SEEK_END))) { + char buf[8]; + if (std::fread(static_cast<char*>(buf), + 1, 8, fp) != sizeof(buf)) { + std::fclose(fp); + return -1; + } + size_ = LG(buf+4); + size_ /= sizeof(unit_t); + } + } + std::fclose(fp); + + if (!size_) return -1; + + zlib::gzFile gzfp = zlib::gzopen(file, mode); + if (!gzfp) return -1; + array_ = new unit_t[size_]; + if (zlib::gzseek(gzfp, offset, SEEK_SET) != 0) return -1; + zlib::gzread(gzfp, reinterpret_cast<unit_t *>(array_), + sizeof(unit_t) * size_); + zlib::gzclose(gzfp); + return 0; + } + + int gzsave(const char *file, const char *mode = "wb", + size_t offset = 0) { + zlib::gzFile gzfp = zlib::gzopen(file, mode); + if (!gzfp) return -1; + zlib::gzwrite(gzfp, reinterpret_cast<unit_t *>(array_), + sizeof(unit_t) * size_); + zlib::gzclose(gzfp); + return 0; + } +#endif + + template <class T> + inline void exactMatchSearch(const key_type *key, + T & result, + size_t len = 0, + size_t node_pos = 0) const { + result = exactMatchSearch<T>(key, len, node_pos); + return; + } + + template <class T> + inline T exactMatchSearch(const key_type *key, + size_t len = 0, + size_t node_pos = 0) const { + if (!len) len = length_func_()(key); + + T result; + set_result(result, -1, 0); + + register array_type_ b = array_[node_pos].base; + register array_u_type_ p; + + for (register size_t i = 0; i < len; ++i) { + p = b +(node_u_type_)(key[i]) + 1; + if (static_cast<array_u_type_>(b) == array_[p].check) + b = array_[p].base; + else + return result; + } + + p = b; + array_type_ n = array_[p].base; + if (static_cast<array_u_type_>(b) == array_[p].check && n < 0) + set_result(result, -n-1, len); + + return result; + } + + template <class T> + size_t commonPrefixSearch(const key_type *key, + T* result, + size_t result_len, + size_t len = 0, + size_t node_pos = 0) const { + if (!len) len = length_func_()(key); + + register array_type_ b = array_[node_pos].base; + register size_t num = 0; + register array_type_ n; + register array_u_type_ p; + + for (register size_t i = 0; i < len; ++i) { + p = b; // + 0; + n = array_[p].base; + if ((array_u_type_) b == array_[p].check && n < 0) { + // result[num] = -n-1; + if (num < result_len) set_result(result[num], -n-1, i); + ++num; + } + + p = b +(node_u_type_)(key[i]) + 1; + if ((array_u_type_) b == array_[p].check) + b = array_[p].base; + else + return num; + } + + p = b; + n = array_[p].base; + + if ((array_u_type_)b == array_[p].check && n < 0) { + if (num < result_len) set_result(result[num], -n-1, len); + ++num; + } + + return num; + } + + value_type traverse(const key_type *key, + size_t &node_pos, + size_t &key_pos, + size_t len = 0) const { + if (!len) len = length_func_()(key); + + register array_type_ b = array_[node_pos].base; + register array_u_type_ p; + + for (; key_pos < len; ++key_pos) { + p = b +(node_u_type_)(key[key_pos]) + 1; + if (static_cast<array_u_type_>(b) == array_[p].check) { + node_pos = p; + b = array_[p].base; + } else { + return -2; // no node + } + } + + p = b; + array_type_ n = array_[p].base; + if (static_cast<array_u_type_>(b) == array_[p].check && n < 0) + return -n-1; + + return -1; // found, but no value + } +}; + +#if 4 == 2 +typedef Darts::DoubleArrayImpl<char, unsigned char, short, + unsigned short> DoubleArray; +#define DARTS_ARRAY_SIZE_IS_DEFINED 1 +#endif + +#if 4 == 4 && !defined(DARTS_ARRAY_SIZE_IS_DEFINED) +typedef Darts::DoubleArrayImpl<char, unsigned char, int, + unsigned int> DoubleArray; +#define DARTS_ARRAY_SIZE_IS_DEFINED 1 +#endif + +#if 4 == 4 && !defined(DARTS_ARRAY_SIZE_IS_DEFINED) +typedef Darts::DoubleArrayImpl<char, unsigned char, long, + unsigned long> DoubleArray; +#define DARTS_ARRAY_SIZE_IS_DEFINED 1 +#endif + +#if 4 == 8 && !defined(DARTS_ARRAY_SIZE_IS_DEFINED) +typedef Darts::DoubleArrayImpl<char, unsigned char, long long, + unsigned long long> DoubleArray; +#endif +} +} +#endif diff --git a/depcomp b/depcomp new file mode 100755 index 0000000..11e2d3b --- /dev/null +++ b/depcomp @@ -0,0 +1,522 @@ +#! /bin/sh +# depcomp - compile a program generating dependencies as side-effects + +scriptversion=2004-05-31.23 + +# Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. + +case $1 in + '') + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: depcomp [--help] [--version] PROGRAM [ARGS] + +Run PROGRAMS ARGS to compile a file, generating dependencies +as side-effects. + +Environment variables: + depmode Dependency tracking mode. + source Source file read by `PROGRAMS ARGS'. + object Object file output by `PROGRAMS ARGS'. + DEPDIR directory where to store dependencies. + depfile Dependency file to output. + tmpdepfile Temporary file to use when outputing dependencies. + libtool Whether libtool is used (yes/no). + +Report bugs to <bug-automake@gnu.org>. +EOF + exit 0 + ;; + -v | --v*) + echo "depcomp $scriptversion" + exit 0 + ;; +esac + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi + +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. +depfile=${depfile-`echo "$object" | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz +## The second -e expression handles DOS-style file names with drive letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the `deleted header file' problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. + tr ' ' ' +' < "$tmpdepfile" | +## Some versions of gcc put a space before the `:'. On the theory +## that the space means something, we add a space to the output as +## well. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like `#:fec' to the end of the + # dependency line. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ + tr ' +' ' ' >> $depfile + echo >> $depfile + + # The second pass generates a dummy entry for each header file. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> $depfile + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. In older versions, this file always lives in the + # current directory. Also, the AIX compiler puts `$object:' at the + # start of each line; $object doesn't have directory information. + # Version 6 uses the directory in both cases. + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` + tmpdepfile="$stripped.u" + if test "$libtool" = yes; then + "$@" -Wc,-M + else + "$@" -M + fi + stat=$? + + if test -f "$tmpdepfile"; then : + else + stripped=`echo "$stripped" | sed 's,^.*/,,'` + tmpdepfile="$stripped.u" + fi + + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + + if test -f "$tmpdepfile"; then + outname="$stripped.o" + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +icc) + # Intel's C compiler understands `-MD -MF file'. However on + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c + # ICC 7.0 will fill foo.d with something like + # foo.o: sub/foo.c + # foo.o: sub/foo.h + # which is wrong. We want: + # sub/foo.o: sub/foo.c + # sub/foo.o: sub/foo.h + # sub/foo.c: + # sub/foo.h: + # ICC 7.1 will output + # foo.o: sub/foo.c sub/foo.h + # and will wrap long lines using \ : + # foo.o: sub/foo.c ... \ + # sub/foo.h ... \ + # ... + + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h', + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | + sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in `foo.d' instead, so we check for that too. + # Subdirectories are respected. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + + if test "$libtool" = yes; then + # Dependencies are output in .lo.d with libtool 1.4. + # With libtool 1.5 they are output both in $dir.libs/$base.o.d + # and in $dir.libs/$base.o.d and $dir$base.o.d. We process the + # latter, because the former will be cleaned when $dir.libs is + # erased. + tmpdepfile1="$dir.libs/$base.lo.d" + tmpdepfile2="$dir$base.o.d" + tmpdepfile3="$dir.libs/$base.d" + "$@" -Wc,-MD + else + tmpdepfile1="$dir$base.o.d" + tmpdepfile2="$dir$base.d" + tmpdepfile3="$dir$base.d" + "$@" -MD + fi + + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + if test -f "$tmpdepfile1"; then + tmpdepfile="$tmpdepfile1" + elif test -f "$tmpdepfile2"; then + tmpdepfile="$tmpdepfile2" + else + tmpdepfile="$tmpdepfile3" + fi + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=-M + # Require at least two characters before searching for `:' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. + "$@" $dashmflag | + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tr ' ' ' +' < "$tmpdepfile" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no + for arg in "$@"; do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source file. + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix="`echo $object | sed 's/^.*\././'`" + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + sed '1,2d' "$tmpdepfile" | tr ' ' ' +' | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E | + sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | + sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o, + # because we must use -o when running libtool. + "$@" || exit $? + IFS=" " + for arg + do + case "$arg" in + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" + echo " " >> "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/doc/crfpp.cfg b/doc/crfpp.cfg new file mode 100644 index 0000000..7449ed9 --- /dev/null +++ b/doc/crfpp.cfg @@ -0,0 +1,1356 @@ +# Doxyfile 1.5.5 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = CRF++ + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Farsi, Finnish, French, German, Greek, +# Hungarian, Italian, Japanese, Japanese-en (Japanese with English messages), +# Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, Polish, +# Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish, +# and Ukrainian. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = YES + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the DETAILS_AT_TOP tag is set to YES then Doxygen +# will output the detailed description near the top, like JavaDoc. +# If set to NO, the detailed description appears after the member +# documentation. + +DETAILS_AT_TOP = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = YES + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command <command> <input-file>, where <command> is the value of +# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = ../ + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = crfpp.h + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command <filter> <input-file>, where <filter> +# is the value of the INPUT_FILTER tag, and <input-file> is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES (the default) +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES (the default) +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. Otherwise they will link to the documentstion. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = NO + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = doxygen + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# If the GENERATE_TREEVIEW tag is set to YES, a side panel will be +# generated containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, +# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are +# probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = YES + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = YES + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. This is useful +# if you want to understand what is going on. On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = __cplusplus CRFPP_DLL_EXTERN="" + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = NO + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The MAX_DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is enabled by default, which results in a transparent +# background. Warning: Depending on the platform used, enabling this option +# may lead to badly anti-aliased labels on the edges of a graph (i.e. they +# become hard to read). + +DOT_TRANSPARENT = YES + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- + +# The SEARCHENGINE tag specifies whether or not a search engine should be +# used. If set to NO the values of all tags below this one will be ignored. + +SEARCHENGINE = NO diff --git a/doc/default.css b/doc/default.css new file mode 100644 index 0000000..6235a52 --- /dev/null +++ b/doc/default.css @@ -0,0 +1,178 @@ +@charset "euc-jp"; + +a:link { + text-decoration: none; + color: #006699; +} +a:visited { + text-decoration: none; + color: #cccccc; +} + +a:active { + text-decoration: none; + color: #ff0; +} + +a:hover, a:focus { + color: #000; + text-decoration: underline; +} + +body { + font-family : 'Lucida Sans Unicode', Verdana, 'ヒラギノ角ゴ Pro W3', 'ヒラギノ角ゴ3', sans-serif; + font-size : 10pt; + line-height : 145%; + background-color : #ffffff; + color : #001100; + border-style: none; + margin: 2em 2em 2em 2em; +} + +p { + padding: 0.2em 0.2em 0.0em 1.2em; +} + +li { + padding: 0.1em 0.2em 0.0em 0em; +} + + +h1 { + font-family : 'ヒラギノ角ゴ Pro W6', 'ヒラギノ角ゴ6', Verdana, sans-serif; + margin: 0.2em 0.2em 0.2em 0.2em; + text-align: left; + font-size: 150%; + color: #000; + font-weight: bold; +} + +h2 { + font-family : 'ヒラギノ角ゴ Pro W6', 'ヒラギノ角ゴ6', Verdana, sans-serif; + margin: 1.0em 0.1em 0.2em 0.4em; + padding: 3px; + font-size: 120%; + border-color: #99cccc; + border-width: 0px 0px 1px 0px; + border-style: solid; +} + +h3 { + font-family : 'ヒラギノ角ゴ Pro W6', 'ヒラギノ角ゴ6', Verdana, sans-serif; + margin: 0.2em 0.1em 0.2em 0.8em; + padding: 3px; + font-size: 110%; + border-style: dotted; + border-color: #99cccc; + border-width: 0px 0px 1px 0px; +} + +pre { + white-space: pre; + margin: 0.1em 0.2em 0.8em 1.3em; + padding: 5px; + line-height : 100%; + border-width: 1px 1px 3px 1px; + border-style: double solid double solid; + border-color: #cccccc; + overflow: auto; + background-color: #fcfcfc; +} + +table { + font-family : 'Lucida Sans Unicode', Verdana, 'ヒラギノ角ゴ Pro W3', 'ヒラギノ角ゴ3', sans-serif; + font-size: 80%; + margin: 0.2em 0.2em 0.2em 2em; + line-height: 120%; + border-width: 0em; + border: 0em; +} + +table tr.odd { + background-color: #e0e0de; + vertical-align: top; + border-spacing: 1em; +} + +table tr.even { + background-color: #efefde; + vertical-align: top; + border-spacing: 1em; +} + +ol, dl { + list-style-position : outside; + margin: 0.2em 0.2em 0.2em 2em; +} + +hr { + color : #003300; + height : 1px; +} + +textarea { + margin-left: 1em; + width: 92%; + border-style: solid solid solid solid; + border-color: #cccccc; + border-width: 1px 1px 1px 1px; +} + +div.section p { + line-height: 1.3em; + margin-left: 10px; +} + +div.section p a, a:visited{ + color: #006699; +} + + +div.body dl { + margin-left: 2em; +} + +div.body dt { + margin-bottom: 0.2em; + font-weight: bold; +} + +div.body dd { + margin-left: 1em; + margin-bottom: 0.5em; +} + +div.body blockquote { + border-width: 3px 0px 1px 0px; + border-style: solid solid solid solid; + border-color: #191970; + background-color: transparent; + color: #191970; + font-style:italic; + padding: 8px; +} + +div.main { + width: 80%; + float: left; +} + +div.sidebar { + float: right; + width: 19%; + border-style: solid; + margin-left: 1% + margin-top: 0.5em; + border-width: 0 0 0 0px; +} + +div.sidebar li { font-size: smaller; list-style-type: disc; margin-left: -0.8em; } + +div.sidebar h2 { font-size: 90%; + border-width: 0px 0px 1px 0px; +} +div.sidebar h3 { font-size: 90%; } + +div.book { margin-top: 1em; margin-bottom: 1em; margin-right: 20%; + margin-left: 20%; width: 60%; height: 60%; float: center; } + diff --git a/doc/doxygen/annotated.html b/doc/doxygen/annotated.html new file mode 100644 index 0000000..eb50f49 --- /dev/null +++ b/doc/doxygen/annotated.html @@ -0,0 +1,33 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: Class List</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li class="current"><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li class="current"><a href="annotated.html"><span>Class List</span></a></li> + <li><a href="functions.html"><span>Class Members</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +<h1>Class List</h1>Here are the classes, structs, unions and interfaces with brief descriptions:<table> + <tr><td class="indexkey"><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td class="indexvalue"></td></tr> +</table> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/classCRFPP_1_1Tagger-members.html b/doc/doxygen/classCRFPP_1_1Tagger-members.html new file mode 100644 index 0000000..d572ac3 --- /dev/null +++ b/doc/doxygen/classCRFPP_1_1Tagger-members.html @@ -0,0 +1,78 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: Member List</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li class="current"><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="annotated.html"><span>Class List</span></a></li> + <li><a href="functions.html"><span>Class Members</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +<h1>CRFPP::Tagger Member List</h1>This is the complete list of members for <a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a>, including all inherited members.<p><table> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#085a5e47c96dfea16ca2fa1b917532f6">add</a>(size_t size, const char **str)=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#a8d6eee0ead9d834f9975243379cadc9">add</a>(const char *str)=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#0fd1381e54737522383e3345d0460946">alpha</a>(size_t i, size_t j) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#cb0a26699ae23f463b5d7a8d844a8941">answer</a>(size_t i) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#39b2762fc466abf4d63c9c7273c92dcc">best_cost</a>(size_t i, size_t j) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#98e054a8f5fb2eeb629fa2d7067aae25">beta</a>(size_t i, size_t j) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#c59a9a7b99503c282cd8dc529c9311f7">clear</a>()=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#17d23a6de9ae9dac536c98cca32a7f01">close</a>()=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#4ac9f6bbfad372e4594960c7c7ce568c">cost_factor</a>() const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#141878c42290862182f5df5023348763">dsize</a>() const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#1a8e45d675a38a7f5c3075c39c2ee2fb">emission_cost</a>(size_t i, size_t j) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#4f5172db2d33c2d16a71989486750299">emission_vector</a>(size_t i, size_t j) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#938183f7d5e5f470efe58bf2aae7dbdd">empty</a>() const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#7b5de55779ac461bea10a250e2c932cc">nbest</a>() const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#137d7523294d05773a5dd26f60dce73c">next</a>()=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#2327ce0f0be365a8e3b2df6bd14d223a">next_transition_cost</a>(size_t i, size_t j, size_t k) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#faba05159548ba5427088dc45f7cfde0">next_transition_vector</a>(size_t i, size_t j, size_t k) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#64a7abe75bc6d41df69ad1862c3d73a0">open</a>(int argc, char **argv)=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#826b233e2bdca03d1ea5d4e596c92536">open</a>(const char *arg)=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#195868fcd1d7e7e9dfc6f802ad32d2e7">parse</a>()=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#421908800a17ffc32428e91af525bc4e">parse</a>(const char *str)=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#8008ea023d49bd3e1a52c1aef266e401">parse</a>(const char *str, size_t size)=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#d977b81a2a0360accc94df289be9bd34">parse</a>(const char *str, size_t size1, char *result, size_t size2)=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#6b68c088ce371e4bcb9973bc09f793d5">prev_transition_cost</a>(size_t i, size_t j, size_t k) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#4188eeb78469823e096986440b8ca87a">prev_transition_vector</a>(size_t i, size_t j, size_t k) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#1116a2d7abe184ce276a1cbd4a52a3f3">prob</a>(size_t i, size_t j) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#ed23adc847399ca5fe6f793cfd24efe7">prob</a>(size_t i) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#4dc84e06429db05a60fa6092ee992728">prob</a>() const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#64474629e38769c9b103b6680a5cebbd">result</a>(size_t i) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#d2d6c8e09a5215de7b428633d7ffa7fa">set_cost_factor</a>(float cost_factor)=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#83b6bda1a107819b560047ba22216d78">set_nbest</a>(size_t nbest)=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#f729184ba777adec3cc48c717739e79a">set_vlevel</a>(unsigned int vlevel)=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#0bb307faa0e68f71ca1bb6a992bc01e4">size</a>() const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#0f00cbcf6b9486e177f3064ef1b5e275">toString</a>()=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#5e23560b275d5f4bd5845d1ac8773dbb">toString</a>(char *result, size_t size)=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#2c7e75615ca8d666da146be1b3570098">vlevel</a>() const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#b87c8c13cb0efcfaa7b6a6d1f1b75f33">weight_vector</a>() const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#a8fdb0f9b6ddeff642e828831ade7aba">what</a>()=0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#f10eeb55a0465e553f99fb83191fd6cc">x</a>(size_t i, size_t j) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#a9432e3e029ed41752d6d99b75364fd4">x</a>(size_t) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#31403e849acb03bc109367f03f052ec3">xsize</a>() const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#89885d85c0914160fb43fa4d80a2f73d">y</a>(size_t i) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#4a08dac43a80be3ba79fd08cf52fa228">y2</a>(size_t i) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#92351d6e270ad6897986e8c9898240b8">yname</a>(size_t i) const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#00d8320a6d642291aa3c2cce5d37ed8a">ysize</a>() const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#70578008d83778a53800227002f0e4e5">Z</a>() const =0</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [pure virtual]</code></td></tr> + <tr class="memlist"><td><a class="el" href="classCRFPP_1_1Tagger.html#952aec420a7e26c35dc94c47132dd955">~Tagger</a>()</td><td><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td><td><code> [inline, virtual]</code></td></tr> +</table></div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/classCRFPP_1_1Tagger.html b/doc/doxygen/classCRFPP_1_1Tagger.html new file mode 100644 index 0000000..71c6f78 --- /dev/null +++ b/doc/doxygen/classCRFPP_1_1Tagger.html @@ -0,0 +1,1240 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: CRFPP::Tagger Class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li class="current"><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="annotated.html"><span>Class List</span></a></li> + <li><a href="functions.html"><span>Class Members</span></a></li> + </ul> + </div> + <div class="navpath"><a class="el" href="namespaceCRFPP.html">CRFPP</a>::<a class="el" href="classCRFPP_1_1Tagger.html">Tagger</a> + </div> +</div> +<div class="contents"> +<h1>CRFPP::Tagger Class Reference</h1><!-- doxytag: class="CRFPP::Tagger" --><code>#include <<a class="el" href="crfpp_8h-source.html">crfpp.h</a>></code> +<p> + +<p> +<a href="classCRFPP_1_1Tagger-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> +<tr><td></td></tr> +<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#64a7abe75bc6d41df69ad1862c3d73a0">open</a> (int argc, char **argv)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#826b233e2bdca03d1ea5d4e596c92536">open</a> (const char *arg)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#085a5e47c96dfea16ca2fa1b917532f6">add</a> (size_t size, const char **str)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#17d23a6de9ae9dac536c98cca32a7f01">close</a> ()=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const float * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#b87c8c13cb0efcfaa7b6a6d1f1b75f33">weight_vector</a> () const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#f729184ba777adec3cc48c717739e79a">set_vlevel</a> (unsigned int vlevel)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#2c7e75615ca8d666da146be1b3570098">vlevel</a> () const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#d2d6c8e09a5215de7b428633d7ffa7fa">set_cost_factor</a> (float cost_factor)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual float </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#4ac9f6bbfad372e4594960c7c7ce568c">cost_factor</a> () const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#83b6bda1a107819b560047ba22216d78">set_nbest</a> (size_t nbest)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#7b5de55779ac461bea10a250e2c932cc">nbest</a> () const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#a8d6eee0ead9d834f9975243379cadc9">add</a> (const char *str)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#0bb307faa0e68f71ca1bb6a992bc01e4">size</a> () const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#31403e849acb03bc109367f03f052ec3">xsize</a> () const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#141878c42290862182f5df5023348763">dsize</a> () const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#64474629e38769c9b103b6680a5cebbd">result</a> (size_t i) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#cb0a26699ae23f463b5d7a8d844a8941">answer</a> (size_t i) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#89885d85c0914160fb43fa4d80a2f73d">y</a> (size_t i) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#4a08dac43a80be3ba79fd08cf52fa228">y2</a> (size_t i) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#92351d6e270ad6897986e8c9898240b8">yname</a> (size_t i) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#f10eeb55a0465e553f99fb83191fd6cc">x</a> (size_t i, size_t j) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char ** </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#a9432e3e029ed41752d6d99b75364fd4">x</a> (size_t) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#00d8320a6d642291aa3c2cce5d37ed8a">ysize</a> () const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#1116a2d7abe184ce276a1cbd4a52a3f3">prob</a> (size_t i, size_t j) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#ed23adc847399ca5fe6f793cfd24efe7">prob</a> (size_t i) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#4dc84e06429db05a60fa6092ee992728">prob</a> () const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#0fd1381e54737522383e3345d0460946">alpha</a> (size_t i, size_t j) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#98e054a8f5fb2eeb629fa2d7067aae25">beta</a> (size_t i, size_t j) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#1a8e45d675a38a7f5c3075c39c2ee2fb">emission_cost</a> (size_t i, size_t j) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#2327ce0f0be365a8e3b2df6bd14d223a">next_transition_cost</a> (size_t i, size_t j, size_t k) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#6b68c088ce371e4bcb9973bc09f793d5">prev_transition_cost</a> (size_t i, size_t j, size_t k) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#39b2762fc466abf4d63c9c7273c92dcc">best_cost</a> (size_t i, size_t j) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const int * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#4f5172db2d33c2d16a71989486750299">emission_vector</a> (size_t i, size_t j) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const int * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#faba05159548ba5427088dc45f7cfde0">next_transition_vector</a> (size_t i, size_t j, size_t k) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const int * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#4188eeb78469823e096986440b8ca87a">prev_transition_vector</a> (size_t i, size_t j, size_t k) const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#70578008d83778a53800227002f0e4e5">Z</a> () const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#195868fcd1d7e7e9dfc6f802ad32d2e7">parse</a> ()=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#938183f7d5e5f470efe58bf2aae7dbdd">empty</a> () const =0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#c59a9a7b99503c282cd8dc529c9311f7">clear</a> ()=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#137d7523294d05773a5dd26f60dce73c">next</a> ()=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#421908800a17ffc32428e91af525bc4e">parse</a> (const char *str)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#0f00cbcf6b9486e177f3064ef1b5e275">toString</a> ()=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#5e23560b275d5f4bd5845d1ac8773dbb">toString</a> (char *result, size_t size)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#8008ea023d49bd3e1a52c1aef266e401">parse</a> (const char *str, size_t size)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#d977b81a2a0360accc94df289be9bd34">parse</a> (const char *str, size_t size1, char *result, size_t size2)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#a8fdb0f9b6ddeff642e828831ade7aba">what</a> ()=0</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html#952aec420a7e26c35dc94c47132dd955">~Tagger</a> ()</td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="952aec420a7e26c35dc94c47132dd955"></a><!-- doxytag: member="CRFPP::Tagger::~Tagger" ref="952aec420a7e26c35dc94c47132dd955" args="()" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual CRFPP::Tagger::~Tagger </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td><code> [inline, virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="64a7abe75bc6d41df69ad1862c3d73a0"></a><!-- doxytag: member="CRFPP::Tagger::open" ref="64a7abe75bc6d41df69ad1862c3d73a0" args="(int argc, char **argv)=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual bool CRFPP::Tagger::open </td> + <td>(</td> + <td class="paramtype">int </td> + <td class="paramname"> <em>argc</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">char ** </td> + <td class="paramname"> <em>argv</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="826b233e2bdca03d1ea5d4e596c92536"></a><!-- doxytag: member="CRFPP::Tagger::open" ref="826b233e2bdca03d1ea5d4e596c92536" args="(const char *arg)=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual bool CRFPP::Tagger::open </td> + <td>(</td> + <td class="paramtype">const char * </td> + <td class="paramname"> <em>arg</em> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="085a5e47c96dfea16ca2fa1b917532f6"></a><!-- doxytag: member="CRFPP::Tagger::add" ref="085a5e47c96dfea16ca2fa1b917532f6" args="(size_t size, const char **str)=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual bool CRFPP::Tagger::add </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>size</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char ** </td> + <td class="paramname"> <em>str</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="17d23a6de9ae9dac536c98cca32a7f01"></a><!-- doxytag: member="CRFPP::Tagger::close" ref="17d23a6de9ae9dac536c98cca32a7f01" args="()=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual void CRFPP::Tagger::close </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="b87c8c13cb0efcfaa7b6a6d1f1b75f33"></a><!-- doxytag: member="CRFPP::Tagger::weight_vector" ref="b87c8c13cb0efcfaa7b6a6d1f1b75f33" args="() const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const float* CRFPP::Tagger::weight_vector </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="f729184ba777adec3cc48c717739e79a"></a><!-- doxytag: member="CRFPP::Tagger::set_vlevel" ref="f729184ba777adec3cc48c717739e79a" args="(unsigned int vlevel)=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual void CRFPP::Tagger::set_vlevel </td> + <td>(</td> + <td class="paramtype">unsigned int </td> + <td class="paramname"> <em>vlevel</em> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="2c7e75615ca8d666da146be1b3570098"></a><!-- doxytag: member="CRFPP::Tagger::vlevel" ref="2c7e75615ca8d666da146be1b3570098" args="() const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual unsigned int CRFPP::Tagger::vlevel </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="d2d6c8e09a5215de7b428633d7ffa7fa"></a><!-- doxytag: member="CRFPP::Tagger::set_cost_factor" ref="d2d6c8e09a5215de7b428633d7ffa7fa" args="(float cost_factor)=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual void CRFPP::Tagger::set_cost_factor </td> + <td>(</td> + <td class="paramtype">float </td> + <td class="paramname"> <em>cost_factor</em> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="4ac9f6bbfad372e4594960c7c7ce568c"></a><!-- doxytag: member="CRFPP::Tagger::cost_factor" ref="4ac9f6bbfad372e4594960c7c7ce568c" args="() const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual float CRFPP::Tagger::cost_factor </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="83b6bda1a107819b560047ba22216d78"></a><!-- doxytag: member="CRFPP::Tagger::set_nbest" ref="83b6bda1a107819b560047ba22216d78" args="(size_t nbest)=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual void CRFPP::Tagger::set_nbest </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>nbest</em> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="7b5de55779ac461bea10a250e2c932cc"></a><!-- doxytag: member="CRFPP::Tagger::nbest" ref="7b5de55779ac461bea10a250e2c932cc" args="() const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual size_t CRFPP::Tagger::nbest </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="a8d6eee0ead9d834f9975243379cadc9"></a><!-- doxytag: member="CRFPP::Tagger::add" ref="a8d6eee0ead9d834f9975243379cadc9" args="(const char *str)=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual bool CRFPP::Tagger::add </td> + <td>(</td> + <td class="paramtype">const char * </td> + <td class="paramname"> <em>str</em> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="0bb307faa0e68f71ca1bb6a992bc01e4"></a><!-- doxytag: member="CRFPP::Tagger::size" ref="0bb307faa0e68f71ca1bb6a992bc01e4" args="() const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual size_t CRFPP::Tagger::size </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="31403e849acb03bc109367f03f052ec3"></a><!-- doxytag: member="CRFPP::Tagger::xsize" ref="31403e849acb03bc109367f03f052ec3" args="() const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual size_t CRFPP::Tagger::xsize </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="141878c42290862182f5df5023348763"></a><!-- doxytag: member="CRFPP::Tagger::dsize" ref="141878c42290862182f5df5023348763" args="() const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual size_t CRFPP::Tagger::dsize </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="64474629e38769c9b103b6680a5cebbd"></a><!-- doxytag: member="CRFPP::Tagger::result" ref="64474629e38769c9b103b6680a5cebbd" args="(size_t i) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual size_t CRFPP::Tagger::result </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="cb0a26699ae23f463b5d7a8d844a8941"></a><!-- doxytag: member="CRFPP::Tagger::answer" ref="cb0a26699ae23f463b5d7a8d844a8941" args="(size_t i) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual size_t CRFPP::Tagger::answer </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="89885d85c0914160fb43fa4d80a2f73d"></a><!-- doxytag: member="CRFPP::Tagger::y" ref="89885d85c0914160fb43fa4d80a2f73d" args="(size_t i) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual size_t CRFPP::Tagger::y </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="4a08dac43a80be3ba79fd08cf52fa228"></a><!-- doxytag: member="CRFPP::Tagger::y2" ref="4a08dac43a80be3ba79fd08cf52fa228" args="(size_t i) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const char* CRFPP::Tagger::y2 </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="92351d6e270ad6897986e8c9898240b8"></a><!-- doxytag: member="CRFPP::Tagger::yname" ref="92351d6e270ad6897986e8c9898240b8" args="(size_t i) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const char* CRFPP::Tagger::yname </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="f10eeb55a0465e553f99fb83191fd6cc"></a><!-- doxytag: member="CRFPP::Tagger::x" ref="f10eeb55a0465e553f99fb83191fd6cc" args="(size_t i, size_t j) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const char* CRFPP::Tagger::x </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>j</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="a9432e3e029ed41752d6d99b75364fd4"></a><!-- doxytag: member="CRFPP::Tagger::x" ref="a9432e3e029ed41752d6d99b75364fd4" args="(size_t) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const char** CRFPP::Tagger::x </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="00d8320a6d642291aa3c2cce5d37ed8a"></a><!-- doxytag: member="CRFPP::Tagger::ysize" ref="00d8320a6d642291aa3c2cce5d37ed8a" args="() const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual size_t CRFPP::Tagger::ysize </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="1116a2d7abe184ce276a1cbd4a52a3f3"></a><!-- doxytag: member="CRFPP::Tagger::prob" ref="1116a2d7abe184ce276a1cbd4a52a3f3" args="(size_t i, size_t j) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual double CRFPP::Tagger::prob </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>j</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="ed23adc847399ca5fe6f793cfd24efe7"></a><!-- doxytag: member="CRFPP::Tagger::prob" ref="ed23adc847399ca5fe6f793cfd24efe7" args="(size_t i) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual double CRFPP::Tagger::prob </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="4dc84e06429db05a60fa6092ee992728"></a><!-- doxytag: member="CRFPP::Tagger::prob" ref="4dc84e06429db05a60fa6092ee992728" args="() const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual double CRFPP::Tagger::prob </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="0fd1381e54737522383e3345d0460946"></a><!-- doxytag: member="CRFPP::Tagger::alpha" ref="0fd1381e54737522383e3345d0460946" args="(size_t i, size_t j) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual double CRFPP::Tagger::alpha </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>j</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="98e054a8f5fb2eeb629fa2d7067aae25"></a><!-- doxytag: member="CRFPP::Tagger::beta" ref="98e054a8f5fb2eeb629fa2d7067aae25" args="(size_t i, size_t j) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual double CRFPP::Tagger::beta </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>j</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="1a8e45d675a38a7f5c3075c39c2ee2fb"></a><!-- doxytag: member="CRFPP::Tagger::emission_cost" ref="1a8e45d675a38a7f5c3075c39c2ee2fb" args="(size_t i, size_t j) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual double CRFPP::Tagger::emission_cost </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>j</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="2327ce0f0be365a8e3b2df6bd14d223a"></a><!-- doxytag: member="CRFPP::Tagger::next_transition_cost" ref="2327ce0f0be365a8e3b2df6bd14d223a" args="(size_t i, size_t j, size_t k) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual double CRFPP::Tagger::next_transition_cost </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>j</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>k</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="6b68c088ce371e4bcb9973bc09f793d5"></a><!-- doxytag: member="CRFPP::Tagger::prev_transition_cost" ref="6b68c088ce371e4bcb9973bc09f793d5" args="(size_t i, size_t j, size_t k) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual double CRFPP::Tagger::prev_transition_cost </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>j</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>k</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="39b2762fc466abf4d63c9c7273c92dcc"></a><!-- doxytag: member="CRFPP::Tagger::best_cost" ref="39b2762fc466abf4d63c9c7273c92dcc" args="(size_t i, size_t j) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual double CRFPP::Tagger::best_cost </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>j</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="4f5172db2d33c2d16a71989486750299"></a><!-- doxytag: member="CRFPP::Tagger::emission_vector" ref="4f5172db2d33c2d16a71989486750299" args="(size_t i, size_t j) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const int* CRFPP::Tagger::emission_vector </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>j</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="faba05159548ba5427088dc45f7cfde0"></a><!-- doxytag: member="CRFPP::Tagger::next_transition_vector" ref="faba05159548ba5427088dc45f7cfde0" args="(size_t i, size_t j, size_t k) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const int* CRFPP::Tagger::next_transition_vector </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>j</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>k</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="4188eeb78469823e096986440b8ca87a"></a><!-- doxytag: member="CRFPP::Tagger::prev_transition_vector" ref="4188eeb78469823e096986440b8ca87a" args="(size_t i, size_t j, size_t k) const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const int* CRFPP::Tagger::prev_transition_vector </td> + <td>(</td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>i</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>j</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>k</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="70578008d83778a53800227002f0e4e5"></a><!-- doxytag: member="CRFPP::Tagger::Z" ref="70578008d83778a53800227002f0e4e5" args="() const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual double CRFPP::Tagger::Z </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="195868fcd1d7e7e9dfc6f802ad32d2e7"></a><!-- doxytag: member="CRFPP::Tagger::parse" ref="195868fcd1d7e7e9dfc6f802ad32d2e7" args="()=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual bool CRFPP::Tagger::parse </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="938183f7d5e5f470efe58bf2aae7dbdd"></a><!-- doxytag: member="CRFPP::Tagger::empty" ref="938183f7d5e5f470efe58bf2aae7dbdd" args="() const =0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual bool CRFPP::Tagger::empty </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td> const<code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="c59a9a7b99503c282cd8dc529c9311f7"></a><!-- doxytag: member="CRFPP::Tagger::clear" ref="c59a9a7b99503c282cd8dc529c9311f7" args="()=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual bool CRFPP::Tagger::clear </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="137d7523294d05773a5dd26f60dce73c"></a><!-- doxytag: member="CRFPP::Tagger::next" ref="137d7523294d05773a5dd26f60dce73c" args="()=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual bool CRFPP::Tagger::next </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="421908800a17ffc32428e91af525bc4e"></a><!-- doxytag: member="CRFPP::Tagger::parse" ref="421908800a17ffc32428e91af525bc4e" args="(const char *str)=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const char* CRFPP::Tagger::parse </td> + <td>(</td> + <td class="paramtype">const char * </td> + <td class="paramname"> <em>str</em> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="0f00cbcf6b9486e177f3064ef1b5e275"></a><!-- doxytag: member="CRFPP::Tagger::toString" ref="0f00cbcf6b9486e177f3064ef1b5e275" args="()=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const char* CRFPP::Tagger::toString </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="5e23560b275d5f4bd5845d1ac8773dbb"></a><!-- doxytag: member="CRFPP::Tagger::toString" ref="5e23560b275d5f4bd5845d1ac8773dbb" args="(char *result, size_t size)=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const char* CRFPP::Tagger::toString </td> + <td>(</td> + <td class="paramtype">char * </td> + <td class="paramname"> <em>result</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>size</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="8008ea023d49bd3e1a52c1aef266e401"></a><!-- doxytag: member="CRFPP::Tagger::parse" ref="8008ea023d49bd3e1a52c1aef266e401" args="(const char *str, size_t size)=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const char* CRFPP::Tagger::parse </td> + <td>(</td> + <td class="paramtype">const char * </td> + <td class="paramname"> <em>str</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>size</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="d977b81a2a0360accc94df289be9bd34"></a><!-- doxytag: member="CRFPP::Tagger::parse" ref="d977b81a2a0360accc94df289be9bd34" args="(const char *str, size_t size1, char *result, size_t size2)=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const char* CRFPP::Tagger::parse </td> + <td>(</td> + <td class="paramtype">const char * </td> + <td class="paramname"> <em>str</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>size1</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">char * </td> + <td class="paramname"> <em>result</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"> <em>size2</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="a8fdb0f9b6ddeff642e828831ade7aba"></a><!-- doxytag: member="CRFPP::Tagger::what" ref="a8fdb0f9b6ddeff642e828831ade7aba" args="()=0" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">virtual const char* CRFPP::Tagger::what </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td><code> [pure virtual]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<hr>The documentation for this class was generated from the following file:<ul> +<li>/home/taku/proj/crfpp/<a class="el" href="crfpp_8h-source.html">crfpp.h</a></ul> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/crfpp_8h-source.html b/doc/doxygen/crfpp_8h-source.html new file mode 100644 index 0000000..6752cc6 --- /dev/null +++ b/doc/doxygen/crfpp_8h-source.html @@ -0,0 +1,315 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: /home/taku/proj/crfpp/crfpp.h Source File</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + </ul> + </div> +<h1>/home/taku/proj/crfpp/crfpp.h</h1><a href="crfpp_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> +<a name="l00002"></a>00002 <span class="comment"> CRF++ -- Yet Another CRF toolkit</span> +<a name="l00003"></a>00003 <span class="comment"></span> +<a name="l00004"></a>00004 <span class="comment"> $Id: crfpp.h 1592 2007-02-12 09:40:53Z taku $;</span> +<a name="l00005"></a>00005 <span class="comment"></span> +<a name="l00006"></a>00006 <span class="comment"> Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org></span> +<a name="l00007"></a>00007 <span class="comment">*/</span> +<a name="l00008"></a>00008 <span class="preprocessor">#ifndef CRFPP_CRFPP_H__</span> +<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define CRFPP_CRFPP_H__</span> +<a name="l00010"></a>00010 <span class="preprocessor"></span> +<a name="l00011"></a>00011 <span class="comment">/* C interface */</span> +<a name="l00012"></a>00012 <span class="preprocessor">#ifdef __cplusplus</span> +<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#include <cstdio></span> +<a name="l00014"></a>00014 <span class="preprocessor">#else</span> +<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#include <stdio.h></span> +<a name="l00016"></a>00016 <span class="preprocessor">#endif</span> +<a name="l00017"></a>00017 <span class="preprocessor"></span> +<a name="l00018"></a>00018 <span class="preprocessor">#ifdef __cplusplus</span> +<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { +<a name="l00020"></a>00020 <span class="preprocessor">#endif</span> +<a name="l00021"></a>00021 <span class="preprocessor"></span> +<a name="l00022"></a>00022 <span class="preprocessor">#ifdef _WIN32</span> +<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#include <windows.h></span> +<a name="l00024"></a>00024 <span class="preprocessor"># ifdef DLL_EXPORT</span> +<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor"># define CRFPP_DLL_EXTERN __declspec(dllexport)</span> +<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor"># else</span> +<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor"># define CRFPP_DLL_EXTERN __declspec(dllimport)</span> +<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor"># endif</span> +<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#endif</span> +<a name="l00030"></a>00030 <span class="preprocessor"></span> +<a name="l00031"></a>00031 <span class="preprocessor">#ifndef CRFPP_DLL_EXTERN</span> +<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor"># define CRFPP_DLL_EXTERN extern</span> +<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#endif</span> +<a name="l00034"></a>00034 <span class="preprocessor"></span> +<a name="l00035"></a>00035 <span class="preprocessor">#ifndef SWIG</span> +<a name="l00036"></a><a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">00036</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> <a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>; +<a name="l00037"></a>00037 +<a name="l00038"></a>00038 <span class="comment">/* C interface */</span> +<a name="l00039"></a>00039 CRFPP_DLL_EXTERN <a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>* <a class="code" href="crfpp_8h.html#47eeae65e19b67575ee7d4337e3cd4cc">crfpp_new</a>(<span class="keywordtype">int</span>, <span class="keywordtype">char</span>**); +<a name="l00040"></a>00040 CRFPP_DLL_EXTERN <a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>* <a class="code" href="crfpp_8h.html#c316670dc1e5b0eb8234897677a106d0">crfpp_new2</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*); +<a name="l00041"></a>00041 CRFPP_DLL_EXTERN <span class="keywordtype">void</span> <a class="code" href="crfpp_8h.html#da0c189dcb1005259b3264fb209c3200">crfpp_destroy</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00042"></a>00042 CRFPP_DLL_EXTERN <span class="keywordtype">bool</span> <a class="code" href="crfpp_8h.html#dd48b76903be573dfa8f75615a1a0ec0">crfpp_add2</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, <span class="keyword">const</span> <span class="keywordtype">char</span> **); +<a name="l00043"></a>00043 CRFPP_DLL_EXTERN <span class="keywordtype">bool</span> <a class="code" href="crfpp_8h.html#c2522fb65d719bd6aa8bc84724b83789">crfpp_add</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keyword">const</span> <span class="keywordtype">char</span>*); +<a name="l00044"></a>00044 CRFPP_DLL_EXTERN <span class="keywordtype">size_t</span> <a class="code" href="crfpp_8h.html#b64059a5606297381c64f34456681bfc">crfpp_size</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00045"></a>00045 CRFPP_DLL_EXTERN <span class="keywordtype">size_t</span> <a class="code" href="crfpp_8h.html#4571ede590c1bbbf63a3bd81dc2e40af">crfpp_xsize</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00046"></a>00046 CRFPP_DLL_EXTERN <span class="keywordtype">size_t</span> <a class="code" href="crfpp_8h.html#cd3974a71151a3f6a0cd4ddc12c5d3ab">crfpp_dsize</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00047"></a>00047 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">float</span>* <a class="code" href="crfpp_8h.html#1150d5c6d46a876a75cee41c85fd58fe">crfpp_weight_vector</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00048"></a>00048 CRFPP_DLL_EXTERN <span class="keywordtype">size_t</span> <a class="code" href="crfpp_8h.html#8a31211011b255a77d5124353df027d7">crfpp_result</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>); +<a name="l00049"></a>00049 CRFPP_DLL_EXTERN <span class="keywordtype">size_t</span> <a class="code" href="crfpp_8h.html#0e4f32071bda760f8dee21fe6896160f">crfpp_answer</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>); +<a name="l00050"></a>00050 CRFPP_DLL_EXTERN <span class="keywordtype">size_t</span> <a class="code" href="crfpp_8h.html#f03bfbc697ebe02a6af33520b4f00bc9">crfpp_y</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>); +<a name="l00051"></a>00051 CRFPP_DLL_EXTERN <span class="keywordtype">size_t</span> <a class="code" href="crfpp_8h.html#9df5c9b61b09173d16382a71b686878c">crfpp_ysize</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00052"></a>00052 CRFPP_DLL_EXTERN <span class="keywordtype">double</span> <a class="code" href="crfpp_8h.html#bae8663e259f6880ff5cc93e9c2793b4">crfpp_prob</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>); +<a name="l00053"></a>00053 CRFPP_DLL_EXTERN <span class="keywordtype">double</span> <a class="code" href="crfpp_8h.html#4171bbea58da7f4dd2736f1146061219">crfpp_prob2</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>); +<a name="l00054"></a>00054 CRFPP_DLL_EXTERN <span class="keywordtype">double</span> <a class="code" href="crfpp_8h.html#ffc7ffda4245d788903df38cb6e936c1">crfpp_prob3</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00055"></a>00055 CRFPP_DLL_EXTERN <span class="keywordtype">double</span> <a class="code" href="crfpp_8h.html#c8341b2ece6eff9d74ccadbfd25d896b">crfpp_alpha</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>); +<a name="l00056"></a>00056 CRFPP_DLL_EXTERN <span class="keywordtype">double</span> <a class="code" href="crfpp_8h.html#299db7d1303ce19c502704fe10d4572a">crfpp_beta</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>); +<a name="l00057"></a>00057 CRFPP_DLL_EXTERN <span class="keywordtype">double</span> <a class="code" href="crfpp_8h.html#56ce83f63d1d793347258a7bef732f24">crfpp_emisstion_cost</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>); +<a name="l00058"></a>00058 CRFPP_DLL_EXTERN <span class="keywordtype">double</span> <a class="code" href="crfpp_8h.html#13f8c29d09051ac3c1655cd07b57f494">crfpp_next_transition_cost</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, +<a name="l00059"></a>00059 <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>); +<a name="l00060"></a>00060 CRFPP_DLL_EXTERN <span class="keywordtype">double</span> <a class="code" href="crfpp_8h.html#997c64c98ca9631394983b023082d1ae">crfpp_prev_transition_cost</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, +<a name="l00061"></a>00061 <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>); +<a name="l00062"></a>00062 CRFPP_DLL_EXTERN <span class="keywordtype">double</span> <a class="code" href="crfpp_8h.html#0ac978c86fedbeec7ddb43a9608f845d">crfpp_best_cost</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>); +<a name="l00063"></a>00063 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">int</span>* <a class="code" href="crfpp_8h.html#bd3ca40910819acba3d8083740b1a850">crfpp_emittion_vector</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>); +<a name="l00064"></a>00064 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">int</span>* <a class="code" href="crfpp_8h.html#19a39a5b6583b3e9269a2c5192818d83">crfpp_next_transition_vector</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, +<a name="l00065"></a>00065 <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>); +<a name="l00066"></a>00066 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">int</span>* <a class="code" href="crfpp_8h.html#dc0fb25629038b6f744e005f9b7d7c04">crfpp_prev_transition_vector</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, +<a name="l00067"></a>00067 <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>); +<a name="l00068"></a>00068 CRFPP_DLL_EXTERN <span class="keywordtype">double</span> <a class="code" href="crfpp_8h.html#298837d730e31a2f67691b9df47cbe7a">crfpp_Z</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00069"></a>00069 CRFPP_DLL_EXTERN <span class="keywordtype">bool</span> <a class="code" href="crfpp_8h.html#ef138756beacc0e7cfd15174adf8501c">crfpp_parse</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00070"></a>00070 CRFPP_DLL_EXTERN <span class="keywordtype">bool</span> <a class="code" href="crfpp_8h.html#85968024efce5f3abd93edeb88b095c1">crfpp_empty</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00071"></a>00071 CRFPP_DLL_EXTERN <span class="keywordtype">bool</span> <a class="code" href="crfpp_8h.html#a1a01c7cf278efbce47ce335a4d41cfb">crfpp_clear</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00072"></a>00072 CRFPP_DLL_EXTERN <span class="keywordtype">bool</span> <a class="code" href="crfpp_8h.html#5385cf04fdf4949d06ba2ead4c431f74">crfpp_next</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00073"></a>00073 CRFPP_DLL_EXTERN <span class="keywordtype">int</span> <a class="code" href="crfpp_8h.html#e344d7e5857c8baed9cd2ca1ff166c8f">crfpp_test</a>(<span class="keywordtype">int</span>, <span class="keywordtype">char</span> **); +<a name="l00074"></a>00074 CRFPP_DLL_EXTERN <span class="keywordtype">int</span> <a class="code" href="crfpp_8h.html#3a6ad1fb5f31d9b483cc02c1e3fde825">crfpp_learn</a>(<span class="keywordtype">int</span>, <span class="keywordtype">char</span> **); +<a name="l00075"></a>00075 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="crfpp_8h.html#b9809a67da577a17281bd0de7d2e0820">crfpp_strerror</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00076"></a>00076 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="crfpp_8h.html#781e91b694aa9d200883b423c65b2547">crfpp_yname</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>); +<a name="l00077"></a>00077 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="crfpp_8h.html#0d4e595c4a711e074f3e202915804eb3">crfpp_y2</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>); +<a name="l00078"></a>00078 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="crfpp_8h.html#abf9208da152d75620153ea34a3f8feb">crfpp_x</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>, <span class="keywordtype">size_t</span>); +<a name="l00079"></a>00079 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span>** <a class="code" href="crfpp_8h.html#6569643c80d2d21967708ea13550669c">crfpp_x2</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">size_t</span>); +<a name="l00080"></a>00080 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="crfpp_8h.html#b5abd8020d58e01473c7cd754eab4406">crfpp_parse_tostr</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keyword">const</span> <span class="keywordtype">char</span>*); +<a name="l00081"></a>00081 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="crfpp_8h.html#9248ed418cc9634d69766b06acf168af">crfpp_parse_tostr2</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, +<a name="l00082"></a>00082 <span class="keyword">const</span> <span class="keywordtype">char</span>*, <span class="keywordtype">size_t</span>); +<a name="l00083"></a>00083 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="crfpp_8h.html#173f9454c961189bdea1da8d37b68103">crfpp_parse_tostr3</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keyword">const</span> <span class="keywordtype">char</span>*, +<a name="l00084"></a>00084 <span class="keywordtype">size_t</span>, <span class="keywordtype">char</span> *, <span class="keywordtype">size_t</span>); +<a name="l00085"></a>00085 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="crfpp_8h.html#ca204ed779752c741b045147be249fdf">crfpp_tostr</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*); +<a name="l00086"></a>00086 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="crfpp_8h.html#6b5ff87ab448e4128aab974f599fc8a8">crfpp_tostr2</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>*, <span class="keywordtype">char</span> *, <span class="keywordtype">size_t</span>); +<a name="l00087"></a>00087 +<a name="l00088"></a>00088 CRFPP_DLL_EXTERN <span class="keywordtype">void</span> <a class="code" href="crfpp_8h.html#e22f8ef16983820243e0e925c715649c">crfpp_set_vlevel</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>); +<a name="l00089"></a>00089 CRFPP_DLL_EXTERN <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="crfpp_8h.html#4120d4de8fdc620ca6472f2aba2f2678">crfpp_vlevel</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *); +<a name="l00090"></a>00090 CRFPP_DLL_EXTERN <span class="keywordtype">void</span> <a class="code" href="crfpp_8h.html#406e63ff6f4b5214a10a714d9afb7376">crfpp_set_cost_factor</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, <span class="keywordtype">float</span>); +<a name="l00091"></a>00091 CRFPP_DLL_EXTERN <span class="keywordtype">float</span> <a class="code" href="crfpp_8h.html#e846df1fd9e207c4fca788c9bc17f1e9">crfpp_cost_factor</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *); +<a name="l00092"></a>00092 CRFPP_DLL_EXTERN <span class="keywordtype">void</span> <a class="code" href="crfpp_8h.html#1122f31df4d3673108e0757353c38c01">crfpp_set_nbest</a>(<a class="code" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, <span class="keywordtype">size_t</span>); +<a name="l00093"></a>00093 <span class="preprocessor">#endif</span> +<a name="l00094"></a>00094 <span class="preprocessor"></span> +<a name="l00095"></a>00095 <span class="preprocessor">#ifdef __cplusplus</span> +<a name="l00096"></a>00096 <span class="preprocessor"></span>} +<a name="l00097"></a>00097 <span class="preprocessor">#endif</span> +<a name="l00098"></a>00098 <span class="preprocessor"></span> +<a name="l00099"></a>00099 <span class="comment">/* C++ interface */</span> +<a name="l00100"></a>00100 <span class="preprocessor">#ifdef __cplusplus</span> +<a name="l00101"></a>00101 <span class="preprocessor"></span> +<a name="l00102"></a><a class="code" href="namespaceCRFPP.html">00102</a> <span class="keyword">namespace </span>CRFPP { +<a name="l00103"></a>00103 +<a name="l00104"></a><a class="code" href="classCRFPP_1_1Tagger.html">00104</a> <span class="keyword">class </span><a class="code" href="classCRFPP_1_1Tagger.html">Tagger</a> { +<a name="l00105"></a>00105 <span class="keyword">public</span>: +<a name="l00106"></a>00106 <span class="preprocessor">#ifndef SWIG</span> +<a name="l00107"></a>00107 <span class="preprocessor"></span> <span class="comment">// open model with parameters in argv[]</span> +<a name="l00108"></a>00108 <span class="comment">// e.g, argv[] = {"CRF++", "-m", "model", "-v3"};</span> +<a name="l00109"></a>00109 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classCRFPP_1_1Tagger.html#64a7abe75bc6d41df69ad1862c3d73a0">open</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span>** argv) = 0; +<a name="l00110"></a>00110 +<a name="l00111"></a>00111 <span class="comment">// open model with parameter arg, e.g. arg = "-m model -v3";</span> +<a name="l00112"></a>00112 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classCRFPP_1_1Tagger.html#64a7abe75bc6d41df69ad1862c3d73a0">open</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* arg) = 0; +<a name="l00113"></a>00113 +<a name="l00114"></a>00114 <span class="comment">// add str[] as tokens to the current context</span> +<a name="l00115"></a>00115 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <span class="keyword">add</span>(<span class="keywordtype">size_t</span> <a class="code" href="classCRFPP_1_1Tagger.html#0bb307faa0e68f71ca1bb6a992bc01e4">size</a>, <span class="keyword">const</span> <span class="keywordtype">char</span> **str) = 0; +<a name="l00116"></a>00116 +<a name="l00117"></a>00117 <span class="comment">// close the current model</span> +<a name="l00118"></a>00118 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCRFPP_1_1Tagger.html#17d23a6de9ae9dac536c98cca32a7f01">close</a>() = 0; +<a name="l00119"></a>00119 +<a name="l00120"></a>00120 <span class="comment">// return parameter vector. the size should be dsize();</span> +<a name="l00121"></a>00121 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">float</span> *<a class="code" href="classCRFPP_1_1Tagger.html#b87c8c13cb0efcfaa7b6a6d1f1b75f33">weight_vector</a>() <span class="keyword">const</span> = 0; +<a name="l00122"></a>00122 <span class="preprocessor">#endif</span> +<a name="l00123"></a>00123 <span class="preprocessor"></span> +<a name="l00124"></a>00124 <span class="comment">// set vlevel</span> +<a name="l00125"></a>00125 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCRFPP_1_1Tagger.html#f729184ba777adec3cc48c717739e79a">set_vlevel</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCRFPP_1_1Tagger.html#2c7e75615ca8d666da146be1b3570098">vlevel</a>) = 0; +<a name="l00126"></a>00126 +<a name="l00127"></a>00127 <span class="comment">// get vlevel</span> +<a name="l00128"></a>00128 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classCRFPP_1_1Tagger.html#2c7e75615ca8d666da146be1b3570098">vlevel</a>() <span class="keyword">const</span> = 0; +<a name="l00129"></a>00129 +<a name="l00130"></a>00130 <span class="comment">// set cost factor</span> +<a name="l00131"></a>00131 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCRFPP_1_1Tagger.html#d2d6c8e09a5215de7b428633d7ffa7fa">set_cost_factor</a>(<span class="keywordtype">float</span> <a class="code" href="classCRFPP_1_1Tagger.html#4ac9f6bbfad372e4594960c7c7ce568c">cost_factor</a>) = 0; +<a name="l00132"></a>00132 +<a name="l00133"></a>00133 <span class="comment">// get cost factor</span> +<a name="l00134"></a>00134 <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="classCRFPP_1_1Tagger.html#4ac9f6bbfad372e4594960c7c7ce568c">cost_factor</a>() <span class="keyword">const</span> = 0; +<a name="l00135"></a>00135 +<a name="l00136"></a>00136 <span class="comment">// set nbest</span> +<a name="l00137"></a>00137 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classCRFPP_1_1Tagger.html#83b6bda1a107819b560047ba22216d78">set_nbest</a>(<span class="keywordtype">size_t</span> <a class="code" href="classCRFPP_1_1Tagger.html#7b5de55779ac461bea10a250e2c932cc">nbest</a>) = 0; +<a name="l00138"></a>00138 +<a name="l00139"></a>00139 <span class="comment">// get nbest</span> +<a name="l00140"></a>00140 <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classCRFPP_1_1Tagger.html#7b5de55779ac461bea10a250e2c932cc">nbest</a>() <span class="keyword">const</span> = 0; +<a name="l00141"></a>00141 +<a name="l00142"></a>00142 <span class="comment">// add one line to the current context</span> +<a name="l00143"></a>00143 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <span class="keyword">add</span>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) = 0; +<a name="l00144"></a>00144 +<a name="l00145"></a>00145 <span class="comment">// return size of tokens(lines)</span> +<a name="l00146"></a>00146 <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classCRFPP_1_1Tagger.html#0bb307faa0e68f71ca1bb6a992bc01e4">size</a>() <span class="keyword">const</span> = 0; +<a name="l00147"></a>00147 +<a name="l00148"></a>00148 <span class="comment">// return size of column</span> +<a name="l00149"></a>00149 <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classCRFPP_1_1Tagger.html#31403e849acb03bc109367f03f052ec3">xsize</a>() <span class="keyword">const</span> = 0; +<a name="l00150"></a>00150 +<a name="l00151"></a>00151 <span class="comment">// return size of features</span> +<a name="l00152"></a>00152 <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classCRFPP_1_1Tagger.html#141878c42290862182f5df5023348763">dsize</a>() <span class="keyword">const</span> = 0; +<a name="l00153"></a>00153 +<a name="l00154"></a>00154 <span class="comment">// return output tag-id of i-th token</span> +<a name="l00155"></a>00155 <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classCRFPP_1_1Tagger.html#64474629e38769c9b103b6680a5cebbd">result</a>(<span class="keywordtype">size_t</span> i) <span class="keyword">const</span> = 0; +<a name="l00156"></a>00156 +<a name="l00157"></a>00157 <span class="comment">// return answer tag-id of i-th token if it is available</span> +<a name="l00158"></a>00158 <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classCRFPP_1_1Tagger.html#cb0a26699ae23f463b5d7a8d844a8941">answer</a>(<span class="keywordtype">size_t</span> i) <span class="keyword">const</span> = 0; +<a name="l00159"></a>00159 +<a name="l00160"></a>00160 <span class="comment">// alias of result(i)</span> +<a name="l00161"></a>00161 <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classCRFPP_1_1Tagger.html#89885d85c0914160fb43fa4d80a2f73d">y</a>(<span class="keywordtype">size_t</span> i) <span class="keyword">const</span> = 0; +<a name="l00162"></a>00162 +<a name="l00163"></a>00163 <span class="comment">// return output tag of i-th token as string</span> +<a name="l00164"></a>00164 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classCRFPP_1_1Tagger.html#4a08dac43a80be3ba79fd08cf52fa228">y2</a>(<span class="keywordtype">size_t</span> i) <span class="keyword">const</span> = 0; +<a name="l00165"></a>00165 +<a name="l00166"></a>00166 <span class="comment">// return i-th tag-id as string</span> +<a name="l00167"></a>00167 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classCRFPP_1_1Tagger.html#92351d6e270ad6897986e8c9898240b8">yname</a>(<span class="keywordtype">size_t</span> i) <span class="keyword">const</span> = 0; +<a name="l00168"></a>00168 +<a name="l00169"></a>00169 <span class="comment">// return token at [i,j] as string(i:token j:column)</span> +<a name="l00170"></a>00170 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classCRFPP_1_1Tagger.html#f10eeb55a0465e553f99fb83191fd6cc">x</a>(<span class="keywordtype">size_t</span> i, <span class="keywordtype">size_t</span> j) <span class="keyword">const</span> = 0; +<a name="l00171"></a>00171 +<a name="l00172"></a>00172 <span class="preprocessor">#ifndef SWIG</span> +<a name="l00173"></a>00173 <span class="preprocessor"></span> <span class="comment">// return an array of strings at i-th tokens</span> +<a name="l00174"></a>00174 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>** <a class="code" href="classCRFPP_1_1Tagger.html#f10eeb55a0465e553f99fb83191fd6cc">x</a>(<span class="keywordtype">size_t</span>) <span class="keyword">const</span> = 0; +<a name="l00175"></a>00175 <span class="preprocessor">#endif</span> +<a name="l00176"></a>00176 <span class="preprocessor"></span> +<a name="l00177"></a>00177 <span class="comment">// return size of output tags</span> +<a name="l00178"></a>00178 <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classCRFPP_1_1Tagger.html#00d8320a6d642291aa3c2cce5d37ed8a">ysize</a>() <span class="keyword">const</span> = 0; +<a name="l00179"></a>00179 +<a name="l00180"></a>00180 <span class="comment">// return marginal probability of j-th tag id at i-th token</span> +<a name="l00181"></a>00181 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classCRFPP_1_1Tagger.html#4dc84e06429db05a60fa6092ee992728">prob</a>(<span class="keywordtype">size_t</span> i, <span class="keywordtype">size_t</span> j) <span class="keyword">const</span> = 0; +<a name="l00182"></a>00182 +<a name="l00183"></a>00183 <span class="comment">// return marginal probability of output tag at i-th token</span> +<a name="l00184"></a>00184 <span class="comment">// same as prob(i, tagger->y(i));</span> +<a name="l00185"></a>00185 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classCRFPP_1_1Tagger.html#4dc84e06429db05a60fa6092ee992728">prob</a>(<span class="keywordtype">size_t</span> i) <span class="keyword">const</span> = 0; +<a name="l00186"></a>00186 +<a name="l00187"></a>00187 <span class="comment">// return conditional probability of enter output</span> +<a name="l00188"></a>00188 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classCRFPP_1_1Tagger.html#4dc84e06429db05a60fa6092ee992728">prob</a>() <span class="keyword">const</span> = 0; +<a name="l00189"></a>00189 +<a name="l00190"></a>00190 <span class="comment">// return forward log-prob of the j-th tag at i-th token</span> +<a name="l00191"></a>00191 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classCRFPP_1_1Tagger.html#0fd1381e54737522383e3345d0460946">alpha</a>(<span class="keywordtype">size_t</span> i, <span class="keywordtype">size_t</span> j) <span class="keyword">const</span> = 0; +<a name="l00192"></a>00192 +<a name="l00193"></a>00193 <span class="comment">// return backward log-prob of the j-th tag at i-th token</span> +<a name="l00194"></a>00194 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classCRFPP_1_1Tagger.html#98e054a8f5fb2eeb629fa2d7067aae25">beta</a>(<span class="keywordtype">size_t</span> i, <span class="keywordtype">size_t</span> j) <span class="keyword">const</span> = 0; +<a name="l00195"></a>00195 +<a name="l00196"></a>00196 <span class="comment">// return emission cost of the j-th tag at i-th token</span> +<a name="l00197"></a>00197 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classCRFPP_1_1Tagger.html#1a8e45d675a38a7f5c3075c39c2ee2fb">emission_cost</a>(<span class="keywordtype">size_t</span> i, <span class="keywordtype">size_t</span> j) <span class="keyword">const</span> = 0; +<a name="l00198"></a>00198 +<a name="l00199"></a>00199 <span class="comment">// return transition cost of [j-th tag at i-th token] to</span> +<a name="l00200"></a>00200 <span class="comment">// [k-th tag at(i+1)-th token]</span> +<a name="l00201"></a>00201 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classCRFPP_1_1Tagger.html#2327ce0f0be365a8e3b2df6bd14d223a">next_transition_cost</a>(<span class="keywordtype">size_t</span> i, +<a name="l00202"></a>00202 <span class="keywordtype">size_t</span> j, <span class="keywordtype">size_t</span> k) <span class="keyword">const</span> = 0; +<a name="l00203"></a>00203 +<a name="l00204"></a>00204 <span class="comment">// return transition cost of [j-th tag at i-th token] to</span> +<a name="l00205"></a>00205 <span class="comment">// [k-th tag at(i-1)-th token]</span> +<a name="l00206"></a>00206 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classCRFPP_1_1Tagger.html#6b68c088ce371e4bcb9973bc09f793d5">prev_transition_cost</a>(<span class="keywordtype">size_t</span> i, +<a name="l00207"></a>00207 <span class="keywordtype">size_t</span> j, <span class="keywordtype">size_t</span> k) <span class="keyword">const</span> = 0; +<a name="l00208"></a>00208 +<a name="l00209"></a>00209 <span class="comment">// return the best accumulative cost to the j-th tag at i-th token</span> +<a name="l00210"></a>00210 <span class="comment">// used in viterbi search</span> +<a name="l00211"></a>00211 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classCRFPP_1_1Tagger.html#39b2762fc466abf4d63c9c7273c92dcc">best_cost</a>(<span class="keywordtype">size_t</span> i, <span class="keywordtype">size_t</span> j) <span class="keyword">const</span> = 0; +<a name="l00212"></a>00212 +<a name="l00213"></a>00213 <span class="preprocessor">#ifndef SWIG</span> +<a name="l00214"></a>00214 <span class="preprocessor"></span> <span class="comment">// return emission feature vector of the j-th tag at i-th token</span> +<a name="l00215"></a>00215 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">int</span>* <a class="code" href="classCRFPP_1_1Tagger.html#4f5172db2d33c2d16a71989486750299">emission_vector</a>(<span class="keywordtype">size_t</span> i, <span class="keywordtype">size_t</span> j) <span class="keyword">const</span> = 0; +<a name="l00216"></a>00216 +<a name="l00217"></a>00217 <span class="comment">// return transition feature vector of [j-th tag at i-th token] to</span> +<a name="l00218"></a>00218 <span class="comment">// [k-th tag at(i+1)-th token]</span> +<a name="l00219"></a>00219 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">int</span>* <a class="code" href="classCRFPP_1_1Tagger.html#faba05159548ba5427088dc45f7cfde0">next_transition_vector</a>(<span class="keywordtype">size_t</span> i, +<a name="l00220"></a>00220 <span class="keywordtype">size_t</span> j, <span class="keywordtype">size_t</span> k) <span class="keyword">const</span> = 0; +<a name="l00221"></a>00221 +<a name="l00222"></a>00222 <span class="comment">// return transition feature vector of [j-th tag at i-th token] to</span> +<a name="l00223"></a>00223 <span class="comment">// [k-th tag at(i-1)-th token]</span> +<a name="l00224"></a>00224 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">int</span>* <a class="code" href="classCRFPP_1_1Tagger.html#4188eeb78469823e096986440b8ca87a">prev_transition_vector</a>(<span class="keywordtype">size_t</span> i, +<a name="l00225"></a>00225 <span class="keywordtype">size_t</span> j, <span class="keywordtype">size_t</span> k) <span class="keyword">const</span> = 0; +<a name="l00226"></a>00226 <span class="preprocessor">#endif</span> +<a name="l00227"></a>00227 <span class="preprocessor"></span> +<a name="l00228"></a>00228 <span class="comment">// normalizing factor(log-prob)</span> +<a name="l00229"></a>00229 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classCRFPP_1_1Tagger.html#70578008d83778a53800227002f0e4e5">Z</a>() <span class="keyword">const</span> = 0; +<a name="l00230"></a>00230 +<a name="l00231"></a>00231 <span class="comment">// do parse and change the internal status, if failed, returns false</span> +<a name="l00232"></a>00232 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classCRFPP_1_1Tagger.html#195868fcd1d7e7e9dfc6f802ad32d2e7">parse</a>() = 0; +<a name="l00233"></a>00233 +<a name="l00234"></a>00234 <span class="comment">// return true if the context is empty</span> +<a name="l00235"></a>00235 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classCRFPP_1_1Tagger.html#938183f7d5e5f470efe58bf2aae7dbdd">empty</a>() <span class="keyword">const</span> = 0; +<a name="l00236"></a>00236 +<a name="l00237"></a>00237 <span class="comment">// clear all context</span> +<a name="l00238"></a>00238 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classCRFPP_1_1Tagger.html#c59a9a7b99503c282cd8dc529c9311f7">clear</a>() = 0; +<a name="l00239"></a>00239 +<a name="l00240"></a>00240 <span class="comment">// change the internal state to output next-optimal output.</span> +<a name="l00241"></a>00241 <span class="comment">// calling it n-th times, can get n-best results,</span> +<a name="l00242"></a>00242 <span class="comment">// Neeed to specify -nN option to use this function, where</span> +<a name="l00243"></a>00243 <span class="comment">// N>=2</span> +<a name="l00244"></a>00244 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classCRFPP_1_1Tagger.html#137d7523294d05773a5dd26f60dce73c">next</a>() = 0; +<a name="l00245"></a>00245 +<a name="l00246"></a>00246 <span class="comment">// parse 'str' and return result as string</span> +<a name="l00247"></a>00247 <span class="comment">// 'str' must be written in CRF++'s input format</span> +<a name="l00248"></a>00248 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classCRFPP_1_1Tagger.html#195868fcd1d7e7e9dfc6f802ad32d2e7">parse</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str) = 0; +<a name="l00249"></a>00249 +<a name="l00250"></a>00250 <span class="preprocessor">#ifndef SWIG</span> +<a name="l00251"></a>00251 <span class="preprocessor"></span> <span class="comment">// return parsed result as string</span> +<a name="l00252"></a>00252 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classCRFPP_1_1Tagger.html#0f00cbcf6b9486e177f3064ef1b5e275">toString</a>() = 0; +<a name="l00253"></a>00253 +<a name="l00254"></a>00254 <span class="comment">// return parsed result as string.</span> +<a name="l00255"></a>00255 <span class="comment">// Result is saved in the buffer 'result', 'size' is the</span> +<a name="l00256"></a>00256 <span class="comment">// size of the buffer. if failed, return NULL</span> +<a name="l00257"></a>00257 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classCRFPP_1_1Tagger.html#0f00cbcf6b9486e177f3064ef1b5e275">toString</a>(<span class="keywordtype">char</span>* <a class="code" href="classCRFPP_1_1Tagger.html#64474629e38769c9b103b6680a5cebbd">result</a> , <span class="keywordtype">size_t</span> <a class="code" href="classCRFPP_1_1Tagger.html#0bb307faa0e68f71ca1bb6a992bc01e4">size</a>) = 0; +<a name="l00258"></a>00258 +<a name="l00259"></a>00259 <span class="comment">// parse 'str' and return parsed result.</span> +<a name="l00260"></a>00260 <span class="comment">// You don't need to delete return value, but the buffer</span> +<a name="l00261"></a>00261 <span class="comment">// is rewritten whenever you call parse method.</span> +<a name="l00262"></a>00262 <span class="comment">// if failed, return NULL</span> +<a name="l00263"></a>00263 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classCRFPP_1_1Tagger.html#195868fcd1d7e7e9dfc6f802ad32d2e7">parse</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *str, <span class="keywordtype">size_t</span> size) = 0; +<a name="l00264"></a>00264 +<a name="l00265"></a>00265 <span class="comment">// parse 'str' and return parsed result.</span> +<a name="l00266"></a>00266 <span class="comment">// The result is stored in the buffer 'result'.</span> +<a name="l00267"></a>00267 <span class="comment">// 'size2' is the size of the buffer. if failed, return NULL</span> +<a name="l00268"></a>00268 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classCRFPP_1_1Tagger.html#195868fcd1d7e7e9dfc6f802ad32d2e7">parse</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *str, <span class="keywordtype">size_t</span> size1, +<a name="l00269"></a>00269 <span class="keywordtype">char</span> *result, <span class="keywordtype">size_t</span> size2) = 0; +<a name="l00270"></a>00270 <span class="preprocessor">#endif</span> +<a name="l00271"></a>00271 <span class="preprocessor"></span> <span class="comment">// return internal error code as string</span> +<a name="l00272"></a>00272 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classCRFPP_1_1Tagger.html#a8fdb0f9b6ddeff642e828831ade7aba">what</a>() = 0; +<a name="l00273"></a>00273 +<a name="l00274"></a><a class="code" href="classCRFPP_1_1Tagger.html#952aec420a7e26c35dc94c47132dd955">00274</a> <span class="keyword">virtual</span> <a class="code" href="classCRFPP_1_1Tagger.html#952aec420a7e26c35dc94c47132dd955">~Tagger</a>() {} +<a name="l00275"></a>00275 }; +<a name="l00276"></a>00276 +<a name="l00277"></a>00277 <span class="comment">/* factory method */</span> +<a name="l00278"></a>00278 +<a name="l00279"></a>00279 <span class="comment">// create CRFPP::Tagger instance with parameters in argv[]</span> +<a name="l00280"></a>00280 <span class="comment">// e.g, argv[] = {"CRF++", "-m", "model", "-v3"};</span> +<a name="l00281"></a>00281 +<a name="l00282"></a>00282 CRFPP_DLL_EXTERN Tagger *<a class="code" href="namespaceCRFPP.html#30aed044aeffde3a6ac36db925f2fa90">createTagger</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv); +<a name="l00283"></a>00283 +<a name="l00284"></a>00284 <span class="comment">// create CRFPP::Tagger instance with parameter in arg</span> +<a name="l00285"></a>00285 <span class="comment">// e.g. arg = "-m model -v3";</span> +<a name="l00286"></a>00286 CRFPP_DLL_EXTERN Tagger *<a class="code" href="namespaceCRFPP.html#30aed044aeffde3a6ac36db925f2fa90">createTagger</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *arg); +<a name="l00287"></a>00287 +<a name="l00288"></a>00288 <span class="comment">// return error code of createTagger();</span> +<a name="l00289"></a>00289 CRFPP_DLL_EXTERN <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="namespaceCRFPP.html#4ea358d9f0b666ff13a1553e79a98777">getTaggerError</a>(); +<a name="l00290"></a>00290 } +<a name="l00291"></a>00291 +<a name="l00292"></a>00292 <span class="preprocessor">#endif</span> +<a name="l00293"></a>00293 <span class="preprocessor"></span><span class="preprocessor">#endif</span> +</pre></div></div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/crfpp_8h.html b/doc/doxygen/crfpp_8h.html new file mode 100644 index 0000000..51b62a8 --- /dev/null +++ b/doc/doxygen/crfpp_8h.html @@ -0,0 +1,1493 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: /home/taku/proj/crfpp/crfpp.h File Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +<h1>/home/taku/proj/crfpp/crfpp.h File Reference</h1><code>#include <cstdio></code><br> + +<p> +<a href="crfpp_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> +<tr><td></td></tr> +<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCRFPP.html">CRFPP</a></td></tr> + +<tr><td colspan="2"><br><h2>Classes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html">CRFPP::Tagger</a></td></tr> + +<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef struct <a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a></td></tr> + +<tr><td colspan="2"><br><h2>Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN <a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#47eeae65e19b67575ee7d4337e3cd4cc">crfpp_new</a> (int, char **)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN <a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#c316670dc1e5b0eb8234897677a106d0">crfpp_new2</a> (const char *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN void </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#da0c189dcb1005259b3264fb209c3200">crfpp_destroy</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN bool </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#dd48b76903be573dfa8f75615a1a0ec0">crfpp_add2</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, const char **)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN bool </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#c2522fb65d719bd6aa8bc84724b83789">crfpp_add</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, const char *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#b64059a5606297381c64f34456681bfc">crfpp_size</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#4571ede590c1bbbf63a3bd81dc2e40af">crfpp_xsize</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#cd3974a71151a3f6a0cd4ddc12c5d3ab">crfpp_dsize</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const float * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#1150d5c6d46a876a75cee41c85fd58fe">crfpp_weight_vector</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#8a31211011b255a77d5124353df027d7">crfpp_result</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#0e4f32071bda760f8dee21fe6896160f">crfpp_answer</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#f03bfbc697ebe02a6af33520b4f00bc9">crfpp_y</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#9df5c9b61b09173d16382a71b686878c">crfpp_ysize</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN double </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#bae8663e259f6880ff5cc93e9c2793b4">crfpp_prob</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN double </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#4171bbea58da7f4dd2736f1146061219">crfpp_prob2</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN double </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#ffc7ffda4245d788903df38cb6e936c1">crfpp_prob3</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN double </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#c8341b2ece6eff9d74ccadbfd25d896b">crfpp_alpha</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN double </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#299db7d1303ce19c502704fe10d4572a">crfpp_beta</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN double </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#56ce83f63d1d793347258a7bef732f24">crfpp_emisstion_cost</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN double </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#13f8c29d09051ac3c1655cd07b57f494">crfpp_next_transition_cost</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, size_t, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN double </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#997c64c98ca9631394983b023082d1ae">crfpp_prev_transition_cost</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, size_t, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN double </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#0ac978c86fedbeec7ddb43a9608f845d">crfpp_best_cost</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const int * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#bd3ca40910819acba3d8083740b1a850">crfpp_emittion_vector</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const int * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#19a39a5b6583b3e9269a2c5192818d83">crfpp_next_transition_vector</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, size_t, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const int * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#dc0fb25629038b6f744e005f9b7d7c04">crfpp_prev_transition_vector</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, size_t, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN double </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#298837d730e31a2f67691b9df47cbe7a">crfpp_Z</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN bool </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#ef138756beacc0e7cfd15174adf8501c">crfpp_parse</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN bool </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#85968024efce5f3abd93edeb88b095c1">crfpp_empty</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN bool </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#a1a01c7cf278efbce47ce335a4d41cfb">crfpp_clear</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN bool </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#5385cf04fdf4949d06ba2ead4c431f74">crfpp_next</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN int </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#e344d7e5857c8baed9cd2ca1ff166c8f">crfpp_test</a> (int, char **)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN int </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#3a6ad1fb5f31d9b483cc02c1e3fde825">crfpp_learn</a> (int, char **)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#b9809a67da577a17281bd0de7d2e0820">crfpp_strerror</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#781e91b694aa9d200883b423c65b2547">crfpp_yname</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#0d4e595c4a711e074f3e202915804eb3">crfpp_y2</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#abf9208da152d75620153ea34a3f8feb">crfpp_x</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char ** </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#6569643c80d2d21967708ea13550669c">crfpp_x2</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#b5abd8020d58e01473c7cd754eab4406">crfpp_parse_tostr</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, const char *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#9248ed418cc9634d69766b06acf168af">crfpp_parse_tostr2</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, const char *, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#173f9454c961189bdea1da8d37b68103">crfpp_parse_tostr3</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, const char *, size_t, char *, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#ca204ed779752c741b045147be249fdf">crfpp_tostr</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#6b5ff87ab448e4128aab974f599fc8a8">crfpp_tostr2</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, char *, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN void </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#e22f8ef16983820243e0e925c715649c">crfpp_set_vlevel</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, unsigned int)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#4120d4de8fdc620ca6472f2aba2f2678">crfpp_vlevel</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN void </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#406e63ff6f4b5214a10a714d9afb7376">crfpp_set_cost_factor</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, float)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN float </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#e846df1fd9e207c4fca788c9bc17f1e9">crfpp_cost_factor</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN void </td><td class="memItemRight" valign="bottom"><a class="el" href="crfpp_8h.html#1122f31df4d3673108e0757353c38c01">crfpp_set_nbest</a> (<a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> *, size_t)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN Tagger * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCRFPP.html#30aed044aeffde3a6ac36db925f2fa90">CRFPP::createTagger</a> (int argc, char **argv)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN Tagger * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCRFPP.html#e1b8f8e529e7e886a9f0e1b14c0e3809">CRFPP::createTagger</a> (const char *arg)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCRFPP.html#4ea358d9f0b666ff13a1553e79a98777">CRFPP::getTaggerError</a> ()</td></tr> + +</table> +<hr><h2>Typedef Documentation</h2> +<a class="anchor" name="513ea0b9519c24b6c1797d74c2202e51"></a><!-- doxytag: member="crfpp.h::crfpp_t" ref="513ea0b9519c24b6c1797d74c2202e51" args="" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">typedef struct <a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> <a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> </td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<hr><h2>Function Documentation</h2> +<a class="anchor" name="c2522fb65d719bd6aa8bc84724b83789"></a><!-- doxytag: member="crfpp.h::crfpp_add" ref="c2522fb65d719bd6aa8bc84724b83789" args="(crfpp_t *, const char *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN bool crfpp_add </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char * </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="dd48b76903be573dfa8f75615a1a0ec0"></a><!-- doxytag: member="crfpp.h::crfpp_add2" ref="dd48b76903be573dfa8f75615a1a0ec0" args="(crfpp_t *, size_t, const char **)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN bool crfpp_add2 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char ** </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="c8341b2ece6eff9d74ccadbfd25d896b"></a><!-- doxytag: member="crfpp.h::crfpp_alpha" ref="c8341b2ece6eff9d74ccadbfd25d896b" args="(crfpp_t *, size_t, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN double crfpp_alpha </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="0e4f32071bda760f8dee21fe6896160f"></a><!-- doxytag: member="crfpp.h::crfpp_answer" ref="0e4f32071bda760f8dee21fe6896160f" args="(crfpp_t *, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN size_t crfpp_answer </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="0ac978c86fedbeec7ddb43a9608f845d"></a><!-- doxytag: member="crfpp.h::crfpp_best_cost" ref="0ac978c86fedbeec7ddb43a9608f845d" args="(crfpp_t *, size_t, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN double crfpp_best_cost </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="299db7d1303ce19c502704fe10d4572a"></a><!-- doxytag: member="crfpp.h::crfpp_beta" ref="299db7d1303ce19c502704fe10d4572a" args="(crfpp_t *, size_t, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN double crfpp_beta </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="a1a01c7cf278efbce47ce335a4d41cfb"></a><!-- doxytag: member="crfpp.h::crfpp_clear" ref="a1a01c7cf278efbce47ce335a4d41cfb" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN bool crfpp_clear </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="e846df1fd9e207c4fca788c9bc17f1e9"></a><!-- doxytag: member="crfpp.h::crfpp_cost_factor" ref="e846df1fd9e207c4fca788c9bc17f1e9" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN float crfpp_cost_factor </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="da0c189dcb1005259b3264fb209c3200"></a><!-- doxytag: member="crfpp.h::crfpp_destroy" ref="da0c189dcb1005259b3264fb209c3200" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN void crfpp_destroy </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="cd3974a71151a3f6a0cd4ddc12c5d3ab"></a><!-- doxytag: member="crfpp.h::crfpp_dsize" ref="cd3974a71151a3f6a0cd4ddc12c5d3ab" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN size_t crfpp_dsize </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="56ce83f63d1d793347258a7bef732f24"></a><!-- doxytag: member="crfpp.h::crfpp_emisstion_cost" ref="56ce83f63d1d793347258a7bef732f24" args="(crfpp_t *, size_t, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN double crfpp_emisstion_cost </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="bd3ca40910819acba3d8083740b1a850"></a><!-- doxytag: member="crfpp.h::crfpp_emittion_vector" ref="bd3ca40910819acba3d8083740b1a850" args="(crfpp_t *, size_t, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const int* crfpp_emittion_vector </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="85968024efce5f3abd93edeb88b095c1"></a><!-- doxytag: member="crfpp.h::crfpp_empty" ref="85968024efce5f3abd93edeb88b095c1" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN bool crfpp_empty </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="3a6ad1fb5f31d9b483cc02c1e3fde825"></a><!-- doxytag: member="crfpp.h::crfpp_learn" ref="3a6ad1fb5f31d9b483cc02c1e3fde825" args="(int, char **)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN int crfpp_learn </td> + <td>(</td> + <td class="paramtype">int </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">char ** </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="47eeae65e19b67575ee7d4337e3cd4cc"></a><!-- doxytag: member="crfpp.h::crfpp_new" ref="47eeae65e19b67575ee7d4337e3cd4cc" args="(int, char **)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN <a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>* crfpp_new </td> + <td>(</td> + <td class="paramtype">int </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">char ** </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="c316670dc1e5b0eb8234897677a106d0"></a><!-- doxytag: member="crfpp.h::crfpp_new2" ref="c316670dc1e5b0eb8234897677a106d0" args="(const char *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN <a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a>* crfpp_new2 </td> + <td>(</td> + <td class="paramtype">const char * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="5385cf04fdf4949d06ba2ead4c431f74"></a><!-- doxytag: member="crfpp.h::crfpp_next" ref="5385cf04fdf4949d06ba2ead4c431f74" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN bool crfpp_next </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="13f8c29d09051ac3c1655cd07b57f494"></a><!-- doxytag: member="crfpp.h::crfpp_next_transition_cost" ref="13f8c29d09051ac3c1655cd07b57f494" args="(crfpp_t *, size_t, size_t, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN double crfpp_next_transition_cost </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="19a39a5b6583b3e9269a2c5192818d83"></a><!-- doxytag: member="crfpp.h::crfpp_next_transition_vector" ref="19a39a5b6583b3e9269a2c5192818d83" args="(crfpp_t *, size_t, size_t, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const int* crfpp_next_transition_vector </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="ef138756beacc0e7cfd15174adf8501c"></a><!-- doxytag: member="crfpp.h::crfpp_parse" ref="ef138756beacc0e7cfd15174adf8501c" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN bool crfpp_parse </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="b5abd8020d58e01473c7cd754eab4406"></a><!-- doxytag: member="crfpp.h::crfpp_parse_tostr" ref="b5abd8020d58e01473c7cd754eab4406" args="(crfpp_t *, const char *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const char* crfpp_parse_tostr </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char * </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="9248ed418cc9634d69766b06acf168af"></a><!-- doxytag: member="crfpp.h::crfpp_parse_tostr2" ref="9248ed418cc9634d69766b06acf168af" args="(crfpp_t *, const char *, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const char* crfpp_parse_tostr2 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="173f9454c961189bdea1da8d37b68103"></a><!-- doxytag: member="crfpp.h::crfpp_parse_tostr3" ref="173f9454c961189bdea1da8d37b68103" args="(crfpp_t *, const char *, size_t, char *, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const char* crfpp_parse_tostr3 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">char * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="997c64c98ca9631394983b023082d1ae"></a><!-- doxytag: member="crfpp.h::crfpp_prev_transition_cost" ref="997c64c98ca9631394983b023082d1ae" args="(crfpp_t *, size_t, size_t, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN double crfpp_prev_transition_cost </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="dc0fb25629038b6f744e005f9b7d7c04"></a><!-- doxytag: member="crfpp.h::crfpp_prev_transition_vector" ref="dc0fb25629038b6f744e005f9b7d7c04" args="(crfpp_t *, size_t, size_t, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const int* crfpp_prev_transition_vector </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="bae8663e259f6880ff5cc93e9c2793b4"></a><!-- doxytag: member="crfpp.h::crfpp_prob" ref="bae8663e259f6880ff5cc93e9c2793b4" args="(crfpp_t *, size_t, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN double crfpp_prob </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="4171bbea58da7f4dd2736f1146061219"></a><!-- doxytag: member="crfpp.h::crfpp_prob2" ref="4171bbea58da7f4dd2736f1146061219" args="(crfpp_t *, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN double crfpp_prob2 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="ffc7ffda4245d788903df38cb6e936c1"></a><!-- doxytag: member="crfpp.h::crfpp_prob3" ref="ffc7ffda4245d788903df38cb6e936c1" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN double crfpp_prob3 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="8a31211011b255a77d5124353df027d7"></a><!-- doxytag: member="crfpp.h::crfpp_result" ref="8a31211011b255a77d5124353df027d7" args="(crfpp_t *, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN size_t crfpp_result </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="406e63ff6f4b5214a10a714d9afb7376"></a><!-- doxytag: member="crfpp.h::crfpp_set_cost_factor" ref="406e63ff6f4b5214a10a714d9afb7376" args="(crfpp_t *, float)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN void crfpp_set_cost_factor </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">float </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="1122f31df4d3673108e0757353c38c01"></a><!-- doxytag: member="crfpp.h::crfpp_set_nbest" ref="1122f31df4d3673108e0757353c38c01" args="(crfpp_t *, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN void crfpp_set_nbest </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="e22f8ef16983820243e0e925c715649c"></a><!-- doxytag: member="crfpp.h::crfpp_set_vlevel" ref="e22f8ef16983820243e0e925c715649c" args="(crfpp_t *, unsigned int)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN void crfpp_set_vlevel </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">unsigned </td> + <td class="paramname"> <em>int</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="b64059a5606297381c64f34456681bfc"></a><!-- doxytag: member="crfpp.h::crfpp_size" ref="b64059a5606297381c64f34456681bfc" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN size_t crfpp_size </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="b9809a67da577a17281bd0de7d2e0820"></a><!-- doxytag: member="crfpp.h::crfpp_strerror" ref="b9809a67da577a17281bd0de7d2e0820" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const char* crfpp_strerror </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="e344d7e5857c8baed9cd2ca1ff166c8f"></a><!-- doxytag: member="crfpp.h::crfpp_test" ref="e344d7e5857c8baed9cd2ca1ff166c8f" args="(int, char **)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN int crfpp_test </td> + <td>(</td> + <td class="paramtype">int </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">char ** </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="ca204ed779752c741b045147be249fdf"></a><!-- doxytag: member="crfpp.h::crfpp_tostr" ref="ca204ed779752c741b045147be249fdf" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const char* crfpp_tostr </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="6b5ff87ab448e4128aab974f599fc8a8"></a><!-- doxytag: member="crfpp.h::crfpp_tostr2" ref="6b5ff87ab448e4128aab974f599fc8a8" args="(crfpp_t *, char *, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const char* crfpp_tostr2 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">char * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="4120d4de8fdc620ca6472f2aba2f2678"></a><!-- doxytag: member="crfpp.h::crfpp_vlevel" ref="4120d4de8fdc620ca6472f2aba2f2678" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN unsigned int crfpp_vlevel </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="1150d5c6d46a876a75cee41c85fd58fe"></a><!-- doxytag: member="crfpp.h::crfpp_weight_vector" ref="1150d5c6d46a876a75cee41c85fd58fe" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const float* crfpp_weight_vector </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="abf9208da152d75620153ea34a3f8feb"></a><!-- doxytag: member="crfpp.h::crfpp_x" ref="abf9208da152d75620153ea34a3f8feb" args="(crfpp_t *, size_t, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const char* crfpp_x </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="6569643c80d2d21967708ea13550669c"></a><!-- doxytag: member="crfpp.h::crfpp_x2" ref="6569643c80d2d21967708ea13550669c" args="(crfpp_t *, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const char** crfpp_x2 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="4571ede590c1bbbf63a3bd81dc2e40af"></a><!-- doxytag: member="crfpp.h::crfpp_xsize" ref="4571ede590c1bbbf63a3bd81dc2e40af" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN size_t crfpp_xsize </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="f03bfbc697ebe02a6af33520b4f00bc9"></a><!-- doxytag: member="crfpp.h::crfpp_y" ref="f03bfbc697ebe02a6af33520b4f00bc9" args="(crfpp_t *, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN size_t crfpp_y </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="0d4e595c4a711e074f3e202915804eb3"></a><!-- doxytag: member="crfpp.h::crfpp_y2" ref="0d4e595c4a711e074f3e202915804eb3" args="(crfpp_t *, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const char* crfpp_y2 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="781e91b694aa9d200883b423c65b2547"></a><!-- doxytag: member="crfpp.h::crfpp_yname" ref="781e91b694aa9d200883b423c65b2547" args="(crfpp_t *, size_t)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const char* crfpp_yname </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname">, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">size_t </td> + <td class="paramname"></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="9df5c9b61b09173d16382a71b686878c"></a><!-- doxytag: member="crfpp.h::crfpp_ysize" ref="9df5c9b61b09173d16382a71b686878c" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN size_t crfpp_ysize </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="298837d730e31a2f67691b9df47cbe7a"></a><!-- doxytag: member="crfpp.h::crfpp_Z" ref="298837d730e31a2f67691b9df47cbe7a" args="(crfpp_t *)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN double crfpp_Z </td> + <td>(</td> + <td class="paramtype"><a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp_t</a> * </td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/doxygen.css b/doc/doxygen/doxygen.css new file mode 100644 index 0000000..22c4843 --- /dev/null +++ b/doc/doxygen/doxygen.css @@ -0,0 +1,473 @@ +BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV { + font-family: Geneva, Arial, Helvetica, sans-serif; +} +BODY,TD { + font-size: 90%; +} +H1 { + text-align: center; + font-size: 160%; +} +H2 { + font-size: 120%; +} +H3 { + font-size: 100%; +} +CAPTION { + font-weight: bold +} +DIV.qindex { + width: 100%; + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + padding: 2px; + line-height: 140%; +} +DIV.navpath { + width: 100%; + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + padding: 2px; + line-height: 140%; +} +DIV.navtab { + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} +TD.navtab { + font-size: 70%; +} +A.qindex { + text-decoration: none; + font-weight: bold; + color: #1A419D; +} +A.qindex:visited { + text-decoration: none; + font-weight: bold; + color: #1A419D +} +A.qindex:hover { + text-decoration: none; + background-color: #ddddff; +} +A.qindexHL { + text-decoration: none; + font-weight: bold; + background-color: #6666cc; + color: #ffffff; + border: 1px double #9295C2; +} +A.qindexHL:hover { + text-decoration: none; + background-color: #6666cc; + color: #ffffff; +} +A.qindexHL:visited { + text-decoration: none; + background-color: #6666cc; + color: #ffffff +} +A.el { + text-decoration: none; + font-weight: bold +} +A.elRef { + font-weight: bold +} +A.code:link { + text-decoration: none; + font-weight: normal; + color: #0000FF +} +A.code:visited { + text-decoration: none; + font-weight: normal; + color: #0000FF +} +A.codeRef:link { + font-weight: normal; + color: #0000FF +} +A.codeRef:visited { + font-weight: normal; + color: #0000FF +} +A:hover { + text-decoration: none; + background-color: #f2f2ff +} +DL.el { + margin-left: -1cm +} +.fragment { + font-family: monospace, fixed; + font-size: 95%; +} +PRE.fragment { + border: 1px solid #CCCCCC; + background-color: #f5f5f5; + margin-top: 4px; + margin-bottom: 4px; + margin-left: 2px; + margin-right: 8px; + padding-left: 6px; + padding-right: 6px; + padding-top: 4px; + padding-bottom: 4px; +} +DIV.ah { + background-color: black; + font-weight: bold; + color: #ffffff; + margin-bottom: 3px; + margin-top: 3px +} + +DIV.groupHeader { + margin-left: 16px; + margin-top: 12px; + margin-bottom: 6px; + font-weight: bold; +} +DIV.groupText { + margin-left: 16px; + font-style: italic; + font-size: 90% +} +BODY { + background: white; + color: black; + margin-right: 20px; + margin-left: 20px; +} +TD.indexkey { + background-color: #e8eef2; + font-weight: bold; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px; + border: 1px solid #CCCCCC; +} +TD.indexvalue { + background-color: #e8eef2; + font-style: italic; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px; + border: 1px solid #CCCCCC; +} +TR.memlist { + background-color: #f0f0f0; +} +P.formulaDsp { + text-align: center; +} +IMG.formulaDsp { +} +IMG.formulaInl { + vertical-align: middle; +} +SPAN.keyword { color: #008000 } +SPAN.keywordtype { color: #604020 } +SPAN.keywordflow { color: #e08000 } +SPAN.comment { color: #800000 } +SPAN.preprocessor { color: #806020 } +SPAN.stringliteral { color: #002080 } +SPAN.charliteral { color: #008080 } +SPAN.vhdldigit { color: #ff00ff } +SPAN.vhdlchar { color: #000000 } +SPAN.vhdlkeyword { color: #700070 } +SPAN.vhdllogic { color: #ff0000 } + +.mdescLeft { + padding: 0px 8px 4px 8px; + font-size: 80%; + font-style: italic; + background-color: #FAFAFA; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; +} +.mdescRight { + padding: 0px 8px 4px 8px; + font-size: 80%; + font-style: italic; + background-color: #FAFAFA; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; +} +.memItemLeft { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: solid; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memItemRight { + padding: 1px 8px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: solid; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memTemplItemLeft { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: none; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memTemplItemRight { + padding: 1px 8px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: none; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-size: 80%; +} +.memTemplParams { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-top-style: solid; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + color: #606060; + background-color: #FAFAFA; + font-size: 80%; +} +.search { + color: #003399; + font-weight: bold; +} +FORM.search { + margin-bottom: 0px; + margin-top: 0px; +} +INPUT.search { + font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} +TD.tiny { + font-size: 75%; +} +a { + color: #1A41A8; +} +a:visited { + color: #2A3798; +} +.dirtab { + padding: 4px; + border-collapse: collapse; + border: 1px solid #84b0c7; +} +TH.dirtab { + background: #e8eef2; + font-weight: bold; +} +HR { + height: 1px; + border: none; + border-top: 1px solid black; +} + +/* Style for detailed member documentation */ +.memtemplate { + font-size: 80%; + color: #606060; + font-weight: normal; + margin-left: 3px; +} +.memnav { + background-color: #e8eef2; + border: 1px solid #84b0c7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} +.memitem { + padding: 4px; + background-color: #eef3f5; + border-width: 1px; + border-style: solid; + border-color: #dedeee; + -moz-border-radius: 8px 8px 8px 8px; +} +.memname { + white-space: nowrap; + font-weight: bold; +} +.memdoc{ + padding-left: 10px; +} +.memproto { + background-color: #d5e1e8; + width: 100%; + border-width: 1px; + border-style: solid; + border-color: #84b0c7; + font-weight: bold; + -moz-border-radius: 8px 8px 8px 8px; +} +.paramkey { + text-align: right; +} +.paramtype { + white-space: nowrap; +} +.paramname { + color: #602020; + font-style: italic; + white-space: nowrap; +} +/* End Styling for detailed member documentation */ + +/* for the tree view */ +.ftvtree { + font-family: sans-serif; + margin:0.5em; +} +/* these are for tree view when used as main index */ +.directory { + font-size: 9pt; + font-weight: bold; +} +.directory h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +/* The following two styles can be used to replace the root node title */ +/* with an image of your choice. Simply uncomment the next two styles, */ +/* specify the name of your image and be sure to set 'height' to the */ +/* proper pixel height of your image. */ + +/* .directory h3.swap { */ +/* height: 61px; */ +/* background-repeat: no-repeat; */ +/* background-image: url("yourimage.gif"); */ +/* } */ +/* .directory h3.swap span { */ +/* display: none; */ +/* } */ + +.directory > h3 { + margin-top: 0; +} +.directory p { + margin: 0px; + white-space: nowrap; +} +.directory div { + display: none; + margin: 0px; +} +.directory img { + vertical-align: -30%; +} +/* these are for tree view when not used as main index */ +.directory-alt { + font-size: 100%; + font-weight: bold; +} +.directory-alt h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} +.directory-alt > h3 { + margin-top: 0; +} +.directory-alt p { + margin: 0px; + white-space: nowrap; +} +.directory-alt div { + display: none; + margin: 0px; +} +.directory-alt img { + vertical-align: -30%; +} + diff --git a/doc/doxygen/doxygen.png b/doc/doxygen/doxygen.png new file mode 100644 index 0000000..f0a274b Binary files /dev/null and b/doc/doxygen/doxygen.png differ diff --git a/doc/doxygen/files.html b/doc/doxygen/files.html new file mode 100644 index 0000000..027d4a7 --- /dev/null +++ b/doc/doxygen/files.html @@ -0,0 +1,33 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: File Index</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li class="current"><a href="files.html"><span>File List</span></a></li> + <li><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +<h1>File List</h1>Here is a list of all files with brief descriptions:<table> + <tr><td class="indexkey">/home/taku/proj/crfpp/<a class="el" href="crfpp_8h.html">crfpp.h</a> <a href="crfpp_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr> +</table> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/functions.html b/doc/doxygen/functions.html new file mode 100644 index 0000000..9cda11d --- /dev/null +++ b/doc/doxygen/functions.html @@ -0,0 +1,169 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: Class Members</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li class="current"><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="annotated.html"><span>Class List</span></a></li> + <li class="current"><a href="functions.html"><span>Class Members</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li class="current"><a href="functions.html"><span>All</span></a></li> + <li><a href="functions_func.html"><span>Functions</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="#index_a"><span>a</span></a></li> + <li><a href="#index_b"><span>b</span></a></li> + <li><a href="#index_c"><span>c</span></a></li> + <li><a href="#index_d"><span>d</span></a></li> + <li><a href="#index_e"><span>e</span></a></li> + <li><a href="#index_n"><span>n</span></a></li> + <li><a href="#index_o"><span>o</span></a></li> + <li><a href="#index_p"><span>p</span></a></li> + <li><a href="#index_r"><span>r</span></a></li> + <li><a href="#index_s"><span>s</span></a></li> + <li><a href="#index_t"><span>t</span></a></li> + <li><a href="#index_v"><span>v</span></a></li> + <li><a href="#index_w"><span>w</span></a></li> + <li><a href="#index_x"><span>x</span></a></li> + <li><a href="#index_y"><span>y</span></a></li> + <li><a href="#index_z"><span>z</span></a></li> + <li><a href="#index_~"><span>~</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +Here is a list of all class members with links to the classes they belong to: +<p> +<h3><a class="anchor" name="index_a">- a -</a></h3><ul> +<li>add() +: <a class="el" href="classCRFPP_1_1Tagger.html#085a5e47c96dfea16ca2fa1b917532f6">CRFPP::Tagger</a> +<li>alpha() +: <a class="el" href="classCRFPP_1_1Tagger.html#0fd1381e54737522383e3345d0460946">CRFPP::Tagger</a> +<li>answer() +: <a class="el" href="classCRFPP_1_1Tagger.html#cb0a26699ae23f463b5d7a8d844a8941">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_b">- b -</a></h3><ul> +<li>best_cost() +: <a class="el" href="classCRFPP_1_1Tagger.html#39b2762fc466abf4d63c9c7273c92dcc">CRFPP::Tagger</a> +<li>beta() +: <a class="el" href="classCRFPP_1_1Tagger.html#98e054a8f5fb2eeb629fa2d7067aae25">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_c">- c -</a></h3><ul> +<li>clear() +: <a class="el" href="classCRFPP_1_1Tagger.html#c59a9a7b99503c282cd8dc529c9311f7">CRFPP::Tagger</a> +<li>close() +: <a class="el" href="classCRFPP_1_1Tagger.html#17d23a6de9ae9dac536c98cca32a7f01">CRFPP::Tagger</a> +<li>cost_factor() +: <a class="el" href="classCRFPP_1_1Tagger.html#4ac9f6bbfad372e4594960c7c7ce568c">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_d">- d -</a></h3><ul> +<li>dsize() +: <a class="el" href="classCRFPP_1_1Tagger.html#141878c42290862182f5df5023348763">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_e">- e -</a></h3><ul> +<li>emission_cost() +: <a class="el" href="classCRFPP_1_1Tagger.html#1a8e45d675a38a7f5c3075c39c2ee2fb">CRFPP::Tagger</a> +<li>emission_vector() +: <a class="el" href="classCRFPP_1_1Tagger.html#4f5172db2d33c2d16a71989486750299">CRFPP::Tagger</a> +<li>empty() +: <a class="el" href="classCRFPP_1_1Tagger.html#938183f7d5e5f470efe58bf2aae7dbdd">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_n">- n -</a></h3><ul> +<li>nbest() +: <a class="el" href="classCRFPP_1_1Tagger.html#7b5de55779ac461bea10a250e2c932cc">CRFPP::Tagger</a> +<li>next() +: <a class="el" href="classCRFPP_1_1Tagger.html#137d7523294d05773a5dd26f60dce73c">CRFPP::Tagger</a> +<li>next_transition_cost() +: <a class="el" href="classCRFPP_1_1Tagger.html#2327ce0f0be365a8e3b2df6bd14d223a">CRFPP::Tagger</a> +<li>next_transition_vector() +: <a class="el" href="classCRFPP_1_1Tagger.html#faba05159548ba5427088dc45f7cfde0">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_o">- o -</a></h3><ul> +<li>open() +: <a class="el" href="classCRFPP_1_1Tagger.html#64a7abe75bc6d41df69ad1862c3d73a0">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_p">- p -</a></h3><ul> +<li>parse() +: <a class="el" href="classCRFPP_1_1Tagger.html#195868fcd1d7e7e9dfc6f802ad32d2e7">CRFPP::Tagger</a> +<li>prev_transition_cost() +: <a class="el" href="classCRFPP_1_1Tagger.html#6b68c088ce371e4bcb9973bc09f793d5">CRFPP::Tagger</a> +<li>prev_transition_vector() +: <a class="el" href="classCRFPP_1_1Tagger.html#4188eeb78469823e096986440b8ca87a">CRFPP::Tagger</a> +<li>prob() +: <a class="el" href="classCRFPP_1_1Tagger.html#4dc84e06429db05a60fa6092ee992728">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_r">- r -</a></h3><ul> +<li>result() +: <a class="el" href="classCRFPP_1_1Tagger.html#64474629e38769c9b103b6680a5cebbd">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_s">- s -</a></h3><ul> +<li>set_cost_factor() +: <a class="el" href="classCRFPP_1_1Tagger.html#d2d6c8e09a5215de7b428633d7ffa7fa">CRFPP::Tagger</a> +<li>set_nbest() +: <a class="el" href="classCRFPP_1_1Tagger.html#83b6bda1a107819b560047ba22216d78">CRFPP::Tagger</a> +<li>set_vlevel() +: <a class="el" href="classCRFPP_1_1Tagger.html#f729184ba777adec3cc48c717739e79a">CRFPP::Tagger</a> +<li>size() +: <a class="el" href="classCRFPP_1_1Tagger.html#0bb307faa0e68f71ca1bb6a992bc01e4">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_t">- t -</a></h3><ul> +<li>toString() +: <a class="el" href="classCRFPP_1_1Tagger.html#0f00cbcf6b9486e177f3064ef1b5e275">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_v">- v -</a></h3><ul> +<li>vlevel() +: <a class="el" href="classCRFPP_1_1Tagger.html#2c7e75615ca8d666da146be1b3570098">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_w">- w -</a></h3><ul> +<li>weight_vector() +: <a class="el" href="classCRFPP_1_1Tagger.html#b87c8c13cb0efcfaa7b6a6d1f1b75f33">CRFPP::Tagger</a> +<li>what() +: <a class="el" href="classCRFPP_1_1Tagger.html#a8fdb0f9b6ddeff642e828831ade7aba">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_x">- x -</a></h3><ul> +<li>x() +: <a class="el" href="classCRFPP_1_1Tagger.html#f10eeb55a0465e553f99fb83191fd6cc">CRFPP::Tagger</a> +<li>xsize() +: <a class="el" href="classCRFPP_1_1Tagger.html#31403e849acb03bc109367f03f052ec3">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_y">- y -</a></h3><ul> +<li>y() +: <a class="el" href="classCRFPP_1_1Tagger.html#89885d85c0914160fb43fa4d80a2f73d">CRFPP::Tagger</a> +<li>y2() +: <a class="el" href="classCRFPP_1_1Tagger.html#4a08dac43a80be3ba79fd08cf52fa228">CRFPP::Tagger</a> +<li>yname() +: <a class="el" href="classCRFPP_1_1Tagger.html#92351d6e270ad6897986e8c9898240b8">CRFPP::Tagger</a> +<li>ysize() +: <a class="el" href="classCRFPP_1_1Tagger.html#00d8320a6d642291aa3c2cce5d37ed8a">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_z">- z -</a></h3><ul> +<li>Z() +: <a class="el" href="classCRFPP_1_1Tagger.html#70578008d83778a53800227002f0e4e5">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_~">- ~ -</a></h3><ul> +<li>~Tagger() +: <a class="el" href="classCRFPP_1_1Tagger.html#952aec420a7e26c35dc94c47132dd955">CRFPP::Tagger</a> +</ul> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/functions_func.html b/doc/doxygen/functions_func.html new file mode 100644 index 0000000..c425e1c --- /dev/null +++ b/doc/doxygen/functions_func.html @@ -0,0 +1,169 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: Class Members - Functions</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li class="current"><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="annotated.html"><span>Class List</span></a></li> + <li class="current"><a href="functions.html"><span>Class Members</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="functions.html"><span>All</span></a></li> + <li class="current"><a href="functions_func.html"><span>Functions</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="#index_a"><span>a</span></a></li> + <li><a href="#index_b"><span>b</span></a></li> + <li><a href="#index_c"><span>c</span></a></li> + <li><a href="#index_d"><span>d</span></a></li> + <li><a href="#index_e"><span>e</span></a></li> + <li><a href="#index_n"><span>n</span></a></li> + <li><a href="#index_o"><span>o</span></a></li> + <li><a href="#index_p"><span>p</span></a></li> + <li><a href="#index_r"><span>r</span></a></li> + <li><a href="#index_s"><span>s</span></a></li> + <li><a href="#index_t"><span>t</span></a></li> + <li><a href="#index_v"><span>v</span></a></li> + <li><a href="#index_w"><span>w</span></a></li> + <li><a href="#index_x"><span>x</span></a></li> + <li><a href="#index_y"><span>y</span></a></li> + <li><a href="#index_z"><span>z</span></a></li> + <li><a href="#index_~"><span>~</span></a></li> + </ul> + </div> +</div> +<div class="contents"> + +<p> +<h3><a class="anchor" name="index_a">- a -</a></h3><ul> +<li>add() +: <a class="el" href="classCRFPP_1_1Tagger.html#085a5e47c96dfea16ca2fa1b917532f6">CRFPP::Tagger</a> +<li>alpha() +: <a class="el" href="classCRFPP_1_1Tagger.html#0fd1381e54737522383e3345d0460946">CRFPP::Tagger</a> +<li>answer() +: <a class="el" href="classCRFPP_1_1Tagger.html#cb0a26699ae23f463b5d7a8d844a8941">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_b">- b -</a></h3><ul> +<li>best_cost() +: <a class="el" href="classCRFPP_1_1Tagger.html#39b2762fc466abf4d63c9c7273c92dcc">CRFPP::Tagger</a> +<li>beta() +: <a class="el" href="classCRFPP_1_1Tagger.html#98e054a8f5fb2eeb629fa2d7067aae25">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_c">- c -</a></h3><ul> +<li>clear() +: <a class="el" href="classCRFPP_1_1Tagger.html#c59a9a7b99503c282cd8dc529c9311f7">CRFPP::Tagger</a> +<li>close() +: <a class="el" href="classCRFPP_1_1Tagger.html#17d23a6de9ae9dac536c98cca32a7f01">CRFPP::Tagger</a> +<li>cost_factor() +: <a class="el" href="classCRFPP_1_1Tagger.html#4ac9f6bbfad372e4594960c7c7ce568c">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_d">- d -</a></h3><ul> +<li>dsize() +: <a class="el" href="classCRFPP_1_1Tagger.html#141878c42290862182f5df5023348763">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_e">- e -</a></h3><ul> +<li>emission_cost() +: <a class="el" href="classCRFPP_1_1Tagger.html#1a8e45d675a38a7f5c3075c39c2ee2fb">CRFPP::Tagger</a> +<li>emission_vector() +: <a class="el" href="classCRFPP_1_1Tagger.html#4f5172db2d33c2d16a71989486750299">CRFPP::Tagger</a> +<li>empty() +: <a class="el" href="classCRFPP_1_1Tagger.html#938183f7d5e5f470efe58bf2aae7dbdd">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_n">- n -</a></h3><ul> +<li>nbest() +: <a class="el" href="classCRFPP_1_1Tagger.html#7b5de55779ac461bea10a250e2c932cc">CRFPP::Tagger</a> +<li>next() +: <a class="el" href="classCRFPP_1_1Tagger.html#137d7523294d05773a5dd26f60dce73c">CRFPP::Tagger</a> +<li>next_transition_cost() +: <a class="el" href="classCRFPP_1_1Tagger.html#2327ce0f0be365a8e3b2df6bd14d223a">CRFPP::Tagger</a> +<li>next_transition_vector() +: <a class="el" href="classCRFPP_1_1Tagger.html#faba05159548ba5427088dc45f7cfde0">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_o">- o -</a></h3><ul> +<li>open() +: <a class="el" href="classCRFPP_1_1Tagger.html#64a7abe75bc6d41df69ad1862c3d73a0">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_p">- p -</a></h3><ul> +<li>parse() +: <a class="el" href="classCRFPP_1_1Tagger.html#195868fcd1d7e7e9dfc6f802ad32d2e7">CRFPP::Tagger</a> +<li>prev_transition_cost() +: <a class="el" href="classCRFPP_1_1Tagger.html#6b68c088ce371e4bcb9973bc09f793d5">CRFPP::Tagger</a> +<li>prev_transition_vector() +: <a class="el" href="classCRFPP_1_1Tagger.html#4188eeb78469823e096986440b8ca87a">CRFPP::Tagger</a> +<li>prob() +: <a class="el" href="classCRFPP_1_1Tagger.html#4dc84e06429db05a60fa6092ee992728">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_r">- r -</a></h3><ul> +<li>result() +: <a class="el" href="classCRFPP_1_1Tagger.html#64474629e38769c9b103b6680a5cebbd">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_s">- s -</a></h3><ul> +<li>set_cost_factor() +: <a class="el" href="classCRFPP_1_1Tagger.html#d2d6c8e09a5215de7b428633d7ffa7fa">CRFPP::Tagger</a> +<li>set_nbest() +: <a class="el" href="classCRFPP_1_1Tagger.html#83b6bda1a107819b560047ba22216d78">CRFPP::Tagger</a> +<li>set_vlevel() +: <a class="el" href="classCRFPP_1_1Tagger.html#f729184ba777adec3cc48c717739e79a">CRFPP::Tagger</a> +<li>size() +: <a class="el" href="classCRFPP_1_1Tagger.html#0bb307faa0e68f71ca1bb6a992bc01e4">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_t">- t -</a></h3><ul> +<li>toString() +: <a class="el" href="classCRFPP_1_1Tagger.html#0f00cbcf6b9486e177f3064ef1b5e275">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_v">- v -</a></h3><ul> +<li>vlevel() +: <a class="el" href="classCRFPP_1_1Tagger.html#2c7e75615ca8d666da146be1b3570098">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_w">- w -</a></h3><ul> +<li>weight_vector() +: <a class="el" href="classCRFPP_1_1Tagger.html#b87c8c13cb0efcfaa7b6a6d1f1b75f33">CRFPP::Tagger</a> +<li>what() +: <a class="el" href="classCRFPP_1_1Tagger.html#a8fdb0f9b6ddeff642e828831ade7aba">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_x">- x -</a></h3><ul> +<li>x() +: <a class="el" href="classCRFPP_1_1Tagger.html#f10eeb55a0465e553f99fb83191fd6cc">CRFPP::Tagger</a> +<li>xsize() +: <a class="el" href="classCRFPP_1_1Tagger.html#31403e849acb03bc109367f03f052ec3">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_y">- y -</a></h3><ul> +<li>y() +: <a class="el" href="classCRFPP_1_1Tagger.html#89885d85c0914160fb43fa4d80a2f73d">CRFPP::Tagger</a> +<li>y2() +: <a class="el" href="classCRFPP_1_1Tagger.html#4a08dac43a80be3ba79fd08cf52fa228">CRFPP::Tagger</a> +<li>yname() +: <a class="el" href="classCRFPP_1_1Tagger.html#92351d6e270ad6897986e8c9898240b8">CRFPP::Tagger</a> +<li>ysize() +: <a class="el" href="classCRFPP_1_1Tagger.html#00d8320a6d642291aa3c2cce5d37ed8a">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_z">- z -</a></h3><ul> +<li>Z() +: <a class="el" href="classCRFPP_1_1Tagger.html#70578008d83778a53800227002f0e4e5">CRFPP::Tagger</a> +</ul> +<h3><a class="anchor" name="index_~">- ~ -</a></h3><ul> +<li>~Tagger() +: <a class="el" href="classCRFPP_1_1Tagger.html#952aec420a7e26c35dc94c47132dd955">CRFPP::Tagger</a> +</ul> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/globals.html b/doc/doxygen/globals.html new file mode 100644 index 0000000..21da549 --- /dev/null +++ b/doc/doxygen/globals.html @@ -0,0 +1,142 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: Class Members</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="files.html"><span>File List</span></a></li> + <li class="current"><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li class="current"><a href="globals.html"><span>All</span></a></li> + <li><a href="globals_func.html"><span>Functions</span></a></li> + <li><a href="globals_type.html"><span>Typedefs</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="#index_c"><span>c</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +Here is a list of all file members with links to the files they belong to: +<p> +<h3><a class="anchor" name="index_c">- c -</a></h3><ul> +<li>crfpp_add() +: <a class="el" href="crfpp_8h.html#c2522fb65d719bd6aa8bc84724b83789">crfpp.h</a> +<li>crfpp_add2() +: <a class="el" href="crfpp_8h.html#dd48b76903be573dfa8f75615a1a0ec0">crfpp.h</a> +<li>crfpp_alpha() +: <a class="el" href="crfpp_8h.html#c8341b2ece6eff9d74ccadbfd25d896b">crfpp.h</a> +<li>crfpp_answer() +: <a class="el" href="crfpp_8h.html#0e4f32071bda760f8dee21fe6896160f">crfpp.h</a> +<li>crfpp_best_cost() +: <a class="el" href="crfpp_8h.html#0ac978c86fedbeec7ddb43a9608f845d">crfpp.h</a> +<li>crfpp_beta() +: <a class="el" href="crfpp_8h.html#299db7d1303ce19c502704fe10d4572a">crfpp.h</a> +<li>crfpp_clear() +: <a class="el" href="crfpp_8h.html#a1a01c7cf278efbce47ce335a4d41cfb">crfpp.h</a> +<li>crfpp_cost_factor() +: <a class="el" href="crfpp_8h.html#e846df1fd9e207c4fca788c9bc17f1e9">crfpp.h</a> +<li>crfpp_destroy() +: <a class="el" href="crfpp_8h.html#da0c189dcb1005259b3264fb209c3200">crfpp.h</a> +<li>crfpp_dsize() +: <a class="el" href="crfpp_8h.html#cd3974a71151a3f6a0cd4ddc12c5d3ab">crfpp.h</a> +<li>crfpp_emisstion_cost() +: <a class="el" href="crfpp_8h.html#56ce83f63d1d793347258a7bef732f24">crfpp.h</a> +<li>crfpp_emittion_vector() +: <a class="el" href="crfpp_8h.html#bd3ca40910819acba3d8083740b1a850">crfpp.h</a> +<li>crfpp_empty() +: <a class="el" href="crfpp_8h.html#85968024efce5f3abd93edeb88b095c1">crfpp.h</a> +<li>crfpp_learn() +: <a class="el" href="crfpp_8h.html#3a6ad1fb5f31d9b483cc02c1e3fde825">crfpp.h</a> +<li>crfpp_new() +: <a class="el" href="crfpp_8h.html#47eeae65e19b67575ee7d4337e3cd4cc">crfpp.h</a> +<li>crfpp_new2() +: <a class="el" href="crfpp_8h.html#c316670dc1e5b0eb8234897677a106d0">crfpp.h</a> +<li>crfpp_next() +: <a class="el" href="crfpp_8h.html#5385cf04fdf4949d06ba2ead4c431f74">crfpp.h</a> +<li>crfpp_next_transition_cost() +: <a class="el" href="crfpp_8h.html#13f8c29d09051ac3c1655cd07b57f494">crfpp.h</a> +<li>crfpp_next_transition_vector() +: <a class="el" href="crfpp_8h.html#19a39a5b6583b3e9269a2c5192818d83">crfpp.h</a> +<li>crfpp_parse() +: <a class="el" href="crfpp_8h.html#ef138756beacc0e7cfd15174adf8501c">crfpp.h</a> +<li>crfpp_parse_tostr() +: <a class="el" href="crfpp_8h.html#b5abd8020d58e01473c7cd754eab4406">crfpp.h</a> +<li>crfpp_parse_tostr2() +: <a class="el" href="crfpp_8h.html#9248ed418cc9634d69766b06acf168af">crfpp.h</a> +<li>crfpp_parse_tostr3() +: <a class="el" href="crfpp_8h.html#173f9454c961189bdea1da8d37b68103">crfpp.h</a> +<li>crfpp_prev_transition_cost() +: <a class="el" href="crfpp_8h.html#997c64c98ca9631394983b023082d1ae">crfpp.h</a> +<li>crfpp_prev_transition_vector() +: <a class="el" href="crfpp_8h.html#dc0fb25629038b6f744e005f9b7d7c04">crfpp.h</a> +<li>crfpp_prob() +: <a class="el" href="crfpp_8h.html#bae8663e259f6880ff5cc93e9c2793b4">crfpp.h</a> +<li>crfpp_prob2() +: <a class="el" href="crfpp_8h.html#4171bbea58da7f4dd2736f1146061219">crfpp.h</a> +<li>crfpp_prob3() +: <a class="el" href="crfpp_8h.html#ffc7ffda4245d788903df38cb6e936c1">crfpp.h</a> +<li>crfpp_result() +: <a class="el" href="crfpp_8h.html#8a31211011b255a77d5124353df027d7">crfpp.h</a> +<li>crfpp_set_cost_factor() +: <a class="el" href="crfpp_8h.html#406e63ff6f4b5214a10a714d9afb7376">crfpp.h</a> +<li>crfpp_set_nbest() +: <a class="el" href="crfpp_8h.html#1122f31df4d3673108e0757353c38c01">crfpp.h</a> +<li>crfpp_set_vlevel() +: <a class="el" href="crfpp_8h.html#e22f8ef16983820243e0e925c715649c">crfpp.h</a> +<li>crfpp_size() +: <a class="el" href="crfpp_8h.html#b64059a5606297381c64f34456681bfc">crfpp.h</a> +<li>crfpp_strerror() +: <a class="el" href="crfpp_8h.html#b9809a67da577a17281bd0de7d2e0820">crfpp.h</a> +<li>crfpp_t +: <a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp.h</a> +<li>crfpp_test() +: <a class="el" href="crfpp_8h.html#e344d7e5857c8baed9cd2ca1ff166c8f">crfpp.h</a> +<li>crfpp_tostr() +: <a class="el" href="crfpp_8h.html#ca204ed779752c741b045147be249fdf">crfpp.h</a> +<li>crfpp_tostr2() +: <a class="el" href="crfpp_8h.html#6b5ff87ab448e4128aab974f599fc8a8">crfpp.h</a> +<li>crfpp_vlevel() +: <a class="el" href="crfpp_8h.html#4120d4de8fdc620ca6472f2aba2f2678">crfpp.h</a> +<li>crfpp_weight_vector() +: <a class="el" href="crfpp_8h.html#1150d5c6d46a876a75cee41c85fd58fe">crfpp.h</a> +<li>crfpp_x() +: <a class="el" href="crfpp_8h.html#abf9208da152d75620153ea34a3f8feb">crfpp.h</a> +<li>crfpp_x2() +: <a class="el" href="crfpp_8h.html#6569643c80d2d21967708ea13550669c">crfpp.h</a> +<li>crfpp_xsize() +: <a class="el" href="crfpp_8h.html#4571ede590c1bbbf63a3bd81dc2e40af">crfpp.h</a> +<li>crfpp_y() +: <a class="el" href="crfpp_8h.html#f03bfbc697ebe02a6af33520b4f00bc9">crfpp.h</a> +<li>crfpp_y2() +: <a class="el" href="crfpp_8h.html#0d4e595c4a711e074f3e202915804eb3">crfpp.h</a> +<li>crfpp_yname() +: <a class="el" href="crfpp_8h.html#781e91b694aa9d200883b423c65b2547">crfpp.h</a> +<li>crfpp_ysize() +: <a class="el" href="crfpp_8h.html#9df5c9b61b09173d16382a71b686878c">crfpp.h</a> +<li>crfpp_Z() +: <a class="el" href="crfpp_8h.html#298837d730e31a2f67691b9df47cbe7a">crfpp.h</a> +</ul> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/globals_func.html b/doc/doxygen/globals_func.html new file mode 100644 index 0000000..84b592e --- /dev/null +++ b/doc/doxygen/globals_func.html @@ -0,0 +1,140 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: Class Members</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="files.html"><span>File List</span></a></li> + <li class="current"><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="globals.html"><span>All</span></a></li> + <li class="current"><a href="globals_func.html"><span>Functions</span></a></li> + <li><a href="globals_type.html"><span>Typedefs</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="#index_c"><span>c</span></a></li> + </ul> + </div> +</div> +<div class="contents"> + +<p> +<h3><a class="anchor" name="index_c">- c -</a></h3><ul> +<li>crfpp_add() +: <a class="el" href="crfpp_8h.html#c2522fb65d719bd6aa8bc84724b83789">crfpp.h</a> +<li>crfpp_add2() +: <a class="el" href="crfpp_8h.html#dd48b76903be573dfa8f75615a1a0ec0">crfpp.h</a> +<li>crfpp_alpha() +: <a class="el" href="crfpp_8h.html#c8341b2ece6eff9d74ccadbfd25d896b">crfpp.h</a> +<li>crfpp_answer() +: <a class="el" href="crfpp_8h.html#0e4f32071bda760f8dee21fe6896160f">crfpp.h</a> +<li>crfpp_best_cost() +: <a class="el" href="crfpp_8h.html#0ac978c86fedbeec7ddb43a9608f845d">crfpp.h</a> +<li>crfpp_beta() +: <a class="el" href="crfpp_8h.html#299db7d1303ce19c502704fe10d4572a">crfpp.h</a> +<li>crfpp_clear() +: <a class="el" href="crfpp_8h.html#a1a01c7cf278efbce47ce335a4d41cfb">crfpp.h</a> +<li>crfpp_cost_factor() +: <a class="el" href="crfpp_8h.html#e846df1fd9e207c4fca788c9bc17f1e9">crfpp.h</a> +<li>crfpp_destroy() +: <a class="el" href="crfpp_8h.html#da0c189dcb1005259b3264fb209c3200">crfpp.h</a> +<li>crfpp_dsize() +: <a class="el" href="crfpp_8h.html#cd3974a71151a3f6a0cd4ddc12c5d3ab">crfpp.h</a> +<li>crfpp_emisstion_cost() +: <a class="el" href="crfpp_8h.html#56ce83f63d1d793347258a7bef732f24">crfpp.h</a> +<li>crfpp_emittion_vector() +: <a class="el" href="crfpp_8h.html#bd3ca40910819acba3d8083740b1a850">crfpp.h</a> +<li>crfpp_empty() +: <a class="el" href="crfpp_8h.html#85968024efce5f3abd93edeb88b095c1">crfpp.h</a> +<li>crfpp_learn() +: <a class="el" href="crfpp_8h.html#3a6ad1fb5f31d9b483cc02c1e3fde825">crfpp.h</a> +<li>crfpp_new() +: <a class="el" href="crfpp_8h.html#47eeae65e19b67575ee7d4337e3cd4cc">crfpp.h</a> +<li>crfpp_new2() +: <a class="el" href="crfpp_8h.html#c316670dc1e5b0eb8234897677a106d0">crfpp.h</a> +<li>crfpp_next() +: <a class="el" href="crfpp_8h.html#5385cf04fdf4949d06ba2ead4c431f74">crfpp.h</a> +<li>crfpp_next_transition_cost() +: <a class="el" href="crfpp_8h.html#13f8c29d09051ac3c1655cd07b57f494">crfpp.h</a> +<li>crfpp_next_transition_vector() +: <a class="el" href="crfpp_8h.html#19a39a5b6583b3e9269a2c5192818d83">crfpp.h</a> +<li>crfpp_parse() +: <a class="el" href="crfpp_8h.html#ef138756beacc0e7cfd15174adf8501c">crfpp.h</a> +<li>crfpp_parse_tostr() +: <a class="el" href="crfpp_8h.html#b5abd8020d58e01473c7cd754eab4406">crfpp.h</a> +<li>crfpp_parse_tostr2() +: <a class="el" href="crfpp_8h.html#9248ed418cc9634d69766b06acf168af">crfpp.h</a> +<li>crfpp_parse_tostr3() +: <a class="el" href="crfpp_8h.html#173f9454c961189bdea1da8d37b68103">crfpp.h</a> +<li>crfpp_prev_transition_cost() +: <a class="el" href="crfpp_8h.html#997c64c98ca9631394983b023082d1ae">crfpp.h</a> +<li>crfpp_prev_transition_vector() +: <a class="el" href="crfpp_8h.html#dc0fb25629038b6f744e005f9b7d7c04">crfpp.h</a> +<li>crfpp_prob() +: <a class="el" href="crfpp_8h.html#bae8663e259f6880ff5cc93e9c2793b4">crfpp.h</a> +<li>crfpp_prob2() +: <a class="el" href="crfpp_8h.html#4171bbea58da7f4dd2736f1146061219">crfpp.h</a> +<li>crfpp_prob3() +: <a class="el" href="crfpp_8h.html#ffc7ffda4245d788903df38cb6e936c1">crfpp.h</a> +<li>crfpp_result() +: <a class="el" href="crfpp_8h.html#8a31211011b255a77d5124353df027d7">crfpp.h</a> +<li>crfpp_set_cost_factor() +: <a class="el" href="crfpp_8h.html#406e63ff6f4b5214a10a714d9afb7376">crfpp.h</a> +<li>crfpp_set_nbest() +: <a class="el" href="crfpp_8h.html#1122f31df4d3673108e0757353c38c01">crfpp.h</a> +<li>crfpp_set_vlevel() +: <a class="el" href="crfpp_8h.html#e22f8ef16983820243e0e925c715649c">crfpp.h</a> +<li>crfpp_size() +: <a class="el" href="crfpp_8h.html#b64059a5606297381c64f34456681bfc">crfpp.h</a> +<li>crfpp_strerror() +: <a class="el" href="crfpp_8h.html#b9809a67da577a17281bd0de7d2e0820">crfpp.h</a> +<li>crfpp_test() +: <a class="el" href="crfpp_8h.html#e344d7e5857c8baed9cd2ca1ff166c8f">crfpp.h</a> +<li>crfpp_tostr() +: <a class="el" href="crfpp_8h.html#ca204ed779752c741b045147be249fdf">crfpp.h</a> +<li>crfpp_tostr2() +: <a class="el" href="crfpp_8h.html#6b5ff87ab448e4128aab974f599fc8a8">crfpp.h</a> +<li>crfpp_vlevel() +: <a class="el" href="crfpp_8h.html#4120d4de8fdc620ca6472f2aba2f2678">crfpp.h</a> +<li>crfpp_weight_vector() +: <a class="el" href="crfpp_8h.html#1150d5c6d46a876a75cee41c85fd58fe">crfpp.h</a> +<li>crfpp_x() +: <a class="el" href="crfpp_8h.html#abf9208da152d75620153ea34a3f8feb">crfpp.h</a> +<li>crfpp_x2() +: <a class="el" href="crfpp_8h.html#6569643c80d2d21967708ea13550669c">crfpp.h</a> +<li>crfpp_xsize() +: <a class="el" href="crfpp_8h.html#4571ede590c1bbbf63a3bd81dc2e40af">crfpp.h</a> +<li>crfpp_y() +: <a class="el" href="crfpp_8h.html#f03bfbc697ebe02a6af33520b4f00bc9">crfpp.h</a> +<li>crfpp_y2() +: <a class="el" href="crfpp_8h.html#0d4e595c4a711e074f3e202915804eb3">crfpp.h</a> +<li>crfpp_yname() +: <a class="el" href="crfpp_8h.html#781e91b694aa9d200883b423c65b2547">crfpp.h</a> +<li>crfpp_ysize() +: <a class="el" href="crfpp_8h.html#9df5c9b61b09173d16382a71b686878c">crfpp.h</a> +<li>crfpp_Z() +: <a class="el" href="crfpp_8h.html#298837d730e31a2f67691b9df47cbe7a">crfpp.h</a> +</ul> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/globals_type.html b/doc/doxygen/globals_type.html new file mode 100644 index 0000000..074403a --- /dev/null +++ b/doc/doxygen/globals_type.html @@ -0,0 +1,43 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: Class Members</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li class="current"><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="files.html"><span>File List</span></a></li> + <li class="current"><a href="globals.html"><span>File Members</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="globals.html"><span>All</span></a></li> + <li><a href="globals_func.html"><span>Functions</span></a></li> + <li class="current"><a href="globals_type.html"><span>Typedefs</span></a></li> + </ul> + </div> +</div> +<div class="contents"> + +<p> +<ul> +<li>crfpp_t +: <a class="el" href="crfpp_8h.html#513ea0b9519c24b6c1797d74c2202e51">crfpp.h</a> +</ul> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/index.html b/doc/doxygen/index.html new file mode 100644 index 0000000..83f3542 --- /dev/null +++ b/doc/doxygen/index.html @@ -0,0 +1,26 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: Main Page</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li class="current"><a href="index.html"><span>Main Page</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +<h1>CRF++ Documentation</h1> +<p> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/namespaceCRFPP.html b/doc/doxygen/namespaceCRFPP.html new file mode 100644 index 0000000..9e662db --- /dev/null +++ b/doc/doxygen/namespaceCRFPP.html @@ -0,0 +1,114 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: CRFPP Namespace Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="namespaces.html"><span>Namespace List</span></a></li> + <li><a href="namespacemembers.html"><span>Namespace Members</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +<h1>CRFPP Namespace Reference</h1> +<p> +<table border="0" cellpadding="0" cellspacing="0"> +<tr><td></td></tr> +<tr><td colspan="2"><br><h2>Classes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classCRFPP_1_1Tagger.html">Tagger</a></td></tr> + +<tr><td colspan="2"><br><h2>Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN <a class="el" href="classCRFPP_1_1Tagger.html">Tagger</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCRFPP.html#30aed044aeffde3a6ac36db925f2fa90">createTagger</a> (int argc, char **argv)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN <a class="el" href="classCRFPP_1_1Tagger.html">Tagger</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCRFPP.html#e1b8f8e529e7e886a9f0e1b14c0e3809">createTagger</a> (const char *arg)</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top">CRFPP_DLL_EXTERN const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceCRFPP.html#4ea358d9f0b666ff13a1553e79a98777">getTaggerError</a> ()</td></tr> + +</table> +<hr><h2>Function Documentation</h2> +<a class="anchor" name="e1b8f8e529e7e886a9f0e1b14c0e3809"></a><!-- doxytag: member="CRFPP::createTagger" ref="e1b8f8e529e7e886a9f0e1b14c0e3809" args="(const char *arg)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN <a class="el" href="classCRFPP_1_1Tagger.html">Tagger</a>* CRFPP::createTagger </td> + <td>(</td> + <td class="paramtype">const char * </td> + <td class="paramname"> <em>arg</em> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="30aed044aeffde3a6ac36db925f2fa90"></a><!-- doxytag: member="CRFPP::createTagger" ref="30aed044aeffde3a6ac36db925f2fa90" args="(int argc, char **argv)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN <a class="el" href="classCRFPP_1_1Tagger.html">Tagger</a>* CRFPP::createTagger </td> + <td>(</td> + <td class="paramtype">int </td> + <td class="paramname"> <em>argc</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">char ** </td> + <td class="paramname"> <em>argv</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="4ea358d9f0b666ff13a1553e79a98777"></a><!-- doxytag: member="CRFPP::getTaggerError" ref="4ea358d9f0b666ff13a1553e79a98777" args="()" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">CRFPP_DLL_EXTERN const char* CRFPP::getTaggerError </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/namespacemembers.html b/doc/doxygen/namespacemembers.html new file mode 100644 index 0000000..ffc016a --- /dev/null +++ b/doc/doxygen/namespacemembers.html @@ -0,0 +1,44 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: Class Members</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="namespaces.html"><span>Namespace List</span></a></li> + <li class="current"><a href="namespacemembers.html"><span>Namespace Members</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li class="current"><a href="namespacemembers.html"><span>All</span></a></li> + <li><a href="namespacemembers_func.html"><span>Functions</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +Here is a list of all namespace members with links to the namespace documentation for each member: +<p> +<ul> +<li>createTagger() +: <a class="el" href="namespaceCRFPP.html#30aed044aeffde3a6ac36db925f2fa90">CRFPP</a> +<li>getTaggerError() +: <a class="el" href="namespaceCRFPP.html#4ea358d9f0b666ff13a1553e79a98777">CRFPP</a> +</ul> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/namespacemembers_func.html b/doc/doxygen/namespacemembers_func.html new file mode 100644 index 0000000..8070d8d --- /dev/null +++ b/doc/doxygen/namespacemembers_func.html @@ -0,0 +1,44 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: Class Members</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="namespaces.html"><span>Namespace List</span></a></li> + <li class="current"><a href="namespacemembers.html"><span>Namespace Members</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="namespacemembers.html"><span>All</span></a></li> + <li class="current"><a href="namespacemembers_func.html"><span>Functions</span></a></li> + </ul> + </div> +</div> +<div class="contents"> + +<p> +<ul> +<li>createTagger() +: <a class="el" href="namespaceCRFPP.html#30aed044aeffde3a6ac36db925f2fa90">CRFPP</a> +<li>getTaggerError() +: <a class="el" href="namespaceCRFPP.html#4ea358d9f0b666ff13a1553e79a98777">CRFPP</a> +</ul> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/namespaces.html b/doc/doxygen/namespaces.html new file mode 100644 index 0000000..35dbe4b --- /dev/null +++ b/doc/doxygen/namespaces.html @@ -0,0 +1,33 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>CRF++: Namespace Index</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +<link href="tabs.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.6 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li> + <li><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li class="current"><a href="namespaces.html"><span>Namespace List</span></a></li> + <li><a href="namespacemembers.html"><span>Namespace Members</span></a></li> + </ul> + </div> +</div> +<div class="contents"> +<h1>Namespace List</h1>Here is a list of all namespaces with brief descriptions:<table> + <tr><td class="indexkey"><a class="el" href="namespaceCRFPP.html">CRFPP</a></td><td class="indexvalue"></td></tr> +</table> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Sun Apr 19 17:43:24 2009 for CRF++ by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> +</body> +</html> diff --git a/doc/doxygen/tab_b.gif b/doc/doxygen/tab_b.gif new file mode 100644 index 0000000..0d62348 Binary files /dev/null and b/doc/doxygen/tab_b.gif differ diff --git a/doc/doxygen/tab_l.gif b/doc/doxygen/tab_l.gif new file mode 100644 index 0000000..9b1e633 Binary files /dev/null and b/doc/doxygen/tab_l.gif differ diff --git a/doc/doxygen/tab_r.gif b/doc/doxygen/tab_r.gif new file mode 100644 index 0000000..ce9dd9f Binary files /dev/null and b/doc/doxygen/tab_r.gif differ diff --git a/doc/doxygen/tabs.css b/doc/doxygen/tabs.css new file mode 100644 index 0000000..95f00a9 --- /dev/null +++ b/doc/doxygen/tabs.css @@ -0,0 +1,102 @@ +/* tabs styles, based on http://www.alistapart.com/articles/slidingdoors */ + +DIV.tabs +{ + float : left; + width : 100%; + background : url("tab_b.gif") repeat-x bottom; + margin-bottom : 4px; +} + +DIV.tabs UL +{ + margin : 0px; + padding-left : 10px; + list-style : none; +} + +DIV.tabs LI, DIV.tabs FORM +{ + display : inline; + margin : 0px; + padding : 0px; +} + +DIV.tabs FORM +{ + float : right; +} + +DIV.tabs A +{ + float : left; + background : url("tab_r.gif") no-repeat right top; + border-bottom : 1px solid #84B0C7; + font-size : x-small; + font-weight : bold; + text-decoration : none; +} + +DIV.tabs A:hover +{ + background-position: 100% -150px; +} + +DIV.tabs A:link, DIV.tabs A:visited, +DIV.tabs A:active, DIV.tabs A:hover +{ + color: #1A419D; +} + +DIV.tabs SPAN +{ + float : left; + display : block; + background : url("tab_l.gif") no-repeat left top; + padding : 5px 9px; + white-space : nowrap; +} + +DIV.tabs INPUT +{ + float : right; + display : inline; + font-size : 1em; +} + +DIV.tabs TD +{ + font-size : x-small; + font-weight : bold; + text-decoration : none; +} + + + +/* Commented Backslash Hack hides rule from IE5-Mac \*/ +DIV.tabs SPAN {float : none;} +/* End IE5-Mac hack */ + +DIV.tabs A:hover SPAN +{ + background-position: 0% -150px; +} + +DIV.tabs LI.current A +{ + background-position: 100% -150px; + border-width : 0px; +} + +DIV.tabs LI.current SPAN +{ + background-position: 0% -150px; + padding-bottom : 6px; +} + +DIV.navpath +{ + background : none; + border : none; + border-bottom : 1px solid #84B0C7; +} diff --git a/doc/index.html b/doc/index.html new file mode 100644 index 0000000..55cb5cf --- /dev/null +++ b/doc/index.html @@ -0,0 +1,812 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" +"http://www.w3.org/TR/html4/strict.dtd"> + +<html> + <head> + <link rev="made" href="mailto:taku@chasen.org"> + <title>CRF++: Yet Another CRF toolkit</title> + <link type="text/css" rel="stylesheet" href="default.css"> + </head> + + <body> + <h1>CRF++: Yet Another CRF toolkit</h1> + + <h2>Introduction</h2> + + <p><b>CRF++</b> is a simple, customizable, and open source + implementation of <a href="http://www.cis.upenn.edu/~pereira/papers/crf.pdf">Conditional Random Fields (CRFs)</a> + for segmenting/labeling sequential data. CRF++ is designed for generic purpose and will be applied to a variety of NLP tasks, such as + Named Entity Recognition, Information Extraction and Text Chunking. + + <h2>Table of contents</h2> + <ul> + <li><a href="#features">Features</a></li> + + <li><a href="#news">News</a></li> + <li><a href="#download">Download</a> </li> + <ul> + <li><a href="#source">Source</a></li> + <li><a href="#windows">Binary package for MS-Windows</a></li> + </ul> + + <li><a href="#install">Installation</a></li> + + <li> + <a href="#usage">Usage</a> + + <ul> + <li><a href="#format">Training and Test file formats</a></li> + <li><a href="#templ">Preparing feature templates</a></li> + <li><a href="#training">Training (encoding)</a></li> + <li><a href="#testing">Testing (decoding)</a></li> + + </ul> + </li> + + <li><a href="#tips">Case studies</a></li> + <li><a href="#tips">Useful Tips</a></li> + <li><a href="#todo">To do</a></li> + <li><a href="#links">Links</a></li> + </ul> + + <h2><a name="features">Features</a></h2> + + <ul> + <li>Can redefine feature sets</li> + <li>Written in C++ with STL</li> + <li>Fast training based on <a href="http://www-fp.mcs.anl.gov/otc/Guide/SoftwareGuide/Blurbs/lbfgs.html">LBFGS</a>, a quasi-newton algorithm + for large scale numerical optimization problem</li> + <li>Less memory usage both in training and testing</li> + <li>encoding/decoding in practical time</li> + <li>Can perform n-best outputs</li> + <li>Can perform single-best MIRA training</li> + <li>Can output marginal probabilities for all candidates</li> + <li>Available as an open source software</li> + </ul> + + <h2><a name="news">News</a></h2> + <ul> + + <strong>2012-02-15</strong>: <a href="#download">CRF++ 0.55</a> Released<br> + <ul> + <li>Added new CRFPP:Model class so that multiple threads can share single CRF++ model. + <li>Added Tagger::set_penalty and Tagger::penalty() method for dual decompositon decoding + <li>Fixed crash bug on Windows + <li>Fixed minor bugs + </ul> + + <strong>2010-05-16</strong>: CRF++ 0.54</a> Released<br> + <ul> + <li>fixed the bug in L1 regularization. Reported by Fujii Yasuhisa</li> + </ul> + + <strong>2009-05-06</strong>: CRF++ 0.5 Released<br> + <ul> + <li>fixed build failure on libtool + </ul> + + <strong>2009-04-19</strong>: CRF++ 0.52<br> + <ul> + <li>Code clean up + <li>replaced obsolete sstream with stringstream + </ul> + + <strong>2007-07-12</strong>: CRF++ 0.51</a><br> + <ul> + <li>Fixed a compilation error on gcc 4.3 + </ul> + + <strong>2007-12-09</strong>: CRF++ 0.50<br> + <ul> + <li>Bug fix in --convert mode (Could not generate model from text file) + </ul> + + <strong>2007-08-18</strong>: CRF++ 0.49<br> + <ul> + <li>Added setter/getter for nbest, cost_factor and vlevel to API + </ul> + + <strong>2007-07-07</strong>: CRF++ 0.48 Released<br> + <ul> + <li>Support L1-CRF. use -a CRF-L1 option to enable L1 regularization. + </ul> + + <strong>2007-03-07</strong>: CRF++ 0.47 Released<br> + <ul> + <li>Fixed a bug in MIRA training + </ul> + + <strong>2007-02-12</strong>: CRF++ 0.46 Released<br> + <ul> + <li>Changed the licence from LGPL to LGPL/BSD dual + license + <li>Perl/Ruby/Python/Java binding supports (see + perl/ruby/python/java directory respectively) + <li>Code refactoring + </ul> + + <strong>2006-11-26</strong>: CRF++ 0.45<br> + <ul> + <li>Support 1-best MIRA training (use -a MIRA option) + </ul> + + <strong>2006-08-18</strong>: CRF++ 0.44<br> + <ul> + <li>Fixed a bug in feature extraction</li> + <li>Allowed redundant spaces in training/test files</li> + <li>Determined real column size by looking at template</li> + <li>Added sample code of API (sdk/example.cpp) + <li>Described usage of each API function (crfpp.h) + </ul> + <strong>2006-08-07</strong>: CRF++ 0.43<br> + <ul> + <li>implemented several API functions to get lattice + information</li> + <li>added -c option to control cost-factor + </ul> + + <strong>2006-03-31</strong>: CRF++ 0.42<br> + <ul> + <li>Fixed a bug in feature extraction</li> + </ul> + + <strong>2006-03-30</strong>: CRF++ 0.41<br> + <ul> + <li>Support parallel training</li> + </ul> + + <strong>2006-03-21</strong>: CRF++ 0.40<br> + <ul> + <li>Fixed a fatal memory leak bug</li> + <li>make CRF++ API</li> + </ul> + + <strong>2005-10-29</strong>: CRF++ 0.3</a> + <ul> + <li>added -t option that enables you to have not only binary + model but also text model + <li>added -C option for converting a text model to a binary model + </ul> + + <strong>2005-07-04</strong>: CRF++ 0.2 + Released<br> + <ul> + <li>Fixed several bugs</li> + </ul> + + <strong>2005-05-28</strong>: CRF++ 0.1 + Released<br> + <ul> + <li>Initial Release</li> + </ul> + </ul> + + <h2><a name="download">Download</a></h2> + + <ul> + <li><b>CRF++</b> is free software; you can redistribute it + and/or modify it under the terms of the <a href= + "http://www.gnu.org/copyleft/lesser.html">GNU Lesser General + Public License</a> or <a +href="http://www.opensource.org/licenses/bsd-license.php">new BSD License</a></li> + + <li> + Please let <a href= + "mailto:taku@chasen.org">me</a> know if you use + <b>CRF++</b> for research purpose or find any research + publications where <b>CRF++</b> is applied. + + <h3><a name="source">Source</a></h3> + <ul> + <li>CRF++-0.54.tar.gz: <a href="http://sourceforge.net/project/showfiles.php?group_id=192973">HTTP</a></li> + </ul> + + <h3><a name="windows">Binary package for MS-Windows</a></h3> + <ul> + <li><a href="http://sourceforge.net/project/showfiles.php?group_id=192973">HTTP</a><br> + </ul> + + </li> + </ul> + + <h2><a name="install">Installation</a></h2> + + <ul> + <li> + Requirements + + <ul> + <li>C++ compiler (gcc 3.0 or higher)</li> + </ul> + </li> + + <li> + How to make +<pre> +% ./configure +% make +% su +# make install +</pre> + You can change default install path by using --prefix + option of configure script.<br> + Try --help option for finding out other options. + </li> + </ul> + + <h2><a name="usage">Usage</a></h2> + + <h3><a name="format">Training and Test file formats</a></h3> + + <p>Both the training file and the test file need to be in a + particular format for <b>CRF++</b> to work properly. + Generally speaking, training and test file must consist of + multiple <b>tokens</b>. In addition, a <b>token</b> + consists of multiple (but fixed-numbers) columns. The + definition of tokens depends on tasks, however, in + most of typical cases, they simply correspond to + <b>words</b>. Each token must be represented in one line, + with the columns separated by white space (spaces or + tabular characters). A sequence of token becomes a + <b>sentence</b>. To identify the boundary between + sentences, an empty line is put.</p> + + <p>You can give as many columns as you like, however the + number of columns must be fixed through all tokens. + Furthermore, there are some kinds of "semantics" among the + columns. For example, 1st column is 'word', second column + is 'POS tag' third column is 'sub-category of POS' and so + on.</p> + + <p>The last column represents a true answer tag which is going + to be trained by CRF.</p> + + <p>Here's an example of such a file: (data for CoNLL shared + task)</p> +<pre> +He PRP B-NP +reckons VBZ B-VP +the DT B-NP +current JJ I-NP +account NN I-NP +deficit NN I-NP +will MD B-VP +narrow VB I-VP +to TO B-PP +only RB B-NP +# # I-NP +1.8 CD I-NP +billion CD I-NP +in IN B-PP +September NNP B-NP +. . O + +He PRP B-NP +reckons VBZ B-VP +.. +</pre> + + <p>There are 3 columns for each token.</p> + + <ul> + <li>The word itself (e.g. reckons);</li> + <li>part-of-speech associated with the word (e.g. VBZ);</li> + <li>Chunk(answer) tag represented in IOB2 format;</li> + </ul> + + <p>The following data is invalid, since the number of + columns of second and third are 2. (They have no POS + column.) The number of columns should be fixed.</p> +<pre> +He PRP B-NP +reckons B-VP +the B-NP +current JJ I-NP +account NN I-NP +.. +</pre> + + <h3><a name="templ">Preparing feature templates</a></h3> + <p> + As CRF++ is designed as a general purpose tool, you have to + specify the feature templates in advance. This file describes + which features are used in training and testing. + </p> + + <ul> + <li>Template basic and macro</li> + <p> + Each line in the template file denotes one <i>template</i>. + In each template, special macro <i>%x[row,col]</i> will be + used to specify a token in the input data. <i>row</i> specfies the + relative position from the current focusing token + and <i>col</i> specifies the absolute position of the column. + </p> + +<p>Here you can find some examples for the replacements</p> +<pre> +Input: Data +He PRP B-NP +reckons VBZ B-VP +the DT B-NP << CURRENT TOKEN +current JJ I-NP +account NN I-NP +</pre> + +<p> +<table border> +<tr> +<td>template</td> +<td>expanded feature</td> +</tr> +<tr> +<td><b>%x[0,0]</b></td> +<td>the</td> +</tr> +<tr> +<td><b>%x[0,1]</b></td> +<td>DT</td> +</tr> +<tr> +<td><b>%x[-1,0]</b></td> +<td>rokens</td> +</tr> +<tr> +<td><b>%x[-2,1]</b></td> +<td>PRP</td> +</tr> +<tr> +<td><b>%x[0,0]/%x[0,1]</b></td> +<td>the/DT</td> +</tr> +<tr> +<td><b>ABC%x[0,1]123</b></td> +<td>ABCDT123</td> +</tr> +</table> +</p> +<br> + + +<li>Template type</li> +<p>Note also that there are two types of templates. + The types are specified with the first character of templates. +</p> + <ul> + + <li>Unigram template: first character, <b>'U'</b></li> + <p> + This is a template to describe unigram features. + When you give a template "U01:%x[0,1]", CRF++ automatically + generates a set of feature functions (func1 ... funcN) like: + </p> + + <pre> +func1 = if (output = B-NP and feature="U01:DT") return 1 else return 0 +func2 = if (output = I-NP and feature="U01:DT") return 1 else return 0 +func3 = if (output = O and feature="U01:DT") return 1 else return 0 +.... +funcXX = if (output = B-NP and feature="U01:NN") return 1 else return 0 +funcXY = if (output = O and feature="U01:NN") return 1 else return 0 +...</pre> + + <p> + The number of feature functions generated by a template amounts to + (L * N), where L is the number of output classes and N is the + number of unique string expanded from the given template. + </p> + + <li>Bigram template: first character, <b>'B'</b></li> + <p> + This is a template to describe bigram features. + With this template, a combination of the current output token and previous output token + (bigram) is automatically generated. Note that this type of template generates a total of + (L * L * N) distinct features, where L is the + number of output classes and N is the number + of unique features generated by the templates. + When the number of classes is large, this type of templates would produce + a tons of distinct features that would cause inefficiency both + in training/testing. + </p> + + <li>What is the diffrence between unigram and bigram features?</li> + <p> + The words unigram/bigram are confusing, since a macro for unigram-features + does allow you to write word-level bigram like %x[-1,0]%x[0,0]. Here, + unigram and bigram features mean uni/bigrams of output tags.</p> + <ul> + <li>unigram: |output tag| x |all possible strings expanded with a macro|</li> + <li>bigram: |output tag| x |output tag| x |all possible strings expanded with a macro|</li> + </ul> + <p></p> +</ul> + +<li>Identifiers for distinguishing relative positions</li> +<p> +You also need to put an identifier in templates when relative positions of +tokens must be distinguished. +</p> +<p> +In the following case, the macro "%x[-2,1]" and "%x[1,1]" will be replaced +into "DT". But they indicates different "DT". +</p> +<pre> +The DT B-NP +pen NN I-NP +is VB B-VP << CURRENT TOKEN +a DT B-NP +</pre> + +<p>To distinguish both two, put an unique identifier (U01: or U02:) in the +template:</p> +<pre> +U01:%x[-2,1] +U02:%x[1,1] +</pre> +<p> +In this case both two templates are regarded as different ones, as +they are expanded into different features, "U01:DT" and "U02:DT". +You can use any identifier whatever you like, but +it is useful to use numerical numbers to manage them, because they simply +correspond to feature IDs. +</p> + +<p> +If you want to use "bag-of-words" feature, in other words, +not to care the relative position of features, You don't need to +put such identifiers. +</p> + +<li>Example</li> +<p>Here is the template example for <a href="http://www.cnts.ua.ac.be/conll2000/chunking/">CoNLL 2000</a> shared task and Base-NP chunking +task. Only one bigram template ('B') is used. This means that +only combinations of previous output token and current token are +used as bigram features. The lines starting from # or empty lines are +discarded as comments</p> +<pre> +# Unigram +U00:%x[-2,0] +U01:%x[-1,0] +U02:%x[0,0] +U03:%x[1,0] +U04:%x[2,0] +U05:%x[-1,0]/%x[0,0] +U06:%x[0,0]/%x[1,0] + +U10:%x[-2,1] +U11:%x[-1,1] +U12:%x[0,1]q +U13:%x[1,1] +U14:%x[2,1] +U15:%x[-2,1]/%x[-1,1] +U16:%x[-1,1]/%x[0,1] +U17:%x[0,1]/%x[1,1] +U18:%x[1,1]/%x[2,1] + +U20:%x[-2,1]/%x[-1,1]/%x[0,1] +U21:%x[-1,1]/%x[0,1]/%x[1,1] +U22:%x[0,1]/%x[1,1]/%x[2,1] + +# Bigram +B +</pre> +</ul> +</ul> + + + <h3><a name="training">Training (encoding)</a></h3> + +<p>Use <i>crf_learn</i> command: + <pre> +% crf_learn template_file train_file model_file +</pre> +<p> +where <i>template_file</i> and <i>train_file</i> +are the files you need to prepare in advance. +<i>crf_learn</i> generates the trained model file in +<i>model_file</i>. +</p> + +<p>crf_learn outputs the following information.</p> +<pre> +CRF++: Yet Another CRF Tool Kit +Copyright(C) 2005 Taku Kudo, All rights reserved. + +reading training data: 100.. 200.. 300.. 400.. 500.. 600.. 700.. 800.. +Done! 1.94 s + +Number of sentences: 823 +Number of features: 1075862 +Number of thread(s): 1 +Freq: 1 +eta: 0.00010 +C: 1.00000 +shrinking size: 20 +Algorithm: CRF + +iter=0 terr=0.99103 serr=1.00000 obj=54318.36623 diff=1.00000 +iter=1 terr=0.35260 serr=0.98177 obj=44996.53537 diff=0.17161 +iter=2 terr=0.35260 serr=0.98177 obj=21032.70195 diff=0.53257 +iter=3 terr=0.23879 serr=0.94532 obj=13642.32067 diff=0.35138 +iter=4 terr=0.15324 serr=0.88700 obj=8985.70071 diff=0.34134 +iter=5 terr=0.11605 serr=0.80680 obj=7118.89846 diff=0.20775 +iter=6 terr=0.09305 serr=0.72175 obj=5531.31015 diff=0.22301 +iter=7 terr=0.08132 serr=0.68408 obj=4618.24644 diff=0.16507 +iter=8 terr=0.06228 serr=0.59174 obj=3742.93171 diff=0.18953 +</pre> + +<ul> +<li>iter: number of iterations processed</li> +<li>terr: error rate with respect to tags. (# of error tags/# of all tag)</li> +<li>serr: error rate with respect to sentences. (# of error sentences/# + of all sentences)</li> +<li>obj: current object value. When this value converges to a + fixed point, CRF++ stops the iteration.</li> +<li>diff: relative difference from the previous object value.</li> +</ul> + +<p> +There are 4 major parameters to control the training condition +<ul> + <li>-a CRF-L2 or CRF-L1:<br> + Changing the regularization algorithm. Default setting is L2. + Generally speaking, L2 performs slightly better than L1, while + the number of non-zero features in L1 is drastically smaller than + that in L2. + <li>-c float: <br> + With this option, you can change the hyper-parameter for the CRFs. + With larger C value, CRF tends to overfit to the give training corpus. + This parameter trades the balance between overfitting and + underfitting. The results will significantly be influenced by + this parameter. You can find an optimal value by using + held-out data or more general model selection method such as + cross validation. + <li>-f NUM:<br> + This parameter sets the cut-off threshold for the features. + CRF++ uses the features that occurs no less than NUM times + in the given training data. The default value is 1. + When you apply CRF++ to large data, the number of unique features + would amount to several millions. This option is useful in such cases. + <li>-p NUM:<br> + If the PC has multiple CPUs, you can make the training faster + by using multi-threading. NUM is the number of threads. +</ul> + +<p>Here is the example where these two parameters are used.</p> + <pre> +% crf_learn -f 3 -c 1.5 template_file train_file model_file +</pre> +<p>Since version 0.45, CRF++ supports single-best MIRA training. +MIRA training is used when -a MIRA option is set. +<pre> +% crf_learn -a MIRA template train.data model +CRF++: Yet Another CRF Tool Kit +Copyright(C) 2005 Taku Kudo, All rights reserved. + +reading training data: 100.. 200.. 300.. 400.. 500.. 600.. 700.. 800.. +Done! 1.92 s + +Number of sentences: 823 +Number of features: 1075862 +Number of thread(s): 1 +Freq: 1 +eta: 0.00010 +C: 1.00000 +shrinking size: 20 +Algorithm: MIRA + +iter=0 terr=0.11381 serr=0.74605 act=823 uact=0 obj=24.13498 kkt=28.00000 +iter=1 terr=0.04710 serr=0.49818 act=823 uact=0 obj=35.42289 kkt=7.60929 +iter=2 terr=0.02352 serr=0.30741 act=823 uact=0 obj=41.86775 kkt=5.74464 +iter=3 terr=0.01836 serr=0.25881 act=823 uact=0 obj=47.29565 kkt=6.64895 +iter=4 terr=0.01106 serr=0.17011 act=823 uact=0 obj=50.68792 kkt=3.81902 +iter=5 terr=0.00610 serr=0.10085 act=823 uact=0 obj=52.58096 kkt=3.98915 +iter=0 terr=0.11381 serr=0.74605 act=823 uact=0 obj=24.13498 kkt=28.00000 +... +</pre> + +<ul> +<li>iter, terr, serror: same as CRF training</li> +<li>act: number of active examples in working set</li> +<li>uact: number of examples whose dual parameters reach soft margin + upper-bound C. 0 uact suggests that given training data was + linear separable</li> +<li>obj: current object value, ||w||^2</li> +<li>kkt: max kkt violation value. When it gets 0.0, MIRA training finishes</li> +</ul> + +<p>There are some parameters to control the MIRA training condition</p> +<ul> + <li>-c float: <br> + Changes soft margin parameter, which is an analogue to the soft margin + parameter C in Support Vector Machines. + The definition is basically the same as -c option in CRF training. + With larger C value, MIRA tends to overfit to the give training + corpus. + <li>-f NUM:<br> + Same as CRF + <li>-H NUM:<br> + Changes shrinking size. When a training sentence is not used + in updating parameter vector NUM times, we can consider that the + instance doesn't contribute training any more. MIRA tries to + remove such instances. The process is called + "shrinking". When setting smaller NUM, shrinking occurs in early + stage, which drastically reduces + training time. However, too small NUM is not recommended. + When training finishes, MIRA tries to go through all training + examples again to know whether or not all KKT conditions are really + satisfied. Too small NUM would increase the chances of recheck. +</ul> + +<h3><a name="testing">Testing (decoding)</a></h3> + +<p>Use <i>crf_test</i> command: + <pre> +% crf_test -m model_file test_files ... +</pre> +<p> +where <i>model_file</i> is the file <i>crf_learn</i>creates. +In the testing, you don't need to specify the template file, +because the model file has the same information for the template. +<i>test_file</i> is the test data you want to assign sequential tags. +This file has to be written in the same format as training file. +</p> + + +<p> +Here is an output of <i>crf_test</i>:</p> + +<pre> +% crf_test -m model test.data +Rockwell NNP B B +International NNP I I +Corp. NNP I I +'s POS B B +Tulsa NNP I I +unit NN I I +.. +</pre> + +<p>The last column is given (estimated) tag. +If the 3rd column is true answer tag , you can evaluate the accuracy +by simply seeing the difference between the 3rd and 4th columns.</p> + + +<ul> +<li>verbose level</li> +<p>The <b>-v</b> option sets verbose level. default +value is 0. By increasing the level, you can have an +extra information from CRF++</p> + +<ul> +<li>level 1 <br> + You can also have marginal probabilities for each tag + (a kind of confidece measure for each output tag) + and a conditional probably for the output (confidence measure for + the entire output). +<pre> +% crf_test -v1 -m model test.data| head +# 0.478113 +Rockwell NNP B B/0.992465 +International NNP I I/0.979089 +Corp. NNP I I/0.954883 +'s POS B B/0.986396 +Tulsa NNP I I/0.991966 +... +</pre> +<p> +The first line "# 0.478113" shows the conditional probably for the output. +Also, each output tag has a probability represented like "B/0.992465". +</p> + +<li>level 2<br> +<p>You can also have marginal probabilities for all other candidates.</p> +<pre> +% crf_test -v2 -m model test.data +# 0.478113 +Rockwell NNP B B/0.992465 B/0.992465 I/0.00144946 O/0.00608594 +International NNP I I/0.979089 B/0.0105273 I/0.979089 O/0.0103833 +Corp. NNP I I/0.954883 B/0.00477976 I/0.954883 O/0.040337 +'s POS B B/0.986396 B/0.986396 I/0.00655976 O/0.00704426 +Tulsa NNP I I/0.991966 B/0.00787494 I/0.991966 O/0.00015949 +unit NN I I/0.996169 B/0.00283111 I/0.996169 O/0.000999975 +.. +</pre> +</ul> + +<li>N-best outputs</li> +<p> +With the <b>-n</b> option, you can obtain N-best results +sorted by the conditional probability of CRF. +With n-best output mode, CRF++ first gives one additional line like "# N prob", where N means that +rank of the output starting from 0 and prob denotes the conditional +probability for the output. </p> + +<p>Note that CRF++ sometimes +discards enumerating N-best results if it cannot find candidates any +more. This is the case when you give CRF++ a short +sentence.</p> + +<p>CRF++ uses a combination of forward Viterbi and backward A* search. This combination +yields the exact list of n-best results. </p> + +<p>Here is the example of the N-best results. </p> +<pre> +% crf_test -n 20 -m model test.data +# 0 0.478113 +Rockwell NNP B B +International NNP I I +Corp. NNP I I +'s POS B B +... + +# 1 0.194335 +Rockwell NNP B B +International NNP I I +</pre> +</ul> +</ul> + +<h2><a name="testing">Tips</a></h2> +<ul> + <li>CRF++ uses the exactly same data format as <a + href="http://chasen.org/~taku/software/yamcha/">YamCha</a> uses. + You may use both two toolkits for an input data and compare the + performance between CRF and SVM + <li>The output of CRF++ is also compatible to <a href="http://www.cnts.ua.ac.be/conll2000/chunking/">CoNLL 2000</a> shared task. + This allows us to use the perl script + <a href="http://www.cnts.ua.ac.be/conll2000/chunking/output.html"> + conlleval.pl</a> to + evaluate system outputs. This script is very useful and + give us a list of F-measures for all chunk types +</ul> + +<h2><a name="training">Case studies</a></h2> + <p> + In the example directories, you can find three case studies, baseNP + chunking, Text Chunking, and Japanese named entity recognition, to use CRF++. + </p> + + <p> + In each directory, please try the following commands + </p> + + <pre> % crf_learn template train model + % crf_test -m model test </pre> + +<h2><a name="todo">To Do</a></h2> + <ul> + <li>Support <a + href="http://www-2.cs.cmu.edu/~wcohen/postscript/semiCRF.pdf">semi-Markov + CRF</a> + <li>Support <a + href="http://www.cs.umass.edu/~mccallum/papers/lcrf-nips2004.pdf"> + piece-wise CRF</a> + <li>Provide useful C++/C API (Currently no APIs are available) + </ul> + +<h2><a name="links">References</a></h2> + <ul> + <li>J. Lafferty, A. McCallum, and F. Pereira. + <a href="http://www.cis.upenn.edu/~pereira/papers/crf.pdf">Conditional random fields: Probabilistic models for segmenting and + labeling sequence data</a>, In Proc. of ICML, pp.282-289, 2001 + + <li>F. Sha and F. Pereira. <a + href="http://www.cis.upenn.edu/~feisha/pubs/shallow03.pdf">Shallow + parsing with conditional random fields</a>, In Proc. of HLT/NAACL 2003 + <li><a + href="http://staff.science.uva.nl/~erikt/research/np-chunking.html">NP chunking</a></li> + <li><a href= "http://www.cnts.ua.ac.be/conll2000/chunking/">CoNLL + 2000 shared task: Chunking</a></li> + </ul> + <hr> + + <p>$Id: index.html,v 1.23 2003/01/06 13:11:21 taku-ku Exp + $;</p> + + <address> + taku@chasen.org + </address> + </body> +</html> + diff --git a/encoder.cpp b/encoder.cpp new file mode 100644 index 0000000..0e393d2 --- /dev/null +++ b/encoder.cpp @@ -0,0 +1,514 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: encoder.cpp 1601 2007-03-31 09:47:18Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + +#if defined(_WIN32) && !defined(__CYGWIN__) +#define NOMINMAX +#include <windows.h> +#endif + +#include <algorithm> +#include <fstream> +#include "param.h" +#include "encoder.h" +#include "timer.h" +#include "tagger.h" +#include "lbfgs.h" +#include "common.h" +#include "feature_index.h" +#include "scoped_ptr.h" +#include "thread.h" + +namespace CRFPP { +namespace { + +inline size_t getCpuCount() { + size_t result = 1; +#if defined(_WIN32) && !defined(__CYGWIN__) + SYSTEM_INFO si; + ::GetSystemInfo(&si); + result = si.dwNumberOfProcessors; +#else +#ifdef HAVE_SYS_CONF_SC_NPROCESSORS_CONF + const long n = sysconf(_SC_NPROCESSORS_CONF); + if (n == -1) { + return 1; + } + result = static_cast<size_t>(n); +#endif +#endif + return result; +} + +unsigned short getThreadSize(unsigned short size) { + if (size == 0) { + return static_cast<unsigned short>(getCpuCount()); + } + return size; +} + +bool toLower(std::string *s) { + for (size_t i = 0; i < s->size(); ++i) { + char c = (*s)[i]; + if ((c >= 'A') && (c <= 'Z')) { + c += 'a' - 'A'; + (*s)[i] = c; + } + } + return true; +} +} + +class CRFEncoderThread: public thread { + public: + TaggerImpl **x; + unsigned short start_i; + unsigned short thread_num; + int zeroone; + int err; + size_t size; + double obj; + std::vector<double> expected; + + void run() { + obj = 0.0; + err = zeroone = 0; + std::fill(expected.begin(), expected.end(), 0.0); + for (size_t i = start_i; i < size; i += thread_num) { + obj += x[i]->gradient(&expected[0]); + int error_num = x[i]->eval(); + err += error_num; + if (error_num) { + ++zeroone; + } + } + } +}; + +bool runMIRA(const std::vector<TaggerImpl* > &x, + EncoderFeatureIndex *feature_index, + double *alpha, + size_t maxitr, + float C, + double eta, + unsigned short shrinking_size, + unsigned short thread_num) { + std::vector<unsigned char> shrink(x.size()); + std::vector<float> upper_bound(x.size()); + std::vector<double> expected(feature_index->size()); + + std::fill(upper_bound.begin(), upper_bound.end(), 0.0); + std::fill(shrink.begin(), shrink.end(), 0); + + int converge = 0; + int all = 0; + for (size_t i = 0; i < x.size(); ++i) { + all += x[i]->size(); + } + + for (size_t itr = 0; itr < maxitr; ++itr) { + int zeroone = 0; + int err = 0; + int active_set = 0; + int upper_active_set = 0; + double max_kkt_violation = 0.0; + + for (size_t i = 0; i < x.size(); ++i) { + if (shrink[i] >= shrinking_size) { + continue; + } + + ++active_set; + std::fill(expected.begin(), expected.end(), 0.0); + double cost_diff = x[i]->collins(&expected[0]); + int error_num = x[i]->eval(); + err += error_num; + if (error_num) { + ++zeroone; + } + + if (error_num == 0) { + ++shrink[i]; + } else { + shrink[i] = 0; + double s = 0.0; + for (size_t k = 0; k < expected.size(); ++k) { + s += expected[k] * expected[k]; + } + + double mu = std::max(0.0, (error_num - cost_diff) / s); + + if (upper_bound[i] + mu > C) { + mu = C - upper_bound[i]; + ++upper_active_set; + } else { + max_kkt_violation = std::max(error_num - cost_diff, + max_kkt_violation); + } + + if (mu > 1e-10) { + upper_bound[i] += mu; + upper_bound[i] = std::min(C, upper_bound[i]); + for (size_t k = 0; k < expected.size(); ++k) { + alpha[k] += mu * expected[k]; + } + } + } + } + + double obj = 0.0; + for (size_t i = 0; i < feature_index->size(); ++i) { + obj += alpha[i] * alpha[i]; + } + + std::cout << "iter=" << itr + << " terr=" << 1.0 * err / all + << " serr=" << 1.0 * zeroone / x.size() + << " act=" << active_set + << " uact=" << upper_active_set + << " obj=" << obj + << " kkt=" << max_kkt_violation << std::endl; + + if (max_kkt_violation <= 0.0) { + std::fill(shrink.begin(), shrink.end(), 0); + converge++; + } else { + converge = 0; + } + + if (itr > maxitr || converge == 2) { + break; // 2 is ad-hoc + } + } + + return true; +} + +bool runCRF(const std::vector<TaggerImpl* > &x, + EncoderFeatureIndex *feature_index, + double *alpha, + size_t maxitr, + float C, + double eta, + unsigned short shrinking_size, + unsigned short thread_num, + bool orthant) { + double old_obj = 1e+37; + int converge = 0; + LBFGS lbfgs; + std::vector<CRFEncoderThread> thread(thread_num); + + for (size_t i = 0; i < thread_num; i++) { + thread[i].start_i = i; + thread[i].size = x.size(); + thread[i].thread_num = thread_num; + thread[i].x = const_cast<TaggerImpl **>(&x[0]); + thread[i].expected.resize(feature_index->size()); + } + + size_t all = 0; + for (size_t i = 0; i < x.size(); ++i) { + all += x[i]->size(); + } + + for (size_t itr = 0; itr < maxitr; ++itr) { + for (size_t i = 0; i < thread_num; ++i) { + thread[i].start(); + } + + for (size_t i = 0; i < thread_num; ++i) { + thread[i].join(); + } + + for (size_t i = 1; i < thread_num; ++i) { + thread[0].obj += thread[i].obj; + thread[0].err += thread[i].err; + thread[0].zeroone += thread[i].zeroone; + } + + for (size_t i = 1; i < thread_num; ++i) { + for (size_t k = 0; k < feature_index->size(); ++k) { + thread[0].expected[k] += thread[i].expected[k]; + } + } + + size_t num_nonzero = 0; + if (orthant) { // L1 + for (size_t k = 0; k < feature_index->size(); ++k) { + thread[0].obj += std::abs(alpha[k] / C); + if (alpha[k] != 0.0) { + ++num_nonzero; + } + } + } else { + num_nonzero = feature_index->size(); + for (size_t k = 0; k < feature_index->size(); ++k) { + thread[0].obj += (alpha[k] * alpha[k] /(2.0 * C)); + thread[0].expected[k] += alpha[k] / C; + } + } + + double diff = (itr == 0 ? 1.0 : + std::abs(old_obj - thread[0].obj)/old_obj); + std::cout << "iter=" << itr + << " terr=" << 1.0 * thread[0].err / all + << " serr=" << 1.0 * thread[0].zeroone / x.size() + << " act=" << num_nonzero + << " obj=" << thread[0].obj + << " diff=" << diff << std::endl; + old_obj = thread[0].obj; + + if (diff < eta) { + converge++; + } else { + converge = 0; + } + + if (itr > maxitr || converge == 3) { + break; // 3 is ad-hoc + } + + if (lbfgs.optimize(feature_index->size(), + &alpha[0], + thread[0].obj, + &thread[0].expected[0], orthant, C) <= 0) { + return false; + } + } + + return true; +} + +bool Encoder::convert(const char* textfilename, + const char *binaryfilename) { + EncoderFeatureIndex feature_index; + CHECK_FALSE(feature_index.convert(textfilename, binaryfilename)) + << feature_index.what(); + + return true; +} + +bool Encoder::learn(const char *templfile, + const char *trainfile, + const char *modelfile, + bool textmodelfile, + size_t maxitr, + size_t freq, + double eta, + double C, + unsigned short thread_num, + unsigned short shrinking_size, + int algorithm) { + std::cout << COPYRIGHT << std::endl; + + CHECK_FALSE(eta > 0.0) << "eta must be > 0.0"; + CHECK_FALSE(C >= 0.0) << "C must be >= 0.0"; + CHECK_FALSE(shrinking_size >= 1) << "shrinking-size must be >= 1"; + CHECK_FALSE(thread_num > 0) << "thread must be > 0"; + +#ifndef CRFPP_USE_THREAD + CHECK_FALSE(thread_num == 1) + << "This architecture doesn't support multi-thrading"; +#endif + + if (algorithm == MIRA && thread_num > 1) { + std::cerr << "MIRA doesn't support multi-thrading. use thread_num=1" + << std::endl; + } + + EncoderFeatureIndex feature_index; + Allocator allocator(thread_num); + std::vector<TaggerImpl* > x; + + std::cout.setf(std::ios::fixed, std::ios::floatfield); + std::cout.precision(5); + +#define WHAT_ERROR(msg) do { \ + for (std::vector<TaggerImpl *>::iterator it = x.begin(); \ + it != x.end(); ++it) \ + delete *it; \ + std::cerr << msg << std::endl; \ + return false; } while (0) + + CHECK_FALSE(feature_index.open(templfile, trainfile)) + << feature_index.what(); + + { + progress_timer pg; + + std::ifstream ifs(WPATH(trainfile)); + CHECK_FALSE(ifs) << "cannot open: " << trainfile; + + std::cout << "reading training data: " << std::flush; + size_t line = 0; + while (ifs) { + TaggerImpl *_x = new TaggerImpl(); + _x->open(&feature_index, &allocator); + if (!_x->read(&ifs) || !_x->shrink()) { + WHAT_ERROR(_x->what()); + } + + if (!_x->empty()) { + x.push_back(_x); + } else { + delete _x; + } + + _x->set_thread_id(line % thread_num); + + if (++line % 100 == 0) { + std::cout << line << ".. " << std::flush; + } + } + + ifs.close(); + std::cout << "\nDone!"; + } + + feature_index.shrink(freq, &allocator); + + std::vector <double> alpha(feature_index.size()); // parameter + std::fill(alpha.begin(), alpha.end(), 0.0); + feature_index.set_alpha(&alpha[0]); + + std::cout << "Number of sentences: " << x.size() << std::endl; + std::cout << "Number of features: " << feature_index.size() << std::endl; + std::cout << "Number of thread(s): " << thread_num << std::endl; + std::cout << "Freq: " << freq << std::endl; + std::cout << "eta: " << eta << std::endl; + std::cout << "C: " << C << std::endl; + std::cout << "shrinking size: " << shrinking_size + << std::endl; + + progress_timer pg; + + switch (algorithm) { + case MIRA: + if (!runMIRA(x, &feature_index, &alpha[0], + maxitr, C, eta, shrinking_size, thread_num)) { + WHAT_ERROR("MIRA execute error"); + } + break; + case CRF_L2: + if (!runCRF(x, &feature_index, &alpha[0], + maxitr, C, eta, shrinking_size, thread_num, false)) { + WHAT_ERROR("CRF_L2 execute error"); + } + break; + case CRF_L1: + if (!runCRF(x, &feature_index, &alpha[0], + maxitr, C, eta, shrinking_size, thread_num, true)) { + WHAT_ERROR("CRF_L1 execute error"); + } + break; + } + + for (std::vector<TaggerImpl *>::iterator it = x.begin(); + it != x.end(); ++it) { + delete *it; + } + + if (!feature_index.save(modelfile, textmodelfile)) { + WHAT_ERROR(feature_index.what()); + } + + std::cout << "\nDone!"; + + return true; +} +} + +int crfpp_learn(int argc, char **argv) { + static const CRFPP::Option long_options[] = { + {"freq", 'f', "1", "INT", + "use features that occuer no less than INT(default 1)" }, + {"maxiter" , 'm', "100000", "INT", + "set INT for max iterations in LBFGS routine(default 10k)" }, + {"cost", 'c', "1.0", "FLOAT", + "set FLOAT for cost parameter(default 1.0)" }, + {"eta", 'e', "0.0001", "FLOAT", + "set FLOAT for termination criterion(default 0.0001)" }, + {"convert", 'C', 0, 0, + "convert text model to binary model" }, + {"textmodel", 't', 0, 0, + "build also text model file for debugging" }, + {"algorithm", 'a', "CRF", "(CRF|MIRA)", "select training algorithm" }, + {"thread", 'p', "0", "INT", + "number of threads (default auto-detect)" }, + {"shrinking-size", 'H', "20", "INT", + "set INT for number of iterations variable needs to " + " be optimal before considered for shrinking. (default 20)" }, + {"version", 'v', 0, 0, "show the version and exit" }, + {"help", 'h', 0, 0, "show this help and exit" }, + {0, 0, 0, 0, 0} + }; + + CRFPP::Param param; + + param.open(argc, argv, long_options); + + if (!param.help_version()) { + return 0; + } + + const bool convert = param.get<bool>("convert"); + + const std::vector<std::string> &rest = param.rest_args(); + if (param.get<bool>("help") || + (convert && rest.size() != 2) || (!convert && rest.size() != 3)) { + std::cout << param.help(); + return 0; + } + + const size_t freq = param.get<int>("freq"); + const size_t maxiter = param.get<int>("maxiter"); + const double C = param.get<float>("cost"); + const double eta = param.get<float>("eta"); + const bool textmodel = param.get<bool>("textmodel"); + const unsigned short thread = + CRFPP::getThreadSize(param.get<unsigned short>("thread")); + const unsigned short shrinking_size + = param.get<unsigned short>("shrinking-size"); + std::string salgo = param.get<std::string>("algorithm"); + + CRFPP::toLower(&salgo); + + int algorithm = CRFPP::Encoder::MIRA; + if (salgo == "crf" || salgo == "crf-l2") { + algorithm = CRFPP::Encoder::CRF_L2; + } else if (salgo == "crf-l1") { + algorithm = CRFPP::Encoder::CRF_L1; + } else if (salgo == "mira") { + algorithm = CRFPP::Encoder::MIRA; + } else { + std::cerr << "unknown alogrithm: " << salgo << std::endl; + return -1; + } + + CRFPP::Encoder encoder; + if (convert) { + if (!encoder.convert(rest[0].c_str(), rest[1].c_str())) { + std::cerr << encoder.what() << std::endl; + return -1; + } + } else { + if (!encoder.learn(rest[0].c_str(), + rest[1].c_str(), + rest[2].c_str(), + textmodel, + maxiter, freq, eta, C, thread, shrinking_size, + algorithm)) { + std::cerr << encoder.what() << std::endl; + return -1; + } + } + + return 0; +} diff --git a/encoder.h b/encoder.h new file mode 100644 index 0000000..6d149b5 --- /dev/null +++ b/encoder.h @@ -0,0 +1,33 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: encoder.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_ENCODER_H_ +#define CRFPP_ENCODER_H_ + +#include "common.h" + +namespace CRFPP { +class Encoder { + public: + enum { CRF_L2, CRF_L1, MIRA }; + bool learn(const char *, const char *, + const char *, + bool, size_t, size_t, + double, double, + unsigned short, + unsigned short, int); + + bool convert(const char *text_file, + const char* binary_file); + + const char* what() { return what_.str(); } + + private: + whatlog what_; +}; +} +#endif diff --git a/example/JapaneseNE/exec.sh b/example/JapaneseNE/exec.sh new file mode 100755 index 0000000..b4e9f5c --- /dev/null +++ b/example/JapaneseNE/exec.sh @@ -0,0 +1,7 @@ +#!/bin/sh +../../crf_learn -p2 -f 3 -c 4.0 template train.data model +../../crf_test -m model test.data + +../../crf_learn -a MIRA -f 3 template train.data model +../../crf_test -m model test.data +rm -f model diff --git a/example/JapaneseNE/template b/example/JapaneseNE/template new file mode 100644 index 0000000..4035840 --- /dev/null +++ b/example/JapaneseNE/template @@ -0,0 +1,41 @@ +# Unigram +U00:%x[-2,0] +U01:%x[-1,0] +U02:%x[0,0] +U03:%x[1,0] +U04:%x[2,0] +U05:%x[-1,0]/%x[0,0] +U06:%x[0,0]/%x[1,0] + +U10:%x[-2,1] +U11:%x[-1,1] +U12:%x[0,1] +U13:%x[1,1] +U14:%x[2,1] +U15:%x[-2,1]/%x[-1,1] +U16:%x[-1,1]/%x[0,1] +U17:%x[0,1]/%x[1,1] +U18:%x[1,1]/%x[2,1] + +U20:%x[-2,1]/%x[-1,1]/%x[0,1] +U21:%x[-1,1]/%x[0,1]/%x[1,1] +U22:%x[0,1]/%x[1,1]/%x[2,1] + +U30:%x[-2,2] +U31:%x[-1,2] +U32:%x[0,2] +U33:%x[1,2] +U34:%x[2,2] +U35:%x[-2,2]/%x[-1,2] +U36:%x[-1,2]/%x[0,2] +U37:%x[0,2]/%x[1,2] +U38:%x[1,2]/%x[2,2] + +U40:%x[-2,2]/%x[-1,2]/%x[0,2] +U41:%x[-1,2]/%x[0,2]/%x[1,2] +U42:%x[0,2]/%x[1,2]/%x[2,2] + +U50:%x[0,1]/%x[0,2] + +# Bigram +B diff --git a/example/JapaneseNE/test.data b/example/JapaneseNE/test.data new file mode 100644 index 0000000..28d371d --- /dev/null +++ b/example/JapaneseNE/test.data @@ -0,0 +1,13178 @@ + S13 記号-空白 O +さらに M9 副詞-助詞類接続 O +、 S2 記号-読点 O +出先 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +電話 M1 名詞-サ変接続 O +回線 M1 名詞-一般 O +で S9 助動詞 O +データ M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +送れる T1-9 動詞-自立 O +携帯 M1 名詞-サ変接続 O +端末 M1 名詞-一般 O +や S9 助詞-並立助詞 O +、 S2 記号-読点 O +家電 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +コンピューター M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +融合 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +記憶 M1 名詞-サ変接続 O +容量 M1 名詞-一般 O +の S9 助詞-連体化 O +大きな T1-9 連体詞 O +光ディスク T1-10 名詞-一般 O +を S9 助詞-格助詞-一般 O +使っ T1-9 動詞-自立 O +た S9 助動詞 O +マルチメディア M10 名詞-一般 O +機器 M1 名詞-一般 O +の S9 助詞-連体化 O +開発 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +検討 M1 名詞-サ変接続 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +日本アイ・ビー・エム T2-10 名詞-固有名詞-組織 B-ORGANIZATION +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +パワーPC T10-7 名詞-一般 O +が S9 助詞-格助詞-一般 O +広がれ T1-9 動詞-自立 O +ば S9 助詞-接続助詞 O +、 S2 記号-読点 O +需要 M1 名詞-一般 O +は S9 助詞-係助詞 O +飛躍 M1 名詞-サ変接続 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +増え T1-9 名詞-一般 O +、 S2 記号-読点 O +MPU M7 名詞-一般 O +市場 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +大きな T1-9 連体詞 O +影響 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +出る T1-9 動詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +期待 M1 名詞-サ変接続 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +★ S2 記号-一般 O +[ S2 記号-括弧開 O +ブランド M10 名詞-一般 B-ARTIFACT +物語 M1 名詞-一般 I-ARTIFACT +] S2 記号-括弧閉 O +ソニー M10 名詞-固有名詞-組織 O + S13 記号-空白 O += S2 記号-一般 O +辻本 M1 名詞-固有名詞-人名-姓 B-PERSON +特許 M1 名詞-サ変接続 O +事務所 M1 名詞-一般 O +長 S1 形容詞-自立 O +・ S2 記号-一般 O +辻本 M1 名詞-固有名詞-人名-姓 B-PERSON +一義 T6-1 名詞-一般 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +で S9 助動詞 O +ラジオ M10 名詞-一般 O +放送 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +開始 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +一九二五 M6 名詞-数 O +( S2 記号-括弧開 O +大正 M1 名詞-固有名詞-一般 B-DATE +十 S6 名詞-数 I-DATE +) S2 記号-括弧閉 I-DATE +年 S1 名詞-一般 I-DATE +。 S2 記号-句点 O + +それから M9 接続詞 O +三十年後 T6-1 名詞-数 O +、 S2 記号-読点 O +まだ M9 副詞-助詞類接続 O +真空 M1 名詞-一般 O +管 S1 名詞-一般 O +式 S1 名詞-一般 O +ラジオ M10 名詞-一般 O +全盛 M1 名詞-一般 O +の S9 助詞-連体化 O +時代 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +国産 M1 名詞-一般 O +初 S1 接頭詞-名詞接続 O +の S9 助詞-連体化 O +トランジスタラジオ M10 名詞-一般 O +の S9 助詞-連体化 O +開発 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +成功 M1 名詞-サ変接続 O +した M9 名詞-一般 O +小さな T1-9 連体詞 O +ベンチャー M10 名詞-一般 O +企業 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +あっ M9 感動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +その M9 連体詞 O +名 S1 名詞-一般 O +は S9 助詞-係助詞 O +東京通信工業 M1 名詞-固有名詞-組織 B-ORGANIZATION +。 S2 記号-句点 O + +今や T1-9 副詞-一般 O +世界 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +企業 M1 名詞-一般 O +として M9 助詞-格助詞-連語 O +知 S1 名詞-一般 O +られる M9 動詞-接尾 O +ソニー M10 名詞-固有名詞-組織 B-ORGANIZATION +( S2 記号-括弧開 O +本社 M1 名詞-一般 O +・ S2 記号-一般 O +東 S1 名詞-一般 B-LOCATION +京都 M1 名詞-固有名詞-地域-一般 I-LOCATION +品川 M1 名詞-固有名詞-地域-一般 I-LOCATION +区 S1 名詞-一般 I-LOCATION +、 S2 記号-読点 O +大賀 M1 名詞-一般 B-PERSON +典雄 M1 名詞-固有名詞-人名-名 I-PERSON +社長 M1 名詞-一般 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +前身 M1 名詞-一般 O +で S9 助動詞 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +戦後 M1 名詞-副詞可能 B-DATE +、 S2 記号-読点 O +創 S1 動詞-自立 O +業者 M1 名詞-一般 O +の S9 助詞-連体化 O +井深 M1 名詞-固有名詞-人名-姓 B-PERSON +大 S1 接頭詞-名詞接続 I-PERSON +氏 S1 名詞-接尾-人名 O +が S9 助詞-格助詞-一般 O +東京 M1 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +日本橋 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +白木屋 M1 名詞-固有名詞-組織 B-ORGANIZATION +( S2 記号-括弧開 O +現 S1 接頭詞-名詞接続 O +東急 M1 名詞-固有名詞-組織 B-ORGANIZATION +百貨店 T6-1 名詞-一般 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +三階 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +を S9 助詞-格助詞-一般 O +借り T1-9 動詞-自立 O +、 S2 記号-読点 O +ラジオ M10 名詞-一般 O +の S9 助詞-連体化 O +修理 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +改造 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +手掛け T1-9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +が S9 助詞-格助詞-一般 O +今日 M1 名詞-副詞可能 B-DATE +の S9 助詞-連体化 O +第一歩 T6-1 名詞-一般 O +。 S2 記号-句点 O + +その後 T9-1 名詞-副詞可能 O +、 S2 記号-読点 O +国産 M1 名詞-一般 O +初 S1 接頭詞-名詞接続 O +の S9 助詞-連体化 O +テープレコーダー M10 名詞-一般 O +の S9 助詞-連体化 O +開発 M1 名詞-サ変接続 O +で S9 助動詞 O +注目 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +集め T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +五五年 T6-1 名詞-数 O +、 S2 記号-読点 O +市場 M1 名詞-一般 O +調査 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +商談 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +現 S1 接頭詞-名詞接続 O +名誉 M1 名詞-形容動詞語幹 O +会長 M1 名詞-一般 O +の S9 助詞-連体化 O +盛田 M1 名詞-固有名詞-人名-姓 B-PERSON +昭夫 M1 名詞-固有名詞-人名-名 I-PERSON +氏 S1 名詞-接尾-人名 O +が S9 助詞-格助詞-一般 O +渡米 M1 名詞-サ変接続 O +する M9 動詞-自立 O +に際して T1-9 助詞-格助詞-連語 O +、 S2 記号-読点 O +全 S1 接頭詞-名詞接続 O +製品 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +SONY M7 名詞-固有名詞-組織 B-ORGANIZATION +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +マーク M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +入れる T1-9 動詞-自立 O +ことに M9 副詞-一般 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +東京通信工業 M1 名詞-固有名詞-組織 B-ORGANIZATION +あるいは M9 接続詞 O +東通工 M1 名詞-固有名詞-組織 B-ORGANIZATION +とい M9 名詞-一般 O +って M9 助詞-格助詞-連語 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +アメリカ M10 名詞-固有名詞-地域-国 B-LOCATION +人 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +正しく T1-9 副詞-一般 O +発音 M1 名詞-サ変接続 O +でき M9 動詞-自立 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +どこ M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +国 S1 名詞-一般 O +の S9 助詞-連体化 O +言葉 M1 名詞-一般 O +でも M9 助詞-副助詞 O +同じ T1-9 連体詞 O +よう M9 名詞-非自立-助動詞語幹 O +に S9 助詞-格助詞-一般 O +読め T1-9 動詞-自立 O +、 S2 記号-読点 O +発音 M1 名詞-サ変接続 O +できる M9 動詞-自立 O +もの M9 名詞-非自立-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +と S9 助詞-格助詞-引用 O +考え T1-9 名詞-一般 O +た S9 助動詞 O +末 S1 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +SONY M7 名詞-固有名詞-組織 B-ORGANIZATION +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +音 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +表す T1-9 動詞-自立 O +「 S2 記号-括弧開 O +SO M7 名詞-一般 O +N S7 記号-アルファベット O +IC M7 名詞-一般 O +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +語源 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +なっ M9 動詞-自立 O +た S9 助動詞 O +ラテン語 T10-1 名詞-一般 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +SONUS M7 名詞-一般 O +( S2 記号-括弧開 O +ソヌス M10 名詞-一般 O +) S2 記号-括弧閉 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +小さい T1-9 形容詞-自立 O +とか M9 助詞-並立助詞 O +坊や T1-9 名詞-一般 O +という M9 助詞-格助詞-連語 O +意味 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +SO M7 名詞-一般 B-ORGANIZATION +N S7 記号-アルファベット I-ORGANIZATION +NY M7 名詞-固有名詞-地域-一般 I-ORGANIZATION +」 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +かけ M9 動詞-自立 O +合わせ T1-9 動詞-自立 O +た S9 助動詞 O +造語 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +自分 M1 名詞-一般 O +たち M9 名詞-接尾-一般 O +の S9 助詞-連体化 O +会社 M1 名詞-一般 O +は S9 助詞-係助詞 O +非常 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +小さい T1-9 形容詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +それに M9 接続詞 O +も S9 助詞-係助詞 O +増し T1-9 名詞-一般 O +て S9 助詞-接続助詞 O +はつらつ M9 副詞-助詞類接続 O +と S9 助詞-格助詞-引用 O +した M9 名詞-一般 O +若者 M1 名詞-一般 O +の S9 助詞-連体化 O +集まり T1-9 名詞-一般 O +で S9 助動詞 O +ある M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +表現 M1 名詞-サ変接続 O +した M9 名詞-一般 O +もの M9 名詞-非自立-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +五八年 T6-1 名詞-数 O +、 S2 記号-読点 O +国際 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +な S9 助詞-終助詞 O +発展 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +願っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +社名 M1 名詞-一般 O +も S9 助詞-係助詞 O +「 S2 記号-括弧開 O +ソニー M10 名詞-固有名詞-組織 B-ORGANIZATION +」 S2 記号-括弧閉 O +に S9 助詞-格助詞-一般 O +変更 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + += S2 記号-一般 O +辻本 M1 名詞-固有名詞-人名-姓 B-PERSON +特許 M1 名詞-サ変接続 O +事務所 M1 名詞-一般 O +長 S1 形容詞-自立 O +・ S2 記号-一般 O +辻本 M1 名詞-固有名詞-人名-姓 B-PERSON +一義 T6-1 名詞-一般 O + +★ S2 記号-一般 O +[ S2 記号-括弧開 O +食卓 M1 名詞-一般 O +の S9 助詞-連体化 O +一品 T6-1 名詞-一般 O +] S2 記号-括弧閉 O +ワケギ M10 名詞-一般 O +の S9 助詞-連体化 O +錦 S1 名詞-一般 O +巻き T1-9 動詞-自立 O += S2 記号-一般 O +赤堀 M1 名詞-固有名詞-人名-姓 B-PERSON +博美 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +ぬた M9 名詞-一般 O +の S9 助詞-連体化 O +材料 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +ノリ M10 名詞-一般 O +と S9 助詞-格助詞-引用 O +薄焼き T1-9 名詞-一般 O +卵 S1 名詞-一般 O +で S9 助動詞 O +巻い T1-9 動詞-自立 O +た S9 助動詞 O +ひと M9 名詞-一般 O +皿 S1 名詞-一般 O +。 S2 記号-句点 O + +マグロ M10 名詞-一般 O +以外 M1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +魚介類 M1 名詞-一般 O +でも M9 助詞-副助詞 O +合い T1-9 動詞-自立 O +ます M9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +《 S2 記号-括弧開 O +材料 M1 名詞-一般 O +》 S2 記号-括弧閉 O +( S2 記号-括弧開 O +4 S5 名詞-数 O +人 S1 名詞-一般 O +分 S1 動詞-自立 O +) S2 記号-括弧閉 O +ワケギ M10 名詞-一般 O +1 S5 名詞-数 O +束 S1 名詞-一般 O +▽ S2 記号-一般 O +卵 S1 名詞-一般 O +1 S5 名詞-数 O +個 S1 名詞-一般 O +▽ S2 記号-一般 O +塩 S1 名詞-一般 O +少々 T1-2 副詞-助詞類接続 O +▽ S2 記号-一般 O +サラダ油 T10-1 名詞-一般 O +少々 T1-2 副詞-助詞類接続 O +▽ S2 記号-一般 O +マグロ M10 名詞-一般 O +( S2 記号-括弧開 O +刺し身 T9-1 名詞-一般 O +用 S1 名詞-一般 O +約 S1 接頭詞-数接続 O +2 S5 名詞-数 O +グラム M10 名詞-固有名詞-人名-姓 B-PERSON +) S2 記号-括弧閉 O +▽ S2 記号-一般 O +ノリ M10 名詞-一般 O +2 S5 名詞-数 O +枚 S1 接頭詞-数接続 O +▽ S2 記号-一般 O +A S7 記号-アルファベット O +( S2 記号-括弧開 O +白みそ T1-9 名詞-一般 O +6 S5 名詞-数 O +グラム M10 名詞-固有名詞-人名-姓 O +、 S2 記号-読点 O +砂糖 M1 名詞-一般 O +、 S2 記号-読点 O +酢 S1 名詞-一般 O +大さじ T1-9 名詞-一般 O +2 S5 名詞-数 O +) S2 記号-括弧閉 O +▽ S2 記号-一般 O +塩 S1 名詞-一般 O +、 S2 記号-読点 O +酢 S1 名詞-一般 O +各 S1 接頭詞-名詞接続 O +適宜 M1 名詞-副詞可能 O +▽ S2 記号-一般 O +ショウガ M10 名詞-一般 O +1 S5 名詞-数 O +片 S1 接頭詞-名詞接続 O + + S13 記号-空白 O +《 S2 記号-括弧開 O +作り方 T9-1 名詞-一般 O +》 S2 記号-括弧閉 O + S13 記号-空白 O +( S2 記号-括弧開 O +1 S5 名詞-数 O +) S2 記号-括弧閉 O +ワケギ M10 名詞-一般 O +は S9 助詞-係助詞 O +ノリ M10 名詞-一般 O +の S9 助詞-連体化 O +幅 S1 名詞-一般 O +の S9 助詞-連体化 O +長 S1 形容詞-自立 O +さ S9 助詞-終助詞 O +に S9 助詞-格助詞-一般 O +切り T1-9 名詞-一般 O +、 S2 記号-読点 O +さっと M9 副詞-一般 O +ゆで M9 動詞-自立 O +て S9 助詞-接続助詞 O +塩 S1 名詞-一般 O +、 S2 記号-読点 O +酢 S1 名詞-一般 O +少々 T1-2 副詞-助詞類接続 O +を S9 助詞-格助詞-一般 O +かける M9 動詞-自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +2 S5 名詞-数 O +) S2 記号-括弧閉 O +卵 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +割りほぐし T1-9 動詞-自立 O +、 S2 記号-読点 O +塩 S1 名詞-一般 O +少々 T1-2 副詞-助詞類接続 O +を S9 助詞-格助詞-一般 O +加え T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +サラダ油 T10-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +ひい M9 動詞-自立 O +た S9 助動詞 O +卵焼き T1-9 名詞-一般 O +鍋 S1 名詞-一般 O +で S9 助動詞 O +薄焼き T1-9 名詞-一般 O +卵 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +2 S5 名詞-数 O +枚 S1 接頭詞-数接続 O +焼く T1-9 動詞-自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +3 S5 名詞-数 O +) S2 記号-括弧閉 O +マグロ M10 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +1 S5 名詞-数 O +・ S2 記号-一般 O +5 S5 名詞-数 O +センチ M10 名詞-一般 O +角 S1 形容詞-自立 O +の S9 助詞-連体化 O +棒状 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +切り T1-9 名詞-一般 O +、 S2 記号-読点 O +塩 S1 名詞-一般 O +、 S2 記号-読点 O +酢 S1 名詞-一般 O +各 S1 接頭詞-名詞接続 O +少々 T1-2 副詞-助詞類接続 O +を S9 助詞-格助詞-一般 O +かける M9 動詞-自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +4 S5 名詞-数 O +) S2 記号-括弧閉 O +調味 M1 名詞-サ変接続 O +料 S1 動詞-自立 O +A S7 記号-アルファベット O +を S9 助詞-格助詞-一般 O +混ぜ合わせ T1-9 動詞-自立 O +、 S2 記号-読点 O +酢みそ T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +作る T1-9 動詞-自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +5 S5 名詞-数 O +) S2 記号-括弧閉 O +ショウガ M10 名詞-一般 O +は S9 助詞-係助詞 O +せん切り T1-9 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +6 S5 名詞-数 O +) S2 記号-括弧閉 O +巻きす T1-9 名詞-一般 O +に S9 助詞-格助詞-一般 O +ノリ M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +1 S5 名詞-数 O +枚 S1 接頭詞-数接続 O +おき M9 動詞-自立 O +、 S2 記号-読点 O +その M9 連体詞 O +上 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +薄焼き T1-9 名詞-一般 O +卵 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +1 S5 名詞-数 O +枚 S1 接頭詞-数接続 O +おく M9 動詞-非自立 O +。 S2 記号-句点 O + +ワケギ M10 名詞-一般 O +の S9 助詞-連体化 O +水気 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +きり M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +1 S5 名詞-数 O +/ S2 記号-一般 O +2 S5 名詞-数 O +量 S1 動詞-自立 O +を S9 助詞-格助詞-一般 O +卵 S1 名詞-一般 O +の S9 助詞-連体化 O +上の T1-9 名詞-固有名詞-地域-一般 O +手前 M1 名詞-一般 O +側 S1 名詞-接尾-一般 O +に S9 助詞-格助詞-一般 O +広げ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +おき M9 動詞-自立 O +、 S2 記号-読点 O +この M9 連体詞 O +上 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +マグロ M10 名詞-一般 O +と S9 助詞-格助詞-引用 O +ショウガ M10 名詞-一般 O +の S9 助詞-連体化 O +半量 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +おい M9 感動詞 O +て S9 助詞-接続助詞 O +手前 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +ノリ巻き T1-9 名詞-一般 O +の S9 助詞-連体化 O +よう M9 名詞-非自立-助動詞語幹 O +に S9 助詞-格助詞-一般 O +巻く T1-9 動詞-自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +7 S5 名詞-数 O +) S2 記号-括弧閉 O + S13 記号-空白 O +( S2 記号-括弧開 O +6 S5 名詞-数 O +) S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +食べ T1-9 動詞-自立 O +やすい M9 形容詞-非自立 O +大き T1-9 形容詞-自立 O +さ S9 助詞-終助詞 O +に S9 助詞-格助詞-一般 O +切り T1-9 名詞-一般 O +、 S2 記号-読点 O +器 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +盛り T1-9 名詞-一般 O +酢みそ T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +かける M9 動詞-自立 O +。 S2 記号-句点 O + +《 S2 記号-括弧開 O +1 S5 名詞-数 O +人当たり T1-9 名詞-一般 O +1 S5 名詞-数 O +キロカロリー M10 名詞-接尾-助数詞 O +》 S2 記号-括弧閉 O + +テレクラ M10 名詞-一般 O +経営 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +副 S1 接頭詞-名詞接続 O +士長 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +懲戒免 M1 名詞-一般 O +-- M2 記号-一般 O +高槻 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +消防 M1 名詞-一般 O +本部 M1 名詞-一般 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +府 S1 名詞-一般 I-LOCATION +高槻 M1 名詞-固有名詞-地域-一般 I-LOCATION +市 S1 名詞-一般 I-LOCATION +消防 M1 名詞-一般 O +本部 M1 名詞-一般 O +は S9 助詞-係助詞 O +五日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +ダイヤルQ2 T7-5 名詞-一般 O +を S9 助詞-格助詞-一般 O +利用 M1 名詞-サ変接続 O +した M9 名詞-一般 O +テレホンクラブ M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +経営 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ていた M9 形容詞-自立 O +として M9 助詞-格助詞-連語 O +同市 M1 名詞-一般 O +中 S1 名詞-非自立-副詞可能 O +消防署 M1 名詞-一般 O +大冠 M1 名詞-固有名詞-地域-一般 O +分署 M1 名詞-一般 O +の S9 助詞-連体化 O +消防 M1 名詞-一般 O +副 S1 接頭詞-名詞接続 O +士長 M1 名詞-一般 O +( S2 記号-括弧開 O +4 S5 名詞-数 O +) S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +懲戒 M1 名詞-サ変接続 O +免職 M1 名詞-サ変接続 O +にし M9 名詞-一般 O +た S9 助動詞 O +、 S2 記号-読点 O +と S9 助詞-格助詞-引用 O +発表 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +消防 M1 名詞-一般 O +長 S1 形容詞-自立 O +ら S9 名詞-接尾-一般 O +上司 M1 名詞-一般 O +七 S6 名詞-数 O +人 S1 名詞-一般 O +も S9 助詞-係助詞 O +監督 M1 名詞-サ変接続 O +責任 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +問い T1-9 名詞-一般 O +訓告 M1 名詞-サ変接続 O +処分 M1 名詞-サ変接続 O +など M9 助詞-副助詞 O +にし M9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + +副 S1 接頭詞-名詞接続 O +士長 M1 名詞-一般 O +は S9 助詞-係助詞 O +処分 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +不服 M1 名詞-形容動詞語幹 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + + S13 記号-空白 O +消防 M1 名詞-一般 O +本部 M1 名詞-一般 O +による M9 助詞-格助詞-連語 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +この M9 連体詞 O +副 S1 接頭詞-名詞接続 O +士長 M1 名詞-一般 O +は S9 助詞-係助詞 O +昨年 M1 名詞-副詞可能 B-DATE +九月 T6-1 名詞-副詞可能 I-DATE +、 S2 記号-読点 O +大阪 M1 名詞-固有名詞-地域-一般 O +市 S1 名詞-一般 O +東淀川 M1 名詞-固有名詞-地域-一般 O +区内 M1 名詞-一般 O +の S9 助詞-連体化 O +マンション M10 名詞-一般 O +一室 T6-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +妻 S1 名詞-一般 O +( S2 記号-括弧開 O +2 S5 名詞-数 O +) S2 記号-括弧閉 O +名義 M1 名詞-一般 O +で S9 助動詞 O +借り T1-9 動詞-自立 O +、 S2 記号-読点 O +ダイヤルQ2 T7-5 名詞-一般 O +を S9 助詞-格助詞-一般 O +二十四回線開設 T6-1 名詞-数 O +。 S2 記号-句点 O + +数 S1 名詞-数 O +人 S1 名詞-一般 O +の S9 助詞-連体化 O +友人 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +共同 M1 名詞-サ変接続 O +経営 M1 名詞-サ変接続 O +で S9 助動詞 O +、 S2 記号-読点 O +副 S1 接頭詞-名詞接続 O +士長 M1 名詞-一般 O +は S9 助詞-係助詞 O +約 S1 接頭詞-数接続 O +五 S6 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +を S9 助詞-格助詞-一般 O +出資 M1 名詞-サ変接続 O +、 S2 記号-読点 O +多い T1-9 形容詞-自立 O +月 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +一 S6 名詞-数 B-MONEY +千万 M6 副詞-一般 B-MONEY +円 S1 名詞-一般 I-MONEY +近い T1-9 形容詞-自立 O +売り上げ T1-9 名詞-一般 O +だっ M9 助動詞 O +た S9 助動詞 O +、 S2 記号-読点 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + + S13 記号-空白 O +同 S1 接頭詞-名詞接続 O +本部 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +適法 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +営業 M1 名詞-サ変接続 O +され M9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +もの M9 名詞-非自立-一般 O +と S9 助詞-格助詞-引用 O +はい M9 感動詞 O +え S9 フィラー O +、 S2 記号-読点 O +消防 M1 名詞-一般 O +職員 M1 名詞-一般 O +の S9 助詞-連体化 O +品位 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +著しく T1-9 形容詞-自立 O +低下 M1 名詞-サ変接続 O +させ M9 動詞-接尾 O +た S9 助動詞 O +」 S2 記号-括弧閉 O +など M9 助詞-副助詞 O +として M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +地方 M1 名詞-一般 B-ARTIFACT +公務員 M1 名詞-一般 I-ARTIFACT +法 S1 名詞-一般 I-ARTIFACT +の S9 助詞-連体化 O +信用 M1 名詞-サ変接続 O +失墜 M1 名詞-サ変接続 O +行為 M1 名詞-サ変接続 O +禁止 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +営利 M1 名詞-一般 O +企業 M1 名詞-一般 O +等 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +従事 M1 名詞-サ変接続 O +制限 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +抵触 M1 名詞-サ変接続 O +した M9 名詞-一般 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +これ M9 名詞-代名詞-一般 O +に対し T1-9 助詞-格助詞-連語 O +、 S2 記号-読点 O +副 S1 接頭詞-名詞接続 O +士長 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +Q2 T7-5 名詞-一般 O +は S9 助詞-係助詞 O +適法 M1 名詞-一般 O +で S9 助動詞 O +電話 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +内容 M1 名詞-一般 O +について M9 助詞-格助詞-連語 O +も S9 助詞-係助詞 O +分から T1-9 動詞-自立 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +悪い T1-9 形容詞-自立 O +こと M9 名詞-非自立-一般 O +はし M9 名詞-一般 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +同 S1 接頭詞-名詞接続 O +本部 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +話し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +メールボックス M10 名詞-一般 O +] S2 記号-括弧閉 O +本 S1 名詞-一般 O +探し T1-9 動詞-自立 O +新 S1 接頭詞-名詞接続 O +時代 M1 名詞-一般 O + + S13 記号-空白 O +八 S6 名詞-数 B-DATE +年 S1 名詞-一般 I-DATE +ほど M9 助詞-副助詞 I-DATE +前 S1 名詞-副詞可能 I-DATE +、 S2 記号-読点 O +政治 M1 名詞-一般 O +部 S1 名詞-一般 O +記者 M1 名詞-一般 O +時代 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +書い T1-9 動詞-自立 O +た S9 助動詞 O +「 S2 記号-括弧開 O +中曽根 M1 名詞-固有名詞-人名-姓 B-PERSON +政権 M1 名詞-一般 O +・ S2 記号-一般 O +一 S6 名詞-数 O +〇 S2 記号-一般 O +六 S6 名詞-数 O +日 S1 名詞-一般 O +」 S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +本に T1-9 副詞-一般 O +注文 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +来 S1 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +それも M9 接続詞 O +ロンドン M10 名詞-固有名詞-地域-一般 B-LOCATION +から M9 助詞-格助詞-一般 O +で S9 助動詞 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +英国 M1 名詞-固有名詞-地域-国 B-LOCATION +人 S1 名詞-一般 O +の S9 助詞-連体化 O +女性 M1 名詞-一般 O +政治 M1 名詞-一般 O +学者 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +わが M9 連体詞 O +社 S1 名詞-一般 O +の S9 助詞-連体化 O +ロンドン M10 名詞-固有名詞-地域-一般 B-LOCATION +特派 M1 名詞-サ変接続 O +員 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +一時 T6-1 名詞-副詞可能 O +帰国 M1 名詞-サ変接続 O +したら M9 接続詞 O +、 S2 記号-読点 O +この M9 連体詞 O +本 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +探し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +くれ M9 動詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +依頼 M1 名詞-サ変接続 O +した M9 名詞-一般 O +らしい M9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +印刷 M1 名詞-サ変接続 O +、 S2 記号-読点 O +わずか M9 副詞-助詞類接続 O +五千部 T6-1 名詞-数 O +。 S2 記号-句点 O + +評判 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なら M9 助動詞 O +なかっ M9 形容詞-自立 O +たし M9 助動詞 O +、 S2 記号-読点 O +全く T1-9 副詞-助詞類接続 O +売れ T1-9 動詞-自立 O +なかっ M9 形容詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +特派 M1 名詞-サ変接続 O +員 S1 名詞-一般 O +氏 S1 名詞-接尾-人名 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +僕 S1 名詞-代名詞-一般 O +が S9 助詞-格助詞-一般 O +そんな M9 連体詞 O +本 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +書い T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +なんて M9 助詞-副助詞 O +、 S2 記号-読点 O +思っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +もみ M9 名詞-一般 O +なかっ M9 形容詞-自立 O +たらしい M9 形容詞-接尾 O +。 S2 記号-句点 O + + S13 記号-空白 O +遠い T1-9 形容詞-自立 O +ロンドン M10 名詞-固有名詞-地域-一般 B-LOCATION +で S9 助動詞 O +、 S2 記号-読点 O +この M9 連体詞 O +「 S2 記号-括弧開 O +隠れ T1-9 名詞-一般 O +た S9 助動詞 O +迷著 M1 名詞-一般 O +? S2 記号-一般 O +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +存在 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +分かっ T1-9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +多分 M1 副詞-一般 O +、 S2 記号-読点 O +全 S1 接頭詞-名詞接続 O +世界 M1 名詞-一般 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +文献 M1 名詞-一般 O +検索 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +可能 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +なり M9 動詞-自立 O +つつ M9 助詞-接続助詞 O +ある M9 動詞-自立 O +から M9 助詞-格助詞-一般 O +では M9 接続詞 O +ない M9 形容詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +迷著 M1 名詞-一般 O +の S9 助詞-連体化 O +筆者 M1 名詞-一般 O +」 S2 記号-括弧閉 O +は S9 助詞-係助詞 O +データベース M10 名詞-一般 O +の S9 助詞-連体化 O +お陰 T9-1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +数少ない T1-9 形容詞-自立 O +「 S2 記号-括弧開 O +読者 M1 名詞-一般 O +」 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +獲得 M1 名詞-サ変接続 O +した M9 名詞-一般 O +わけ M9 名詞-非自立-一般 O +だ S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +最近 M1 名詞-副詞可能 O +、 S2 記号-読点 O +身近 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +図書館 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +のぞい M9 動詞-自立 O +て S9 助詞-接続助詞 O +みて M9 動詞-自立 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +そこ M9 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +本 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +読む T1-9 動詞-自立 O +ところ M9 名詞-非自立-副詞可能 O +」 S2 記号-括弧閉 O +から M9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +情報 M1 名詞-一般 O +検索 M1 名詞-サ変接続 O +端末 M1 名詞-一般 O +」 S2 記号-括弧閉 O +に S9 助詞-格助詞-一般 O +変わり T1-9 動詞-自立 O +つつ M9 助詞-接続助詞 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + +タイトル M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +分から T1-9 動詞-自立 O +なく M9 形容詞-自立 O +て S9 助詞-接続助詞 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +著者 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +分から T1-9 動詞-自立 O +なく M9 形容詞-自立 O +て S9 助詞-接続助詞 O +も S9 助詞-係助詞 O +「 S2 記号-括弧開 O +いつ M9 名詞-副詞可能 O +ごろ M9 名詞-接尾-副詞可能 O +、 S2 記号-読点 O +この M9 連体詞 O +分野 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +こんな M9 連体詞 O +テーマ M10 名詞-一般 O +で S9 助動詞 O +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +キーワード M10 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +欲しい T1-9 形容詞-自立 O +本 S1 名詞-一般 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +検索 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +徐々に T2-9 副詞-一般 O +可能 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +そこ M9 名詞-代名詞-一般 O +に S9 助詞-格助詞-一般 O +働く T1-9 動詞-自立 O +「 S2 記号-括弧開 O +司書 M1 名詞-一般 O +」 S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +職業 M1 名詞-一般 O +も S9 助詞-係助詞 O +変わる T1-9 動詞-自立 O +。 S2 記号-句点 O + +「 S2 記号-括弧開 O +図書 M1 名詞-一般 O +の S9 助詞-連体化 O +収集 M1 名詞-サ変接続 O +、 S2 記号-読点 O +整理 M1 名詞-サ変接続 O +、 S2 記号-読点 O +保管 M1 名詞-サ変接続 O +、 S2 記号-読点 O +閲覧 M1 名詞-サ変接続 O +に関する T1-9 助詞-格助詞-連語 O +業務 M1 名詞-一般 O +」 S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +地味 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +仕事 M1 名詞-サ変接続 O +だっ M9 助動詞 O +た S9 助動詞 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +いまや M9 副詞-一般 O +、 S2 記号-読点 O +端末 M1 名詞-一般 O +機 S1 名詞-一般 O +相手 M1 名詞-一般 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +探偵 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +。 S2 記号-句点 O + +利用 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +手伝い T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +例えば T1-9 接続詞 O +、 S2 記号-読点 O +どこ M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +図書館 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +どこ M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +研究 M1 名詞-サ変接続 O +組織 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +あるいは M9 接続詞 O +どこ M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +国 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +お S9 接頭詞-名詞接続 O +求め T1-9 動詞-自立 O +の S9 助詞-連体化 O +情報 M1 名詞-一般 O +」 S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +、 S2 記号-読点 O +探し当て T1-9 動詞-自立 O +、 S2 記号-読点 O +アドバイス M10 名詞-サ変接続 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +先端 M1 名詞-一般 O +の S9 助詞-連体化 O +サービス M10 名詞-サ変接続 O +業 S1 名詞-接尾-一般 O +、 S2 記号-読点 O +それ M9 名詞-代名詞-一般 O +が S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +司書 M1 名詞-一般 O +」 S2 記号-括弧閉 O +に S9 助詞-格助詞-一般 O +なる M9 動詞-自立 O +かも M9 助詞-副助詞 O +しれ M9 動詞-自立 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +牧 S1 名詞-一般 B-PERSON +太郎 M1 名詞-固有名詞-人名-名 I-PERSON +) S2 記号-括弧閉 O += S2 記号-一般 O +ニフティ M10 名詞-固有名詞-組織 B-OPTIONAL +ID M7 名詞-一般 O += S2 記号-一般 O +SG M7 名詞-一般 O +X S7 記号-アルファベット O +02120 M5 名詞-数 O + +祇園 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +元 S1 接頭詞-名詞接続 O +舞妓 M1 名詞-一般 O +さん M9 名詞-接尾-人名 O +、 S2 記号-読点 O +“ S2 記号-括弧開 O +いじめ M9 名詞-一般 O +” S2 記号-括弧閉 O +提訴 M1 名詞-サ変接続 O + S13 記号-空白 O +「 S2 記号-括弧開 O +5 S5 名詞-数 O +年間 M1 名詞-一般 O +の S9 助詞-連体化 O +修業 M1 名詞-一般 O +中 S1 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +置き屋 T9-1 名詞-一般 O +で S9 助動詞 O +ひどい M9 形容詞-自立 O +仕打ち T1-9 名詞-一般 O +」 S2 記号-括弧閉 O + + S13 記号-空白 O +京都 M1 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +祇園 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +元 S1 接頭詞-名詞接続 O +舞妓 M1 名詞-一般 O +( S2 記号-括弧開 O +まいこ M9 名詞-一般 O +) S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +五 S6 名詞-数 O +年間 M1 名詞-一般 O +の S9 助詞-連体化 O +修業 M1 名詞-一般 O +中 S1 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +ひどい M9 形容詞-自立 O +仕打ち T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +、 S2 記号-読点 O +人権 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +侵害 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +」 S2 記号-括弧閉 O +として M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +置き屋 T9-1 名詞-一般 O +の S9 助詞-連体化 O +経営 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +を S9 助詞-格助詞-一般 O +相手取り T1-9 動詞-自立 O +、 S2 記号-読点 O +慰謝 M1 名詞-サ変接続 O +料 S1 動詞-自立 O +と S9 助詞-格助詞-引用 O +祝儀 M1 名詞-一般 O +金 S1 名詞-一般 O +など M9 助詞-副助詞 O +計 S1 接頭詞-数接続 O +千百万円 T6-1 名詞-数 O +の S9 助詞-連体化 O +損害 M1 名詞-サ変接続 O +賠償 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +求める T1-9 動詞-自立 O +訴訟 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +五日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +京都 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +地裁 M1 名詞-一般 I-ORGANIZATION +に S9 助詞-格助詞-一般 O +起こし T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +訴え T1-9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +京都 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +東山 M1 名詞-固有名詞-地域-一般 I-LOCATION +区 S1 名詞-一般 O +の S9 助詞-連体化 O +高木 M1 名詞-固有名詞-人名-姓 B-PERSON +香織 M1 名詞-固有名詞-人名-名 I-PERSON +さん M9 名詞-接尾-人名 O +( S2 記号-括弧開 O +2 S5 名詞-数 O +) S2 記号-括弧閉 O +。 S2 記号-句点 O + +訴状 M1 名詞-一般 O +など M9 助詞-副助詞 O +による M9 助詞-格助詞-連語 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +高木 M1 名詞-固有名詞-人名-姓 B-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +一九八九年 T6-1 名詞-数 O +に S9 助詞-格助詞-一般 O +山口 M1 名詞-固有名詞-地域-一般 B-LOCATION +県 S1 名詞-一般 I-LOCATION +下関 M1 名詞-固有名詞-地域-一般 I-LOCATION +市 S1 名詞-一般 I-LOCATION +の S9 助詞-連体化 O +中学 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +卒業 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +祇園 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +置き屋 T9-1 名詞-一般 O +「 S2 記号-括弧開 O +新井 M1 名詞-固有名詞-組織 B-ORGANIZATION +」 S2 記号-括弧閉 O +に S9 助詞-格助詞-一般 O +住み込ん T1-9 動詞-自立 O +で S9 助動詞 O +舞妓 M1 名詞-一般 O +見習 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なり M9 動詞-自立 O +、 S2 記号-読点 O +一年後 T6-1 名詞-数 O +から M9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +豆 S1 名詞-一般 O +育 S1 名詞-固有名詞-人名-名 B-ARTIFACT +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +名前 M1 名詞-一般 O +で S9 助動詞 O +お茶屋 T9-1 名詞-一般 O +の S9 助詞-連体化 O +座敷 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +出 S1 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +ところが M9 接続詞 O +、 S2 記号-読点 O +置き屋 T9-1 名詞-一般 O +の S9 助詞-連体化 O +経営 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +ら S9 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +ささい M9 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +こと M9 名詞-非自立-一般 O +で S9 助動詞 O +顔 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +平手打ち T1-9 名詞-サ変接続 O +し S9 動詞-自立 O +たり M9 助詞-並立助詞 O +、 S2 記号-読点 O +友人 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +手紙 M1 名詞-一般 O +も S9 助詞-係助詞 O +勝手 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +開封 M1 名詞-サ変接続 O +する M9 動詞-自立 O +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +暴行 M1 名詞-サ変接続 O +や S9 助詞-並立助詞 O +いじめ M9 名詞-一般 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +た S9 助動詞 O +うえ M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +過酷 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +労働 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +強要 M1 名詞-サ変接続 O +され M9 動詞-自立 O +たため M9 動詞-自立 O +耐え T1-9 名詞-一般 O +きれ M9 動詞-自立 O +ず S9 助動詞 O +、 S2 記号-読点 O +今年 M1 名詞-副詞可能 B-DATE +五月 T6-1 名詞-副詞可能 I-DATE +、 S2 記号-読点 O +逃げ出し T1-9 動詞-自立 O +た S9 助動詞 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + + S13 記号-空白 O +この間 T9-1 名詞-副詞可能 O +、 S2 記号-読点 O +給与 M1 名詞-サ変接続 O +として M9 助詞-格助詞-連語 O +月 S1 名詞-一般 O +五 S6 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +が S9 助詞-格助詞-一般 O +支給 M1 名詞-サ変接続 O +され M9 動詞-自立 O +ていた M9 形容詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +芸者 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なる M9 動詞-自立 O +など M9 助詞-副助詞 O +舞妓 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +辞める T1-9 動詞-自立 O +時に T1-9 副詞-一般 O +、 S2 記号-読点 O +退職 M1 名詞-サ変接続 O +金 S1 名詞-一般 O +として M9 助詞-格助詞-連語 O +置き屋 T9-1 名詞-一般 O +から M9 助詞-格助詞-一般 O +渡さ T1-9 動詞-自立 O +れる M9 動詞-接尾 O +慣例 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +、 S2 記号-読点 O +客 S1 名詞-一般 O +から M9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +祝儀 M1 名詞-一般 O +金 S1 名詞-一般 O +計 S1 接頭詞-数接続 O +五 S6 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +が S9 助詞-格助詞-一般 O +渡さ T1-9 動詞-自立 O +れ S9 助動詞 O +ず S9 助動詞 O +、 S2 記号-読点 O +慰謝 M1 名詞-サ変接続 O +料 S1 動詞-自立 O +五 S6 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +など M9 助詞-副助詞 O +とともに M9 助詞-格助詞-連語 O +祝儀 M1 名詞-一般 O +金 S1 名詞-一般 O +の S9 助詞-連体化 O +返還 M1 名詞-サ変接続 O +も S9 助詞-係助詞 O +求め T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +これ M9 名詞-代名詞-一般 O +に対し T1-9 助詞-格助詞-連語 O +、 S2 記号-読点 O +置き屋 T9-1 名詞-一般 O +側 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +弁護士 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +置き屋 T9-1 名詞-一般 O +は S9 助詞-係助詞 O +修業 M1 名詞-一般 O +の S9 助詞-連体化 O +場 S1 名詞-一般 O +。 S2 記号-句点 O + +行き過ぎ T1-9 名詞-一般 O +は S9 助詞-係助詞 O +なかっ M9 形容詞-自立 O +た S9 助動詞 O +」 S2 記号-括弧閉 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +女性 M1 名詞-一般 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +施設 M1 名詞-サ変接続 O +「 S2 記号-括弧開 O +ドーン M10 副詞-助詞類接続 O +センター M10 名詞-一般 O +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +ロビー M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +“ S2 記号-括弧開 O +クイズ M10 名詞-一般 O +形式 M1 名詞-一般 O +” S2 記号-括弧閉 O +の S9 助詞-連体化 O +壁画 M1 名詞-一般 O +-- M2 記号-一般 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +このほど M9 名詞-副詞可能 O +開館 M1 名詞-サ変接続 O +した M9 名詞-一般 O +全国 M1 名詞-一般 O +最大 M1 名詞-一般 O +規模 M1 名詞-一般 O +の S9 助詞-連体化 O +女性 M1 名詞-一般 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +施設 M1 名詞-サ変接続 O +「 S2 記号-括弧開 O +ドーン M10 副詞-助詞類接続 O +センター M10 名詞-一般 O +」 S2 記号-括弧閉 O +( S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +府立 M1 名詞-一般 O +女性 M1 名詞-一般 O +総合 M1 名詞-サ変接続 O +センター M10 名詞-一般 O +、 S2 記号-読点 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 O +中央 M1 名詞-一般 O +区 S1 名詞-一般 O +大手 M1 名詞-一般 O +前 S1 名詞-副詞可能 O +一 S6 名詞-数 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +一 S6 名詞-数 O +階 S1 名詞-一般 O +ロビー M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +一見 T6-1 名詞-サ変接続 O +そっくり M9 副詞-助詞類接続 O +だが M9 接続詞 O +よく M9 副詞-一般 O +見る T1-9 動詞-自立 O +と S9 助詞-格助詞-引用 O +何 S1 名詞-代名詞-一般 O +カ所 T10-1 名詞-接尾-助数詞 O +もの M9 名詞-非自立-一般 O +違い T1-9 名詞-ナイ形容詞語幹 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +室内 M1 名詞-一般 O +風景 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +二つ T6-9 名詞-一般 O +組み合わせ T1-9 名詞-一般 O +た S9 助動詞 O +ユニーク M10 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +“ S2 記号-括弧開 O +クイズ M10 名詞-一般 O +形式 M1 名詞-一般 O +” S2 記号-括弧閉 O +の S9 助詞-連体化 O +壁画 M1 名詞-一般 O += S2 記号-一般 O +写真 M1 名詞-一般 O += S2 記号-一般 O +が S9 助詞-格助詞-一般 O +設置 M1 名詞-サ変接続 O +され M9 動詞-自立 O +、 S2 記号-読点 O +若い T1-9 形容詞-自立 O +女性 M1 名詞-一般 O +ら S9 名詞-接尾-一般 O +の S9 助詞-連体化 O +話題 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +さら M9 名詞-非自立-一般 O +って M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +一 S6 名詞-数 O +・ S2 記号-一般 O +七三 M6 名詞-一般 O +メートル M10 名詞-一般 O +× S2 記号-一般 O +六 S6 名詞-数 O +・ S2 記号-一般 O +一 S6 名詞-数 O +メートル M10 名詞-一般 O +の S9 助詞-連体化 O +大作 M1 名詞-一般 O +で S9 助動詞 O +タイトル M10 名詞-一般 O +も S9 助詞-係助詞 O +ズバリ M10 副詞-一般 O +「 S2 記号-括弧開 O +どこ M9 名詞-代名詞-一般 O +が S9 助詞-格助詞-一般 O +違う T1-9 動詞-自立 O +? S2 記号-一般 O +」 S2 記号-括弧閉 O +。 S2 記号-句点 O + +制作 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +安井賞 M1 名詞-固有名詞-一般 B-LOCATION +受賞 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +新進 M1 名詞-一般 O +女性 M1 名詞-一般 O +画家 M1 名詞-一般 O +、 S2 記号-読点 O +福田 M1 名詞-固有名詞-人名-姓 B-PERSON +美蘭 M1 名詞-固有名詞-人名-名 I-PERSON +さん M9 名詞-接尾-人名 O +( S2 記号-括弧開 O +3 S5 名詞-数 O +) S2 記号-括弧閉 O += S2 記号-一般 O +東京 M1 名詞-固有名詞-地域-一般 B-LOCATION +在住 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +「 S2 記号-括弧開 O +女性 M1 名詞-一般 O +の S9 助詞-連体化 O +自立 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +社会 M1 名詞-一般 O +参加 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +拠点 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +ふさわしい M9 形容詞-自立 O +作品 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +」 S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +センター M10 名詞-一般 O +の S9 助詞-連体化 O +求め T1-9 動詞-自立 O +に S9 助詞-格助詞-一般 O +応じ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +鑑賞 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +単に T1-9 副詞-一般 O +見る T1-9 動詞-自立 O +だけ M9 助詞-副助詞 O +では M9 接続詞 O +なく M9 形容詞-自立 O +考える T1-9 動詞-自立 O +“ S2 記号-括弧開 O +参加 M1 名詞-サ変接続 O +型 S1 名詞-一般 O +絵画 M1 名詞-一般 O +” S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +アイデア M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +ひねり出し T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +違う T1-9 動詞-自立 O +部分 M1 名詞-一般 O +は S9 助詞-係助詞 O +女性 M1 名詞-一般 O +の S9 助詞-連体化 O +髪の毛 T9-1 名詞-一般 O +など M9 助詞-副助詞 O +七 S6 名詞-数 O +カ所 T10-1 名詞-接尾-助数詞 O +。 S2 記号-句点 O + +さて M9 接続詞 O +、 S2 記号-読点 O +その M9 連体詞 O +ほか M9 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +どこ M9 名詞-代名詞-一般 O +が S9 助詞-格助詞-一般 O +違う T1-9 動詞-自立 O +? S2 記号-一般 O + S13 記号-空白 O +センター M10 名詞-一般 O +( S2 記号-括弧開 O +0 S5 名詞-数 O +・ S2 記号-一般 O +9 S5 名詞-数 O +・ S2 記号-一般 O +8625 M5 名詞-数 O += S2 記号-一般 O +水曜 M1 名詞-副詞可能 O +休館 M1 名詞-サ変接続 O +) S2 記号-括弧閉 O +は S9 助詞-係助詞 O +十日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +から M9 助詞-格助詞-一般 O +二十五日 T6-1 名詞-数 O +まで M9 助詞-副助詞 O +投票 M1 名詞-サ変接続 O +箱 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +設置 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +解答 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +募集 M1 名詞-サ変接続 O +、 S2 記号-読点 O +正解 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +抽選 M1 名詞-サ変接続 O +で S9 助動詞 O +センター M10 名詞-一般 O +と S9 助詞-格助詞-引用 O +福田 M1 名詞-固有名詞-人名-姓 B-PERSON +さん M9 名詞-接尾-人名 O +から M9 助詞-格助詞-一般 O +すてき M9 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +グッズ M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +贈 S1 動詞-自立 O +られる M9 動詞-接尾 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +スポーツ M10 名詞-一般 O +質問 M1 名詞-サ変接続 O +箱 S1 名詞-一般 O +] S2 記号-括弧閉 O +アーチェリー M10 名詞-一般 O +は S9 助詞-係助詞 O +どう M9 副詞-助詞類接続 O +やっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +勝敗 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +決める T1-9 動詞-自立 O +ので M9 助詞-接続助詞 O +すか M9 名詞-一般 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + +A S7 記号-アルファベット O +, S2 記号-読点 O + + S13 記号-空白 O +アーチェリー M10 名詞-一般 O +は S9 助詞-係助詞 O +バルセロナ M10 名詞-固有名詞-地域-一般 B-LOCATION +五輪 T6-1 名詞-一般 O +から M9 助詞-格助詞-一般 O +試合 M1 名詞-サ変接続 O +形式 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +変わっ T1-9 動詞-自立 O +た S9 助動詞 O +そうですが M9 接続詞 O +、 S2 記号-読点 O +どう M9 副詞-助詞類接続 O +やっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +勝敗 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +決める T1-9 動詞-自立 O +ので M9 助詞-接続助詞 O +すか M9 名詞-一般 O +。 S2 記号-句点 O + +Q S7 記号-アルファベット O +, S2 記号-読点 O + + S13 記号-空白 O +アーチェリー M10 名詞-一般 O +の S9 助詞-連体化 O +標的 M1 名詞-一般 O +は S9 助詞-係助詞 O +男子 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +9 S5 名詞-数 O +メートル M10 名詞-一般 O +、 S2 記号-読点 O +7 S5 名詞-数 O +メートル M10 名詞-一般 O +、 S2 記号-読点 O +5 S5 名詞-数 O +メートル M10 名詞-一般 O +、 S2 記号-読点 O +3 S5 名詞-数 O +メートル M10 名詞-一般 O +、 S2 記号-読点 O +女子 M1 名詞-一般 O +は S9 助詞-係助詞 O +7 S5 名詞-数 O +メートル M10 名詞-一般 O +、 S2 記号-読点 O +6 S5 名詞-数 O +メートル M10 名詞-一般 O +、 S2 記号-読点 O +5 S5 名詞-数 O +メートル M10 名詞-一般 O +、 S2 記号-読点 O +3 S5 名詞-数 O +メートル M10 名詞-一般 O +。 S2 記号-句点 O + +長い T1-9 形容詞-自立 O +距離 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +短い T1-9 形容詞-自立 O +距離 M1 名詞-一般 O +へ S9 助詞-格助詞-一般 O +各 S1 接頭詞-名詞接続 O +3 S5 名詞-数 O +本 S1 名詞-一般 O +の S9 助詞-連体化 O +矢 S1 名詞-一般 O +( S2 記号-括弧開 O +3 S5 名詞-数 O +点 S1 名詞-非自立-一般 O +満点 M1 名詞-一般 O +) S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +射て T1-9 動詞-自立 O +、 S2 記号-読点 O +計 S1 接頭詞-数接続 O +1440 M5 名詞-数 O +点 S1 名詞-非自立-一般 O +となり M9 名詞-一般 O +ます M9 助動詞 O +。 S2 記号-句点 O + +一九八七年 T6-1 名詞-数 O +まで M9 助詞-副助詞 O +五輪 T6-1 名詞-一般 O +、 S2 記号-読点 O +世界 M1 名詞-一般 O +選手権 M1 名詞-一般 O +など M9 助詞-副助詞 O +世界 M1 名詞-一般 O +レベル M10 名詞-一般 O +の S9 助詞-連体化 O +大会 M1 名詞-一般 O +では M9 接続詞 O +この M9 連体詞 O +「 S2 記号-括弧開 O +シングル M10 名詞-一般 O +ラウンド M10 名詞-一般 O +」 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +2 S5 名詞-数 O +回 S1 動詞-自立 O +繰り返し T1-9 動詞-自立 O +た S9 助動詞 O +「 S2 記号-括弧開 O +ダブル M10 名詞-一般 O +ラウンド M10 名詞-一般 O +( S2 記号-括弧開 O +2880 M5 名詞-数 O +点 S1 名詞-非自立-一般 O +満点 M1 名詞-一般 O +) S2 記号-括弧閉 O +」 S2 記号-括弧閉 O +で S9 助動詞 O +争わ T1-9 動詞-自立 O +れ S9 助動詞 O +て S9 助詞-接続助詞 O +いま M9 名詞-副詞可能 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +同年 M1 名詞-副詞可能 O +の S9 助詞-連体化 O +世界 M1 名詞-一般 O +選手権 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +勝ち抜き T1-9 名詞-一般 O +戦 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +取り入れ T1-9 名詞-一般 O +た S9 助動詞 O +「 S2 記号-括弧開 O +グラウンド M10 名詞-一般 O +ラウンド M10 名詞-一般 O +」 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +実施 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +決勝 M1 名詞-一般 O +ラウンド M10 名詞-一般 O +の S9 助詞-連体化 O +一 S6 名詞-数 O +回戦 M1 名詞-接尾-助数詞 O +、 S2 記号-読点 O +準々 T1-2 接頭詞-名詞接続 O +決勝 M1 名詞-一般 O +、 S2 記号-読点 O +準決勝 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +進み T1-9 動詞-自立 O +、 S2 記号-読点 O +決勝 M1 名詞-一般 O +では M9 接続詞 O +8 S5 名詞-数 O +選手 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +4 S5 名詞-数 O +距離 M1 名詞-一般 O +9 S5 名詞-数 O +射 S1 動詞-自立 O +ずつ M9 助詞-副助詞 O +の S9 助詞-連体化 O +3 S5 名詞-数 O +点 S1 名詞-非自立-一般 O +満点 M1 名詞-一般 O +で S9 助動詞 O +争う T1-9 動詞-自立 O +形式 M1 名詞-一般 O +でし M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +バルセロナ M10 名詞-固有名詞-地域-一般 B-LOCATION +五輪 T6-1 名詞-一般 O +から M9 助詞-格助詞-一般 O +採用 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +「 S2 記号-括弧開 O +新 S1 接頭詞-名詞接続 O +オリンピック M10 名詞-一般 O +・ S2 記号-一般 O +ラウンド M10 名詞-一般 O +( S2 記号-括弧開 O +NOR M7 名詞-固有名詞-一般 B-ARTIFACT +) S2 記号-括弧閉 O +」 S2 記号-括弧閉 O +では M9 接続詞 O +、 S2 記号-読点 O +予選 M1 名詞-一般 O +ラウンド M10 名詞-一般 O +の S9 助詞-連体化 O +成績 M1 名詞-一般 O +順位 M1 名詞-一般 O +に従い T1-9 助詞-格助詞-連語 O +上位 M1 名詞-一般 O +3 S5 名詞-数 O +人 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +決勝 M1 名詞-一般 O +ラウンド M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +進出 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ます M9 助動詞 O +。 S2 記号-句点 O + +一位 T6-1 名詞-一般 O +と S9 助詞-格助詞-引用 O +三十二位 T6-1 名詞-数 O +、 S2 記号-読点 O +二 S6 名詞-数 O +位 S1 名詞-副詞可能 O +と S9 助詞-格助詞-引用 O +三 S6 名詞-数 O +一位 T6-1 名詞-一般 O +と S9 助詞-格助詞-引用 O +上位 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +下位 M1 名詞-一般 O +の S9 助詞-連体化 O +2 S5 名詞-数 O +人 S1 名詞-一般 O +ずつ M9 助詞-副助詞 O +が S9 助詞-格助詞-一般 O +対戦 M1 名詞-サ変接続 O +、 S2 記号-読点 O +7 S5 名詞-数 O +メートル M10 名詞-一般 O +だけ M9 助詞-副助詞 O +の S9 助詞-連体化 O +1 S5 名詞-数 O +射 S1 動詞-自立 O +( S2 記号-括弧開 O +1 S5 名詞-数 O +点 S1 名詞-非自立-一般 O +満点 M1 名詞-一般 O +) S2 記号-括弧閉 O +で S9 助動詞 O +決勝 M1 名詞-一般 O +まで M9 助詞-副助詞 O +の S9 助詞-連体化 O +トーナメント M10 名詞-一般 O +戦 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +行い T1-9 名詞-一般 O +ます M9 助動詞 O +。 S2 記号-句点 O + +単調 M1 名詞-一般 O +で S9 助動詞 O +見 S1 動詞-自立 O +てい M9 名詞-一般 O +ておもし M9 形容詞-自立 O +ろくな M9 連体詞 O +いと M9 副詞-一般 O +言 S1 名詞-一般 O +われ M9 名詞-代名詞-一般 O +て S9 助詞-接続助詞 O +きた M9 名詞-一般 O +アーチェリー M10 名詞-一般 O +ですが M9 接続詞 O +、 S2 記号-読点 O +観客 M1 名詞-一般 O +や S9 助詞-並立助詞 O +テレビ M10 名詞-一般 O +放映 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +意識 M1 名詞-サ変接続 O +した M9 名詞-一般 O +試み T1-9 名詞-一般 O +は S9 助詞-係助詞 O +好評 M1 名詞-一般 O +です M9 助動詞 O +。 S2 記号-句点 O + +「 S2 記号-括弧開 O +介護 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +約束 M1 名詞-サ変接続 O +守っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +くれ M9 動詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +難病 M1 名詞-一般 O +の S9 助詞-連体化 O +娘 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +残し T1-9 動詞-自立 O +父親 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +抗議 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +帰宅 M1 名詞-サ変接続 O +-- M2 記号-一般 O +兵庫 M1 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +尼崎 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +小学校 M1 名詞-一般 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +難病 M1 名詞-一般 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +ミトコンドリア M10 名詞-一般 B-LOCATION +筋 S1 名詞-一般 I-LOCATION +症 S1 名詞-接尾-一般 I-LOCATION +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +ベッド M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +寝 S1 動詞-自立 O +たま M9 名詞-一般 O +ま S9 フィラー O +人工 M1 名詞-一般 O +呼吸 M1 名詞-サ変接続 O +器 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +つけ M9 名詞-一般 O +、 S2 記号-読点 O +親 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +付き T1-9 名詞-一般 O +添われ T1-9 動詞-自立 O +兵庫 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +県 S1 名詞-一般 I-ORGANIZATION +尼崎 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +市立 M1 名詞-一般 I-ORGANIZATION +小園小 M1 名詞-固有名詞-組織 I-ORGANIZATION +( S2 記号-括弧開 O +土谷 M1 名詞-固有名詞-人名-姓 B-PERSON +正利 M1 名詞-固有名詞-人名-名 I-PERSON +校長 M1 名詞-一般 O +) S2 記号-括弧閉 O +で S9 助動詞 O +授業 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +同市 M1 名詞-一般 O +若王寺 M1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +平本 M1 名詞-固有名詞-人名-姓 B-PERSON +歩 S1 名詞-一般 I-PERSON +ちゃん M9 名詞-接尾-人名 O +( S2 記号-括弧開 O +8つ T5-9 名詞-一般 O +) S2 記号-括弧閉 O += S2 記号-一般 O +三 S6 名詞-数 O +年生 M1 名詞-接尾-助数詞 O += S2 記号-一般 O +の S9 助詞-連体化 O +父 S1 名詞-一般 O +弘冨美 M1 名詞-固有名詞-人名-名 B-PERSON +さん M9 名詞-接尾-人名 O +( S2 記号-括弧開 O +5 S5 名詞-数 O +) S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +六 S6 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +、 S2 記号-読点 O +「 S2 記号-括弧開 O +市 S1 名詞-一般 O +教委 M1 名詞-一般 O +は S9 助詞-係助詞 O +付き添い T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +必要 M1 名詞-形容動詞語幹 O +と S9 助詞-格助詞-引用 O +しない M9 名詞-一般 O +よう M9 名詞-非自立-助動詞語幹 O +に S9 助詞-格助詞-一般 O +すると M9 接続詞 O +約束 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ながら M9 助詞-接続助詞 O +何 S1 名詞-代名詞-一般 O +もし M9 副詞-一般 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +今 S1 名詞-副詞可能 O +の S9 助詞-連体化 O +状態 M1 名詞-一般 O +は S9 助詞-係助詞 O +差別 M1 名詞-サ変接続 O +だ S9 助動詞 O +」 S2 記号-括弧閉 O +として M9 助詞-格助詞-連語 O +登校 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +歩 S1 名詞-一般 O +ちゃん M9 名詞-接尾-人名 O +を S9 助詞-格助詞-一般 O +学校 M1 名詞-一般 O +へ S9 助詞-格助詞-一般 O +残し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +帰宅 M1 名詞-サ変接続 O +する M9 動詞-自立 O +“ S2 記号-括弧開 O +強硬 M1 名詞-形容動詞語幹 O +手段 M1 名詞-一般 O +” S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +とっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +歩 S1 名詞-一般 O +ちゃん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +障害 M1 名詞-一般 O +児 S1 名詞-一般 O +学級 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +属する T1-9 動詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +入学 M1 名詞-サ変接続 O +以来 M1 名詞-副詞可能 O +三 S6 名詞-数 I-DATE +年間 M1 名詞-一般 I-DATE +常時 M1 名詞-副詞可能 I-DATE +、 S2 記号-読点 O +父親 M1 名詞-一般 O +や S9 助詞-並立助詞 O +支援 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +付き添い T1-9 名詞-一般 O +、 S2 記号-読点 O +大半 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +普通 M1 名詞-形容動詞語幹 O +学級 M1 名詞-一般 O +で S9 助動詞 O +授業 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +一 S6 名詞-数 O +時間 M1 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +数回 M1 名詞-一般 O +たん M9 名詞-一般 O +を S9 助詞-格助詞-一般 O +器具 M1 名詞-一般 O +で S9 助動詞 O +吸い取る T1-9 動詞-自立 O +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +処置 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +必要 M1 名詞-形容動詞語幹 O +。 S2 記号-句点 O + + S13 記号-空白 O +両親 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +付き添い T1-9 名詞-一般 O +は S9 助詞-係助詞 O +親 S1 名詞-一般 O +の S9 助詞-連体化 O +負担 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +大きく T1-9 形容詞-自立 O +娘 S1 名詞-一般 O +の S9 助詞-連体化 O +自立 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +妨げる T1-9 動詞-自立 O +」 S2 記号-括弧閉 O +として M9 助詞-格助詞-連語 O +市 S1 名詞-一般 O +教委 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +介護 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +要望 M1 名詞-サ変接続 O +、 S2 記号-読点 O +昨年 M1 名詞-副詞可能 B-DATE +八月 T6-1 名詞-副詞可能 I-DATE +「 S2 記号-括弧開 O +親 S1 名詞-一般 O +の S9 助詞-連体化 O +付き添い T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +必要 M1 名詞-形容動詞語幹 O +と S9 助詞-格助詞-引用 O +しない M9 名詞-一般 O +条件 M1 名詞-一般 O +整備 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +向け T1-9 名詞-一般 O +て S9 助詞-接続助詞 O +努力 M1 名詞-サ変接続 O +する M9 動詞-自立 O +」 S2 記号-括弧閉 O +こと M9 名詞-非自立-一般 O +で S9 助動詞 O +合意 M1 名詞-サ変接続 O +した M9 名詞-一般 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +ところが M9 接続詞 O +一向に T1-9 副詞-一般 O +改善 M1 名詞-サ変接続 O +され M9 動詞-自立 O +ず S9 助動詞 O +、 S2 記号-読点 O +両親 M1 名詞-一般 O +は S9 助詞-係助詞 O +市 S1 名詞-一般 O +教委 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +数回 M1 名詞-一般 O +、 S2 記号-読点 O +話し合っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +その後 T9-1 名詞-副詞可能 O +も S9 助詞-係助詞 O +歩み寄り T1-9 名詞-一般 O +は S9 助詞-係助詞 O +なく M9 形容詞-自立 O +、 S2 記号-読点 O +歩 S1 名詞-一般 O +ちゃん M9 名詞-接尾-人名 O +を S9 助詞-格助詞-一般 O +残し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +の S9 助詞-連体化 O +抗議 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +帰宅 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +この M9 連体詞 O +日 S1 名詞-一般 O +学校 M1 名詞-一般 O +側 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +歩 S1 名詞-一般 O +ち S9 動詞-自立 O +ゃんのたんをとることなどは M9 名詞-一般 O +医療 M1 名詞-一般 O +行為 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +でき M9 動詞-自立 O +ない M9 形容詞-自立 O +」 S2 記号-括弧閉 O +として M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +介護 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +拒否 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +この M9 連体詞 O +ため M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +弘冨美 M1 名詞-固有名詞-人名-名 B-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +ポケットベル M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +持ち T1-9 動詞-自立 O +、 S2 記号-読点 O +その M9 連体詞 O +都度 M1 名詞-一般 O +、 S2 記号-読点 O +呼び出す T1-9 動詞-自立 O +態勢 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +とっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +過剰 M1 名詞-形容動詞語幹 O +防衛 M1 名詞-サ変接続 O +、 S2 記号-読点 O +認め T1-9 動詞-自立 O +ず S9 助動詞 O + S13 記号-空白 O +男性 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +逆転 M1 名詞-サ変接続 O +無罪 M1 名詞-一般 O +-- M2 記号-一般 O +暴行 M1 名詞-サ変接続 O +事件 M1 名詞-一般 O +で S9 助動詞 O +最高裁 M1 名詞-固有名詞-組織 B-ORGANIZATION + + S13 記号-空白 O +髪の毛 T9-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +つか M9 動詞-自立 O +んで M9 助詞-接続助詞 O +引き回さ T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +女 S1 名詞-一般 O +友達 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +助ける T1-9 動詞-自立 O +ため M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +酒 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +酔っ T1-9 動詞-自立 O +た S9 助動詞 O +相手 M1 名詞-一般 O +の S9 助詞-連体化 O +男性 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +暴行 M1 名詞-サ変接続 O +した M9 名詞-一般 O +として M9 助詞-格助詞-連語 O +傷害 M1 名詞-サ変接続 O +罪 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +問 S1 名詞-一般 O +われ M9 名詞-代名詞-一般 O +た S9 助動詞 O +東 S1 名詞-一般 B-LOCATION +京都 M1 名詞-固有名詞-地域-一般 I-LOCATION +文京 M1 名詞-固有名詞-地域-一般 I-LOCATION +区 S1 名詞-一般 I-LOCATION +の S9 助詞-連体化 O +工員 M1 名詞-一般 O +( S2 記号-括弧開 O +2 S5 名詞-数 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +上告 M1 名詞-サ変接続 O +審 S1 名詞-一般 O +で S9 助動詞 O +最高裁 M1 名詞-固有名詞-組織 B-ORGANIZATION +第 S1 接頭詞-数接続 O +三小法廷 T6-1 名詞-数 O +( S2 記号-括弧開 O +大野 M1 名詞-固有名詞-人名-姓 B-PERSON +正男 M1 名詞-固有名詞-人名-名 I-PERSON +裁判 M1 名詞-一般 O +長 S1 形容詞-自立 O +) S2 記号-括弧閉 O +は S9 助詞-係助詞 O +六 S6 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +、 S2 記号-読点 O +過剰 M1 名詞-形容動詞語幹 O +防衛 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +認め T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +懲役 M1 名詞-一般 B-DATE +十月 T6-1 名詞-副詞可能 I-DATE +、 S2 記号-読点 O +執行 M1 名詞-サ変接続 O +猶予 M1 名詞-サ変接続 O +二 S6 名詞-数 B-DATE +年 S1 名詞-一般 I-DATE +と S9 助詞-格助詞-引用 O +した M9 名詞-一般 O +一 S6 名詞-数 O +、 S2 記号-読点 O +二審判決 T6-1 名詞-数 O +を S9 助詞-格助詞-一般 O +破棄 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +逆転 M1 名詞-サ変接続 O +無罪 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +言い渡し T1-9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +追い打ち T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +かけ M9 動詞-自立 O +て S9 助詞-接続助詞 O +重傷 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +負わせ T1-9 動詞-自立 O +た S9 助動詞 O +仲間 M1 名詞-一般 O +の S9 助詞-連体化 O +行為 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +共謀 M1 名詞-サ変接続 O +関係 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +成立 M1 名詞-サ変接続 O +する M9 動詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +どうか M9 副詞-一般 O +が S9 助詞-格助詞-一般 O +争点 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +判決 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +最初 M1 名詞-一般 O +の S9 助詞-連体化 O +反撃 M1 名詞-サ変接続 O +行為 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +追撃 M1 名詞-サ変接続 O +行為 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +分離 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +「 S2 記号-括弧開 O +反撃 M1 名詞-サ変接続 O +行為 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +正当 M1 名詞-形容動詞語幹 O +防衛 M1 名詞-サ変接続 O +で S9 助動詞 O +、 S2 記号-読点 O +追撃 M1 名詞-サ変接続 O +行為 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +新た T1-9 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +共謀 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +成立 M1 名詞-サ変接続 O +し S9 動詞-自立 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +認定 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +一 S6 名詞-数 O +、 S2 記号-読点 O +二審判決 T6-1 名詞-数 O +の S9 助詞-連体化 O +重大 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +事実 M1 名詞-副詞可能 O +誤認 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +指摘 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +この M9 連体詞 O +工員 M1 名詞-一般 O +は S9 助詞-係助詞 O +八八年十月二十三日未明 T6-1 名詞-数 O +、 S2 記号-読点 O +文京 M1 名詞-固有名詞-地域-一般 O +区内 M1 名詞-一般 O +の S9 助詞-連体化 O +路上 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +中学 M1 名詞-一般 O +時代 M1 名詞-一般 O +の S9 助詞-連体化 O +同窓生 M1 名詞-一般 O +や S9 助詞-並立助詞 O +、 S2 記号-読点 O +その M9 連体詞 O +女 S1 名詞-一般 O +友達 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +雑談 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +通り掛かっ T1-9 動詞-自立 O +た S9 助動詞 O +男性 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +トラブル M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +なり M9 動詞-自立 O +、 S2 記号-読点 O +女 S1 名詞-一般 O +友達 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +髪の毛 T9-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +引き回さ T1-9 動詞-自立 O +れ S9 助動詞 O +たため M9 動詞-自立 O +、 S2 記号-読点 O +仲間 M1 名詞-一般 O +二 S6 名詞-数 O +人 S1 名詞-一般 O +( S2 記号-括弧開 O +一 S6 名詞-数 O +審 S1 名詞-一般 O +で S9 助動詞 O +執行 M1 名詞-サ変接続 O +猶予 M1 名詞-サ変接続 O +付き T1-9 名詞-一般 O +有罪 M1 名詞-一般 O +判決 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +確定 M1 名詞-サ変接続 O +) S2 記号-括弧閉 O +とともに M9 助詞-格助詞-連語 O +男性 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +暴行 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +さらに M9 副詞-助詞類接続 O +立ち去ろ T1-9 動詞-自立 O +うとし M9 形容詞-自立 O +た S9 助動詞 O +男性 M1 名詞-一般 O +の S9 助詞-連体化 O +顔 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +仲間 M1 名詞-一般 O +の S9 助詞-連体化 O +一人 T6-1 名詞-一般 O +が S9 助詞-格助詞-一般 O +殴っ T1-9 動詞-自立 O +たため M9 動詞-自立 O +、 S2 記号-読点 O +男性 M1 名詞-一般 O +は S9 助詞-係助詞 O +転倒 M1 名詞-サ変接続 O +し S9 動詞-自立 O +頭部 M1 名詞-一般 O +骨折 M1 名詞-サ変接続 O +など M9 助詞-副助詞 O +で S9 助動詞 O +七 S6 名詞-数 O +カ月 T10-1 名詞-接尾-助数詞 O +半 S1 名詞-一般 B-PERCENT +のけ M9 動詞-自立 O +が S9 助詞-格助詞-一般 O +を S9 助詞-格助詞-一般 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +憂楽帳 M1 名詞-固有名詞-一般 O +] S2 記号-括弧閉 O +歩く T1-9 動詞-自立 O +速 S1 形容詞-自立 O +さ S9 助詞-終助詞 O + + S13 記号-空白 O +数 S1 名詞-数 B-DATE +年 S1 名詞-一般 I-DATE +前 S1 名詞-副詞可能 I-DATE +、 S2 記号-読点 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +で S9 助動詞 O +勤務 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ていた M9 形容詞-自立 O +時 S1 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +奇妙 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +経験 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +通勤 M1 名詞-サ変接続 O +途上 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +前 S1 名詞-副詞可能 O +の S9 助詞-連体化 O +人 S1 名詞-一般 O +の S9 助詞-連体化 O +かかと M9 名詞-一般 O +を S9 助詞-格助詞-一般 O +踏みつける T1-9 動詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +、 S2 記号-読点 O +悪い T1-9 形容詞-自立 O +ときには M9 副詞-一般 O +け S9 助詞-終助詞 O +って M9 助詞-格助詞-連語 O +しまう M9 動詞-非自立 O +の S9 助詞-連体化 O +だ S9 助動詞 O +。 S2 記号-句点 O + +地下道 M1 名詞-一般 O +の S9 助詞-連体化 O +狭い T1-9 形容詞-自立 O +所 S1 名詞-接尾-一般 O +に S9 助詞-格助詞-一般 O +大勢 M1 名詞-一般 O +の S9 助詞-連体化 O +人 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +集まっ T1-9 動詞-自立 O +たせ M9 動詞-自立 O +いか M9 副詞-一般 O +、 S2 記号-読点 O +と S9 助詞-格助詞-引用 O +その時 T9-1 名詞-副詞可能 O +は S9 助詞-係助詞 O +思っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +ところが M9 接続詞 O +、 S2 記号-読点 O +その後 T9-1 名詞-副詞可能 O +、 S2 記号-読点 O +ニューヨーク M10 名詞-固有名詞-地域-一般 B-LOCATION +に S9 助詞-格助詞-一般 O +出張 M1 名詞-サ変接続 O +した M9 名詞-一般 O +折 S1 名詞-一般 O +の S9 助詞-連体化 O +こと M9 名詞-非自立-一般 O +だ S9 助動詞 O +。 S2 記号-句点 O + +今度 M1 名詞-副詞可能 O +は S9 助詞-係助詞 O +私 S1 名詞-代名詞-一般 O +の S9 助詞-連体化 O +靴 S1 名詞-一般 O +の S9 助詞-連体化 O +かかと M9 名詞-一般 O +を S9 助詞-格助詞-一般 O +何人 M1 名詞-一般 O +もの M9 名詞-非自立-一般 O +人 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +け飛ばさ T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +自宅 M1 名詞-一般 O +周辺 M1 名詞-一般 O +の S9 助詞-連体化 O +雑木林 M1 名詞-一般 O +の S9 助詞-連体化 O +小道 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +散歩 M1 名詞-サ変接続 O +する M9 動詞-自立 O +場合 M1 名詞-副詞可能 O +でも M9 助詞-副助詞 O +ダラダラ M10 副詞-助詞類接続 O +、 S2 記号-読点 O +ブラブラ M10 副詞-助詞類接続 O +歩く T1-9 動詞-自立 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +嫌い T1-9 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +方 S1 名詞-非自立-一般 O +だから M9 接続詞 O +、 S2 記号-読点 O +歩く T1-9 動詞-自立 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +速い T1-9 形容詞-自立 O +方 S1 名詞-非自立-一般 O +だ S9 助動詞 O +。 S2 記号-句点 O + +だが M9 接続詞 O +、 S2 記号-読点 O +ニュー M10 名詞-一般 O +ヨ S10 助詞-終助詞 O +ーカーにかかとをけられたうえに T10-9 名詞-一般 O +、 S2 記号-読点 O +追い越さ T1-9 動詞-自立 O +れ S9 助動詞 O +て S9 助詞-接続助詞 O +行く T1-9 動詞-自立 O +ケース M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +何 S1 名詞-代名詞-一般 O +回 S1 動詞-自立 O +も S9 助詞-係助詞 O +続い T1-9 動詞-自立 O +た S9 助動詞 O +ので M9 助詞-接続助詞 O +、 S2 記号-読点 O +脚 S1 名詞-一般 O +の S9 助詞-連体化 O +短い T1-9 形容詞-自立 O +体 S1 名詞-一般 O +は S9 助詞-係助詞 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +人 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +歩幅 M1 名詞-一般 O +で S9 助動詞 O +負ける T1-9 動詞-自立 O +から M9 助詞-格助詞-一般 O +か S9 助詞-副助詞/並立助詞/終助詞 O +、 S2 記号-読点 O +と S9 助詞-格助詞-引用 O +自分 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +納得 M1 名詞-サ変接続 O +させ M9 動詞-接尾 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +ところが M9 接続詞 O +、 S2 記号-読点 O +同じ T1-9 連体詞 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +人 S1 名詞-一般 O +でも M9 助詞-副助詞 O +サンフランシスコ M10 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +人 S1 名詞-一般 O +たち M9 名詞-接尾-一般 O +は S9 助詞-係助詞 O +私 S1 名詞-代名詞-一般 O +の S9 助詞-連体化 O +かかと M9 名詞-一般 O +を S9 助詞-格助詞-一般 O +けら M9 名詞-一般 O +ないし M9 接続詞 O +、 S2 記号-読点 O +追い越し T1-9 名詞-一般 O +て S9 助詞-接続助詞 O +も S9 助詞-係助詞 O +行か T1-9 動詞-自立 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +東京 M1 名詞-固有名詞-地域-一般 B-LOCATION +では M9 接続詞 O +サンフランシスコ M10 名詞-固有名詞-地域-一般 B-LOCATION +と S9 助詞-格助詞-引用 O +同様 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +他人 M1 名詞-一般 O +の S9 助詞-連体化 O +靴 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +ける M9 助動詞 O +こと M9 名詞-非自立-一般 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +また M9 接続詞 O +けら M9 名詞-一般 O +れる M9 動詞-接尾 O +こと M9 名詞-非自立-一般 O +も S9 助詞-係助詞 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +東京 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +人々 T1-2 名詞-一般 O +の S9 助詞-連体化 O +歩く T1-9 動詞-自立 O +速 S1 形容詞-自立 O +さ S9 助詞-終助詞 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +慣れ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +から M9 助詞-格助詞-一般 O +だろ M9 助動詞 O +うか M9 動詞-自立 O +、 S2 記号-読点 O +前 S1 名詞-副詞可能 O +を S9 助詞-格助詞-一般 O +行く T1-9 動詞-自立 O +人 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +遅い T1-9 形容詞-自立 O +場合 M1 名詞-副詞可能 O +は S9 助詞-係助詞 O +スムーズ M10 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +追い越し T1-9 名詞-一般 O +て S9 助詞-接続助詞 O +行く T1-9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +生まれ故郷 T9-1 名詞-一般 O +の S9 助詞-連体化 O +静岡 M1 名詞-固有名詞-地域-一般 B-LOCATION +に S9 助詞-格助詞-一般 O +帰っ T1-9 動詞-自立 O +たり M9 助詞-並立助詞 O +すると M9 接続詞 O +駅 S1 名詞-一般 O +の S9 助詞-連体化 O +雑踏 M1 名詞-サ変接続 O +で S9 助動詞 O +イライラ M10 副詞-助詞類接続 O +を S9 助詞-格助詞-一般 O +覚える T1-9 動詞-自立 O +ほど M9 助詞-副助詞 O +だ S9 助動詞 O +。 S2 記号-句点 O + +どうも M9 副詞-一般 O +都市 M1 名詞-一般 O +によって M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +人々 T1-2 名詞-一般 O +の S9 助詞-連体化 O +歩く T1-9 動詞-自立 O +速 S1 形容詞-自立 O +さ S9 助詞-終助詞 O +は S9 助詞-係助詞 O +違う T1-9 動詞-自立 O +。 S2 記号-句点 O + +人々 T1-2 名詞-一般 O +の S9 助詞-連体化 O +歩く T1-9 動詞-自立 O +速 S1 形容詞-自立 O +さが M9 動詞-自立 O +違う T1-9 動詞-自立 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +その M9 連体詞 O +都市 M1 名詞-一般 O +の S9 助詞-連体化 O +世知辛 M1 形容詞-自立 O +さ S9 助詞-終助詞 O +の S9 助詞-連体化 O +度合い T1-9 名詞-一般 O +なの M9 動詞-自立 O +だろ M9 助動詞 O +うか M9 動詞-自立 O +。 S2 記号-句点 O + +いや M9 感動詞 O +、 S2 記号-読点 O +都市 M1 名詞-一般 O +の S9 助詞-連体化 O +活力 M1 名詞-一般 O +の S9 助詞-連体化 O +違い T1-9 名詞-ナイ形容詞語幹 O +と S9 助詞-格助詞-引用 O +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +見 S1 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +の S9 助詞-連体化 O +だが M9 接続詞 O +… S2 記号-一般 O +… S2 記号-一般 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +松永 M1 名詞-固有名詞-人名-姓 B-PERSON +謙吾 M1 名詞-固有名詞-人名-名 I-PERSON +) S2 記号-括弧閉 O + +1 S5 名詞-数 O +千円 T6-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +要求 M1 名詞-サ変接続 O + S13 記号-空白 O +金属労協 M1 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +春闘 M1 名詞-一般 O +方針 M1 名詞-一般 O + + S13 記号-空白 O +自動車 M1 名詞-一般 O +、 S2 記号-読点 O +鉄鋼 M1 名詞-一般 O +、 S2 記号-読点 O +電機 M1 名詞-一般 O +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +金属 M1 名詞-一般 O +産業 M1 名詞-一般 O +の S9 助詞-連体化 O +労組 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +結集 M1 名詞-サ変接続 O +、 S2 記号-読点 O +春闘 M1 名詞-一般 O +相場 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +大きな T1-9 連体詞 O +影響 M1 名詞-サ変接続 O +力 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +持つ T1-9 動詞-自立 O +金属労協 M1 名詞-固有名詞-組織 B-ORGANIZATION +( S2 記号-括弧開 O +IMF M7 名詞-固有名詞-組織 B-ORGANIZATION +・ S2 記号-一般 O +JC M7 名詞-固有名詞-組織 B-ORGANIZATION +、 S2 記号-読点 O +得本 M1 名詞-固有名詞-人名-姓 B-PERSON +輝人 M1 名詞-固有名詞-人名-名 I-PERSON +議長 M1 名詞-一般 O +、 S2 記号-読点 O +二百五十万人 T6-1 名詞-数 O +) S2 記号-括弧閉 O +は S9 助詞-係助詞 O +六 S6 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +、 S2 記号-読点 O +東京 M1 名詞-固有名詞-地域-一般 O +都内 M1 名詞-一般 O +で S9 助動詞 O +協議 M1 名詞-サ変接続 O +委員 M1 名詞-一般 O +会 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +開き T1-9 動詞-自立 O +、 S2 記号-読点 O +平均 M1 名詞-サ変接続 O +賃上げ T1-9 名詞-サ変接続 O +要求 M1 名詞-サ変接続 O +基準 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +一万二千円 T6-1 名詞-数 O +と S9 助詞-格助詞-引用 O +する M9 動詞-自立 O +来 S1 動詞-自立 O +春闘 M1 名詞-一般 O +方針 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +決め T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +連合 M1 名詞-サ変接続 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +要求 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +率 S1 名詞-一般 O +表示 M1 名詞-サ変接続 O +から M9 助詞-格助詞-一般 O +額 S1 名詞-一般 O +表示 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +切り替え T1-9 名詞-一般 O +た S9 助動詞 O +の S9 助詞-連体化 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +、 S2 記号-読点 O +JC M7 名詞-固有名詞-組織 B-ORGANIZATION +も S9 助詞-係助詞 O +これ M9 名詞-代名詞-一般 O +まで M9 助詞-副助詞 O +の S9 助詞-連体化 O +率 S1 名詞-一般 O +から M9 助詞-格助詞-一般 O +額 S1 名詞-一般 O +要求 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +切り替え T1-9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +三十五歳勤続十七年 T6-1 名詞-数 O +の S9 助詞-連体化 O +標準 M1 名詞-一般 O +労働 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +賃上げ T1-9 名詞-サ変接続 O +要求 M1 名詞-サ変接続 O +でも M9 助詞-副助詞 O +二十八万七千円 T6-1 名詞-数 O +を S9 助詞-格助詞-一般 O +一 S6 名詞-数 O +千円 T6-1 名詞-一般 O +引き上げ T1-9 名詞-サ変接続 O +二十九万九千円 T6-1 名詞-数 O +に S9 助詞-格助詞-一般 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +JC M7 名詞-固有名詞-組織 B-ORGANIZATION +賃上げ T1-9 名詞-サ変接続 O +要求 M1 名詞-サ変接続 O +一万二千円 T6-1 名詞-数 O +は S9 助詞-係助詞 O +率 S1 名詞-一般 O +では M9 接続詞 O +約 S1 接頭詞-数接続 O +四 S6 名詞-数 B-PERCENT +・ S2 記号-一般 I-PERCENT +二 S6 名詞-数 I-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +。 S2 記号-句点 O + +九 S6 名詞-数 O +春闘 M1 名詞-一般 O +の S9 助詞-連体化 O +要求 M1 名詞-サ変接続 O +五 S6 名詞-数 B-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +より M9 副詞-一般 O +やや M9 副詞-一般 O +ダウン M10 名詞-サ変接続 O +させ M9 動詞-接尾 O +た S9 助動詞 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +物価 M1 名詞-一般 O +上昇 M1 名詞-サ変接続 O +率 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +前年 M1 名詞-副詞可能 B-DATE +より M9 副詞-一般 O +一 S6 名詞-数 O +ポイント M10 名詞-一般 O +前後 M1 名詞-副詞可能 O +低く T1-9 形容詞-自立 O +なる M9 動詞-自立 O +ため M9 名詞-非自立-副詞可能 O +。 S2 記号-句点 O + +連合 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +九五春闘要求目標一万四千円 T6-1 名詞-数 O +を S9 助詞-格助詞-一般 O +下回っ T1-9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +ようやく M9 副詞-一般 O +不況 M1 名詞-一般 O +の S9 助詞-連体化 O +トンネル M10 名詞-一般 O +の S9 助詞-連体化 O +出口 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +見いだし T1-9 動詞-自立 O +た S9 助動詞 O +ものの M9 助詞-接続助詞 O +金属 M1 名詞-一般 O +産業 M1 名詞-一般 O +は S9 助詞-係助詞 O +異常 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +円 S1 名詞-一般 O +高 S1 形容詞-自立 O +で S9 助動詞 O +前途 M1 名詞-一般 O +は S9 助詞-係助詞 O +依然 M1 副詞-一般 O +厳しい T1-9 形容詞-自立 O +状況 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +ため M9 名詞-非自立-副詞可能 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +得本 M1 名詞-固有名詞-人名-姓 B-PERSON +議長 M1 名詞-一般 O +は S9 助詞-係助詞 O +開会 M1 名詞-サ変接続 O +あいさつ M9 名詞-サ変接続 O +で S9 助動詞 O +「 S2 記号-括弧開 O +規制 M1 名詞-サ変接続 O +緩和 M1 名詞-サ変接続 O +により M9 助詞-格助詞-連語 O +内外 M1 名詞-一般 O +価格 M1 名詞-一般 O +差 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +是 S1 名詞-一般 O +正し T1-9 形容詞-自立 O +、 S2 記号-読点 O +産業 M1 名詞-一般 O +の S9 助詞-連体化 O +空洞 M1 名詞-一般 O +化 S1 名詞-接尾-サ変接続 O +を S9 助詞-格助詞-一般 O +阻止 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いか M9 副詞-一般 O +ねば M9 形容詞-自立 O +なら M9 助動詞 O +ない M9 形容詞-自立 O +」 S2 記号-括弧閉 O +など M9 助詞-副助詞 O +と S9 助詞-格助詞-引用 O +述べ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +みんな M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +広場 M1 名詞-一般 O +] S2 記号-括弧閉 O +心 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +温まる T1-9 動詞-自立 O +よう M9 名詞-非自立-助動詞語幹 O +な S9 助詞-終助詞 O +BGM M7 名詞-一般 O +を S9 助詞-格助詞-一般 O += S2 記号-一般 O +大学院生 M1 名詞-一般 O +・ S2 記号-一般 O +折笠 M1 名詞-固有名詞-人名-姓 B-PERSON +覚 S1 動詞-自立 I-PERSON + S13 記号-空白 O +3 S5 名詞-数 O + + S13 記号-空白 O +( S2 記号-括弧開 O +茨城 M1 名詞-固有名詞-地域-一般 B-LOCATION +県 S1 名詞-一般 I-LOCATION +つくば M9 名詞-固有名詞-地域-一般 I-LOCATION +市 S1 名詞-一般 I-LOCATION +) S2 記号-括弧閉 O + + S13 記号-空白 O +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +コンビニエンスストア M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +利用 M1 名詞-サ変接続 O +する M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +多い T1-9 形容詞-自立 O +。 S2 記号-句点 O + +店内 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +入っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +気が付く T1-9 動詞-自立 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +流さ T1-9 動詞-自立 O +れ S9 助動詞 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +BGM M7 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +ロック M10 名詞-サ変接続 O +や S9 助詞-並立助詞 O +ポップミュージック M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +多い T1-9 形容詞-自立 O +という M9 助詞-格助詞-連語 O +こと M9 名詞-非自立-一般 O +です M9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +それら M9 名詞-代名詞-一般 O +が S9 助詞-格助詞-一般 O +悪い T1-9 形容詞-自立 O +と S9 助詞-格助詞-引用 O +いってい M9 名詞-サ変接続 O +る S9 助動詞 O +わけ M9 名詞-非自立-一般 O +では M9 接続詞 O +あり M9 動詞-自立 O +ません M9 動詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +ただ M9 接続詞 O +音楽 M1 名詞-一般 O +は S9 助詞-係助詞 O +人 S1 名詞-一般 O +の S9 助詞-連体化 O +心 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +左右 M1 名詞-サ変接続 O +する M9 動詞-自立 O +という M9 助詞-格助詞-連語 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +聞き T1-9 動詞-自立 O +ます M9 助動詞 O +。 S2 記号-句点 O + +事実 M1 名詞-副詞可能 O +、 S2 記号-読点 O +時として T1-9 副詞-一般 O +音楽 M1 名詞-一般 O +次第 M1 名詞-副詞可能 O +で S9 助動詞 O +、 S2 記号-読点 O +人 S1 名詞-一般 O +は S9 助詞-係助詞 O +気持ち T1-9 名詞-一般 O +が S9 助詞-格助詞-一般 O +静まっ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +人 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +優し T1-9 形容詞-自立 O +くし M9 形容詞-自立 O +て S9 助詞-接続助詞 O +あげ M9 動詞-自立 O +たく M9 助動詞 O +なっ M9 動詞-自立 O +たり M9 助詞-並立助詞 O +、 S2 記号-読点 O +反対 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +気分 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +落ち着か T1-9 動詞-自立 O +なくなっ M9 動詞-自立 O +たり M9 助詞-並立助詞 O +もし M9 副詞-一般 O +ます M9 助動詞 O +。 S2 記号-句点 O + +種類 M1 名詞-一般 O +によって M9 助詞-格助詞-連語 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +あまり M9 副詞-助詞類接続 O +望ましく T1-9 形容詞-自立 O +ない M9 形容詞-自立 O +欲求 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +かき立てる T1-9 動詞-自立 O +性質 M1 名詞-一般 O +の S9 助詞-連体化 O +もの M9 名詞-非自立-一般 O +も S9 助詞-係助詞 O +ある M9 動詞-自立 O +でしょ M9 助動詞 O +う S9 感動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +たまに M9 副詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +名曲 M1 名詞-一般 O +喫茶 M1 名詞-一般 O +の S9 助詞-連体化 O +よう M9 名詞-非自立-助動詞語幹 O +な S9 助詞-終助詞 O +雰囲気 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +心温まる T1-9 動詞-自立 O +、 S2 記号-読点 O +そして M9 接続詞 O +心 S1 名詞-一般 O +洗 S1 名詞-一般 O +われる M9 動詞-自立 O +よう M9 名詞-非自立-助動詞語幹 O +な S9 助詞-終助詞 O +曲 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +流す T1-9 動詞-自立 O +ところ M9 名詞-非自立-副詞可能 O +は S9 助詞-係助詞 O +ない M9 形容詞-自立 O +だろ M9 助動詞 O +うか M9 動詞-自立 O +、 S2 記号-読点 O +あれ M9 感動詞 O +ば S9 助詞-接続助詞 O +どんなに M9 副詞-一般 O +遠く T1-9 形容詞-自立 O +て S9 助詞-接続助詞 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +買い物 T9-1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +行っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +あげ M9 動詞-自立 O +たい M9 助動詞 O +気分 M1 名詞-一般 O +なの M9 動詞-自立 O +だが M9 接続詞 O +なあ M9 助詞-終助詞 O +、 S2 記号-読点 O +など M9 助詞-副助詞 O +と S9 助詞-格助詞-引用 O +考える T1-9 動詞-自立 O +時 S1 名詞-非自立-副詞可能 O +が S9 助詞-格助詞-一般 O +あり M9 動詞-自立 O +ます M9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +こんな M9 連体詞 O +、 S2 記号-読点 O +ちょっと M9 副詞-助詞類接続 O +変 S1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +私 S1 名詞-代名詞-一般 O +の S9 助詞-連体化 O +望み T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +かなえ M9 動詞-自立 O +て S9 助詞-接続助詞 O +くれる M9 動詞-非自立 O +店長 M1 名詞-一般 O +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +どこ M9 名詞-代名詞-一般 O +かに M9 名詞-一般 O +いらっしゃい M9 名詞-一般 O +ません M9 動詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +。 S2 記号-句点 O + +せめて M9 副詞-一般 O +深夜 M1 名詞-副詞可能 O +だけ M9 助詞-副助詞 O +でも M9 助詞-副助詞 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +みんな M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +広場 M1 名詞-一般 O +] S2 記号-括弧閉 O +慰安 M1 名詞-サ変接続 O +婦 S1 名詞-接尾-一般 O +問題 M1 名詞-ナイ形容詞語幹 O +、 S2 記号-読点 O +政府 M1 名詞-一般 O +の S9 助詞-連体化 O +対応 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +不満 M1 名詞-一般 O += S2 記号-一般 O +事務 M1 名詞-一般 O +員 S1 名詞-一般 O +・ S2 記号-一般 O +青山 M1 名詞-固有名詞-地域-一般 B-PERSON +敏行 M1 名詞-固有名詞-人名-名 I-PERSON + S13 記号-空白 O +4 S5 名詞-数 O + + S13 記号-空白 O +( S2 記号-括弧開 O +長崎 M1 名詞-固有名詞-地域-一般 B-LOCATION +県 S1 名詞-一般 I-LOCATION +佐世保 M1 名詞-固有名詞-地域-一般 I-LOCATION +市 S1 名詞-一般 I-LOCATION +) S2 記号-括弧閉 O + + S13 記号-空白 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +は S9 助詞-係助詞 O +道理 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +認め T1-9 動詞-自立 O +られれ M9 動詞-接尾 O +ば S9 助詞-接続助詞 O +、 S2 記号-読点 O +権利 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +獲得 M1 名詞-サ変接続 O +できる M9 動詞-自立 O +民主 M1 名詞-一般 O +主義 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +機能 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +社会 M1 名詞-一般 O +だ S9 助動詞 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + + S13 記号-空白 O +太平洋戦争 M1 名詞-固有名詞-一般 O +時 S1 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +敵 S1 名詞-一般 O +国民 M1 名詞-一般 O +として M9 助詞-格助詞-連語 O +強制 M1 名詞-サ変接続 O +収容 M1 名詞-サ変接続 O +所 S1 名詞-接尾-一般 O +に S9 助詞-格助詞-一般 O +隔離 M1 名詞-サ変接続 O +させ M9 動詞-接尾 O +られ M9 動詞-接尾 O +た S9 助動詞 O +日系 M1 名詞-一般 O +米人 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +戦後 M1 名詞-副詞可能 B-DATE +、 S2 記号-読点 O +賠償 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +謝罪 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +求め T1-9 動詞-自立 O +た S9 助動詞 O +裁判 M1 名詞-一般 O +闘争 M1 名詞-サ変接続 O +で S9 助動詞 O +、 S2 記号-読点 O +一九八八年 T6-1 名詞-数 O +、 S2 記号-読点 O +米 S1 名詞-固有名詞-地域-国 B-LOCATION +政府 M1 名詞-一般 O +は S9 助詞-係助詞 O +一人二万 T1-6 名詞-数 B-MONEY +ドル M10 名詞-一般 I-MONEY +の S9 助詞-連体化 O +賠償 M1 名詞-サ変接続 O +金 S1 名詞-一般 O +支払い T1-9 名詞-一般 O +と S9 助詞-格助詞-引用 O +謝罪 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +行い T1-9 名詞-一般 O +、 S2 記号-読点 O +日系 M1 名詞-一般 O +米人 M1 名詞-一般 O +の S9 助詞-連体化 O +人権 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +勝ち T1-9 名詞-一般 O +と S9 助詞-格助詞-引用 O +られ M9 動詞-接尾 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +その M9 連体詞 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +と S9 助詞-格助詞-引用 O +親密 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +関係 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +は S9 助詞-係助詞 O +どうか M9 副詞-一般 O +。 S2 記号-句点 O + +「 S2 記号-括弧開 O +日の丸 T9-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +見る T1-9 動詞-自立 O +と S9 助詞-格助詞-引用 O +脳 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +腐れ T1-9 名詞-一般 O +た S9 助動詞 O +よう M9 名詞-非自立-助動詞語幹 O +に S9 助詞-格助詞-一般 O +なる M9 動詞-自立 O +」 S2 記号-括弧閉 O +といった M9 助詞-格助詞-連語 O +元 S1 接頭詞-名詞接続 O +従軍 M1 名詞-サ変接続 O +慰安 M1 名詞-サ変接続 O +婦 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +韓国 M1 名詞-固有名詞-地域-国 B-LOCATION +人 S1 名詞-一般 O +女性 M1 名詞-一般 O +。 S2 記号-句点 O + +その M9 連体詞 O +言葉 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +知っ T1-9 動詞-自立 O +た S9 助動詞 O +とき M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +たまらなく M9 形容詞-自立 O +、 S2 記号-読点 O +胸 S1 名詞-一般 O +つかえる M9 動詞-自立 O +思い T1-9 名詞-一般 O +だっ M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +政府 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +元 S1 接頭詞-名詞接続 O +従軍 M1 名詞-サ変接続 O +慰安 M1 名詞-サ変接続 O +婦 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +方々 T1-2 名詞-一般 O +の S9 助詞-連体化 O +、 S2 記号-読点 O +踏みにじ T1-9 動詞-自立 O +られ M9 動詞-接尾 O +た S9 助動詞 O +人間 M1 名詞-一般 O +の S9 助詞-連体化 O +尊厳 M1 名詞-一般 O +の S9 助詞-連体化 O +回復 M1 名詞-サ変接続 O +に対して T1-9 助詞-格助詞-連語 O +、 S2 記号-読点 O +解決 M1 名詞-サ変接続 O +済み T1-9 動詞-自立 O +だ S9 助動詞 O +と S9 助詞-格助詞-引用 O +主張 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +耳 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +貸さ T1-9 動詞-自立 O +ず S9 助動詞 O +、 S2 記号-読点 O +罪 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +国民 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +負わ T1-9 動詞-自立 O +せる M9 動詞-接尾 O +よう M9 名詞-非自立-助動詞語幹 O +な S9 助詞-終助詞 O +「 S2 記号-括弧開 O +民間 M1 名詞-一般 O +基金 M1 名詞-一般 O +」 S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +責任 M1 名詞-一般 O +回避 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +方策 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +打ち出そ T1-9 動詞-自立 O +う S9 感動詞 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +教訓 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +学ぼ T1-9 動詞-自立 O +うとし M9 形容詞-自立 O +ない M9 形容詞-自立 O +者 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +また M9 接続詞 O +同じ T1-9 連体詞 O +過ち T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +繰り返す T1-9 動詞-自立 O +とい M9 名詞-一般 O +われる M9 動詞-自立 O +。 S2 記号-句点 O + +外国 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +を S9 助詞-格助詞-一般 O +疑惑 M1 名詞-一般 O +の S9 助詞-連体化 O +目 S1 名詞-一般 O +で S9 助動詞 O +見る T1-9 動詞-自立 O +のも M9 動詞-自立 O +当然 M1 副詞-助詞類接続 O +では M9 接続詞 O +ない M9 形容詞-自立 O +だろ M9 助動詞 O +うか M9 動詞-自立 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +仲畑 M1 名詞-固有名詞-人名-姓 B-PERSON +流 S1 動詞-自立 O +・ S2 記号-一般 O +万能 T6-1 名詞-一般 O +川柳 M1 名詞-一般 O +] S2 記号-括弧閉 O + + S13 記号-空白 O +☆ S2 記号-一般 O +印 S1 名詞-一般 O +は S9 助詞-係助詞 O +秀逸 M1 名詞-一般 O +( S2 記号-括弧開 O +仲畑 M1 名詞-固有名詞-人名-姓 B-PERSON +貴志 M1 名詞-一般 O +選 S1 動詞-自立 O +) S2 記号-括弧閉 O + +☆ S2 記号-一般 O +病む T1-9 動詞-自立 O +母 S1 名詞-一般 O +は S9 助詞-係助詞 O +何かと T1-9 副詞-一般 O +僕 S1 名詞-代名詞-一般 O +の S9 助詞-連体化 O +手 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +握る T1-9 動詞-自立 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +島田 M1 名詞-固有名詞-人名-姓 B-PERSON + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +大石 M1 名詞-固有名詞-人名-姓 B-PERSON +今男 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +3 S5 名詞-数 O +秒 S1 名詞-一般 O +で S9 助動詞 O +泣ける T1-9 動詞-自立 O +特技 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +持つ T1-9 動詞-自立 O +女 S1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +東京 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +近藤 M1 名詞-固有名詞-人名-姓 B-PERSON +恵実子 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +テレビ M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +出 S1 動詞-自立 O +ぬ S9 助動詞 O +と S9 助詞-格助詞-引用 O +言っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +た S9 助動詞 O +絶頂 M1 名詞-一般 O +期 S1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +相模原 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +水野 M1 名詞-固有名詞-人名-姓 B-PERSON +タケシ M10 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +子 S1 名詞-一般 O +の S9 助詞-連体化 O +テスト M10 名詞-サ変接続 O +隠し T1-9 動詞-自立 O +た S9 助動詞 O +とこ M9 名詞-一般 O +に S9 助詞-格助詞-一般 O +返し T1-9 動詞-自立 O +とく M9 副詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +八日市場 T6-1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O +林 S1 名詞-一般 O +正男 M1 名詞-固有名詞-人名-名 O + + S13 記号-空白 O +駐禁 M1 名詞-一般 O +の S9 助詞-連体化 O +字 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +隠す T1-9 動詞-自立 O +よう M9 名詞-非自立-助動詞語幹 O +自動車 M1 名詞-一般 O +止め T1-9 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +高槻 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +関 S1 名詞-固有名詞-人名-姓 B-PERSON +啓一郎 T6-1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +見栄 M1 名詞-一般 O +じゃ M9 接続詞 O +なく M9 形容詞-自立 O +意地 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +見せろ T1-9 動詞-自立 O +よ S9 助詞-終助詞 O +おい M9 感動詞 O +息子 M1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +戸田 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +小松 M1 名詞-固有名詞-人名-姓 B-PERSON +多代 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +嫁い T1-9 動詞-自立 O +でも M9 助詞-副助詞 O +お昼 T9-1 名詞-副詞可能 O +は S9 助詞-係助詞 O +毎日 M1 名詞-副詞可能 O +食べ T1-9 動詞-自立 O +に S9 助詞-格助詞-一般 O +くる M9 動詞-自立 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +群馬 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +小林 M1 名詞-固有名詞-人名-姓 B-PERSON +達也 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +タレント M10 名詞-一般 O +の S9 助詞-連体化 O +素顔 M1 名詞-一般 O +知っ T1-9 動詞-自立 O +てる M9 動詞-非自立 O +マネジャー M10 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +浜納 M1 名詞-固有名詞-人名-姓 B-PERSON +一宏 T6-1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +アナ場 T10-1 名詞-一般 O +だ S9 助動詞 O +と S9 助詞-格助詞-引用 O +言 S1 名詞-一般 O +われ M9 名詞-代名詞-一般 O +たら M9 助動詞 O +もう M9 副詞-一般 O +アナ場 T10-1 名詞-一般 O +じゃ M9 接続詞 O +ない M9 形容詞-自立 O + S13 記号-空白 O +東京 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +関根 M1 名詞-固有名詞-人名-姓 B-PERSON +真弓 M1 名詞-固有名詞-人名-姓 I-PERSON + + S13 記号-空白 O +知ら T1-9 動詞-自立 O +ぬ S9 助動詞 O +人 S1 名詞-一般 O +俺 S1 名詞-代名詞-一般 O +の S9 助詞-連体化 O +噂 S1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +俺 S1 名詞-代名詞-一般 O +に S9 助詞-格助詞-一般 O +する M9 動詞-自立 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +四条畷 T6-1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +野徒 M1 名詞-固有名詞-人名-姓 B-PERSON +音理 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +キティちゃん T10-9 名詞-固有名詞-一般 O +集める T1-9 動詞-自立 O +我が T1-9 連体詞 O +娘 S1 名詞-一般 O +の S9 助詞-連体化 O +年 S1 名詞-一般 O +いえ M9 感動詞 O +ぬ S9 助動詞 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +山口 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +広中 M1 名詞-固有名詞-人名-姓 B-PERSON +悦子 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +披露宴 M1 名詞-一般 O +嫁 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +さがせ M9 動詞-自立 O +と S9 助詞-格助詞-引用 O +招か T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +伊丹 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +岡 S1 名詞-固有名詞-人名-姓 B-PERSON +宏明 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +陽 S1 名詞-一般 O +の S9 助詞-連体化 O +当たる T1-9 動詞-自立 O +所 S1 名詞-接尾-一般 O +選ん T1-9 動詞-自立 O +で S9 助動詞 O +立話 M1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +北海道 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +津田 M1 名詞-固有名詞-人名-姓 B-PERSON +時代 M1 名詞-一般 O + + S13 記号-空白 O +怒鳴ら T1-9 動詞-自立 O +なくなっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +心配 M1 名詞-サ変接続 O +させる M9 動詞-接尾 O +夫 S1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +渋川 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +梅沢 M1 名詞-固有名詞-人名-姓 B-PERSON +善 S1 形容詞-自立 O +二 S6 名詞-数 O + + S13 記号-空白 O +泣く T1-9 動詞-自立 O +子 S1 名詞-一般 O +より M9 副詞-一般 O +泣け T1-9 動詞-自立 O +無い T1-9 形容詞-自立 O +母 S1 名詞-一般 O +の S9 助詞-連体化 O +身 S1 名詞-一般 O +の S9 助詞-連体化 O +つらさ M9 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +西脇 M1 名詞-固有名詞-人名-姓 B-PERSON + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +東野 M1 名詞-固有名詞-人名-姓 B-PERSON +博雪 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +午後 M1 名詞-副詞可能 O +五時 T6-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +過ぎ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +良く T1-9 形容詞-自立 O +なる M9 動詞-自立 O +胃 S1 名詞-一般 O +の S9 助詞-連体化 O +調子 M1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +宮崎 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +十河三和子 T6-1 名詞-数 O + + S13 記号-空白 O +キュロット M10 名詞-一般 O +スカ M10 名詞-一般 O +ートなのパンツなの T10-9 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +神戸 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +西郷 M1 名詞-固有名詞-人名-姓 B-PERSON +隆雄 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +少女 M1 名詞-一般 O +歌手 M1 名詞-一般 O +恋 S1 名詞-一般 O +も S9 助詞-係助詞 O +知らず T1-9 名詞-接尾-一般 O +に S9 助詞-格助詞-一般 O +恋 S1 名詞-一般 O +の S9 助詞-連体化 O +唄 S1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +静岡 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +杉山 M1 名詞-固有名詞-人名-姓 B-PERSON +貞一 T1-6 名詞-固有名詞-人名-名 I-PERSON + +同期 M1 名詞-副詞可能 O +なのに M9 接続詞 O +1 S5 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +も S9 助詞-係助詞 O +差 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O + S13 記号-空白 O +賞与 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +実績 M1 名詞-一般 O +」 S2 記号-括弧閉 O +基準 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +-- M2 記号-一般 O +松下電器 M1 名詞-固有名詞-組織 B-ORGANIZATION +、 S2 記号-読点 O +課長 M1 名詞-一般 O +以上 M1 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +新 S1 接頭詞-名詞接続 O +制度 M1 名詞-一般 O + + S13 記号-空白 O +◇ S2 記号-一般 O +今冬 M1 名詞-副詞可能 O +から M9 助詞-格助詞-一般 O +実施 M1 名詞-サ変接続 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +同期 M1 名詞-副詞可能 O +入社 M1 名詞-サ変接続 O +でも M9 助詞-副助詞 O +、 S2 記号-読点 O +半期 M1 名詞-一般 O +の S9 助詞-連体化 O +ボーナス M10 名詞-一般 O +で S9 助動詞 O +百五十万円 T6-1 名詞-数 O +も S9 助詞-係助詞 O +開き T1-9 動詞-自立 O +が S9 助詞-格助詞-一般 O +出る T1-9 動詞-自立 O +」 S2 記号-括弧閉 O +―― M2 記号-一般 O +。 S2 記号-句点 O + +松下電器産業 M1 名詞-固有名詞-組織 B-ORGANIZATION +は S9 助詞-係助詞 O +、 S2 記号-読点 O +課長 M1 名詞-一般 O +以上 M1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +管理 M1 名詞-サ変接続 O +職 S1 名詞-一般 O +約 S1 接頭詞-数接続 O +一万一千人 T6-1 名詞-数 O +の S9 助詞-連体化 O +賞与 M1 名詞-一般 O +の S9 助詞-連体化 O +支給 M1 名詞-サ変接続 O +額 S1 名詞-一般 O +について M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +本人 M1 名詞-一般 O +の S9 助詞-連体化 O +業務 M1 名詞-一般 O +実績 M1 名詞-一般 O +だけ M9 助詞-副助詞 O +を S9 助詞-格助詞-一般 O +基準 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +決める T1-9 動詞-自立 O +新 S1 接頭詞-名詞接続 O +制度 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +今冬 M1 名詞-副詞可能 O +支給 M1 名詞-サ変接続 O +分から T1-9 動詞-自立 O +本格 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +導入 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +従来 M1 名詞-副詞可能 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +年功序列 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +実績 M1 名詞-一般 O +の S9 助詞-連体化 O +二本立て T1-9 名詞-一般 O +で S9 助動詞 O +額 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +決め T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +能力 M1 名詞-一般 O +主義 M1 名詞-一般 O +の S9 助詞-連体化 O +徹底 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +図る T1-9 動詞-自立 O +の S9 助詞-連体化 O +が S9 助詞-格助詞-一般 O +狙い T1-9 名詞-一般 O +。 S2 記号-句点 O + +リストラ M10 名詞-サ変接続 O +( S2 記号-括弧開 O +事業 M1 名詞-一般 O +の S9 助詞-連体化 O +再 S1 接頭詞-名詞接続 O +構築 M1 名詞-サ変接続 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +対象 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +さ S9 助詞-終助詞 O +れる M9 動詞-接尾 O +こと M9 名詞-非自立-一般 O +の S9 助詞-連体化 O +多い T1-9 形容詞-自立 O +中間 M1 名詞-一般 O +管理 M1 名詞-サ変接続 O +職 S1 名詞-一般 O +にとって M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +環境 M1 名詞-一般 O +は S9 助詞-係助詞 O +ますます M9 副詞-助詞類接続 O +厳しい T1-9 形容詞-自立 O +もの M9 名詞-非自立-一般 O +に S9 助詞-格助詞-一般 O +なり M9 動詞-自立 O +そうだ M9 名詞-サ変接続 O +。 S2 記号-句点 O + + S13 記号-空白 O +松下電器 M1 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +管理 M1 名詞-サ変接続 O +職 S1 名詞-一般 O +賞与 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +これ M9 名詞-代名詞-一般 O +まで M9 助詞-副助詞 O +年功序列 M1 名詞-一般 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +一般 T6-1 名詞-一般 O +賞与 M1 名詞-一般 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +実績 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +反映 M1 名詞-サ変接続 O +した M9 名詞-一般 O +「 S2 記号-括弧開 O +幹部 M1 名詞-一般 B-ARTIFACT +職 S1 名詞-一般 I-ARTIFACT +賞与 M1 名詞-一般 I-ARTIFACT +」 S2 記号-括弧閉 O +から M9 助詞-格助詞-一般 O +構成 M1 名詞-サ変接続 O +され M9 動詞-自立 O +、 S2 記号-読点 O +その M9 連体詞 O +比率 M1 名詞-一般 O +は S9 助詞-係助詞 O +半々 T1-2 名詞-一般 B-OPTIONAL +だっ M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +一般 T6-1 名詞-一般 O +賞与 M1 名詞-一般 O +は S9 助詞-係助詞 O +年功序列 M1 名詞-一般 O +で S9 助動詞 O +額 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +決まり T1-9 動詞-自立 O +同期 M1 名詞-副詞可能 O +入社 M1 名詞-サ変接続 O +で S9 助動詞 O +あれ M9 感動詞 O +ば S9 助詞-接続助詞 O +ほとんど M9 副詞-一般 O +変わら T1-9 動詞-自立 O +なかっ M9 形容詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +これ M9 名詞-代名詞-一般 O +が S9 助詞-格助詞-一般 O +課長 M1 名詞-一般 O +以上 M1 名詞-非自立-副詞可能 O +では M9 接続詞 O +すべて M9 名詞-副詞可能 O +廃止 M1 名詞-サ変接続 O +され M9 動詞-自立 O +、 S2 記号-読点 O +本人 M1 名詞-一般 O +の S9 助詞-連体化 O +実績 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +もと M9 名詞-一般 O +に S9 助詞-格助詞-一般 O +決める T1-9 動詞-自立 O +幹部 M1 名詞-一般 O +職 S1 名詞-一般 O +賞与 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +一本化 T6-1 名詞-数 O +され M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +その M9 連体詞 O +評価 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +複数 M1 名詞-一般 O +の S9 助詞-連体化 O +上司 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +当たり T1-9 名詞-副詞可能 O +、 S2 記号-読点 O +五 S6 名詞-数 O +段階 M1 名詞-一般 O +の S9 助詞-連体化 O +どこ M9 名詞-代名詞-一般 O +に S9 助詞-格助詞-一般 O +ランク M10 名詞-一般 O +付け T1-9 名詞-一般 O +さ S9 助詞-終助詞 O +れる M9 動詞-接尾 O +か S9 助詞-副助詞/並立助詞/終助詞 O +で S9 助動詞 O +、 S2 記号-読点 O +ボーナス M10 名詞-一般 O +の S9 助詞-連体化 O +額 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +決まる T1-9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +例えば T1-9 接続詞 O +、 S2 記号-読点 O +部長 M1 名詞-一般 O +の S9 助詞-連体化 O +場合 M1 名詞-副詞可能 O +、 S2 記号-読点 O +最大 M1 名詞-一般 O +で S9 助動詞 O +百五十万円 T6-1 名詞-数 O +、 S2 記号-読点 O +課長 M1 名詞-一般 O +で S9 助動詞 O +百 S6 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +の S9 助詞-連体化 O +格差 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +つく M9 動詞-自立 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + + S13 記号-空白 O +昨冬 M1 名詞-副詞可能 O +から M9 助詞-格助詞-一般 O +試験 M1 名詞-サ変接続 O +導入 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ていた M9 形容詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +今月 M1 名詞-副詞可能 B-DATE +二日支給分 T6-1 名詞-数 O +から M9 助詞-格助詞-一般 O +本格 M1 名詞-一般 O +導入 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +踏み切っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +ただ M9 接続詞 O +、 S2 記号-読点 O +給与 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +従来 M1 名詞-副詞可能 O +通り T1-9 名詞-一般 O +年功序列 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +基本 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +しかし M9 接続詞 O +、 S2 記号-読点 O +部長 M1 名詞-一般 O +の S9 助詞-連体化 O +場合 M1 名詞-副詞可能 O +、 S2 記号-読点 O +夏 S1 名詞-副詞可能 O +冬 S1 名詞-副詞可能 O +の S9 助詞-連体化 O +賞与 M1 名詞-一般 O +は S9 助詞-係助詞 O +年収 M1 名詞-一般 O +の S9 助詞-連体化 O +四 S6 名詞-数 O +〇 S2 記号-一般 O +― S2 記号-一般 O +五 S6 名詞-数 O +〇 S2 記号-一般 B-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +を S9 助詞-格助詞-一般 O +占め T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +おり M9 動詞-非自立 O +、 S2 記号-読点 O +同社 M1 名詞-一般 O +でも M9 助詞-副助詞 O +家計 M1 名詞-一般 O +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +影響 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +勘案 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +一気に T1-9 副詞-一般 O +百五十万円 T6-1 名詞-数 O +もの M9 名詞-非自立-一般 O +差 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +つく M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +は S9 助詞-係助詞 O +避け T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +全 S1 接頭詞-名詞接続 O +豪 S1 形容詞-自立 O +貿易 M1 名詞-サ変接続 O +・ S2 記号-一般 O +投資 M1 名詞-サ変接続 O +展望 M1 名詞-サ変接続 O +会議 M1 名詞-サ変接続 O + S13 記号-空白 O +関西 M1 名詞-固有名詞-地域-一般 B-LOCATION +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +関係 M1 名詞-サ変接続 O +強化 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +呼び掛け T1-9 動詞-自立 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +メルボルン M10 名詞-固有名詞-地域-一般 B-DATE +6 S5 名詞-数 I-DATE +日 S1 名詞-一般 I-DATE +斉藤 M1 名詞-固有名詞-人名-姓 B-PERSON +行巨 M1 名詞-固有名詞-人名-名 I-PERSON +】 S2 記号-括弧閉 O +世界 M1 名詞-一般 O +十 S6 名詞-数 O +カ国 T10-1 名詞-接尾-助数詞 O +の S9 助詞-連体化 O +政治 M1 名詞-一般 O +家 S1 名詞-一般 O +、 S2 記号-読点 O +経済 M1 名詞-一般 O +人 S1 名詞-一般 O +ら S9 名詞-接尾-一般 O +約 S1 接頭詞-数接続 O +千二百人 T6-1 名詞-数 O +が S9 助詞-格助詞-一般 O +参加 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +オーストラリア M10 名詞-固有名詞-地域-国 B-LOCATION +と S9 助詞-格助詞-引用 O +各国 M1 名詞-一般 O +間 S1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +貿易 M1 名詞-サ変接続 O +、 S2 記号-読点 O +投資 M1 名詞-サ変接続 O +促進 M1 名詞-サ変接続 O +策 S1 名詞-一般 O +など M9 助詞-副助詞 O +を S9 助詞-格助詞-一般 O +探る T1-9 動詞-自立 O +全 S1 接頭詞-名詞接続 O +豪 S1 形容詞-自立 O +貿易 M1 名詞-サ変接続 O +・ S2 記号-一般 O +投資 M1 名詞-サ変接続 O +展望 M1 名詞-サ変接続 O +会議 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +六 S6 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +午後 M1 名詞-副詞可能 B-TIME +、 S2 記号-読点 O +三 S6 名詞-数 O +日間 M1 名詞-接尾-助数詞 O +の S9 助詞-連体化 O +日程 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +メルボルン M10 名詞-固有名詞-地域-一般 O +市内 M1 名詞-一般 O +の S9 助詞-連体化 O +国際 M1 名詞-一般 O +会議 M1 名詞-サ変接続 O +場 S1 名詞-一般 O +で S9 助動詞 O +始まっ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +から M9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +大西 M1 名詞-固有名詞-人名-姓 B-PERSON +正文 M1 名詞-一般 O +・ S2 記号-一般 O +大阪 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +商工 M1 名詞-一般 I-ORGANIZATION +会議 M1 名詞-サ変接続 I-ORGANIZATION +所 S1 名詞-接尾-一般 I-ORGANIZATION +会頭 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +団長 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +する M9 動詞-自立 O +「 S2 記号-括弧開 O +関西 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +代表 M1 名詞-サ変接続 I-ORGANIZATION +団 S1 名詞-一般 I-ORGANIZATION +」 S2 記号-括弧閉 O +約 S1 接頭詞-数接続 O +二十五人 T6-1 名詞-数 O +が S9 助詞-格助詞-一般 O +参加 M1 名詞-サ変接続 O +、 S2 記号-読点 O +各国 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +関西 M1 名詞-固有名詞-地域-一般 B-LOCATION +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +関係 M1 名詞-サ変接続 O +強化 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +呼びかける T1-9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +同 S1 接頭詞-名詞接続 O +会議 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +豪州 M1 名詞-固有名詞-地域-国 B-LOCATION +政府 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +主催 M1 名詞-サ変接続 O +する M9 動詞-自立 O +最大 M1 名詞-一般 O +規模 M1 名詞-一般 O +の S9 助詞-連体化 O +貿易 M1 名詞-サ変接続 O +・ S2 記号-一般 O +投資 M1 名詞-サ変接続 O +会議 M1 名詞-サ変接続 O +で S9 助動詞 O +、 S2 記号-読点 O +昨年 M1 名詞-副詞可能 B-DATE +に S9 助詞-格助詞-一般 O +続い T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +今年 M1 名詞-副詞可能 B-DATE +が S9 助詞-格助詞-一般 O +二回目 T6-1 名詞-数 O +。 S2 記号-句点 O + +豪州 M1 名詞-固有名詞-地域-国 B-LOCATION +を S9 助詞-格助詞-一般 O +除く T1-9 動詞-自立 O +参加 M1 名詞-サ変接続 O +十 S6 名詞-数 O +カ国 T10-1 名詞-接尾-助数詞 O +中 S1 名詞-非自立-副詞可能 O +九 S6 名詞-数 O +カ国 T10-1 名詞-接尾-助数詞 O +が S9 助詞-格助詞-一般 O +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +諸国 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +同国 M1 名詞-一般 O +の S9 助詞-連体化 O +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +重視 M1 名詞-サ変接続 O +政策 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +反映 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +今回 M1 名詞-副詞可能 O +の S9 助詞-連体化 O +会議 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ハイライト M10 名詞-一般 O +は S9 助詞-係助詞 O +八日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +に S9 助詞-格助詞-一般 O +開か T1-9 動詞-自立 O +れる M9 動詞-接尾 O +「 S2 記号-括弧開 O +関西 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +セッション M10 名詞-一般 I-ORGANIZATION +」 S2 記号-括弧閉 O +。 S2 記号-句点 O + +各国 M1 名詞-一般 O +の S9 助詞-連体化 O +貿易 M1 名詞-サ変接続 O +、 S2 記号-読点 O +投資 M1 名詞-サ変接続 O +環境 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +説明 M1 名詞-サ変接続 O +する M9 動詞-自立 O +国 S1 名詞-一般 O +別 S1 名詞-一般 O +分科 M1 名詞-一般 O +会 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +開か T1-9 動詞-自立 O +れる M9 動詞-接尾 O +中 S1 名詞-非自立-副詞可能 O +で S9 助動詞 O +の S9 助詞-連体化 O +唯一 T1-6 名詞-一般 O +の S9 助詞-連体化 O +地域 M1 名詞-一般 O +別 S1 名詞-一般 O +分科 M1 名詞-一般 O +会 S1 名詞-一般 O +。 S2 記号-句点 O + +関西国際空港 M1 名詞-固有名詞-組織 B-OPTIONAL +の S9 助詞-連体化 O +開港 M1 名詞-サ変接続 O +で S9 助動詞 O +、 S2 記号-読点 O +同国 M1 名詞-一般 O +の S9 助詞-連体化 O +アンセット航空 T10-1 名詞-固有名詞-組織 B-ORGANIZATION +、 S2 記号-読点 O +カンタス航空 T10-1 名詞-固有名詞-組織 B-ORGANIZATION +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +関西 M1 名詞-固有名詞-地域-一般 B-LOCATION +直行 M1 名詞-サ変接続 O +便 S1 動詞-自立 O +が S9 助詞-格助詞-一般 O +実現 M1 名詞-サ変接続 O +した M9 名詞-一般 O +こと M9 名詞-非自立-一般 O +も S9 助詞-係助詞 O +あっ M9 感動詞 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +豪州 M1 名詞-固有名詞-地域-国 B-LOCATION +経済 M1 名詞-一般 O +界 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +関西 M1 名詞-固有名詞-地域-一般 B-LOCATION +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +関心 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +強く T1-9 形容詞-自立 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +関西 M1 名詞-固有名詞-地域-一般 B-LOCATION +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +事業 M1 名詞-一般 O +拡大 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +狙っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +特別 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +地域 M1 名詞-一般 O +別 S1 名詞-一般 O +分科 M1 名詞-一般 O +会 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +設け T1-9 名詞-一般 O +た S9 助動詞 O +」 S2 記号-括弧閉 O +( S2 記号-括弧開 O +外務 M1 名詞-一般 O +・ S2 記号-一般 O +貿易 M1 名詞-サ変接続 O +省 S1 名詞-一般 O +) S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +関西 M1 名詞-固有名詞-地域-一般 B-LOCATION +から M9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +大阪 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +府 S1 名詞-一般 I-ORGANIZATION +、 S2 記号-読点 O +大阪 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +市 S1 名詞-一般 I-ORGANIZATION +、 S2 記号-読点 O +関経連 M1 名詞-固有名詞-組織 B-ORGANIZATION +幹部 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +参加 M1 名詞-サ変接続 O +する M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +開会 M1 名詞-サ変接続 O +式 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +先立っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +記者 M1 名詞-一般 O +会見 M1 名詞-サ変接続 O +した M9 名詞-一般 O +ボブ M10 名詞-固有名詞-人名-名 B-PERSON +・ S2 記号-一般 I-PERSON +マクマラン M10 名詞-固有名詞-人名-姓 I-PERSON +貿易 M1 名詞-サ変接続 B-ORGANIZATION +相 S1 接頭詞-動詞接続 O +は S9 助詞-係助詞 O +特に T1-9 副詞-一般 O +中小 M1 名詞-一般 O +企業 M1 名詞-一般 O +問題 M1 名詞-ナイ形容詞語幹 O +に S9 助詞-格助詞-一般 O +触れ T1-9 動詞-自立 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +豪州 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +企業 M1 名詞-一般 O +の S9 助詞-連体化 O +九 S6 名詞-数 B-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +以上 M1 名詞-非自立-副詞可能 O +が S9 助詞-格助詞-一般 O +中小 M1 名詞-一般 O +企業 M1 名詞-一般 O +。 S2 記号-句点 O + +豪州 M1 名詞-固有名詞-地域-国 B-LOCATION +経済 M1 名詞-一般 O +の S9 助詞-連体化 O +成長 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +中小 M1 名詞-一般 O +企業 M1 名詞-一般 O +の S9 助詞-連体化 O +育成 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +不可欠 M1 名詞-形容動詞語幹 O +で S9 助動詞 O +、 S2 記号-読点 O +輸出 M1 名詞-サ変接続 O +促進 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +支援 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いく M9 動詞-非自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +述べ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +サッカー M10 名詞-一般 O + S13 記号-空白 O +Jリーグ T7-10 名詞-固有名詞-組織 B-OPTIONAL + S13 記号-空白 O +アルシンド M10 名詞-固有名詞-人名-姓 B-PERSON +、 S2 記号-読点 O +川崎 M1 名詞-固有名詞-組織 B-ORGANIZATION +入り T1-9 名詞-接尾-サ変接続 O +希望 M1 名詞-サ変接続 O + + S13 記号-空白 O +Jリーグ T7-10 名詞-固有名詞-組織 B-OPTIONAL +の S9 助詞-連体化 O +鹿島 M1 名詞-固有名詞-組織 B-ORGANIZATION +を S9 助詞-格助詞-一般 O +退団 M1 名詞-サ変接続 O +、 S2 記号-読点 O +去就 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +注目 M1 名詞-サ変接続 O +され M9 動詞-自立 O +ていた M9 形容詞-自立 O +アルシンド M10 名詞-固有名詞-人名-姓 B-PERSON +が S9 助詞-格助詞-一般 O +川崎 M1 名詞-固有名詞-組織 B-PERSON +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +移籍 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +希望 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +六 S6 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +、 S2 記号-読点 O +川崎 M1 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +森下 M1 名詞-固有名詞-人名-姓 B-PERSON +社長 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +明らか T1-9 名詞-形容動詞語幹 O +にし M9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + +森下 M1 名詞-固有名詞-人名-姓 B-PERSON +社長 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +鹿島 M1 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +持っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +アルシンド M10 名詞-固有名詞-人名-姓 B-PERSON +の S9 助詞-連体化 O +保 S1 名詞-一般 O +有権 M1 名詞-一般 O +( S2 記号-括弧開 O +パス M10 名詞-サ変接続 O +) S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +アルシンド M10 名詞-固有名詞-人名-姓 B-PERSON +と S9 助詞-格助詞-引用 O +鹿島 M1 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +間 S1 名詞-非自立-副詞可能 O +で S9 助動詞 O +解決 M1 名詞-サ変接続 O +する M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +先決 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +し S9 動詞-自立 O +ながら M9 助詞-接続助詞 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +獲得 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +意思 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +表明 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +アルシンド M10 名詞-固有名詞-人名-姓 B-PERSON +は S9 助詞-係助詞 O +七日 T6-1 名詞-副詞可能 B-DATE +に S9 助詞-格助詞-一般 O +ブラジル M10 名詞-固有名詞-地域-国 B-LOCATION +に S9 助詞-格助詞-一般 O +帰国 M1 名詞-サ変接続 O +する M9 動詞-自立 O +予定 M1 名詞-サ変接続 O +だが M9 接続詞 O +、 S2 記号-読点 O +この M9 連体詞 O +日 S1 名詞-一般 O +、 S2 記号-読点 O +代理人 M1 名詞-一般 O +を通して T1-9 助詞-格助詞-連語 O +川崎 M1 名詞-固有名詞-組織 B-ORGANIZATION +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +移籍 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +希望 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +森下 M1 名詞-固有名詞-人名-姓 B-PERSON +社長 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +あれ M9 感動詞 O +だけ M9 助詞-副助詞 O +の S9 助詞-連体化 O +選手 M1 名詞-一般 O +なので M9 接続詞 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +で S9 助動詞 O +プレー M10 名詞-サ変接続 O +する M9 動詞-自立 O +機会 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +与 S1 動詞-自立 O +えたい M9 名詞-一般 O +。 S2 記号-句点 O + +合意 M1 名詞-サ変接続 O +できれ M9 動詞-自立 O +ば S9 助詞-接続助詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +話し T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +アルシンド M10 名詞-固有名詞-人名-姓 B-PERSON +は S9 助詞-係助詞 O +ジーコ M10 名詞-固有名詞-人名-姓 B-PERSON +の S9 助詞-連体化 O +推薦 M1 名詞-サ変接続 O +で S9 助動詞 O +昨年 M1 名詞-副詞可能 B-DATE +三月 T6-1 名詞-副詞可能 I-DATE +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +ブラジル M10 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +グレミオ M10 名詞-固有名詞-組織 B-ORGANIZATION +から M9 助詞-格助詞-一般 O +鹿島 M1 名詞-固有名詞-組織 B-ORGANIZATION +に S9 助詞-格助詞-一般 O +入っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +1 S5 名詞-数 B-DATE +年 S1 名詞-一般 I-DATE +目 S1 名詞-一般 I-DATE +の S9 助詞-連体化 O +昨季 M1 名詞-一般 O +は S9 助詞-係助詞 O +2 S5 名詞-数 O +得点 M1 名詞-サ変接続 O +、 S2 記号-読点 O +今季 M1 名詞-副詞可能 B-DATE +も S9 助詞-係助詞 O +2 S5 名詞-数 O +得点 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +挙げ T1-9 動詞-自立 O +、 S2 記号-読点 O +いずれ M9 副詞-助詞類接続 O +も S9 助詞-係助詞 O +得点 M1 名詞-サ変接続 O +王 S1 名詞-一般 O +争い T1-9 名詞-一般 O +の S9 助詞-連体化 O +二 S6 名詞-数 O +位 S1 名詞-副詞可能 O +につける M9 動詞-自立 O +活躍 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +見せ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +先月 M1 名詞-副詞可能 B-DATE +、 S2 記号-読点 O +年俸 M1 名詞-一般 O +( S2 記号-括弧開 O +推定 M1 名詞-サ変接続 O +3000 M5 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +アップ M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +求め T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +鹿島 M1 名詞-固有名詞-組織 B-ORGANIZATION +と S9 助詞-格助詞-引用 O +交渉 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +成立 M1 名詞-サ変接続 O +せ S9 動詞-自立 O +ず S9 助動詞 O +に S9 助詞-格助詞-一般 O +契約 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +打ち切っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +森下 M1 名詞-固有名詞-人名-姓 B-PERSON +社長 M1 名詞-一般 O +は S9 助詞-係助詞 O +年俸 M1 名詞-一般 O +について M9 助詞-格助詞-連語 O +「 S2 記号-括弧開 O +川崎 M1 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +基準 M1 名詞-一般 O +で S9 助動詞 O +話し合う T1-9 動詞-自立 O +。 S2 記号-句点 O + +伝え T1-9 名詞-一般 O +られ M9 動詞-接尾 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +1 S5 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +は S9 助詞-係助詞 O +考え T1-9 名詞-一般 O +られ M9 動詞-接尾 O +ない M9 形容詞-自立 O +」 S2 記号-括弧閉 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +近藤 M1 名詞-固有名詞-人名-姓 B-PERSON +忠雄 M1 名詞-固有名詞-人名-名 I-PERSON +被告 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +再 S1 接頭詞-名詞接続 O +逮捕 M1 名詞-サ変接続 O +―― M2 記号-一般 O +住友銀行 M1 名詞-固有名詞-組織 B-ORGANIZATION +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +恐喝 M1 名詞-サ変接続 O +未遂 M1 名詞-一般 O +容疑 M1 名詞-一般 O +で S9 助動詞 O + + S13 記号-空白 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +愛知 M1 名詞-固有名詞-地域-一般 B-LOCATION +両 S1 接頭詞-名詞接続 O +府県警 M1 名詞-一般 O +の S9 助詞-連体化 O +共同 M1 名詞-サ変接続 B-ORGANIZATION +捜査 M1 名詞-サ変接続 I-ORGANIZATION +本部 M1 名詞-一般 I-ORGANIZATION +は S9 助詞-係助詞 O +六 S6 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +、 S2 記号-読点 O +住友銀行 M1 名詞-固有名詞-組織 B-ORGANIZATION +取締役 M1 名詞-一般 O +名古屋 M1 名詞-固有名詞-地域-一般 B-LOCATION +支店 M1 名詞-一般 O +長 S1 形容詞-自立 O +、 S2 記号-読点 O +畑中 M1 名詞-固有名詞-人名-姓 B-PERSON +和文 M1 名詞-一般 I-PERSON +さん M9 名詞-接尾-人名 O +( S2 記号-括弧開 O +当時 M1 名詞-副詞可能 O +五十四歳 T6-1 名詞-数 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +射殺 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +供述 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +名古屋 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +名東 M1 名詞-固有名詞-地域-一般 I-LOCATION +区 S1 名詞-一般 I-LOCATION +本郷 M1 名詞-固有名詞-人名-姓 I-LOCATION +三 S6 名詞-数 I-LOCATION +、 S2 記号-読点 O +無職 M1 名詞-一般 O +、 S2 記号-読点 O +近藤 M1 名詞-固有名詞-人名-姓 B-PERSON +忠雄 M1 名詞-固有名詞-人名-名 I-PERSON +被告 M1 名詞-一般 O +( S2 記号-括弧開 O +7 S5 名詞-数 O +) S2 記号-括弧閉 O += S2 記号-一般 O +銃刀 M1 名詞-一般 B-ARTIFACT +法 S1 名詞-一般 I-ARTIFACT +違反 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +罪 S1 名詞-一般 O +など M9 助詞-副助詞 O +で S9 助動詞 O +大阪 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +地裁 M1 名詞-一般 I-ORGANIZATION +に S9 助詞-格助詞-一般 O +起訴 M1 名詞-サ変接続 O += S2 記号-一般 O +の S9 助詞-連体化 O +身柄 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +愛知 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +県警 M1 名詞-一般 I-ORGANIZATION +本部 M1 名詞-一般 I-ORGANIZATION +に S9 助詞-格助詞-一般 O +移し T1-9 動詞-自立 O +、 S2 記号-読点 O +同行 M1 名詞-サ変接続 O +に対する T1-9 助詞-格助詞-連語 O +恐喝 M1 名詞-サ変接続 O +未遂 M1 名詞-一般 O +の S9 助詞-連体化 O +疑い T1-9 名詞-一般 O +で S9 助動詞 O +再 S1 接頭詞-名詞接続 O +逮捕 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +一方 T6-1 接続詞 O +、 S2 記号-読点 O +同日 M1 名詞-副詞可能 O +、 S2 記号-読点 O +畑中 M1 名詞-固有名詞-人名-姓 B-PERSON +さん M9 名詞-接尾-人名 O +殺害 M1 名詞-サ変接続 O +現場 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +残っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +銃弾 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +同 S1 接頭詞-名詞接続 O +容疑 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +所持 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ていた M9 形容詞-自立 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +・ S2 記号-一般 O +S&W T2-7 名詞-固有名詞-組織 B-ORGANIZATION +( S2 記号-括弧開 O +スミス・アンド・ウエッソン T2-10 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +社 S1 名詞-一般 O +製 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +三八口径回転式 T6-1 名詞-数 O +けん銃 T9-1 名詞-一般 O +から M9 助詞-格助詞-一般 O +発射 M1 名詞-サ変接続 O +され M9 動詞-自立 O +たと M9 動詞-自立 O +する M9 動詞-自立 O +警察庁 M1 名詞-固有名詞-組織 B-ORGANIZATION +科学警察研究所 M1 名詞-固有名詞-組織 I-ORGANIZATION +の S9 助詞-連体化 O +正式 M1 名詞-形容動詞語幹 O +鑑定 M1 名詞-サ変接続 O +結果 M1 名詞-副詞可能 O +が S9 助詞-格助詞-一般 O +出 S1 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +調べ T1-9 名詞-一般 O +では M9 接続詞 O +、 S2 記号-読点 O +同 S1 接頭詞-名詞接続 O +容疑 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +先月 M1 名詞-副詞可能 B-DATE +上旬 M1 名詞-副詞可能 I-DATE +、 S2 記号-読点 O +東京 M1 名詞-固有名詞-地域-一般 O +都内 M1 名詞-一般 O +の S9 助詞-連体化 O +同行 M1 名詞-サ変接続 O +頭取 M1 名詞-一般 O +あて M9 名詞-一般 O +に S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +我々 T1-2 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +住友銀行 M1 名詞-固有名詞-組織 B-ORGANIZATION +に S9 助詞-格助詞-一般 O +深い T1-9 形容詞-自立 O +恨み T1-9 動詞-自立 O +を S9 助詞-格助詞-一般 O +抱き T1-9 動詞-自立 O +復讐 M1 名詞-サ変接続 O +( S2 記号-括弧開 O +ふくしゅう M9 名詞-一般 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +念 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +燃え T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +」 S2 記号-括弧閉 O +「 S2 記号-括弧開 O +最初 M1 名詞-一般 O +の S9 助詞-連体化 O +ターゲット M10 名詞-一般 O +は S9 助詞-係助詞 O +完全 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +ヒット M10 名詞-サ変接続 O +した M9 名詞-一般 O +」 S2 記号-括弧閉 O +など M9 助詞-副助詞 O +と S9 助詞-格助詞-引用 O +書い T1-9 動詞-自立 O +た S9 助動詞 O +脅迫 M1 名詞-サ変接続 O +状 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +郵送 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +さらに M9 副詞-助詞類接続 O +、 S2 記号-読点 O +同 S1 接頭詞-名詞接続 O +十一日午後二時半 T6-1 名詞-数 O +ごろ M9 名詞-接尾-副詞可能 O +、 S2 記号-読点 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 O +中央 M1 名詞-一般 O +区 S1 名詞-一般 O +の S9 助詞-連体化 O +同行 M1 名詞-サ変接続 O +本店 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +訪れ T1-9 動詞-自立 O +、 S2 記号-読点 O +脅迫 M1 名詞-サ変接続 O +状 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +書か T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +内容 M1 名詞-一般 O +の S9 助詞-連体化 O +脅迫 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +行い T1-9 名詞-一般 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +畑中 M1 名詞-固有名詞-人名-姓 B-PERSON +を S9 助詞-格助詞-一般 O +やっ M9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +おれ M9 名詞-代名詞-一般 O +たち M9 名詞-接尾-一般 O +の S9 助詞-連体化 O +グループ M10 名詞-一般 O +だ S9 助動詞 O +」 S2 記号-括弧閉 O +など M9 助詞-副助詞 O +と S9 助詞-格助詞-引用 O +脅し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +融資 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +名目 M1 名詞-一般 O +で S9 助動詞 O +同行 M1 名詞-サ変接続 O +から M9 助詞-格助詞-一般 O +金 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +脅し取ろ T1-9 動詞-自立 O +うとし M9 形容詞-自立 O +た S9 助動詞 O +疑い T1-9 名詞-一般 O +。 S2 記号-句点 O + +調べ T1-9 名詞-一般 O +に対し T1-9 助詞-格助詞-連語 O +同 S1 接頭詞-名詞接続 O +容疑 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +頭取 M1 名詞-一般 O +あて M9 名詞-一般 O +の S9 助詞-連体化 O +脅迫 M1 名詞-サ変接続 O +状 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +自分 M1 名詞-一般 O +で S9 助動詞 O +書い T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +出し T1-9 動詞-自立 O +た S9 助動詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +供述 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +逮捕 M1 名詞-サ変接続 O +事実 M1 名詞-副詞可能 O +を S9 助詞-格助詞-一般 O +ほぼ M9 副詞-一般 O +認め T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +9 S5 名詞-数 B-DATE +― S2 記号-一般 I-DATE +9 S5 名詞-数 I-DATE +年度 M1 名詞-一般 I-DATE +に S9 助詞-格助詞-一般 O +地方 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +先行 M1 名詞-サ変接続 B-ORGANIZATION +投資 M1 名詞-サ変接続 I-ORGANIZATION + S13 記号-空白 I-ORGANIZATION +与党 M1 名詞-一般 I-ORGANIZATION +検討 M1 名詞-サ変接続 I-ORGANIZATION +委 S1 名詞-接尾-一般 I-ORGANIZATION +が S9 助詞-格助詞-一般 O +基本 M1 名詞-一般 O +方針 M1 名詞-一般 O +―― M2 記号-一般 O +整備 M1 名詞-サ変接続 O +新幹線 M1 名詞-一般 O + + S13 記号-空白 O +与党 M1 名詞-一般 O +の S9 助詞-連体化 O +整備 M1 名詞-サ変接続 B-ORGANIZATION +新幹線 M1 名詞-一般 I-ORGANIZATION +検討 M1 名詞-サ変接続 I-ORGANIZATION +委員 M1 名詞-一般 I-ORGANIZATION +会 S1 名詞-一般 I-ORGANIZATION +は S9 助詞-係助詞 O +七日 T6-1 名詞-副詞可能 O +、 S2 記号-読点 O +一九九五年度以降 T6-1 名詞-数 O +の S9 助詞-連体化 O +整備 M1 名詞-サ変接続 O +新幹線 M1 名詞-一般 O +建設 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +基本 M1 名詞-一般 O +方針 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +固め T1-9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +1 S5 名詞-数 O +) S2 記号-括弧閉 O +現行 M1 名詞-一般 O +の S9 助詞-連体化 O +財源 M1 名詞-一般 O +負担 M1 名詞-サ変接続 O +割合 M1 名詞-一般 O +で S9 助動詞 O +地方 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +負担 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +一 S6 名詞-数 B-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +の S9 助詞-連体化 O +枠内 M1 名詞-一般 O +で S9 助動詞 O +九 S6 名詞-数 B-DATE +― S2 記号-一般 I-DATE +九 S6 名詞-数 I-DATE +年度 M1 名詞-一般 I-DATE +に S9 助詞-格助詞-一般 O +先行 M1 名詞-サ変接続 O +投資 M1 名詞-サ変接続 O +させる M9 動詞-接尾 O +( S2 記号-括弧開 O +2 S5 名詞-数 O +) S2 記号-括弧閉 O +九七年度以降 T6-1 名詞-数 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +JR M7 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +保 S1 名詞-一般 O +有する T1-9 動詞-自立 O +新幹線 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +かかる M9 動詞-自立 O +固定 M1 名詞-サ変接続 O +資産 M1 名詞-一般 O +税 S1 名詞-一般 O +分 S1 動詞-自立 O +など M9 助詞-副助詞 O +を S9 助詞-格助詞-一般 O +基 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +特定 M1 名詞-サ変接続 O +財源 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +創出 M1 名詞-サ変接続 O +する M9 動詞-自立 O +―― M2 記号-一般 O +の S9 助詞-連体化 O +二 S6 名詞-数 O +点 S1 名詞-非自立-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +これ M9 名詞-代名詞-一般 O +により M9 助詞-格助詞-連語 O +建設 M1 名詞-サ変接続 O +促進 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +図る T1-9 動詞-自立 O +という M9 助詞-格助詞-連語 O +もの M9 名詞-非自立-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +整備 M1 名詞-サ変接続 O +新幹線 M1 名詞-一般 O +は S9 助詞-係助詞 O +現在 M1 名詞-副詞可能 O +、 S2 記号-読点 O +北陸 M1 名詞-固有名詞-地域-一般 O +新幹線 M1 名詞-一般 O +の S9 助詞-連体化 O +高崎 M1 名詞-固有名詞-地域-一般 B-LOCATION +― S2 記号-一般 O +長野 M1 名詞-固有名詞-地域-一般 B-LOCATION +間 S1 名詞-非自立-副詞可能 O +を S9 助詞-格助詞-一般 O +はじめ M9 名詞-副詞可能 O +、 S2 記号-読点 O +東北 M1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +九州 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +新幹線 M1 名詞-一般 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +三線五区間 T6-1 名詞-数 O +」 S2 記号-括弧閉 O +で S9 助動詞 O +建設 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +進め T1-9 動詞-自立 O +られ M9 動詞-接尾 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +亀井 M1 名詞-固有名詞-人名-姓 B-PERSON +静香 M1 名詞-固有名詞-人名-名 I-PERSON +運輸 M1 名詞-一般 B-ORGANIZATION +相 S1 接頭詞-動詞接続 O +が S9 助詞-格助詞-一般 O +強硬 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +主張 M1 名詞-サ変接続 O +する M9 動詞-自立 O +来年度 M1 名詞-副詞可能 O +の S9 助詞-連体化 O +三線五区間以外 T6-1 名詞-数 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +着工 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +について M9 助詞-格助詞-連語 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +九 S6 名詞-数 B-DATE +年度 M1 名詞-一般 I-DATE +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +九州 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +新幹線 M1 名詞-一般 O +の S9 助詞-連体化 O +熊本 M1 名詞-固有名詞-地域-一般 B-LOCATION +駅 S1 名詞-一般 I-LOCATION +、 S2 記号-読点 O +北陸 M1 名詞-固有名詞-地域-一般 B-LOCATION +新幹線 M1 名詞-一般 O +の S9 助詞-連体化 O +富山 M1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +福井 M1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +小松 M1 名詞-固有名詞-人名-姓 B-PERSON +駅 S1 名詞-一般 O +の S9 助詞-連体化 O +着手 M1 名詞-サ変接続 O +・ S2 記号-一般 O +整備 M1 名詞-サ変接続 O +、 S2 記号-読点 O +東北新幹線 M1 名詞-固有名詞-一般 B-LOCATION +の S9 助詞-連体化 O +八甲田 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +トンネル M10 名詞-一般 I-LOCATION +、 S2 記号-読点 O +九州 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +新幹線 M1 名詞-一般 O +の S9 助詞-連体化 O +脊振 M1 名詞-固有名詞-地域-一般 B-LOCATION +( S2 記号-括弧開 O +せふり M9 名詞-固有名詞-地域-一般 O +) S2 記号-括弧閉 O +トンネル M10 名詞-一般 O +の S9 助詞-連体化 O +調査 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +行う T1-9 動詞-自立 O +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +案 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +すでに M9 副詞-一般 O +まとめ M9 名詞-一般 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +同日 M1 名詞-副詞可能 O +午前 M1 名詞-副詞可能 B-TIME +、 S2 記号-読点 O +運輸 M1 名詞-一般 O +、 S2 記号-読点 O +大蔵 M1 名詞-一般 O +、 S2 記号-読点 O +自治 M1 名詞-一般 O +三省 T6-1 名詞-固有名詞-人名-姓 B-PERSON +の S9 助詞-連体化 O +担当 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +を S9 助詞-格助詞-一般 O +交え T1-9 動詞-自立 O +た S9 助動詞 O +会合 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +開き T1-9 動詞-自立 O +、 S2 記号-読点 O +これら M9 名詞-代名詞-一般 O +を S9 助詞-格助詞-一般 O +説明 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +運輸省 M1 名詞-固有名詞-組織 B-ORGANIZATION +は S9 助詞-係助詞 O +、 S2 記号-読点 O +来年度 M1 名詞-副詞可能 O +予算 M1 名詞-一般 O +概算 M1 名詞-サ変接続 O +要求 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +総 S1 接頭詞-名詞接続 O +事業 M1 名詞-一般 O +費 S1 名詞-接尾-一般 O +二千二百七十六億円 T6-1 名詞-数 O +の S9 助詞-連体化 O +中 S1 名詞-非自立-副詞可能 O +から M9 助詞-格助詞-一般 O +三線五区間以外分 T6-1 名詞-数 O +に S9 助詞-格助詞-一般 O +充てる T1-9 動詞-自立 O +数 S1 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +ひねり出し T1-9 動詞-自立 O +、 S2 記号-読点 O +着手 M1 名詞-サ変接続 O +したい M9 動詞-自立 O +構え T1-9 名詞-一般 O +。 S2 記号-句点 O + +欧米 M1 名詞-固有名詞-地域-一般 O +主導 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +ロシア M10 名詞-固有名詞-地域-国 B-ORGANIZATION +不満 M1 名詞-一般 I-ORGANIZATION + S13 記号-空白 I-ORGANIZATION +平和 M1 名詞-形容動詞語幹 I-ORGANIZATION +維持 M1 名詞-サ変接続 I-ORGANIZATION +軍 S1 名詞-一般 I-ORGANIZATION +の S9 助詞-連体化 O +常設 M1 名詞-サ変接続 O +、 S2 記号-読点 O +さらに M9 副詞-助詞類接続 O +協議 M1 名詞-サ変接続 O +-- M2 記号-一般 O +CSCE M7 名詞-固有名詞-組織 B-ORGANIZATION + + S13 記号-空白 O +【 S2 記号-括弧開 O +ブダペスト M10 名詞-固有名詞-地域-一般 B-LOCATION +7 S5 名詞-数 O +日高 M1 名詞-固有名詞-人名-姓 B-PERSON +畑 S1 名詞-一般 I-PERSON +昭男 M1 名詞-固有名詞-人名-名 I-PERSON +、 S2 記号-読点 O +谷口 M1 名詞-固有名詞-人名-姓 B-PERSON +長世 M1 名詞-固有名詞-人名-名 I-PERSON +】 S2 記号-括弧閉 O +六 S6 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +閉幕 M1 名詞-サ変接続 O +した M9 名詞-一般 O +ブダペスト M10 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +全欧 M1 名詞-一般 O +安保 M1 名詞-一般 O +協力 M1 名詞-サ変接続 O +会議 M1 名詞-サ変接続 O +( S2 記号-括弧開 O +CSCE M7 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +首脳 M1 名詞-一般 O +会議 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +旧 S1 接頭詞-名詞接続 B-LOCATION +ソ連 T10-1 名詞-固有名詞-地域-国 I-LOCATION +アゼルバイジャン M10 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +紛争 M1 名詞-サ変接続 O +地域 M1 名詞-一般 O +ナゴルノカラバフ M10 名詞-固有名詞-地域-一般 B-LOCATION +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +CSCE M7 名詞-固有名詞-組織 B-ORGANIZATION +平和 M1 名詞-形容動詞語幹 I-ORGANIZATION +維持 M1 名詞-サ変接続 I-ORGANIZATION +軍 S1 名詞-一般 I-ORGANIZATION +派遣 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +基本 M1 名詞-一般 O +合意 M1 名詞-サ変接続 O +する M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +で S9 助動詞 O +決裂 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +危機 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +回避 M1 名詞-サ変接続 O +した M9 名詞-一般 O +ものの M9 助詞-接続助詞 O +、 S2 記号-読点 O +首脳 M1 名詞-一般 O +外交 M1 名詞-一般 O +では M9 接続詞 O +米 S1 名詞-固有名詞-地域-国 B-LOCATION +欧 S1 名詞-固有名詞-地域-一般 B-LOCATION +主導 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +安全 M1 名詞-形容動詞語幹 O +保障 M1 名詞-サ変接続 O +戦略 M1 名詞-一般 O +に対する T1-9 助詞-格助詞-連語 O +ロシア M10 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +不満 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +噴出 M1 名詞-サ変接続 O +する M9 動詞-自立 O +結果 M1 名詞-副詞可能 O +となり M9 名詞-一般 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +分断 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ない M9 形容詞-自立 O +欧州 M1 名詞-固有名詞-地域-一般 B-LOCATION +」 S2 記号-括弧閉 O +実現 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +目指す T1-9 動詞-自立 O +同 S1 接頭詞-名詞接続 O +会議 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +結束 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +重要 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +課題 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +投げかけ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +首脳 M1 名詞-一般 O +会議 M1 名詞-サ変接続 O +では M9 接続詞 O +冷戦 M1 名詞-一般 O +終結 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +混乱 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +経て T1-9 動詞-自立 O +、 S2 記号-読点 O +どの M9 連体詞 O +よう M9 名詞-非自立-助動詞語幹 O +な S9 助詞-終助詞 O +安保 M1 名詞-一般 O +の S9 助詞-連体化 O +仕組み T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +つくる M9 動詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +が S9 助詞-格助詞-一般 O +焦点 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +露 S1 名詞-固有名詞-地域-国 B-LOCATION +、 S2 記号-読点 O +欧州 M1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +を S9 助詞-格助詞-一般 O +三本 T6-1 名詞-固有名詞-人名-姓 B-PERSON +柱 S1 名詞-一般 O +と S9 助詞-格助詞-引用 O +する M9 動詞-自立 O +安全 M1 名詞-形容動詞語幹 O +保障 M1 名詞-サ変接続 O +機関 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +つくる M9 動詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +が S9 助詞-格助詞-一般 O +主眼 M1 名詞-一般 O +だっ M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +その M9 連体詞 O +答え T1-9 名詞-一般 O +が S9 助詞-格助詞-一般 O +全欧 M1 名詞-一般 B-ORGANIZATION +安保 M1 名詞-一般 I-ORGANIZATION +協力 M1 名詞-サ変接続 I-ORGANIZATION +機構 M1 名詞-一般 I-ORGANIZATION +( S2 記号-括弧開 O +OSCE M7 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +で S9 助動詞 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +合意 M1 名詞-サ変接続 O +文書 M1 名詞-一般 O +は S9 助詞-係助詞 O +ナゴルノカラバフ M10 名詞-固有名詞-地域-一般 B-LOCATION +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +平和 M1 名詞-形容動詞語幹 O +維持 M1 名詞-サ変接続 O +軍 S1 名詞-一般 O +は S9 助詞-係助詞 O +国連 M1 名詞-固有名詞-組織 B-ORGANIZATION +安保理 M1 名詞-固有名詞-組織 I-ORGANIZATION +の S9 助詞-連体化 O +政治 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +支援 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +条件 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +常設 M1 名詞-サ変接続 B-ORGANIZATION +理事 M1 名詞-一般 I-ORGANIZATION +会 S1 名詞-一般 I-ORGANIZATION +が S9 助詞-格助詞-一般 O +実際 M1 副詞-助詞類接続 O +の S9 助詞-連体化 O +作戦 M1 名詞-一般 O +指揮 M1 名詞-サ変接続 O +権 S1 名詞-固有名詞-人名-名 I-PERSON +を S9 助詞-格助詞-一般 O +持つ T1-9 動詞-自立 O +と S9 助詞-格助詞-引用 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +同 S1 接頭詞-名詞接続 O +維持 M1 名詞-サ変接続 O +軍 S1 名詞-一般 O +派遣 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +OSCE M7 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +仕組み T1-9 名詞-一般 O +づくり M9 名詞-接尾-一般 O +の S9 助詞-連体化 O +試金石 M1 名詞-一般 O +で S9 助動詞 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + +同時に T1-9 副詞-一般 O +首脳 M1 名詞-一般 O +会議 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +来秋 M1 名詞-副詞可能 O +まで M9 助詞-副助詞 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +常設 M1 名詞-サ変接続 B-ORGANIZATION +平和 M1 名詞-形容動詞語幹 I-ORGANIZATION +維持 M1 名詞-サ変接続 I-ORGANIZATION +軍 S1 名詞-一般 I-ORGANIZATION +を S9 助詞-格助詞-一般 O +含め T1-9 動詞-自立 O +た S9 助動詞 O +OSCE M7 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +肉付け T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +さらに M9 副詞-助詞類接続 O +継続 M1 名詞-サ変接続 O +協議 M1 名詞-サ変接続 O +する M9 動詞-自立 O +ことに M9 副詞-一般 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +取次 M1 名詞-一般 O +番 S1 名詞-一般 O +日誌 M1 名詞-一般 O +] S2 記号-括弧閉 O +慶応大学 M1 名詞-固有名詞-組織 B-ORGANIZATION +湘南 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +藤沢 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +キャンパス M10 名詞-一般 O + + S13 記号-空白 O +慶応大学 M1 名詞-固有名詞-組織 B-ORGANIZATION +湘南 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +藤沢 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +キャンパス M10 名詞-一般 I-ORGANIZATION +は S9 助詞-係助詞 O +今年 M1 名詞-副詞可能 B-DATE +四月 T6-1 名詞-副詞可能 I-DATE +に S9 助詞-格助詞-一般 O +初めて T1-9 副詞-一般 O +の S9 助詞-連体化 O +卒業生 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +送り出し T1-9 動詞-自立 O +たばかり M9 動詞-自立 O +の S9 助詞-連体化 O +若い T1-9 形容詞-自立 O +大学 M1 名詞-一般 O +です M9 助動詞 O +。 S2 記号-句点 O + +三田 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +や S9 助詞-並立助詞 O +日吉 M1 名詞-固有名詞-地域-一般 B-LOCATION +と S9 助詞-格助詞-引用 O +は S9 助詞-係助詞 O +地理 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +離れ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +し S9 動詞-自立 O +、 S2 記号-読点 O +教育 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +仕組み T1-9 名詞-一般 O +も S9 助詞-係助詞 O +違う T1-9 動詞-自立 O +ので M9 助詞-接続助詞 O +、 S2 記号-読点 O +学生 M1 名詞-一般 O +さん M9 名詞-接尾-人名 O +たち M9 名詞-接尾-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +独立 M1 名詞-サ変接続 O +した M9 名詞-一般 O +大学 M1 名詞-一般 O +という M9 助詞-格助詞-連語 O +意識 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +よう M9 名詞-非自立-助動詞語幹 O +です M9 助動詞 O +。 S2 記号-句点 O + +男女 M1 名詞-一般 O +数 S1 名詞-数 O +人 S1 名詞-一般 O +の S9 助詞-連体化 O +話 S1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +聞い T1-9 動詞-自立 O +てい M9 名詞-一般 O +たら M9 助動詞 O +、 S2 記号-読点 O +この M9 連体詞 O +キャンパス M10 名詞-一般 O +の S9 助詞-連体化 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +SFC M7 名詞-固有名詞-組織 B-ORGANIZATION +( S2 記号-括弧開 O +エスエフシー M10 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +では M9 接続詞 O +… S2 記号-一般 O +… S2 記号-一般 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +話し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +ので M9 助詞-接続助詞 O +、 S2 記号-読点 O +大月 M1 名詞-固有名詞-人名-姓 B-PERSON +編集 M1 名詞-サ変接続 O +長 S1 形容詞-自立 O +は S9 助詞-係助詞 O +初め T1-9 名詞-副詞可能 O +きょとん M9 副詞-助詞類接続 O +として M9 助詞-格助詞-連語 O +いま M9 名詞-副詞可能 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +入学 M1 名詞-サ変接続 O +後に T1-9 副詞-一般 O +ハード M10 名詞-一般 O +な S9 助詞-終助詞 O +勉強 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +させる M9 動詞-接尾 O +所 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +アメリカ M10 名詞-固有名詞-地域-国 B-LOCATION +式 S1 名詞-一般 O +。 S2 記号-句点 O + +ラクロス M10 名詞-一般 O +はじめ M9 名詞-副詞可能 O +新 S1 接頭詞-名詞接続 O +スポーツ M10 名詞-一般 O +の S9 助詞-連体化 O +発信 M1 名詞-サ変接続 O +地 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +なる M9 動詞-自立 O +など M9 助詞-副助詞 O +サークル M10 名詞-一般 O +も S9 助詞-係助詞 O +盛ん T1-9 名詞-形容動詞語幹 O +らしい M9 助動詞 O +。 S2 記号-句点 O + +「 S2 記号-括弧開 O +多分 M1 副詞-一般 O +一生 T6-1 名詞-副詞可能 O +で S9 助動詞 O +今 S1 名詞-副詞可能 O +が S9 助詞-格助詞-一般 O +一番 T6-1 名詞-副詞可能 O +忙しい T1-9 形容詞-自立 O +ので M9 助詞-接続助詞 O +は S9 助詞-係助詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +笑っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +学生 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +いま M9 名詞-副詞可能 O +した M9 名詞-一般 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +勉強 M1 名詞-サ変接続 O +好き T1-9 名詞-形容動詞語幹 O +で S9 助動詞 O +忙しい T1-9 形容詞-自立 O +生活 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +同じ T1-9 連体詞 O +慶応 M1 名詞-固有名詞-組織 B-ORGANIZATION +でも M9 助詞-副助詞 O +三田 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +や S9 助詞-並立助詞 O +日吉 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +学生 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +珍しく T1-9 形容詞-自立 O +感じ T1-9 名詞-一般 O +られる M9 動詞-接尾 O +よう M9 名詞-非自立-助動詞語幹 O +です M9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +ところで M9 接続詞 O +、 S2 記号-読点 O +キャンパス M10 名詞-一般 O +ネット M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +一番 T6-1 名詞-副詞可能 O +混雑 M1 名詞-サ変接続 O +する M9 動詞-自立 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +午前 M1 名詞-副詞可能 O +零時 M1 名詞-一般 O +ごろ M9 名詞-接尾-副詞可能 O +だ S9 助動詞 O +そう M9 副詞-助詞類接続 O +です M9 助動詞 O +。 S2 記号-句点 O + +体育 M1 名詞-一般 O +の S9 助詞-連体化 O +授業 M1 名詞-サ変接続 O +だけ M9 助詞-副助詞 O +は S9 助詞-係助詞 O +ネット M10 名詞-一般 O +を通じ T1-9 助詞-格助詞-連語 O +た S9 助動詞 O +先着 M1 名詞-サ変接続 O +順 S1 名詞-一般 O +の S9 助詞-連体化 O +予約 M1 名詞-サ変接続 O +制 S1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +てい M9 名詞-一般 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +受け付け T1-9 名詞-サ変接続 O +開始 M1 名詞-サ変接続 O +時 S1 名詞-非自立-副詞可能 O +( S2 記号-括弧開 O +午前 M1 名詞-副詞可能 O +零時 M1 名詞-一般 O +) S2 記号-括弧閉 O +に S9 助詞-格助詞-一般 O +殺到 M1 名詞-サ変接続 O +する M9 動詞-自立 O +から M9 助詞-格助詞-一般 O +です M9 助動詞 O +。 S2 記号-句点 O + +一番 T6-1 名詞-副詞可能 O +の S9 助詞-連体化 O +人気 M1 名詞-一般 O +は S9 助詞-係助詞 O +近く T1-9 名詞-副詞可能 O +の S9 助詞-連体化 O +ゴルフ M10 名詞-一般 O +練習 M1 名詞-サ変接続 O +場 S1 名詞-一般 O +で S9 助動詞 O +の S9 助詞-連体化 O +打ちっ放し T1-9 名詞-一般 O +だ S9 助動詞 O +そう M9 副詞-助詞類接続 O +です M9 助動詞 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +冠 S1 名詞-一般 O +) S2 記号-括弧閉 O + +歳月 M1 名詞-一般 O +1 S5 名詞-数 O +年 S1 名詞-一般 O +、 S2 記号-読点 O +主 S1 名詞-形容動詞語幹 O +なき M9 形容詞-自立 O +終幕 M1 名詞-一般 O +―― M2 記号-一般 O +ロッキード M10 名詞-固有名詞-組織 B-ORGANIZATION +事件 M1 名詞-一般 O +丸紅 M1 名詞-固有名詞-組織 B-ORGANIZATION +ルート M10 名詞-一般 O +・ S2 記号-一般 O +最高裁 M1 名詞-固有名詞-組織 B-ORGANIZATION + S13 記号-空白 O +上告 M1 名詞-サ変接続 O +審 S1 名詞-一般 O +弁論 M1 名詞-サ変接続 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +長かっ T1-9 形容詞-自立 O +た S9 助動詞 O +… S2 記号-一般 O +… S2 記号-一般 O +」 S2 記号-括弧閉 O +。 S2 記号-句点 O + +最高裁 M1 名詞-固有名詞-組織 B-ORGANIZATION +大 S1 接頭詞-名詞接続 O +法廷 M1 名詞-一般 O +の S9 助詞-連体化 O +弁論 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +前 S1 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +桧山 M1 名詞-固有名詞-人名-姓 B-PERSON +広元 M1 名詞-固有名詞-人名-名 I-PERSON +丸紅 M1 名詞-固有名詞-組織 B-ORGANIZATION +会長 M1 名詞-一般 O +( S2 記号-括弧開 O +8 S5 名詞-数 O +) S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +榎本 M1 名詞-固有名詞-人名-姓 B-PERSON +敏夫 M1 名詞-固有名詞-人名-名 I-PERSON +元 S1 接頭詞-名詞接続 O +首相 M1 名詞-一般 O +秘書官 M1 名詞-一般 O +( S2 記号-括弧開 O +6 S5 名詞-数 O +) S2 記号-括弧閉 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +弁護 M1 名詞-サ変接続 O +人 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +くしくも M9 副詞-一般 O +同じ T1-9 連体詞 O +言葉 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +漏らし T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +この間 T9-1 名詞-副詞可能 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +主役 M1 名詞-一般 O +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +田中 M1 名詞-固有名詞-人名-姓 B-PERSON +角栄 M1 名詞-固有名詞-人名-名 I-PERSON +元 S1 接頭詞-名詞接続 O +首相 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +はじめ M9 名詞-副詞可能 O +、 S2 記号-読点 O +起訴 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +十 S6 名詞-数 O +人 S1 名詞-一般 O +の S9 助詞-連体化 O +うち M9 名詞-非自立-副詞可能 O +五 S6 名詞-数 O +人 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +亡くなっ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +十八年前 T6-1 名詞-数 O +、 S2 記号-読点 O +列島 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +衝撃 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +駆け抜け T1-9 動詞-自立 O +た S9 助動詞 O +ロッキード M10 名詞-固有名詞-組織 B-ORGANIZATION +事件 M1 名詞-一般 O +は S9 助詞-係助詞 O +七日 T6-1 名詞-副詞可能 O +の S9 助詞-連体化 O +弁論 M1 名詞-サ変接続 O +で S9 助動詞 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +主 S1 名詞-形容動詞語幹 O +( S2 記号-括弧開 O +あるじ M9 名詞-一般 O +) S2 記号-括弧閉 O +なき M9 形容詞-自立 O +終幕 M1 名詞-一般 O +」 S2 記号-括弧閉 O +へ S9 助詞-格助詞-一般 O +向かう T1-9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +午前 M1 名詞-副詞可能 O +十時 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +開廷 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +十 S6 名詞-数 O +の S9 助詞-連体化 O +裁判官 M1 名詞-一般 O +席 S1 名詞-一般 O +の S9 助詞-連体化 O +うち M9 名詞-非自立-副詞可能 O +三つ T6-9 名詞-一般 O +が S9 助詞-格助詞-一般 O +空席 M1 名詞-一般 O +だ S9 助動詞 O +。 S2 記号-句点 O + +大白 M1 名詞-一般 O +勝 S1 名詞-一般 O +裁判官 M1 名詞-一般 O +は S9 助詞-係助詞 O +病気 M1 名詞-サ変接続 O +入院 M1 名詞-サ変接続 O +中 S1 名詞-非自立-副詞可能 O +で S9 助動詞 O +、 S2 記号-読点 O +検察官 M1 名詞-一般 O +出身 M1 名詞-一般 O +の S9 助詞-連体化 O +大堀 M1 名詞-固有名詞-組織 B-PERSON +誠一 T1-6 名詞-固有名詞-人名-名 I-PERSON +、 S2 記号-読点 O +根岸 M1 名詞-固有名詞-人名-姓 B-PERSON +重治 M1 名詞-固有名詞-人名-名 I-PERSON +両 S1 接頭詞-名詞接続 O +裁判官 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +捜査 M1 名詞-サ変接続 O +、 S2 記号-読点 O +公判 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +関与 M1 名詞-サ変接続 O +したため M9 動詞-自立 O +「 S2 記号-括弧開 O +回避 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +判決 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +十 S6 名詞-数 O +裁判官 M1 名詞-一般 O +で S9 助動詞 O +言い渡さ T1-9 動詞-自立 O +れる M9 動詞-接尾 O +。 S2 記号-句点 O + +両 S1 接頭詞-名詞接続 O +被告 M1 名詞-一般 O +は S9 助詞-係助詞 O +出廷 M1 名詞-サ変接続 O +せ S9 動詞-自立 O +ず S9 助動詞 O +、 S2 記号-読点 O +弁護 M1 名詞-サ変接続 O +団 S1 名詞-一般 O +と S9 助詞-格助詞-引用 O +最高検 M1 名詞-固有名詞-組織 B-ORGANIZATION +検事 M1 名詞-一般 O +だけ M9 助詞-副助詞 O +が S9 助詞-格助詞-一般 O +陳述 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +静か T1-9 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +心境 M1 名詞-一般 O +では M9 接続詞 O +ある M9 動詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +これ M9 名詞-代名詞-一般 O +だけ M9 助詞-副助詞 O +の S9 助詞-連体化 O +長い T1-9 形容詞-自立 O +年月 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +かけ M9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +だから M9 接続詞 O +、 S2 記号-読点 O +自分 M1 名詞-一般 O +の S9 助詞-連体化 O +主張 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +正当 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +審理 M1 名詞-サ変接続 O +さ S9 助詞-終助詞 O +れる M9 動詞-接尾 O +もの M9 名詞-非自立-一般 O +と S9 助詞-格助詞-引用 O +期待 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +」 S2 記号-括弧閉 O +。 S2 記号-句点 O + +桧 S1 名詞-一般 O +山元 M1 名詞-一般 O +会長 M1 名詞-一般 O +は S9 助詞-係助詞 O +弁護 M1 名詞-サ変接続 O +団 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +語っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +十一月 T6-1 名詞-副詞可能 B-DATE +中旬 M1 名詞-副詞可能 I-DATE +に S9 助詞-格助詞-一般 O +弁護士 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +食事 M1 名詞-サ変接続 O +した M9 名詞-一般 O +際 S1 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +裁判 M1 名詞-一般 O +の S9 助詞-連体化 O +こと M9 名詞-非自立-一般 O +は S9 助詞-係助詞 O +一切 T6-1 名詞-副詞可能 O +、 S2 記号-読点 O +先生 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +任せる T1-9 動詞-自立 O +」 S2 記号-括弧閉 O +「 S2 記号-括弧開 O +体調 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +よく M9 副詞-一般 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +心臓 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +… S2 記号-一般 O +… S2 記号-一般 O +」 S2 記号-括弧閉 O +。 S2 記号-句点 O + +この M9 連体詞 O +数カ月 T10-1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +足 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +痛い T1-9 形容詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +つえ M9 名詞-一般 O +を S9 助詞-格助詞-一般 O +つき M9 動詞-自立 O +ながら M9 助詞-接続助詞 O +の S9 助詞-連体化 O +散歩 M1 名詞-サ変接続 O +もし M9 副詞-一般 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + + S13 記号-空白 O +もう M9 副詞-一般 O +一人 T6-1 名詞-一般 O +の S9 助詞-連体化 O +榎 S1 名詞-一般 O +本元 M1 名詞-一般 O +秘書官 M1 名詞-一般 O +。 S2 記号-句点 O + +弁護 M1 名詞-サ変接続 O +団 S1 名詞-一般 O +による M9 助詞-格助詞-連語 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +左 S1 名詞-一般 O +半身 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +不自由 M1 名詞-形容動詞語幹 O +だが M9 接続詞 O +、 S2 記号-読点 O +暖かい T1-9 形容詞-自立 O +日 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +ステッキ M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +ついて M9 動詞-自立 O +ゆっくりと M9 副詞-一般 O +約 S1 接頭詞-数接続 O +一 S6 名詞-数 O +時間 M1 名詞-副詞可能 O +、 S2 記号-読点 O +散歩 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +ロ S10 名詞-固有名詞-組織 B-ORGANIZATION +社 S1 名詞-一般 I-ORGANIZATION +首脳 M1 名詞-一般 O +ら S9 名詞-接尾-一般 O +の S9 助詞-連体化 O +嘱託 M1 名詞-サ変接続 O +尋問 M1 名詞-サ変接続 O +調書 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +認め T1-9 動詞-自立 O +た S9 助動詞 O +下級 M1 名詞-一般 O +審 S1 名詞-一般 O +判決 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +納得 M1 名詞-サ変接続 O +いか M9 副詞-一般 O +ない M9 形容詞-自立 O +という M9 助詞-格助詞-連語 O +意味 M1 名詞-サ変接続 O +で S9 助動詞 O +「 S2 記号-括弧開 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +裁判 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +たかっ M9 助動詞 O +た S9 助動詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +話し T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +アジア M10 名詞-固有名詞-地域-一般 B-ORGANIZATION +・ S2 記号-一般 I-ORGANIZATION +太平洋 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +人権 M1 名詞-一般 I-ORGANIZATION +情報 M1 名詞-一般 I-ORGANIZATION +センター M10 名詞-一般 I-ORGANIZATION +が S9 助詞-格助詞-一般 O +オープン M10 名詞-サ変接続 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +太平洋 M1 名詞-固有名詞-地域-一般 B-LOCATION +地域 M1 名詞-一般 O +の S9 助詞-連体化 O +人権 M1 名詞-一般 O +問題 M1 名詞-ナイ形容詞語幹 O +の S9 助詞-連体化 O +解決 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +人権 M1 名詞-一般 O +に関する T1-9 助詞-格助詞-連語 O +情報 M1 名詞-一般 O +集積 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +目指す T1-9 動詞-自立 O +財団 M1 名詞-一般 O +法人 M1 名詞-一般 O +「 S2 記号-括弧開 O +アジア M10 名詞-固有名詞-地域-一般 B-ORGANIZATION +・ S2 記号-一般 I-ORGANIZATION +太平洋 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +人権 M1 名詞-一般 I-ORGANIZATION +情報 M1 名詞-一般 I-ORGANIZATION +センター M10 名詞-一般 I-ORGANIZATION +」 S2 記号-括弧閉 O +( S2 記号-括弧開 O +会長 M1 名詞-一般 O +、 S2 記号-読点 O +武者小路 M1 名詞-固有名詞-人名-姓 B-PERSON +公秀 M1 名詞-固有名詞-人名-名 I-PERSON +・ S2 記号-一般 O +明治学院大 M1 名詞-固有名詞-組織 B-ORGANIZATION +教授 M1 名詞-一般 O +) S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +七日 T6-1 名詞-副詞可能 B-DATE +、 S2 記号-読点 O +オープン M10 名詞-サ変接続 O +。 S2 記号-句点 O + +同 S1 接頭詞-名詞接続 O +センター M10 名詞-一般 O +事務 M1 名詞-一般 O +局 S1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +置か T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +港 S1 名詞-一般 O +区 S1 名詞-一般 O +弁天 M1 名詞-一般 O +一 S6 名詞-数 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +オーク200 T10-5 名詞-固有名詞-一般 B-ARTIFACT +」 S2 記号-括弧閉 O +ビル M10 名詞-一般 O +で S9 助動詞 O +記念 M1 名詞-サ変接続 O +式典 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +開か T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +同 S1 接頭詞-名詞接続 O +センター M10 名詞-一般 O +は S9 助詞-係助詞 O +大阪 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +府 S1 名詞-一般 I-ORGANIZATION +や S9 助詞-並立助詞 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +、 S2 記号-読点 O +民間 M1 名詞-一般 O +の S9 助詞-連体化 O +人権 M1 名詞-一般 O +団体 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +中心 M1 名詞-一般 O +となり M9 名詞-一般 O +設立 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +龍谷大 M1 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +金東勲 M1 名詞-固有名詞-人名-一般 B-PERSON +教授 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +所長 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +就任 M1 名詞-サ変接続 O +、 S2 記号-読点 O +当面 M1 名詞-副詞可能 O +約 S1 接頭詞-数接続 O +十人 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +常勤 M1 名詞-サ変接続 O +所員 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +運営 M1 名詞-サ変接続 O +にあたる M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +同 S1 接頭詞-名詞接続 O +センター M10 名詞-一般 O +の S9 助詞-連体化 O +提唱 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +国連 M1 名詞-固有名詞-組織 B-ORGANIZATION +人権 M1 名詞-一般 O +担当 M1 名詞-サ変接続 O +官 S1 名詞-一般 O +だっ M9 助動詞 O +た S9 助動詞 O +故 S1 接頭詞-名詞接続 O +・ S2 記号-一般 O +久保田 M1 名詞-固有名詞-人名-姓 B-PERSON +洋 S1 名詞-一般 I-PERSON +さん M9 名詞-接尾-人名 O +から M9 助詞-格助詞-一般 O +海外 M1 名詞-一般 O +の S9 助詞-連体化 O +人権 M1 名詞-一般 O +問題 M1 名詞-ナイ形容詞語幹 O +など M9 助詞-副助詞 O +に関する T1-9 助詞-格助詞-連語 O +蔵書 M1 名詞-サ変接続 O +約 S1 接頭詞-数接続 O +二千冊 T6-1 名詞-数 O +の S9 助詞-連体化 O +寄贈 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +久保田 M1 名詞-固有名詞-人名-姓 B-PERSON +文庫 M1 名詞-一般 O +」 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +設置 M1 名詞-サ変接続 O +する M9 動詞-自立 O +ほか M9 名詞-副詞可能 O +、 S2 記号-読点 O +各国 M1 名詞-一般 O +の S9 助詞-連体化 O +法 S1 名詞-一般 O +制度 M1 名詞-一般 O +や S9 助詞-並立助詞 O +NG M7 名詞-一般 O +O S7 記号-アルファベット O +( S2 記号-括弧開 O +非 S1 接頭詞-名詞接続 O +政府 M1 名詞-一般 O +組織 M1 名詞-サ変接続 O +) S2 記号-括弧閉 O +活動 M1 名詞-サ変接続 O +など M9 助詞-副助詞 O +に関する T1-9 助詞-格助詞-連語 O +文献 M1 名詞-一般 O +など M9 助詞-副助詞 O +を S9 助詞-格助詞-一般 O +幅広く T1-9 形容詞-自立 O +収集 M1 名詞-サ変接続 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +今後 M1 名詞-副詞可能 O +、 S2 記号-読点 O +日本語 M1 名詞-一般 O +、 S2 記号-読点 O +英語 M1 名詞-一般 O +各 S1 接頭詞-名詞接続 O +版 S1 名詞-一般 O +の S9 助詞-連体化 O +ニュースレター M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +定期 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +発刊 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +太平洋 M1 名詞-固有名詞-地域-一般 B-LOCATION +人権 M1 名詞-一般 O +年鑑 M1 名詞-一般 O +も S9 助詞-係助詞 O +刊行 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +一般 T6-1 名詞-一般 O +市民 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +対象 M1 名詞-一般 O +にし M9 名詞-一般 O +た S9 助動詞 O +セミナー M10 名詞-一般 O +も S9 助詞-係助詞 O +活発 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +開く T1-9 動詞-自立 O +方針 M1 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +開館 M1 名詞-サ変接続 O +時間 M1 名詞-副詞可能 O +は S9 助詞-係助詞 O +午前 M1 名詞-副詞可能 O +九時半 T6-1 名詞-数 O +― S2 記号-一般 O +午後 M1 名詞-副詞可能 B-TIME +五時 T6-1 名詞-一般 O +、 S2 記号-読点 O +土 S1 名詞-一般 O +、 S2 記号-読点 O +日曜日 M1 名詞-副詞可能 O +休館 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +電話 M1 名詞-サ変接続 O +0 S5 名詞-数 O +・ S2 記号-一般 O +5 S5 名詞-数 O +・ S2 記号-一般 O +3578 M5 名詞-数 O +。 S2 記号-句点 O + +一般 T6-1 名詞-一般 O +歳出 M1 名詞-一般 O +、 S2 記号-読点 O +4 S5 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +に S9 助詞-格助詞-一般 O + S13 記号-空白 O +伸び T1-9 名詞-一般 O +率 S1 名詞-一般 O +も S9 助詞-係助詞 O +2 S5 名詞-数 B-PERCENT +. S2 記号-句点 I-PERCENT +8 S5 名詞-数 I-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +に S9 助詞-格助詞-一般 O +抑制 M1 名詞-サ変接続 O +―― M2 記号-一般 O +大蔵省 M1 名詞-固有名詞-組織 B-ORGANIZATION +・ S2 記号-一般 O +来年度 M1 名詞-副詞可能 O +予算 M1 名詞-一般 O + + S13 記号-空白 O +大蔵省 M1 名詞-固有名詞-組織 B-ORGANIZATION +は S9 助詞-係助詞 O +七日 T6-1 名詞-副詞可能 B-DATE +、 S2 記号-読点 O +一九九五年度予算 T6-1 名詞-数 O +の S9 助詞-連体化 O +一般歳出総額 T6-1 名詞-数 O +を S9 助詞-格助詞-一般 O +四十一兆九千億円台 T6-1 名詞-数 O +、 S2 記号-読点 O +前年度 M1 名詞-副詞可能 O +当初 M1 名詞-副詞可能 O +予算 M1 名詞-一般 O +比 S1 名詞-一般 O +の S9 助詞-連体化 O +伸び T1-9 名詞-一般 O +率 S1 名詞-一般 O +で S9 助動詞 O +二 S6 名詞-数 B-PERCENT +・ S2 記号-一般 I-PERCENT +八 S6 名詞-数 I-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +前後 M1 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +抑 S1 副詞-一般 O +制する T1-9 動詞-自立 O +方針 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +固め T1-9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + +景気 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +配慮 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +ほぼ M9 副詞-一般 O +今年度 M1 名詞-副詞可能 O +並み T1-9 名詞-一般 O +の S9 助詞-連体化 O +四 S6 名詞-数 B-PERCENT +・ S2 記号-一般 I-PERCENT +一 S6 名詞-数 I-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +程度 M1 名詞-一般 O +の S9 助詞-連体化 O +伸び T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +確保 M1 名詞-サ変接続 O +する M9 動詞-自立 O +公共 M1 名詞-一般 O +事業 M1 名詞-一般 O +費 S1 名詞-接尾-一般 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +国勢調査 M1 名詞-一般 O +など M9 助詞-副助詞 O +歳出 M1 名詞-一般 O +増 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +特殊 M1 名詞-形容動詞語幹 O +要因 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +除け T1-9 動詞-自立 O +ば S9 助詞-接続助詞 O +、 S2 記号-読点 O +伸び T1-9 名詞-一般 O +率 S1 名詞-一般 O +は S9 助詞-係助詞 O +ほとんど M9 副詞-一般 O +横ばい T1-9 名詞-サ変接続 O +となり M9 名詞-一般 O +、 S2 記号-読点 O +実質 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +超 S1 接頭詞-名詞接続 O +緊縮 M1 名詞-サ変接続 O +型 S1 名詞-一般 O +予算 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なる M9 動詞-自立 O +。 S2 記号-句点 O + +ただ M9 接続詞 O +、 S2 記号-読点 O +農業 M1 名詞-一般 O +対策 M1 名詞-サ変接続 O +予算 M1 名詞-一般 O +の S9 助詞-連体化 O +調整 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +残っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +おり M9 動詞-非自立 O +、 S2 記号-読点 O +最終 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +四十二兆円台 T6-1 名詞-数 O +まで M9 助詞-副助詞 O +上積み T1-9 名詞-サ変接続 O +さ S9 助詞-終助詞 O +れる M9 動詞-接尾 O +可能 M1 名詞-形容動詞語幹 O +性 S1 名詞-一般 O +も S9 助詞-係助詞 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +一般 T6-1 名詞-一般 O +歳出 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +国 S1 名詞-一般 O +の S9 助詞-連体化 O +一般 T6-1 名詞-一般 O +会計 M1 名詞-サ変接続 O +歳出 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +地方 M1 名詞-一般 O +交付 M1 名詞-サ変接続 O +税 S1 名詞-一般 O +と S9 助詞-格助詞-引用 O +国債 M1 名詞-一般 O +費 S1 名詞-接尾-一般 O +など M9 助詞-副助詞 O +を S9 助詞-格助詞-一般 O +除い T1-9 動詞-自立 O +た S9 助動詞 O +行政 M1 名詞-一般 O +経費 M1 名詞-一般 O +の S9 助詞-連体化 O +総額 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +九四年度当初予算 T6-1 名詞-数 O +の S9 助詞-連体化 O +一般 T6-1 名詞-一般 O +歳出 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +前年度 M1 名詞-副詞可能 O +比 S1 名詞-一般 O +二 S6 名詞-数 B-PERCENT +・ S2 記号-一般 I-PERCENT +三 S6 名詞-数 I-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +増 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +四十兆八千五百四十八億円 T6-1 名詞-数 O +。 S2 記号-句点 O + + S13 記号-空白 O +概算 M1 名詞-サ変接続 O +要求 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +一般 T6-1 名詞-一般 O +歳出 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +同 S1 接頭詞-名詞接続 O +四 S6 名詞-数 B-PERCENT +・ S2 記号-一般 I-PERCENT +八 S6 名詞-数 I-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +増 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +四十二兆八千二百七十五億円 T6-1 名詞-数 O +だっ M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +しかし M9 接続詞 O +、 S2 記号-読点 O +九 S6 名詞-数 B-DATE +年度 M1 名詞-一般 I-DATE +の S9 助詞-連体化 O +税収 M1 名詞-一般 O +は S9 助詞-係助詞 O +前年度 M1 名詞-副詞可能 O +を S9 助詞-格助詞-一般 O +やや M9 副詞-一般 O +上回る T1-9 動詞-自立 O +五十三兆円台後半 T6-1 名詞-数 O +に S9 助詞-格助詞-一般 O +とどまる M9 動詞-自立 O +公算 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +大きく T1-9 形容詞-自立 O +、 S2 記号-読点 O +財源 M1 名詞-一般 O +確保 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +難航 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +この M9 連体詞 O +ため M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +同省 M1 名詞-一般 O +は S9 助詞-係助詞 O +一般 T6-1 名詞-一般 O +歳出 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +概算 M1 名詞-サ変接続 O +要求 M1 名詞-サ変接続 O +額 S1 名詞-一般 O +から M9 助詞-格助詞-一般 O +九千億円 T6-1 名詞-数 O +ほど M9 助詞-副助詞 O +圧縮 M1 名詞-サ変接続 O +、 S2 記号-読点 O +実質 M1 名詞-一般 O +伸び T1-9 名詞-一般 O +率 S1 名詞-一般 O +ゼロ M10 名詞-数 O +の S9 助詞-連体化 O +規模 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +抑 S1 副詞-一般 O +制する T1-9 動詞-自立 O +方向 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +防衛 M1 名詞-サ変接続 O +費 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +政府 M1 名詞-一般 O +案 S1 名詞-一般 O +でも M9 助詞-副助詞 O +( S2 記号-括弧開 O +概算 M1 名詞-サ変接続 O +要求 M1 名詞-サ変接続 O +基準 M1 名詞-一般 O +の S9 助詞-連体化 O +) S2 記号-括弧閉 O +〇 S2 記号-一般 O +・ S2 記号-一般 O +九 S6 名詞-数 B-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +増 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +伸び T1-9 名詞-一般 O +率 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +尊重 M1 名詞-サ変接続 O +する M9 動詞-自立 O +」 S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +与党 M1 名詞-一般 O +合意 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +さらに M9 副詞-助詞類接続 O +圧縮 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +目指す T1-9 動詞-自立 O +。 S2 記号-句点 O + +企業 M1 名詞-一般 O +の S9 助詞-連体化 O +公害 M1 名詞-一般 O +防止 M1 名詞-サ変接続 O +策 S1 名詞-一般 O +チェック M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +大阪 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +市 S1 名詞-一般 I-ORGANIZATION +が S9 助詞-格助詞-一般 O +全国 M1 名詞-一般 O +で S9 助動詞 O +初めて T1-9 副詞-一般 O +導入 M1 名詞-サ変接続 O +へ S9 助詞-格助詞-一般 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +の S9 助詞-連体化 O +諮問 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +市 S1 名詞-一般 O +環境 M1 名詞-一般 O +基本 M1 名詞-一般 O +条例 M1 名詞-一般 O +の S9 助詞-連体化 O +骨格 M1 名詞-一般 O +作り T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +進め T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +市 S1 名詞-一般 B-ORGANIZATION +環境 M1 名詞-一般 I-ORGANIZATION +審議 M1 名詞-サ変接続 I-ORGANIZATION +会 S1 名詞-一般 I-ORGANIZATION +( S2 記号-括弧開 O +会長 M1 名詞-一般 O +、 S2 記号-読点 O +斉藤 M1 名詞-固有名詞-人名-姓 B-PERSON +行正 M1 名詞-固有名詞-人名-名 I-PERSON +・ S2 記号-一般 O +元 S1 接頭詞-名詞接続 O +大阪市立大 M1 名詞-固有名詞-組織 B-ORGANIZATION +教授 M1 名詞-一般 O +) S2 記号-括弧閉 O +は S9 助詞-係助詞 O +七日 T6-1 名詞-副詞可能 O +、 S2 記号-読点 O +企業 M1 名詞-一般 O +の S9 助詞-連体化 O +公害 M1 名詞-一般 O +防止 M1 名詞-サ変接続 O +策 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +チェック M10 名詞-サ変接続 O +する M9 動詞-自立 O +環境 M1 名詞-一般 O +管理 M1 名詞-サ変接続 O +監査 M1 名詞-サ変接続 O +制度 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +同 S1 接頭詞-名詞接続 O +条例 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +盛り込む T1-9 動詞-自立 O +方針 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +固め T1-9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + +自治体 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +条例 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +この M9 連体詞 O +制度 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +採用 M1 名詞-サ変接続 O +する M9 動詞-自立 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +全国 M1 名詞-一般 O +で S9 助動詞 O +初めて T1-9 副詞-一般 O +の S9 助詞-連体化 O +ケース M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +なる M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +環境 M1 名詞-一般 O +管理 M1 名詞-サ変接続 O +監査 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +企業 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +公害 M1 名詞-一般 O +防止 M1 名詞-サ変接続 O +策 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +はじめ M9 名詞-副詞可能 O +、 S2 記号-読点 O +資源 M1 名詞-一般 O +リサイクル M10 名詞-サ変接続 O +、 S2 記号-読点 O +ゴミ M10 名詞-一般 O +軽減 M1 名詞-サ変接続 O +化 S1 名詞-接尾-サ変接続 O +の S9 助詞-連体化 O +目標 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +策定 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +企業 M1 名詞-一般 O +独自 M1 名詞-形容動詞語幹 O +の S9 助詞-連体化 O +環境 M1 名詞-一般 O +保全 M1 名詞-サ変接続 O +計画 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +立て T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +実行 M1 名詞-サ変接続 O +させる M9 動詞-接尾 O +制度 M1 名詞-一般 O +。 S2 記号-句点 O + +自治体 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +外部 M1 名詞-一般 O +監査 M1 名詞-サ変接続 O +機関 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +設け T1-9 名詞-一般 O +、 S2 記号-読点 O +達成 M1 名詞-サ変接続 O +度 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +確認 M1 名詞-サ変接続 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +目標 M1 名詞-一般 O +値 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +達成 M1 名詞-サ変接続 O +した M9 名詞-一般 O +企業 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +環境 M1 名詞-一般 O +基準 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +クリア M10 名詞-サ変接続 O +した M9 名詞-一般 O +場合 M1 名詞-副詞可能 O +は S9 助詞-係助詞 O +“ S2 記号-括弧開 O +認証 M1 名詞-サ変接続 O +マーク M10 名詞-サ変接続 O +” S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +交付 M1 名詞-サ変接続 O +する M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +この M9 連体詞 O +制度 M1 名詞-一般 O +の S9 助詞-連体化 O +導入 M1 名詞-サ変接続 O +によって M9 助詞-格助詞-連語 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +は S9 助詞-係助詞 O +、 S2 記号-読点 O +企業 M1 名詞-一般 O +の S9 助詞-連体化 O +環境 M1 名詞-一般 O +保全 M1 名詞-サ変接続 O +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +努力 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +促す T1-9 動詞-自立 O +と S9 助詞-格助詞-引用 O +同時に T1-9 副詞-一般 O +、 S2 記号-読点 O +消費 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +安全 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +商品 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +選ぶ T1-9 動詞-自立 O +目安 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +与 S1 動詞-自立 O +えたい M9 名詞-一般 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +また M9 接続詞 O +、 S2 記号-読点 O +企業 M1 名詞-一般 O +にとって M9 助詞-格助詞-連語 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +自社 M1 名詞-固有名詞-組織 O +製品 M1 名詞-一般 O +の S9 助詞-連体化 O +イメージアップ M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +つながる M9 動詞-自立 O +メリット M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +得 S1 名詞-一般 O +られる M9 動詞-接尾 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + + S13 記号-空白 O +この M9 連体詞 O +制度 M1 名詞-一般 O +は S9 助詞-係助詞 O +欧州 M1 名詞-固有名詞-地域-一般 B-LOCATION +では M9 接続詞 O +一般 T6-1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +で S9 助動詞 O +、 S2 記号-読点 O +欧州 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +連合 M1 名詞-サ変接続 I-ORGANIZATION +( S2 記号-括弧開 O +EU M7 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +も S9 助詞-係助詞 O +来年 M1 名詞-副詞可能 B-DATE +から M9 助詞-格助詞-一般 O +導入 M1 名詞-サ変接続 O +する M9 動詞-自立 O +方針 M1 名詞-一般 O +。 S2 記号-句点 O + +市 S1 名詞-一般 B-ORGANIZATION +環境 M1 名詞-一般 I-ORGANIZATION +審議 M1 名詞-サ変接続 I-ORGANIZATION +会 S1 名詞-一般 I-ORGANIZATION +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +世界 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +な S9 助詞-終助詞 O +すう勢 T9-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +先取り T1-9 名詞-サ変接続 O +する M9 動詞-自立 O +形 S1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +制度 M1 名詞-一般 O +化 S1 名詞-接尾-サ変接続 O +を S9 助詞-格助詞-一般 O +目指し T1-9 動詞-自立 O +た S9 助動詞 O +」 S2 記号-括弧閉 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +市 S1 名詞-一般 O +は S9 助詞-係助詞 O +環境 M1 名詞-一般 O +基本 M1 名詞-一般 O +条例 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +来春 M1 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +制定 M1 名詞-サ変接続 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +みんな M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +広場 M1 名詞-一般 O +] S2 記号-括弧閉 O +頼もしい T1-9 形容詞-自立 O +、 S2 記号-読点 O +つなぎ服 T9-1 名詞-一般 O +の S9 助詞-連体化 O +若者 M1 名詞-一般 O +たち M9 名詞-接尾-一般 O += S2 記号-一般 O +酪農 M1 名詞-一般 O +業 S1 名詞-接尾-一般 O +・ S2 記号-一般 O +松崎 M1 名詞-固有名詞-人名-姓 B-PERSON +まり子 T9-1 名詞-固有名詞-人名-名 I-PERSON + S13 記号-空白 O +4 S5 名詞-数 O + + S13 記号-空白 O +( S2 記号-括弧開 O +岡山 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +) S2 記号-括弧閉 O + + S13 記号-空白 O +牧草 M1 名詞-一般 O +地 S1 名詞-一般 O +の S9 助詞-連体化 O +少ない T1-9 形容詞-自立 O +水田 M1 名詞-一般 O +酪農 M1 名詞-一般 O +地帯 M1 名詞-一般 O +では M9 接続詞 O +稲 S1 名詞-一般 O +ワラ M10 名詞-一般 O +も S9 助詞-係助詞 O +貴重 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +粗 S1 形容詞-自立 O +飼料 M1 名詞-一般 O +となり M9 名詞-一般 O +、 S2 記号-読点 O +我が家 T9-1 名詞-一般 O +も S9 助詞-係助詞 O +その M9 連体詞 O +取り入れ T1-9 名詞-一般 O +の S9 助詞-連体化 O +最盛 M1 名詞-一般 O +期 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +迎え T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +新規 M1 名詞-一般 O +就農 M1 名詞-一般 O +の S9 助詞-連体化 O +長男 M1 名詞-一般 O +、 S2 記号-読点 O +長女 M1 名詞-一般 O +は S9 助詞-係助詞 O +もちろん M9 副詞-一般 O +の S9 助詞-連体化 O +こと M9 名詞-非自立-一般 O +、 S2 記号-読点 O +牧場 M1 名詞-一般 O +ファンクラブ M10 名詞-一般 O +の S9 助詞-連体化 O +子供 M1 名詞-一般 O +たち M9 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +“ S2 記号-括弧開 O +まかせ M9 動詞-自立 O +て S9 助詞-接続助詞 O +おけ M9 動詞-非自立 O +” S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +ばかり M9 助詞-副助詞 O +に S9 助詞-格助詞-一般 O +助っ人 T9-1 名詞-一般 O +に S9 助詞-格助詞-一般 O +やって来る T1-9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +男の子 T9-1 名詞-一般 O +たち M9 名詞-接尾-一般 O +は S9 助詞-係助詞 O +ほとんど M9 副詞-一般 O +つなぎ服 T9-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +着用 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +女の子 T9-1 名詞-一般 O +の S9 助詞-連体化 O +一人 T6-1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +つなぎ服 T9-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +小遣い T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +はたい M9 動詞-自立 O +て S9 助詞-接続助詞 O +自前 M1 名詞-一般 O +で S9 助動詞 O +用意 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +若い T1-9 形容詞-自立 O +人 S1 名詞-一般 O +たち M9 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +つなぎ服 T9-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +着 S1 名詞-サ変接続 O +て S9 助詞-接続助詞 O +農作業 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +汗 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +流す T1-9 動詞-自立 O +光景 M1 名詞-一般 O +は S9 助詞-係助詞 O +とても M9 副詞-助詞類接続 O +感動 M1 名詞-サ変接続 O +的 S1 名詞-接尾-形容動詞語幹 O +だ S9 助動詞 O +。 S2 記号-句点 O + +夜 S1 名詞-副詞可能 O +の S9 助詞-連体化 O +洗濯 M1 名詞-サ変接続 O +も S9 助詞-係助詞 O +二日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +分と T1-9 動詞-自立 O +なる M9 動詞-自立 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +つなぎ服 T9-1 名詞-一般 O +だけ M9 助詞-副助詞 O +で S9 助動詞 O +十 S6 名詞-数 O +枚 S1 接頭詞-数接続 O +も S9 助詞-係助詞 O +干す T1-9 動詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + +暗がり T1-9 名詞-一般 O +で S9 助動詞 O +干し T1-9 接頭詞-名詞接続 O +ながら M9 助詞-接続助詞 O +力強 M1 形容詞-自立 O +さ S9 助詞-終助詞 O +を S9 助詞-格助詞-一般 O +実感 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +しまう M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +飛び入り T1-9 名詞-一般 O +の S9 助詞-連体化 O +助っ人 T9-1 名詞-一般 O +二 S6 名詞-数 O +人 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +やって来 T9-1 動詞-自立 O +た S9 助動詞 O +日曜日 M1 名詞-副詞可能 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +作業 M1 名詞-サ変接続 O +も S9 助詞-係助詞 O +かなり M9 副詞-一般 O +はかどっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +その M9 連体詞 O +二 S6 名詞-数 O +人 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +主人 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +この M9 連体詞 O +汗し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +働く T1-9 動詞-自立 O +こと M9 名詞-非自立-一般 O +こそ M9 助詞-係助詞 O +生きる T1-9 動詞-自立 O +原点 M1 名詞-一般 O +」 S2 記号-括弧閉 O +だ S9 助動詞 O +と S9 助詞-格助詞-引用 O +話し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +稲 S1 名詞-一般 O +ワラ M10 名詞-一般 O +集め T1-9 動詞-自立 O +の S9 助詞-連体化 O +重労働 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +つなぎ服 T9-1 名詞-一般 O +。 S2 記号-句点 O + +そして M9 接続詞 O +さわやか M9 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +汗 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +知る T1-9 動詞-自立 O +充実 M1 名詞-サ変接続 O +感 S1 名詞-一般 O +。 S2 記号-句点 O + +現代 M1 名詞-一般 O +人 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +忘れ T1-9 動詞-自立 O +よう M9 名詞-非自立-助動詞語幹 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +何 S1 名詞-代名詞-一般 O +か S9 助詞-副助詞/並立助詞/終助詞 O +が S9 助詞-格助詞-一般 O +伝え T1-9 名詞-一般 O +られれ M9 動詞-接尾 O +ば S9 助詞-接続助詞 O +と S9 助詞-格助詞-引用 O +思う T1-9 動詞-自立 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +みんな M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +広場 M1 名詞-一般 O +] S2 記号-括弧閉 O +「 S2 記号-括弧開 O +戦後 M1 名詞-副詞可能 B-DATE +処理 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +死刑 M1 名詞-一般 O +執行 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +関連 M1 名詞-サ変接続 O +性 S1 名詞-一般 O += S2 記号-一般 O +工 S1 名詞-一般 O +事業 M1 名詞-一般 O +・ S2 記号-一般 O +小笠原 M1 名詞-固有名詞-地域-一般 B-PERSON +俊文 M1 名詞-固有名詞-人名-名 I-PERSON + S13 記号-空白 O +4 S5 名詞-数 O + + S13 記号-空白 O +( S2 記号-括弧開 O +東 S1 名詞-一般 B-LOCATION +京都 M1 名詞-固有名詞-地域-一般 I-LOCATION +三鷹 T6-1 名詞-固有名詞-地域-一般 I-LOCATION +市 S1 名詞-一般 I-LOCATION +) S2 記号-括弧閉 O + + S13 記号-空白 O +元 S1 接頭詞-名詞接続 O +従軍 M1 名詞-サ変接続 O +慰安 M1 名詞-サ変接続 O +婦 S1 名詞-接尾-一般 O +に対し T1-9 助詞-格助詞-連語 O +、 S2 記号-読点 O +日本赤十字社 T6-1 名詞-固有名詞-組織 B-ORGANIZATION +に S9 助詞-格助詞-一般 O +基金 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +設け T1-9 名詞-一般 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +見舞 M1 名詞-サ変接続 O +金 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +贈る T1-9 動詞-自立 O +構想 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +検討 M1 名詞-サ変接続 O +中 S1 名詞-非自立-副詞可能 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +そして M9 接続詞 O +一 S6 名詞-数 O +年 S1 名詞-一般 O +ぶり M9 名詞-一般 O +に S9 助詞-格助詞-一般 O +死刑 M1 名詞-一般 O +執行 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +連日 M1 名詞-副詞可能 O +の S9 助詞-連体化 O +ニュース M10 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +村山 M1 名詞-固有名詞-人名-姓 B-PERSON +政権 M1 名詞-一般 O +の S9 助詞-連体化 O +性格 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +決定的 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +伝え T1-9 名詞-一般 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +この M9 連体詞 O +二 S6 名詞-数 O +件 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +関連づけ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +考え T1-9 名詞-一般 O +て S9 助詞-接続助詞 O +みる M9 動詞-自立 O +。 S2 記号-句点 O + +それ M9 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +責任 M1 名詞-一般 O +」 S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +こと M9 名詞-非自立-一般 O +に対する T1-9 助詞-格助詞-連語 O +政府 M1 名詞-一般 O +の S9 助詞-連体化 O +態度 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +表し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +と S9 助詞-格助詞-引用 O +思う T1-9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +見舞 M1 名詞-サ変接続 O +金 S1 名詞-一般 O +構想 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +裁判 M1 名詞-一般 O +まで M9 助詞-副助詞 O +起こし T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +正式 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +謝罪 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +補償 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +求め T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +相手 M1 名詞-一般 O +に対し T1-9 助詞-格助詞-連語 O +「 S2 記号-括弧開 O +補償 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +名目 M1 名詞-一般 O +で S9 助動詞 O +ない M9 形容詞-自立 O +なら M9 助動詞 O +カネ M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +出 S1 動詞-自立 O +してやる M9 動詞-自立 O +」 S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +態度 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +思える T1-9 動詞-自立 O +。 S2 記号-句点 O + +これ M9 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +悪い T1-9 形容詞-自立 O +ヤツ M10 名詞-固有名詞-一般 O +は S9 助詞-係助詞 O +殺せ T1-9 動詞-自立 O +ば S9 助詞-接続助詞 O +すむ M9 動詞-自立 O +という M9 助詞-格助詞-連語 O +考え T1-9 名詞-一般 O +でし M9 助動詞 O +か S9 助詞-副助詞/並立助詞/終助詞 O +、 S2 記号-読点 O +犯罪 M1 名詞-一般 O +という M9 助詞-格助詞-連語 O +もの M9 名詞-非自立-一般 O +に S9 助詞-格助詞-一般 O +対 S1 名詞-接続詞的 O +処し T1-9 動詞-自立 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +社会 M1 名詞-一般 O +の S9 助詞-連体化 O +、 S2 記号-読点 O +当然 M1 副詞-助詞類接続 O +の S9 助詞-連体化 O +限界 M1 名詞-一般 O +では M9 接続詞 O +ない M9 形容詞-自立 O +だろ M9 助動詞 O +うか M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +死刑 M1 名詞-一般 O +存続 M1 名詞-サ変接続 O +論 S1 動詞-自立 O +の S9 助詞-連体化 O +常とう T1-9 名詞-一般 O +句 S1 名詞-一般 O +「 S2 記号-括弧開 O +被害 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +人権 M1 名詞-一般 O +」 S2 記号-括弧閉 O +も S9 助詞-係助詞 O +「 S2 記号-括弧開 O +犯罪 M1 名詞-一般 O +の S9 助詞-連体化 O +抑止 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +社会 M1 名詞-一般 O +総体 M1 名詞-一般 O +の S9 助詞-連体化 O +成熟 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +なけれ M9 形容詞-自立 O +ば S9 助詞-接続助詞 O +解決 M1 名詞-サ変接続 O +でき M9 動詞-自立 O +ない M9 形容詞-自立 O +こと M9 名詞-非自立-一般 O +だ S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +被害 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +真に T1-9 副詞-一般 O +求める T1-9 動詞-自立 O +もの M9 名詞-非自立-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +過酷 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +体験 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +人 S1 名詞-一般 O +ごと M9 名詞-非自立-副詞可能 O +とせ M9 名詞-固有名詞-人名-名 O +ず S9 助動詞 O +に S9 助詞-格助詞-一般 O +共有 M1 名詞-サ変接続 O +する M9 動詞-自立 O +社会 M1 名詞-一般 O +では M9 接続詞 O +ない M9 形容詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +。 S2 記号-句点 O + +戦後 M1 名詞-副詞可能 B-DATE +処理 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +死刑 M1 名詞-一般 O +廃止 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +ともに M9 副詞-一般 O +新しい T1-9 形容詞-自立 O +社会 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +築く T1-9 動詞-自立 O +ため M9 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +必要 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +こと M9 名詞-非自立-一般 O +だ S9 助動詞 O +。 S2 記号-句点 O + +矛先 M1 名詞-一般 O +は S9 助詞-係助詞 O +ボスニア M10 名詞-固有名詞-地域-一般 B-LOCATION +問題 M1 名詞-ナイ形容詞語幹 O + S13 記号-空白 O +欧米 M1 名詞-固有名詞-地域-一般 O +の S9 助詞-連体化 O +対応 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +一撃 T6-1 名詞-サ変接続 O +-- M2 記号-一般 O +マレーシア M10 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +マハティール M10 名詞-固有名詞-人名-姓 B-PERSON +首相 M1 名詞-一般 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +ジャカルタ M10 名詞-固有名詞-地域-一般 B-LOCATION +7 S5 名詞-数 O +日大 M1 名詞-固有名詞-組織 B-PERSON +塚 S1 名詞-一般 I-PERSON +智彦 M1 名詞-固有名詞-人名-名 I-PERSON +】 S2 記号-括弧閉 O +東南アジア T1-10 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +“ S2 記号-括弧開 O +一言居士 T6-1 名詞-一般 O +” S2 記号-括弧閉 O +マレーシア M10 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +マハティール M10 名詞-固有名詞-人名-姓 B-PERSON +首相 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +六 S6 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +、 S2 記号-読点 O +和平 M1 名詞-一般 O +交渉 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +一向に T1-9 副詞-一般 O +進展 M1 名詞-サ変接続 O +しない M9 名詞-一般 O +ボスニア・ヘルツェゴビナ T2-10 名詞-固有名詞-地域-国 B-LOCATION +問題 M1 名詞-ナイ形容詞語幹 O +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +欧米 M1 名詞-固有名詞-地域-一般 O +の S9 助詞-連体化 O +対応 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +痛烈 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +批判 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +マレーシア M10 名詞-固有名詞-地域-国 B-LOCATION +から M9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +報道 M1 名詞-サ変接続 O +による M9 助詞-格助詞-連語 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +クアラルンプール M10 名詞-固有名詞-地域-一般 B-LOCATION +で S9 助動詞 O +始まっ T1-9 動詞-自立 O +た S9 助動詞 O +国際 M1 名詞-一般 O +人権 M1 名詞-一般 O +会議 M1 名詞-サ変接続 O +で S9 助動詞 O +六 S6 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +、 S2 記号-読点 O +基調 M1 名詞-一般 O +講演 M1 名詞-サ変接続 O +した M9 名詞-一般 O +同 S1 接頭詞-名詞接続 O +首相 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +欧米 M1 名詞-固有名詞-地域-一般 O +は S9 助詞-係助詞 O +クウェート M10 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +よう M9 名詞-非自立-助動詞語幹 O +に S9 助詞-格助詞-一般 O +自国 M1 名詞-一般 O +の S9 助詞-連体化 O +利益 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +直接 M1 名詞-副詞可能 O +関係 M1 名詞-サ変接続 O +しない M9 名詞-一般 O +限り T1-9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +民主 M1 名詞-一般 O +主義 M1 名詞-一般 O +の S9 助詞-連体化 O +危機 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なんら M9 副詞-一般 O +リスク M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +背負お T1-9 動詞-自立 O +うとし M9 形容詞-自立 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +こんな M9 連体詞 O +国 S1 名詞-一般 O +の S9 助詞-連体化 O +民主 M1 名詞-一般 O +主義 M1 名詞-一般 O +は S9 助詞-係助詞 O +感激 M1 名詞-サ変接続 O +すべ M9 名詞-一般 O +きもの M9 名詞-一般 O +で S9 助動詞 O +ない M9 形容詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +指摘 M1 名詞-サ変接続 O +。 S2 記号-句点 O + + S13 記号-空白 O +さらに M9 副詞-助詞類接続 O +ボスニア M10 名詞-固有名詞-地域-一般 B-LOCATION +で S9 助動詞 O +イスラム M10 名詞-固有名詞-一般 O +教徒 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +直面 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +危機 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +状況 M1 名詞-一般 O +に対し T1-9 助詞-格助詞-連語 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +空爆 M1 名詞-サ変接続 O +で S9 助動詞 O +勇気 M1 名詞-一般 O +の S9 助詞-連体化 O +ある M9 動詞-自立 O +ところ M9 名詞-非自立-副詞可能 O +を S9 助詞-格助詞-一般 O +見せ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +おい M9 感動詞 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +あと M9 名詞-非自立-副詞可能 O +は S9 助詞-係助詞 O +撤退 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +考え T1-9 名詞-一般 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +国連 M1 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +この M9 連体詞 O +問題 M1 名詞-ナイ形容詞語幹 O +に対する T1-9 助詞-格助詞-連語 O +対処 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +仕方 M1 名詞-ナイ形容詞語幹 O +は S9 助詞-係助詞 O +欧米 M1 名詞-固有名詞-地域-一般 O +の S9 助詞-連体化 O +( S2 記号-括弧開 O +人権 M1 名詞-一般 O +、 S2 記号-読点 O +民主 M1 名詞-一般 O +主義 M1 名詞-一般 O +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +) S2 記号-括弧閉 O +偽善 M1 名詞-一般 O +の S9 助詞-連体化 O +明らか T1-9 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +証拠 M1 名詞-一般 O +で S9 助動詞 O +ある M9 動詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +言い切っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +マハティール M10 名詞-固有名詞-人名-姓 B-PERSON +首相 M1 名詞-一般 O +の S9 助詞-連体化 O +念頭 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +十一月 T6-1 名詞-副詞可能 B-DATE +の S9 助詞-連体化 O +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +太平洋 M1 名詞-固有名詞-地域-一般 B-LOCATION +経済 M1 名詞-一般 O +協力 M1 名詞-サ変接続 O +会議 M1 名詞-サ変接続 O +( S2 記号-括弧開 O +APEC M7 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +など M9 助詞-副助詞 O +で S9 助動詞 O +対立 M1 名詞-サ変接続 O +した M9 名詞-一般 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +反発 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +確実 M1 名詞-形容動詞語幹 O +。 S2 記号-句点 O + +同 S1 接頭詞-名詞接続 O +首相 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +ダブル M10 名詞-一般 O +スタンダード M10 名詞-一般 O +の S9 助詞-連体化 O +欧米 M1 名詞-固有名詞-地域-一般 O +人権 M1 名詞-一般 O +思想 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +は S9 助詞-係助詞 O +受け入れる T1-9 動詞-自立 O +わけ M9 名詞-非自立-一般 O +に S9 助詞-格助詞-一般 O +はい M9 感動詞 O +かない M9 動詞-自立 O +。 S2 記号-句点 O + +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +各国 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +人権 M1 名詞-一般 O +に関する T1-9 助詞-格助詞-連語 O +価値 M1 名詞-一般 O +観 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +新た T1-9 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +考える T1-9 動詞-自立 O +べき M9 助動詞 O +だ S9 助動詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +述べ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +「 S2 記号-括弧開 O +断固たる T1-9 連体詞 O +措置 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +」 S2 記号-括弧閉 O + S13 記号-空白 O +ロシア M10 名詞-固有名詞-地域-国 B-LOCATION +大統領 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +指示 M1 名詞-サ変接続 O +-- M2 記号-一般 O +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +問題 M1 名詞-ナイ形容詞語幹 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +モスクワ M10 名詞-固有名詞-地域-一般 B-DATE +7 S5 名詞-数 I-DATE +日 S1 名詞-一般 I-DATE +飯島 M1 名詞-固有名詞-人名-姓 B-PERSON +一孝 T6-1 名詞-固有名詞-人名-名 I-PERSON +】 S2 記号-括弧閉 O +エリツィン M10 名詞-固有名詞-人名-姓 B-PERSON +・ S2 記号-一般 O +ロシア M10 名詞-固有名詞-地域-国 B-LOCATION +大統領 M1 名詞-一般 O +は S9 助詞-係助詞 O +七日 T6-1 名詞-副詞可能 O +、 S2 記号-読点 O +チェチェン共和国 T10-1 名詞-固有名詞-地域-国 B-LOCATION +問題 M1 名詞-ナイ形容詞語幹 O +を S9 助詞-格助詞-一般 O +検討 M1 名詞-サ変接続 O +する M9 動詞-自立 O +国家 M1 名詞-一般 O +安保 M1 名詞-一般 O +会議 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +開き T1-9 動詞-自立 O +、 S2 記号-読点 O +法 S1 名詞-一般 O +と S9 助詞-格助詞-引用 O +秩序 M1 名詞-一般 O +維持 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +憲法 M1 名詞-一般 B-ARTIFACT +に S9 助詞-格助詞-一般 O +定め T1-9 名詞-一般 O +られ M9 動詞-接尾 O +た S9 助動詞 O +あらゆる M9 連体詞 O +手段 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +取る T1-9 動詞-自立 O +よう M9 名詞-非自立-助動詞語幹 O +指示 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +非常 M1 名詞-形容動詞語幹 O +事態 M1 名詞-一般 O +導入 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +含め T1-9 動詞-自立 O +断固たる T1-9 連体詞 O +措置 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +命じ T1-9 動詞-自立 O +た S9 助動詞 O +も S9 助詞-係助詞 O +ので M9 助詞-接続助詞 O +、 S2 記号-読点 O +再び T1-9 副詞-助詞類接続 O +緊迫 M1 名詞-サ変接続 O +した M9 名詞-一般 O +事態 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +会議 M1 名詞-サ変接続 O +では M9 接続詞 O +、 S2 記号-読点 O +グラチョフ M10 名詞-固有名詞-人名-姓 B-PERSON +国防 M1 名詞-一般 B-ORGANIZATION +相 S1 接頭詞-動詞接続 O +が S9 助詞-格助詞-一般 O +六 S6 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +に S9 助詞-格助詞-一般 O +行 S1 名詞-一般 O +われ M9 名詞-代名詞-一般 O +た S9 助動詞 O +ドゥダエフ M10 名詞-固有名詞-人名-姓 B-PERSON +・ S2 記号-一般 O +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +大統領 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +会談 M1 名詞-サ変接続 O +結果 M1 名詞-副詞可能 O +など M9 助詞-副助詞 O +を S9 助詞-格助詞-一般 O +報告 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +エリツィン M10 名詞-固有名詞-人名-姓 B-PERSON +大統領 M1 名詞-一般 O +は S9 助詞-係助詞 O +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +問題 M1 名詞-ナイ形容詞語幹 O +担当 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +副 S1 接頭詞-名詞接続 O +首相 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +エゴロフ M10 名詞-固有名詞-人名-一般 B-PERSON +民族 M1 名詞-一般 O +問題 M1 名詞-ナイ形容詞語幹 O +・ S2 記号-一般 O +地域 M1 名詞-一般 O +政策 M1 名詞-一般 O +相 S1 接頭詞-動詞接続 O +を S9 助詞-格助詞-一般 O +任命 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +会議 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +発表 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +国家 M1 名詞-一般 O +安保 M1 名詞-一般 O +会議 M1 名詞-サ変接続 O +声明 M1 名詞-サ変接続 O +では M9 接続詞 O +、 S2 記号-読点 O +ロシア M10 名詞-固有名詞-地域-国 B-LOCATION +と S9 助詞-格助詞-引用 O +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +間 S1 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +紛争 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +なく M9 形容詞-自立 O +、 S2 記号-読点 O +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +内部 M1 名詞-一般 O +の S9 助詞-連体化 O +権力 M1 名詞-一般 O +闘争 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +だけ M9 助詞-副助詞 O +だ S9 助動詞 O +と S9 助詞-格助詞-引用 O +指摘 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +敵対 M1 名詞-サ変接続 O +する M9 動詞-自立 O +武装 M1 名詞-サ変接続 O +グループ M10 名詞-一般 O +は S9 助詞-係助詞 O +すべて M9 名詞-副詞可能 O +違法 M1 名詞-形容動詞語幹 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +一方 T6-1 接続詞 O +、 S2 記号-読点 O +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +首都 M1 名詞-一般 O +グロズヌイ M10 名詞-固有名詞-地域-一般 B-LOCATION +から M9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +報道 M1 名詞-サ変接続 O +による M9 助詞-格助詞-連語 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +七日 T6-1 名詞-副詞可能 B-DATE +午後 M1 名詞-副詞可能 I-DATE +、 S2 記号-読点 O +ロシア M10 名詞-固有名詞-地域-国 O +軍機 M1 名詞-一般 O +二 S6 名詞-数 O +機 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +飛来 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +郊外 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +爆弾 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +投下 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +政府 M1 名詞-一般 O +側 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +空港 M1 名詞-一般 O +近く T1-9 名詞-副詞可能 O +の S9 助詞-連体化 O +石油 M1 名詞-一般 O +貯蔵 M1 名詞-サ変接続 O +基地 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +狙っ T1-9 動詞-自立 O +たと M9 動詞-自立 O +みて M9 動詞-自立 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +早分かり T1-9 名詞-一般 O +] S2 記号-括弧閉 O +各国 M1 名詞-一般 O +は S9 助詞-係助詞 O +当面 M1 名詞-副詞可能 O +、 S2 記号-読点 O +ガット M10 名詞-固有名詞-一般 O +と S9 助詞-格助詞-引用 O +ダブル M10 名詞-一般 O +加盟 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O + + S13 記号-空白 O +世界 M1 名詞-一般 O +貿易 M1 名詞-サ変接続 O +機関 M1 名詞-一般 O +( S2 記号-括弧開 O +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +は S9 助詞-係助詞 O +来年 M1 名詞-副詞可能 B-DATE +1月 T5-1 名詞-副詞可能 I-DATE +1 S5 名詞-数 I-DATE +日 S1 名詞-一般 I-DATE +発足 M1 名詞-サ変接続 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +これ M9 名詞-代名詞-一般 O +で S9 助動詞 O +何 S1 名詞-代名詞-一般 O +が S9 助詞-格助詞-一般 O +変わる T1-9 動詞-自立 O +のか M9 動詞-自立 O +。 S2 記号-句点 O + +シリーズ M10 名詞-一般 O +で S9 助動詞 O +報告 M1 名詞-サ変接続 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +Q S7 記号-アルファベット O + + S13 記号-空白 O +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +発足 M1 名詞-サ変接続 O +で S9 助動詞 O +関税 M1 名詞-一般 O +貿易 M1 名詞-サ変接続 O +一般 T6-1 名詞-一般 O +協定 M1 名詞-サ変接続 O +( S2 記号-括弧開 O +ガット M10 名詞-固有名詞-一般 B-ARTIFACT +) S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +古い T1-9 形容詞-自立 O +機関 M1 名詞-一般 O +は S9 助詞-係助詞 O +自動的 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +消滅 M1 名詞-サ変接続 O +する M9 動詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +。 S2 記号-句点 O + +A S7 記号-アルファベット O + + S13 記号-空白 O +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +スタート M10 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +ガット M10 名詞-固有名詞-一般 O +は S9 助詞-係助詞 O +1 S5 名詞-数 O +年 S1 名詞-一般 O +ほど M9 助詞-副助詞 O +残り T1-9 名詞-一般 O +、 S2 記号-読点 O +各国 M1 名詞-一般 O +は S9 助詞-係助詞 O +当面 M1 名詞-副詞可能 O +両方 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +ダブル M10 名詞-一般 O +加盟 M1 名詞-サ変接続 O +する M9 動詞-自立 O +方向 M1 名詞-一般 O +だ S9 助動詞 O +。 S2 記号-句点 O + +現在 M1 名詞-副詞可能 O +ガット M10 名詞-固有名詞-一般 O +加盟 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +1 S5 名詞-数 O +カ国 T10-1 名詞-接尾-助数詞 O +と S9 助詞-格助詞-引用 O +欧州 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +連合 M1 名詞-サ変接続 I-ORGANIZATION +( S2 記号-括弧開 O +EU M7 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +うち M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +スイス M10 名詞-固有名詞-地域-国 B-LOCATION +や S9 助詞-並立助詞 O +ブラジル M10 名詞-固有名詞-地域-国 B-LOCATION +など M9 助詞-副助詞 O +数カ国 T10-1 名詞-一般 O +は S9 助詞-係助詞 O +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +協定 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +年内 M1 名詞-一般 O +批准 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +困難 M1 名詞-形容動詞語幹 O +と S9 助詞-格助詞-引用 O +見 S1 動詞-自立 O +られ M9 動詞-接尾 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +からだ M9 名詞-一般 O +。 S2 記号-句点 O + +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +乗り遅れ T1-9 名詞-一般 O +組 S1 名詞-一般 O +の S9 助詞-連体化 O +受け皿 T9-1 名詞-一般 O +として M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +また M9 接続詞 O +ガット M10 名詞-固有名詞-一般 B-LOCATION +の S9 助詞-連体化 O +紛争 M1 名詞-サ変接続 O +処理 M1 名詞-サ変接続 O +機関 M1 名詞-一般 O +で S9 助動詞 O +係争 M1 名詞-サ変接続 O +中 S1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +案件 M1 名詞-一般 O +引き継ぎ T1-9 名詞-一般 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +一定 T6-1 名詞-サ変接続 O +期間 M1 名詞-一般 O +の S9 助詞-連体化 O +併存 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +必要 M1 名詞-形容動詞語幹 O +。 S2 記号-句点 O + + S13 記号-空白 O +当初 M1 名詞-副詞可能 O +、 S2 記号-読点 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +発足 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +同時に T1-9 副詞-一般 O +ガット M10 名詞-固有名詞-一般 O +を S9 助詞-格助詞-一般 O +脱退 M1 名詞-サ変接続 O +する M9 動詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +表 S1 名詞-一般 O +明し T1-9 形容詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +これ M9 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +に S9 助詞-格助詞-一般 O +新しく T1-9 形容詞-自立 O +盛 S1 動詞-自立 O +られ M9 動詞-接尾 O +た S9 助動詞 O +サービス M10 名詞-サ変接続 O +貿易 M1 名詞-サ変接続 O +など M9 助詞-副助詞 O +を S9 助詞-格助詞-一般 O +重視 M1 名詞-サ変接続 O +する M9 動詞-自立 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +が S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +途上 M1 名詞-一般 O +国 S1 名詞-一般 O +の S9 助詞-連体化 O +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +早期 M1 名詞-一般 O +批准 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +圧力 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +かける M9 動詞-自立 O +目的 M1 名詞-一般 O +」 S2 記号-括弧閉 O +( S2 記号-括弧開 O +通産省 M1 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +。 S2 記号-句点 O + +しかし M9 接続詞 O +、 S2 記号-読点 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +など M9 助詞-副助詞 O +多く T1-9 名詞-副詞可能 O +の S9 助詞-連体化 O +国 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +ガット M10 名詞-固有名詞-一般 O +を S9 助詞-格助詞-一般 O +残し T1-9 動詞-自立 O +、 S2 記号-読点 O +当面 M1 名詞-副詞可能 O +両方 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +加盟 M1 名詞-サ変接続 O +する M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +主張 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +今月 M1 名詞-副詞可能 B-DATE +初め T1-9 名詞-副詞可能 I-DATE +に S9 助詞-格助詞-一般 O +米 S1 名詞-固有名詞-地域-国 B-LOCATION +議会 M1 名詞-一般 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +承認 M1 名詞-サ変接続 O +した M9 名詞-一般 O +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +実施 M1 名詞-サ変接続 O +法 S1 名詞-一般 O +では M9 接続詞 O +「 S2 記号-括弧開 O +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +発足 M1 名詞-サ変接続 O +後に T1-9 副詞-一般 O +脱退 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +なっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +おり M9 動詞-非自立 O +、 S2 記号-読点 O +発足 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +いつ M9 名詞-副詞可能 O +脱退 M1 名詞-サ変接続 O +する M9 動詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +は S9 助詞-係助詞 O +米 S1 名詞-固有名詞-地域-国 B-LOCATION +政府 M1 名詞-一般 O +の S9 助詞-連体化 O +裁量 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +任さ T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +WTO M7 名詞-固有名詞-組織 B-ORGANIZATION +協定 M1 名詞-サ変接続 O +では M9 接続詞 O +、 S2 記号-読点 O +発効 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +2 S5 名詞-数 O +年 S1 名詞-一般 O +以内 M1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +加盟 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +原 S1 名詞-固有名詞-人名-姓 O +加盟 M1 名詞-サ変接続 O +国 S1 名詞-一般 O +扱い T1-9 名詞-サ変接続 O +する M9 動詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +その後 T9-1 名詞-副詞可能 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +改めて T1-9 副詞-一般 O +厳しい T1-9 形容詞-自立 O +加入 M1 名詞-サ変接続 O +交渉 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +必要 M1 名詞-形容動詞語幹 O +と S9 助詞-格助詞-引用 O +定めて T1-9 副詞-一般 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +この M9 連体詞 O +ため M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +ガット M10 名詞-固有名詞-一般 B-LOCATION +の S9 助詞-連体化 O +残存 M1 名詞-サ変接続 O +期間 M1 名詞-一般 O +は S9 助詞-係助詞 O +最長 M1 名詞-一般 O +でも M9 助詞-副助詞 O +2 S5 名詞-数 O +年 S1 名詞-一般 O +という M9 助詞-格助詞-連語 O +の S9 助詞-連体化 O +が S9 助詞-格助詞-一般 O +暗黙 M1 名詞-一般 O +の S9 助詞-連体化 O +合意 M1 名詞-サ変接続 O +で S9 助動詞 O +、 S2 記号-読点 O +8 S5 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +ジュネーブ M10 名詞-固有名詞-地域-一般 B-LOCATION +で S9 助動詞 O +の S9 助詞-連体化 O +会議 M1 名詞-サ変接続 O +で S9 助動詞 O +決定 M1 名詞-サ変接続 O +する M9 動詞-自立 O +予定 M1 名詞-サ変接続 O +だ S9 助動詞 O +。 S2 記号-句点 O + +★ S2 記号-一般 O +[ S2 記号-括弧開 O +こども M9 名詞-一般 O +の S9 助詞-連体化 O +時間 M1 名詞-副詞可能 O +] S2 記号-括弧閉 O +4 S5 名詞-数 O +年 S1 名詞-一般 O +かけ M9 動詞-自立 O +て S9 助詞-接続助詞 O +入塾 M1 名詞-一般 O +決意 M1 名詞-サ変接続 O += S2 記号-一般 O +天野 M1 名詞-固有名詞-人名-姓 B-PERSON +秀徳 M1 名詞-固有名詞-人名-名 I-PERSON +< S2 記号-括弧開 O +学習 M1 名詞-サ変接続 O +塾 S1 名詞-一般 O +教師 M1 名詞-一般 O +> S2 記号-括弧閉 O + + S13 記号-空白 O +康広 M1 名詞-固有名詞-人名-名 B-PERSON +が S9 助詞-格助詞-一般 O +塾 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +入る T1-9 動詞-自立 O +ことに M9 副詞-一般 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +彼 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +いま M9 名詞-副詞可能 O +中学 M1 名詞-一般 O +一年生 T6-1 名詞-一般 O +。 S2 記号-句点 O + +私 S1 名詞-代名詞-一般 O +の S9 助詞-連体化 O +教室 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +年 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +一 S6 名詞-数 O +、 S2 記号-読点 O +二 S6 名詞-数 O +度 S1 名詞-一般 O +、 S2 記号-読点 O +塾生 M1 名詞-一般 O +の S9 助詞-連体化 O +和宏 M1 名詞-固有名詞-人名-名 B-PERSON +に S9 助詞-格助詞-一般 O +くっつい M9 動詞-自立 O +て S9 助詞-接続助詞 O +来 S1 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +四 S6 名詞-数 B-DATE +年 S1 名詞-一般 I-DATE +も S9 助詞-係助詞 O +前 S1 名詞-副詞可能 O +からだ M9 名詞-一般 O +。 S2 記号-句点 O + +来る T1-9 動詞-自立 O +度 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +和宏 M1 名詞-固有名詞-人名-名 B-PERSON +と S9 助詞-格助詞-引用 O +同じ T1-9 連体詞 O +プリント M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +受け取り T1-9 名詞-一般 O +、 S2 記号-読点 O +一緒 T6-1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +やっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +ゆく M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +ゆっくりと M9 副詞-一般 O +考える T1-9 動詞-自立 O +タイプ M10 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +気付く T1-9 動詞-自立 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +皆 S1 名詞-代名詞-一般 O +終わっ T1-9 動詞-自立 O +てい M9 名詞-一般 O +て S9 助詞-接続助詞 O +自分 M1 名詞-一般 O +だけ M9 助詞-副助詞 O +が S9 助詞-格助詞-一般 O +入り口 T9-1 名詞-一般 O +の S9 助詞-連体化 O +ところで M9 接続詞 O +止まっ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +暗記 M1 名詞-サ変接続 O +もの M9 名詞-非自立-一般 O +、 S2 記号-読点 O +こつこつ M9 副詞-一般 O +練習 M1 名詞-サ変接続 O +する M9 動詞-自立 O +漢字 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +苦手 M1 名詞-形容動詞語幹 O +という M9 助詞-格助詞-連語 O +典型 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +な S9 助詞-終助詞 O +「 S2 記号-括弧開 O +落ちこぼれ T1-9 名詞-一般 O +」 S2 記号-括弧閉 O +候補 M1 名詞-一般 O +生 S1 名詞-形容動詞語幹 O +だっ M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +口数 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +少なく T1-9 形容詞-自立 O +、 S2 記号-読点 O +塾 S1 名詞-一般 O +の S9 助詞-連体化 O +雰囲気 M1 名詞-一般 O +など M9 助詞-副助詞 O +彼 S1 名詞-代名詞-一般 O +に S9 助詞-格助詞-一般 O +どう M9 副詞-助詞類接続 O +映っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +は S9 助詞-係助詞 O +不明 M1 名詞-形容動詞語幹 O +だっ M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +和宏 M1 名詞-固有名詞-人名-名 B-PERSON +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +誘い T1-9 名詞-一般 O +」 S2 記号-括弧閉 O +に S9 助詞-格助詞-一般 O +乗り T1-9 名詞-一般 O +そう M9 副詞-助詞類接続 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +たこ M9 名詞-一般 O +とも M9 助詞-副助詞 O +ある M9 動詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +康広 M1 名詞-固有名詞-人名-名 B-PERSON +は S9 助詞-係助詞 O +小学校 M1 名詞-一般 O +時代 M1 名詞-一般 O +、 S2 記号-読点 O +ついに M9 副詞-一般 O +塾 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +入ら T1-9 動詞-自立 O +なかっ M9 形容詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +入塾 M1 名詞-一般 O +面接 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +とき M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +康広 M1 名詞-固有名詞-人名-名 B-PERSON +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +学校 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +同じ T1-9 連体詞 O +に S9 助詞-格助詞-一般 O +なる M9 動詞-自立 O +の S9 助詞-連体化 O +が S9 助詞-格助詞-一般 O +怖かっ T1-9 形容詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +でも M9 助詞-副助詞 O +ここ M9 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +違う T1-9 動詞-自立 O +と S9 助詞-格助詞-引用 O +分かっ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +塾 S1 名詞-一般 O +で S9 助動詞 O +頑張れ T1-9 動詞-自立 O +ば S9 助詞-接続助詞 O +、 S2 記号-読点 O +勉強 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +できる M9 動詞-自立 O +よう M9 名詞-非自立-助動詞語幹 O +な S9 助詞-終助詞 O +気 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +してき M9 名詞-形容動詞語幹 O +た S9 助動詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +言っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +康広 M1 名詞-固有名詞-人名-名 B-PERSON +の S9 助詞-連体化 O +よう M9 名詞-非自立-助動詞語幹 O +に S9 助詞-格助詞-一般 O +四 S6 名詞-数 O +年 S1 名詞-一般 O +がかり M9 動詞-接尾 O +で S9 助動詞 O +入塾 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +決める T1-9 動詞-自立 O +子 S1 名詞-一般 O +も S9 助詞-係助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +自分 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +合 S1 名詞-一般 O +って M9 助詞-格助詞-連語 O +いるか M9 名詞-一般 O +どうか M9 副詞-一般 O +、 S2 記号-読点 O +私 S1 名詞-代名詞-一般 O +の S9 助詞-連体化 O +方 S1 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +試さ T1-9 動詞-自立 O +れ S9 助動詞 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +よう M9 名詞-非自立-助動詞語幹 O +だ S9 助動詞 O +。 S2 記号-句点 O + +そう M9 副詞-助詞類接続 O +いえ M9 感動詞 O +ば S9 助詞-接続助詞 O +、 S2 記号-読点 O +去年 M1 名詞-副詞可能 O +入っ T1-9 動詞-自立 O +た S9 助動詞 O +留美 M1 名詞-固有名詞-人名-名 B-PERSON +も S9 助詞-係助詞 O +面接 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +から M9 助詞-格助詞-一般 O +二 S6 名詞-数 O +年 S1 名詞-一般 O +後に T1-9 副詞-一般 O +来 S1 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +最近 M1 名詞-副詞可能 O +、 S2 記号-読点 O +親 S1 名詞-一般 O +の S9 助詞-連体化 O +意向 M1 名詞-一般 O +で S9 助動詞 O +なく M9 形容詞-自立 O +、 S2 記号-読点 O +友達 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +誘わ T1-9 動詞-自立 O +れ S9 助動詞 O +て S9 助詞-接続助詞 O +来る T1-9 動詞-自立 O +ので M9 助詞-接続助詞 O +も S9 助詞-係助詞 O +なく M9 形容詞-自立 O +、 S2 記号-読点 O +自分 M1 名詞-一般 O +で S9 助動詞 O +選ん T1-9 動詞-自立 O +で S9 助動詞 O +来る T1-9 動詞-自立 O +子 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +多く T1-9 名詞-副詞可能 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +子供 M1 名詞-一般 O +本人 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +塾 S1 名詞-一般 O +の S9 助詞-連体化 O +品定め T1-9 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +する M9 動詞-自立 O +時代 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +★ S2 記号-一般 O +[ S2 記号-括弧開 O +食卓 M1 名詞-一般 O +の S9 助詞-連体化 O +一品 T6-1 名詞-一般 O +] S2 記号-括弧閉 O +グレープフルーツ M10 名詞-一般 O +の S9 助詞-連体化 O +サラダ M10 名詞-一般 O += S2 記号-一般 O +赤堀 M1 名詞-固有名詞-人名-姓 B-PERSON +博美 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +これから M9 副詞-助詞類接続 O +の S9 助詞-連体化 O +パーティ M10 名詞-サ変接続 O +ーシーズンにグレープフルーツのカップを T10-9 名詞-一般 O +使っ T1-9 動詞-自立 O +た S9 助動詞 O +サラダ M10 名詞-一般 O +は S9 助詞-係助詞 O +器 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +汚さ T1-9 動詞-自立 O +ない M9 形容詞-自立 O +ので M9 助詞-接続助詞 O +非常 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +助かり T1-9 動詞-自立 O +ます M9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +《 S2 記号-括弧開 O +材料 M1 名詞-一般 O +》 S2 記号-括弧閉 O +( S2 記号-括弧開 O +4 S5 名詞-数 O +人 S1 名詞-一般 O +分 S1 動詞-自立 O +) S2 記号-括弧閉 O +グレープフルーツ M10 名詞-一般 O +2 S5 名詞-数 O +個 S1 名詞-一般 O +▽ S2 記号-一般 O +セロリ M10 名詞-一般 O +1 S5 名詞-数 O +/ S2 記号-一般 O +2 S5 名詞-数 O +本 S1 名詞-一般 O +▽ S2 記号-一般 O +生 S1 名詞-形容動詞語幹 O +マッシュルーム M10 名詞-一般 O +8 S5 名詞-数 O +個 S1 名詞-一般 O +▽ S2 記号-一般 O +レモン M10 名詞-一般 O +汁 S1 名詞-一般 O +少々 T1-2 副詞-助詞類接続 O +▽ S2 記号-一般 O +小エビ T1-10 名詞-一般 O +8 S5 名詞-数 O +匹 S1 名詞-接尾-助数詞 O +▽ S2 記号-一般 O +A S7 記号-アルファベット O +( S2 記号-括弧開 O +クリームチーズ M10 名詞-一般 O +6 S5 名詞-数 O +グラム M10 名詞-固有名詞-人名-姓 O +、 S2 記号-読点 O +生クリーム T1-10 名詞-一般 O +大さじ T1-9 名詞-一般 O +3 S5 名詞-数 O +、 S2 記号-読点 O +レモン M10 名詞-一般 O +汁 S1 名詞-一般 O +小さじ T1-9 名詞-一般 O +2 S5 名詞-数 O +、 S2 記号-読点 O +はちみつ M9 名詞-一般 O +小さじ T1-9 名詞-一般 O +1 S5 名詞-数 O +、 S2 記号-読点 O +塩 S1 名詞-一般 O +少々 T1-2 副詞-助詞類接続 O +) S2 記号-括弧閉 O +▽ S2 記号-一般 O +エンダイブ M10 名詞-一般 O +( S2 記号-括弧開 O +または M9 接続詞 O +サニーレタス M10 名詞-一般 O +) S2 記号-括弧閉 O +適宜 M1 名詞-副詞可能 O + + S13 記号-空白 O +《 S2 記号-括弧開 O +作り方 T9-1 名詞-一般 O +》 S2 記号-括弧閉 O + S13 記号-空白 O +( S2 記号-括弧開 O +1 S5 名詞-数 O +) S2 記号-括弧閉 O +グレープフルーツ M10 名詞-一般 O +は S9 助詞-係助詞 O +横 S1 名詞-一般 O +2つ T5-9 名詞-一般 O +に S9 助詞-格助詞-一般 O +切り T1-9 名詞-一般 O +、 S2 記号-読点 O +中 S1 名詞-非自立-副詞可能 O +を S9 助詞-格助詞-一般 O +くり抜い T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +果肉 M1 名詞-一般 O +だけ M9 助詞-副助詞 O +とり M9 動詞-自立 O +出す T1-9 動詞-自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +2 S5 名詞-数 O +) S2 記号-括弧閉 O +セロリ M10 名詞-一般 O +は S9 助詞-係助詞 O +すじ M9 名詞-一般 O +を S9 助詞-格助詞-一般 O +とり M9 動詞-自立 O +、 S2 記号-読点 O +薄切り T1-9 名詞-サ変接続 O +にし M9 名詞-一般 O +て S9 助詞-接続助詞 O +水 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +さらす M9 動詞-自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +3 S5 名詞-数 O +) S2 記号-括弧閉 O +マッシュルーム M10 名詞-一般 O +は S9 助詞-係助詞 O +石づき T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +とり M9 動詞-自立 O +、 S2 記号-読点 O +薄切り T1-9 名詞-サ変接続 O +にし M9 名詞-一般 O +て S9 助詞-接続助詞 O +レモン M10 名詞-一般 O +汁 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +かけ M9 動詞-自立 O +て S9 助詞-接続助詞 O +おく M9 動詞-非自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +4 S5 名詞-数 O +) S2 記号-括弧閉 O +小エビ T1-10 名詞-一般 O +は S9 助詞-係助詞 O +背わた T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +とり M9 動詞-自立 O +、 S2 記号-読点 O +さっと M9 副詞-一般 O +塩ゆで T1-9 名詞-一般 O +に S9 助詞-格助詞-一般 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +冷め T1-9 動詞-自立 O +たら M9 助動詞 O +殻 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +むき M9 名詞-一般 O +、 S2 記号-読点 O +塩 S1 名詞-一般 O +少々 T1-2 副詞-助詞類接続 O +を S9 助詞-格助詞-一般 O +ふる M9 形容詞-自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +5 S5 名詞-数 O +) S2 記号-括弧閉 O +クリ M10 名詞-一般 O +ームチーズをやわらかくして T10-9 名詞-一般 O +A S7 記号-アルファベット O +の S9 助詞-連体化 O +材料 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +混ぜ合わせる T1-9 動詞-自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +6 S5 名詞-数 O +) S2 記号-括弧閉 O + S13 記号-空白 O +( S2 記号-括弧開 O +5 S5 名詞-数 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +ソース M10 名詞-一般 O +で S9 助動詞 O +マッシュルーム M10 名詞-一般 O +、 S2 記号-読点 O +セロリ M10 名詞-一般 O +、 S2 記号-読点 O +グレープフルーツ M10 名詞-一般 O +の S9 助詞-連体化 O +果肉 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +和え T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +元 S1 接頭詞-名詞接続 O +の S9 助詞-連体化 O +グレープフルーツ M10 名詞-一般 O +の S9 助詞-連体化 O +カップ M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +盛りつけ T1-9 名詞-一般 O +、 S2 記号-読点 O +エンダイブ M10 名詞-一般 O +など M9 助詞-副助詞 O +を S9 助詞-格助詞-一般 O +添える T1-9 動詞-自立 O +。 S2 記号-句点 O + +《 S2 記号-括弧開 O +1 S5 名詞-数 O +人当たり T1-9 名詞-一般 O +2 S5 名詞-数 O +キロカロリー M10 名詞-接尾-助数詞 O +》 S2 記号-括弧閉 O + +新薬 M1 名詞-一般 O +試験 M1 名詞-サ変接続 O +贈収賄 M1 名詞-一般 O +事件 M1 名詞-一般 O +で S9 助動詞 O +習志野 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +病院 M1 名詞-一般 I-ORGANIZATION +の S9 助詞-連体化 O +杉林 M1 名詞-固有名詞-人名-姓 B-PERSON +昭男 M1 名詞-固有名詞-人名-名 I-PERSON +容疑 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +カルテ M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +ねつ造 T9-1 名詞-サ変接続 O +-- M2 記号-一般 O +高松 M1 名詞-固有名詞-地域-一般 B-LOCATION +地検 M1 名詞-一般 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +製薬 M1 名詞-一般 O +会社 M1 名詞-一般 O +「 S2 記号-括弧開 O +日本グラクソ T1-10 名詞-固有名詞-組織 B-ORGANIZATION +」 S2 記号-括弧閉 O +( S2 記号-括弧開 O +本社 M1 名詞-一般 O +・ S2 記号-一般 O +東 S1 名詞-一般 B-ORGANIZATION +京都 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +中央 M1 名詞-一般 I-ORGANIZATION +区 S1 名詞-一般 I-ORGANIZATION +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +新薬 M1 名詞-一般 O +の S9 助詞-連体化 O +血圧 M1 名詞-一般 O +降 S1 動詞-自立 O +下剤 M1 名詞-一般 O +「 S2 記号-括弧開 O +ラシジピン M10 名詞-固有名詞-一般 B-ARTIFACT +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +臨床 M1 名詞-一般 O +試験 M1 名詞-サ変接続 O +をめぐる M9 助詞-格助詞-連語 O +汚職 M1 名詞-一般 O +事件 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +高松 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +地検 M1 名詞-一般 I-ORGANIZATION +は S9 助詞-係助詞 O +七日 T6-1 名詞-副詞可能 B-DATE +まで M9 助詞-副助詞 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +収賄 M1 名詞-サ変接続 O +容疑 M1 名詞-一般 O +で S9 助動詞 O +逮捕 M1 名詞-サ変接続 O +した M9 名詞-一般 O +国立 M1 名詞-一般 B-LOCATION +習志野 M1 名詞-固有名詞-地域-一般 I-LOCATION +病院 M1 名詞-一般 I-LOCATION +( S2 記号-括弧開 O +千葉県習志野市 T6-1 名詞-数 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +循環 M1 名詞-サ変接続 O +器 S1 名詞-一般 O +科 S1 名詞-一般 O +医長 M1 名詞-一般 O +、 S2 記号-読点 O +杉林 M1 名詞-固有名詞-人名-姓 B-PERSON +昭男 M1 名詞-固有名詞-人名-名 I-PERSON +容疑 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +( S2 記号-括弧開 O +5 S5 名詞-数 O +) S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +臨床 M1 名詞-一般 O +試験 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +行っ T1-9 動詞-自立 O +た S9 助動詞 O +患者 M1 名詞-一般 O +の S9 助詞-連体化 O +カルテ M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +実際 M1 副詞-助詞類接続 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +測定 M1 名詞-サ変接続 O +し S9 動詞-自立 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +血圧 M1 名詞-一般 O +値 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +記入 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ていた M9 形容詞-自立 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +突き止め T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +地検 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +杉林 M1 名詞-固有名詞-人名-姓 B-PERSON +医長 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +グ S10 名詞-一般 O +社 S1 名詞-一般 O +の S9 助詞-連体化 O +新薬 M1 名詞-一般 O +承認 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +有利 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +なる M9 動詞-自立 O +よう M9 名詞-非自立-助動詞語幹 O +カルテ M10 名詞-一般 O +の S9 助詞-連体化 O +内容 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +ねつ造 T9-1 名詞-サ変接続 O +、 S2 記号-読点 O +さらに M9 副詞-助詞類接続 O +同社 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +提出 M1 名詞-サ変接続 O +する M9 動詞-自立 O +調査 M1 名詞-サ変接続 O +表 S1 名詞-一般 O +の S9 助詞-連体化 O +内容 M1 名詞-一般 O +も S9 助詞-係助詞 O +ねつ造 T9-1 名詞-サ変接続 O +した M9 名詞-一般 O +もの M9 名詞-非自立-一般 O +と S9 助詞-格助詞-引用 O +みて M9 動詞-自立 O +、 S2 記号-読点 O +追及 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +杉林 M1 名詞-固有名詞-人名-姓 B-PERSON +医長 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +一九九一年 T6-1 名詞-数 O +から M9 助詞-格助詞-一般 O +九 S6 名詞-数 B-DATE +年 S1 名詞-一般 I-DATE +にかけて M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +ラシジピン M10 名詞-固有名詞-一般 B-LOCATION +の S9 助詞-連体化 O +臨床 M1 名詞-一般 O +試験 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +五 S6 名詞-数 O +人 S1 名詞-一般 O +の S9 助詞-連体化 O +患者 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +計 S1 接頭詞-数接続 O +六 S6 名詞-数 O +例 S1 名詞-一般 O +実施 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +この M9 連体詞 O +うち M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +一部 T6-1 名詞-副詞可能 O +の S9 助詞-連体化 O +患者 M1 名詞-一般 O +の S9 助詞-連体化 O +カルテ M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +測っ T1-9 動詞-自立 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +血圧 M1 名詞-一般 O +値 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +記入 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ていた M9 形容詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +押収 M1 名詞-サ変接続 O +資料 M1 名詞-一般 O +の S9 助詞-連体化 O +分析 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +患者 M1 名詞-一般 O +の S9 助詞-連体化 O +聞き取り T1-9 動詞-自立 O +調査 M1 名詞-サ変接続 O +など M9 助詞-副助詞 O +で S9 助動詞 O +分かっ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +収賄 M1 名詞-サ変接続 O +罪 S1 名詞-一般 O +で S9 助動詞 O +今月 M1 名詞-副詞可能 O +一日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +起訴 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +香川医科大 M1 名詞-固有名詞-組織 B-ORGANIZATION +助手 M1 名詞-一般 O +、 S2 記号-読点 O +深田 M1 名詞-固有名詞-人名-姓 B-PERSON +英利 M1 名詞-固有名詞-人名-名 I-PERSON +被告 M1 名詞-一般 O +( S2 記号-括弧開 O +3 S5 名詞-数 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +場合 M1 名詞-副詞可能 O +、 S2 記号-読点 O +調査 M1 名詞-サ変接続 O +表 S1 名詞-一般 O +の S9 助詞-連体化 O +データ M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +改ざん T1-9 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +カルテ M10 名詞-一般 O +そのもの M9 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +手 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +つけ M9 名詞-一般 O +てい M9 名詞-一般 O +なかっ M9 形容詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +マリフアナ M10 名詞-固有名詞-一般 O +所持 M1 名詞-サ変接続 O +で S9 助動詞 O +逮捕 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +日本人 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +死刑 M1 名詞-一般 O +判決 M1 名詞-サ変接続 O +-- M2 記号-一般 O +比 S1 名詞-一般 O +の S9 助詞-連体化 O +地裁 M1 名詞-一般 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +マニラ M10 名詞-固有名詞-地域-一般 B-LOCATION +7 S5 名詞-数 O +日大 M1 名詞-固有名詞-組織 B-PERSON +野 S1 名詞-一般 I-PERSON +俊 S1 名詞-固有名詞-人名-名 I-PERSON +】 S2 記号-括弧閉 O +フィリピン M10 名詞-固有名詞-地域-国 B-LOCATION +中部 M1 名詞-一般 O +ネグロス M10 名詞-固有名詞-地域-一般 B-LOCATION +島 S1 名詞-一般 O +の S9 助詞-連体化 O +バコロド地方裁判所 T10-1 名詞-固有名詞-組織 B-ORGANIZATION +は S9 助詞-係助詞 O +七日麻薬取締法 T6-1 名詞-数 O +( S2 記号-括弧開 O +所持 M1 名詞-サ変接続 O +) S2 記号-括弧閉 O +違反 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +罪 S1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +名古屋 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +天白 M1 名詞-固有名詞-人名-姓 I-LOCATION +区 S1 名詞-一般 I-LOCATION +元八事 T6-1 名詞-固有名詞-地域-一般 I-LOCATION +の S9 助詞-連体化 O +無職 M1 名詞-一般 O +、 S2 記号-読点 O +鈴木 M1 名詞-固有名詞-人名-姓 B-PERSON +英司 M1 名詞-固有名詞-人名-名 I-PERSON +被告 M1 名詞-一般 O +( S2 記号-括弧開 O +3 S5 名詞-数 O +) S2 記号-括弧閉 O +に S9 助詞-格助詞-一般 O +死刑 M1 名詞-一般 O +の S9 助詞-連体化 O +判決 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +言い渡し T1-9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + +同国 M1 名詞-一般 O +で S9 助動詞 O +昨年 M1 名詞-副詞可能 B-DATE +、 S2 記号-読点 O +死刑 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +復活 M1 名詞-サ変接続 O +され M9 動詞-自立 O +て S9 助詞-接続助詞 O +以来 M1 名詞-副詞可能 O +、 S2 記号-読点 O +日本人 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +死刑 M1 名詞-一般 O +判決 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +言い渡さ T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +初めて T1-9 副詞-一般 O +。 S2 記号-句点 O + +鈴木 M1 名詞-固有名詞-人名-姓 B-PERSON +被告 M1 名詞-一般 O +は S9 助詞-係助詞 O +無実 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +主張 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +おり M9 動詞-非自立 O +、 S2 記号-読点 O +控訴 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +上級 M1 名詞-一般 O +審 S1 名詞-一般 O +で S9 助動詞 O +再 S1 接頭詞-名詞接続 O +審理 M1 名詞-サ変接続 O +さ S9 助詞-終助詞 O +れる M9 動詞-接尾 O +見通し T1-9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +鈴木 M1 名詞-固有名詞-人名-姓 B-PERSON +被告 M1 名詞-一般 O +は S9 助詞-係助詞 O +今年 M1 名詞-副詞可能 B-DATE +四月十二日 T6-1 名詞-数 O +、 S2 記号-読点 O +西ネグロス T1-10 名詞-固有名詞-地域-一般 B-LOCATION +州 S1 名詞-一般 I-LOCATION +の S9 助詞-連体化 O +州都 M1 名詞-一般 O +バコロド M10 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +の S9 助詞-連体化 O +空港 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +マリフアナ M10 名詞-固有名詞-一般 O +一 S6 名詞-数 O +・ S2 記号-一般 O +九 S6 名詞-数 O +キロ M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +持っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +ところ M9 名詞-非自立-副詞可能 O +を S9 助詞-格助詞-一般 O +現行 M1 名詞-一般 O +犯 S1 名詞-接尾-一般 O +逮捕 M1 名詞-サ変接続 O +され M9 動詞-自立 O +、 S2 記号-読点 O +起訴 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +同 S1 接頭詞-名詞接続 O +被告 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +中身 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +見 S1 動詞-自立 O +ず S9 助動詞 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +フィリピン M10 名詞-固有名詞-地域-国 B-LOCATION +人 S1 名詞-一般 O +女性 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +菓子 M1 名詞-一般 O +箱 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +もらっ M9 動詞-自立 O +た S9 助動詞 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +その M9 連体詞 O +中 S1 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +マリフアナ M10 名詞-固有名詞-一般 O +が S9 助詞-格助詞-一般 O +入っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +ワナ M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +はめ M9 名詞-一般 O +られ M9 動詞-接尾 O +た S9 助動詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +一貫 T6-1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +無実 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +主張 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +比 S1 名詞-一般 B-ORGANIZATION +司法省 M1 名詞-固有名詞-組織 I-ORGANIZATION +の S9 助詞-連体化 O +調べ T1-9 名詞-一般 O +では M9 接続詞 O +、 S2 記号-読点 O +七 S6 名詞-数 O +年 S1 名詞-一般 O +ぶり M9 名詞-一般 O +に S9 助詞-格助詞-一般 O +死刑 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +復活 M1 名詞-サ変接続 O +した M9 名詞-一般 O +昨年 M1 名詞-副詞可能 B-DATE +末 S1 名詞-副詞可能 I-DATE +以来 M1 名詞-副詞可能 O +、 S2 記号-読点 O +強盗 M1 名詞-一般 O +罪 S1 名詞-一般 O +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +被告 M1 名詞-一般 O +四 S6 名詞-数 O +人 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +死刑 M1 名詞-一般 O +判決 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +言い渡さ T1-9 動詞-自立 O +れ S9 助動詞 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +刑 S1 名詞-一般 O +の S9 助詞-連体化 O +執行 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +まだ M9 副詞-助詞類接続 O +行 S1 名詞-一般 O +われ M9 名詞-代名詞-一般 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +同国 M1 名詞-一般 O +で S9 助動詞 O +死刑 M1 名詞-一般 O +対象 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +なる M9 動詞-自立 O +麻薬 M1 名詞-一般 B-ARTIFACT +取締 M1 名詞-サ変接続 I-ARTIFACT +法 S1 名詞-一般 I-ARTIFACT +違反 M1 名詞-サ変接続 O +で S9 助動詞 O +、 S2 記号-読点 O +身柄 M1 名詞-一般 O +拘束 M1 名詞-サ変接続 O +中 S1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +日本人 M1 名詞-一般 O +は S9 助詞-係助詞 O +ほか M9 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +複数 M1 名詞-一般 O +おり M9 動詞-非自立 O +、 S2 記号-読点 O +判決 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +注目 M1 名詞-サ変接続 O +され M9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +山崎 M1 名詞-固有名詞-人名-姓 B-PERSON +順子 M1 名詞-固有名詞-人名-名 I-PERSON +氏 S1 名詞-接尾-人名 O +の S9 助詞-連体化 O +当選 M1 名詞-サ変接続 O +無効 M1 名詞-形容動詞語幹 O +判決 M1 名詞-サ変接続 O +で S9 助動詞 O +上告 M1 名詞-サ変接続 O +-- M2 記号-一般 O +中央選管 M1 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +方針 M1 名詞-一般 O + + S13 記号-空白 O +中央 M1 名詞-一般 O +選挙 M1 名詞-サ変接続 O +管理 M1 名詞-サ変接続 O +会 S1 名詞-一般 O +( S2 記号-括弧開 O +堀家 M1 名詞-固有名詞-人名-姓 B-PERSON +嘉郎 M1 名詞-固有名詞-人名-名 I-PERSON +委員 M1 名詞-一般 O +長 S1 形容詞-自立 O +) S2 記号-括弧閉 O +は S9 助詞-係助詞 O +八日午前 T6-1 名詞-数 O +、 S2 記号-読点 O +自治 M1 名詞-一般 O +省内 M1 名詞-一般 O +で S9 助動詞 O +会議 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +開き T1-9 動詞-自立 O +、 S2 記号-読点 O +中央選管 M1 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +日本新党 M1 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +山崎 M1 名詞-固有名詞-人名-姓 B-PERSON +順子 M1 名詞-固有名詞-人名-名 I-PERSON +( S2 記号-括弧開 O +円 S1 名詞-一般 B-PERSON +より子 T9-1 名詞-固有名詞-人名-名 I-PERSON +) S2 記号-括弧閉 O +参院 M1 名詞-固有名詞-組織 B-ORGANIZATION +議員 M1 名詞-一般 O +の S9 助詞-連体化 O +繰り上げ T1-9 動詞-自立 O +当選 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +決定 M1 名詞-サ変接続 O +した M9 名詞-一般 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +無効 M1 名詞-形容動詞語幹 O +と S9 助詞-格助詞-引用 O +し S9 動詞-自立 O +松崎 M1 名詞-固有名詞-人名-姓 B-PERSON +哲久 M1 名詞-固有名詞-人名-名 I-PERSON +・ S2 記号-一般 O +元 S1 接頭詞-名詞接続 O +同 S1 接頭詞-名詞接続 O +党 S1 名詞-一般 O +組織 M1 名詞-サ変接続 O +委員 M1 名詞-一般 O +長 S1 形容詞-自立 O +の S9 助詞-連体化 O +訴え T1-9 動詞-自立 O +を S9 助詞-格助詞-一般 O +認め T1-9 動詞-自立 O +た S9 助動詞 O +先月 M1 名詞-副詞可能 B-DATE +二十九日 T6-1 名詞-数 I-DATE +の S9 助詞-連体化 O +東京 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +高裁 M1 名詞-一般 I-ORGANIZATION +判決 M1 名詞-サ変接続 O +について M9 助詞-格助詞-連語 O +の S9 助詞-連体化 O +対応 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +協議 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +判決 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +中央選管 M1 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +決定 M1 名詞-サ変接続 O +自体 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +誤り T1-9 名詞-一般 O +が S9 助詞-格助詞-一般 O +なかっ M9 形容詞-自立 O +たと M9 動詞-自立 O +した M9 名詞-一般 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +国会 M1 名詞-一般 B-ORGANIZATION +議員 M1 名詞-一般 O +の S9 助詞-連体化 O +身分 M1 名詞-一般 O +に関する T1-9 助詞-格助詞-連語 O +重大 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +問題 M1 名詞-ナイ形容詞語幹 O +で S9 助動詞 O +影響 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +極めて T1-9 副詞-一般 O +大きく T1-9 形容詞-自立 O +最高裁 M1 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +判断 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +仰ぐ T1-9 動詞-自立 O +べき M9 助動詞 O +だ S9 助動詞 O +」 S2 記号-括弧閉 O +など M9 助詞-副助詞 O +として M9 助詞-格助詞-連語 O +上告 M1 名詞-サ変接続 O +する M9 動詞-自立 O +方針 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +決め T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +法務省 M1 名詞-固有名詞-組織 B-ORGANIZATION +とも M9 助詞-副助詞 O +協議 M1 名詞-サ変接続 O +し S9 動詞-自立 O +近く T1-9 名詞-副詞可能 O +最高裁 M1 名詞-固有名詞-組織 B-ORGANIZATION +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +上告 M1 名詞-サ変接続 O +手続き T1-9 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +とる M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +山崎 M1 名詞-固有名詞-人名-姓 B-PERSON +議員 M1 名詞-一般 O +の S9 助詞-連体化 O +法的 M1 名詞-形容動詞語幹 O +地位 M1 名詞-一般 O +は S9 助詞-係助詞 O +最高裁 M1 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +判決 M1 名詞-サ変接続 O +まで M9 助詞-副助詞 O +影響 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +この M9 連体詞 O +裁判 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +一九九二年七月 T6-1 名詞-数 O +の S9 助詞-連体化 O +参院 M1 名詞-固有名詞-組織 B-ORGANIZATION +比例 M1 名詞-サ変接続 O +代表 M1 名詞-サ変接続 O +選挙 M1 名詞-サ変接続 O +で S9 助動詞 O +候補 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +名簿 M1 名詞-一般 O +五位 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +に S9 助詞-格助詞-一般 O +登載 M1 名詞-サ変接続 O +され M9 動詞-自立 O +ながら M9 助詞-接続助詞 O +、 S2 記号-読点 O +その後 T9-1 名詞-副詞可能 O +、 S2 記号-読点 O +党 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +除名 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +松崎 M1 名詞-固有名詞-人名-姓 B-PERSON +氏 S1 名詞-接尾-人名 O +が S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +除名 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +不当 M1 名詞-形容動詞語幹 O +で S9 助動詞 O +、 S2 記号-読点 O +自分 M1 名詞-一般 O +より M9 副詞-一般 O +名簿 M1 名詞-一般 O +順位 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +下 S1 名詞-一般 O +の S9 助詞-連体化 O +山崎 M1 名詞-固有名詞-人名-姓 B-PERSON +氏 S1 名詞-接尾-人名 O +の S9 助詞-連体化 O +繰り上げ T1-9 動詞-自立 O +当選 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +中央選管 M1 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +決定 M1 名詞-サ変接続 O +した M9 名詞-一般 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +無効 M1 名詞-形容動詞語幹 O +」 S2 記号-括弧閉 O +として M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +中央選管 M1 名詞-固有名詞-組織 B-ORGANIZATION +を S9 助詞-格助詞-一般 O +相手 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +提訴 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +東京 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +高裁 M1 名詞-一般 I-ORGANIZATION +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +除名 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +民主 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +かつ M9 接続詞 O +公正 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +手続き T1-9 名詞-サ変接続 O +では M9 接続詞 O +なく M9 形容詞-自立 O +、 S2 記号-読点 O +公序良俗 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +反する T1-9 動詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +判断 M1 名詞-サ変接続 O +、 S2 記号-読点 O +山崎 M1 名詞-固有名詞-人名-姓 B-PERSON +議員 M1 名詞-一般 O +の S9 助詞-連体化 O +当選 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +無効 M1 名詞-形容動詞語幹 O +として M9 助詞-格助詞-連語 O +いた M9 形容詞-自立 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +こだわり M9 名詞-一般 O +] S2 記号-括弧閉 O +キンジー M10 名詞-固有名詞-人名-名 O +・ S2 記号-一般 O +シリーズ M10 名詞-一般 O += S2 記号-一般 O +田島 M1 名詞-固有名詞-人名-姓 B-PERSON +華代 M1 名詞-固有名詞-人名-名 I-PERSON +さん M9 名詞-接尾-人名 O +( S2 記号-括弧開 O +2 S5 名詞-数 O +) S2 記号-括弧閉 O +< S2 記号-括弧開 O +川鉄商事 M1 名詞-固有名詞-組織 B-ORGANIZATION +監査 M1 名詞-サ変接続 I-ORGANIZATION +部 S1 名詞-一般 I-ORGANIZATION +> S2 記号-括弧閉 O + + S13 記号-空白 O +女性 M1 名詞-一般 O +私立 M1 名詞-一般 O +探偵 M1 名詞-サ変接続 O +キンジー M10 名詞-固有名詞-人名-名 B-PERSON +・ S2 記号-一般 I-PERSON +ミルホーン M10 名詞-固有名詞-人名-姓 I-PERSON +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +通勤 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +お供 T9-1 名詞-一般 O +と S9 助詞-格助詞-引用 O +なっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +久しい T1-9 形容詞-自立 O +。 S2 記号-句点 O + +米 S1 名詞-固有名詞-地域-国 B-LOCATION +ミステリー M10 名詞-一般 O +作家 M1 名詞-一般 O +、 S2 記号-読点 O +ス S10 動詞-自立 O +ー・グラフトンのキンジー・シリーズがお T10-9 名詞-一般 O +気に入り T1-9 動詞-自立 O +なの M9 動詞-自立 O +だ S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +千葉県木更津市 T6-1 名詞-数 O +の S9 助詞-連体化 O +自宅 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +東京 M1 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +浜松町 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +職場 M1 名詞-一般 O +まで M9 助詞-副助詞 O +2 S5 名詞-数 O +時間 M1 名詞-副詞可能 O +。 S2 記号-句点 O + +入社 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +しばらく M9 副詞-助詞類接続 O +は S9 助詞-係助詞 O +ヘッドホンステレオ M10 名詞-一般 O +で S9 助動詞 O +音楽 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +聴い T1-9 動詞-自立 O +たり M9 助詞-並立助詞 O +、 S2 記号-読点 O +眠っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +姉 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +勧め T1-9 動詞-自立 O +られ M9 動詞-接尾 O +た S9 助動詞 O +「 S2 記号-括弧開 O +アリバイ M10 名詞-一般 O +の S9 助詞-連体化 O +A S7 記号-アルファベット O +」 S2 記号-括弧閉 O +で S9 助動詞 O +魅了 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +以来 M1 名詞-副詞可能 O +、 S2 記号-読点 O +7 S5 名詞-数 O +巻 S1 名詞-一般 O +目 S1 名詞-一般 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +探偵 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +G S7 記号-アルファベット O +」 S2 記号-括弧閉 O +まで M9 助詞-副助詞 O +順番 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +堪能 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +主人公 M1 名詞-一般 O +の S9 助詞-連体化 O +魅力 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +男 S1 名詞-一般 O +顔負け T1-9 名詞-一般 O +の S9 助詞-連体化 O +行 S1 名詞-一般 O +動力 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +女らしい T1-9 形容詞-自立 O +可愛い T1-9 形容詞-自立 O +面 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +併せ持つ T1-9 動詞-自立 O +ところ M9 名詞-非自立-副詞可能 O +」 S2 記号-括弧閉 O +。 S2 記号-句点 O + +生々しい T2-9 形容詞-自立 O +場面 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +あまり M9 副詞-助詞類接続 O +なく M9 形容詞-自立 O +「 S2 記号-括弧開 O +恋愛 M1 名詞-サ変接続 O +で S9 助動詞 O +ハラハラ M10 副詞-助詞類接続 O +させる M9 動詞-接尾 O +プロット M10 名詞-サ変接続 O +も S9 助詞-係助詞 O +いい M9 形容詞-自立 O +」 S2 記号-括弧閉 O +。 S2 記号-句点 O + + S13 記号-空白 O +目下 M1 名詞-副詞可能 O +の S9 助詞-連体化 O +悩み T1-9 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +シリーズ M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +途中 M1 名詞-副詞可能 O +で S9 助動詞 O +文庫本 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +ハードカバー M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +変わっ T1-9 動詞-自立 O +た S9 助動詞 O +こと M9 名詞-非自立-一般 O +。 S2 記号-句点 O + +「 S2 記号-括弧開 O +通勤 M1 名詞-サ変接続 O +電車 M1 名詞-一般 O +の S9 助詞-連体化 O +中 S1 名詞-非自立-副詞可能 O +では M9 接続詞 O +ペ S10 名詞-一般 O +ージがめくりにくいし T10-9 名詞-一般 O +、 S2 記号-読点 O +重 S1 形容詞-自立 O +いし M9 名詞-サ変接続 O +… S2 記号-一般 O +… S2 記号-一般 O +」 S2 記号-括弧閉 O + + S13 記号-空白 O +とい M9 名詞-一般 O +って M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +お菓子 T9-1 名詞-一般 O +づくり M9 名詞-接尾-一般 O +の S9 助詞-連体化 O +本 S1 名詞-一般 O +では M9 接続詞 O +犯人 M1 名詞-一般 O +探し T1-9 動詞-自立 O +の S9 助詞-連体化 O +よう M9 名詞-非自立-助動詞語幹 O +に S9 助詞-格助詞-一般 O +熱中 M1 名詞-サ変接続 O +でき M9 動詞-自立 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +「 S2 記号-括弧開 O +早く T1-9 形容詞-自立 O +文庫 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なら M9 助動詞 O +ない M9 形容詞-自立 O +かな M9 名詞-一般 O +」 S2 記号-括弧閉 O + + S13 記号-空白 O +田島 M1 名詞-固有名詞-人名-姓 B-PERSON +華代 M1 名詞-固有名詞-人名-名 I-PERSON +さん M9 名詞-接尾-人名 O +( S2 記号-括弧開 O +2 S5 名詞-数 O +) S2 記号-括弧閉 O +< S2 記号-括弧開 O +川鉄商事 M1 名詞-固有名詞-組織 B-ORGANIZATION +監査 M1 名詞-サ変接続 I-ORGANIZATION +部 S1 名詞-一般 I-ORGANIZATION +> S2 記号-括弧閉 O + +PLO M7 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +アラファト M10 名詞-固有名詞-人名-姓 B-PERSON +議長 M1 名詞-一般 O +、 S2 記号-読点 O +治安 M1 名詞-一般 O +の S9 助詞-連体化 O +確保 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +前向き T1-9 名詞-形容動詞語幹 O + S13 記号-空白 O +イスラエル M10 名詞-固有名詞-地域-国 B-LOCATION +側 S1 名詞-接尾-一般 O +と S9 助詞-格助詞-引用 O +協議 M1 名詞-サ変接続 O +も S9 助詞-係助詞 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +カイロ M10 名詞-固有名詞-地域-一般 B-DATE +8 S5 名詞-数 I-DATE +日 S1 名詞-一般 I-DATE +田嶌 M1 名詞-固有名詞-人名-姓 B-PERSON +徳弘 M1 名詞-固有名詞-人名-名 I-PERSON +】 S2 記号-括弧閉 O +クリストファー M10 名詞-固有名詞-人名-姓 B-PERSON +米 S1 名詞-固有名詞-地域-国 B-LOCATION +国務 M1 名詞-一般 B-ORGANIZATION +長官 M1 名詞-一般 O +は S9 助詞-係助詞 O +七日 T6-1 名詞-副詞可能 B-DATE +午後 M1 名詞-副詞可能 I-DATE +、 S2 記号-読点 O +パレスチナ M10 名詞-固有名詞-地域-一般 B-LOCATION +先行 M1 名詞-サ変接続 O +自治 M1 名詞-一般 O +区 S1 名詞-一般 O +の S9 助詞-連体化 O +ガザ M10 名詞-固有名詞-地域-一般 B-LOCATION +地区 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +訪れ T1-9 動詞-自立 O +、 S2 記号-読点 O +パレスチナ M10 名詞-固有名詞-地域-一般 B-LOCATION +解放 M1 名詞-サ変接続 O +機構 M1 名詞-一般 O +( S2 記号-括弧開 O +PLO M7 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +アラファト M10 名詞-固有名詞-人名-姓 B-PERSON +議長 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +会談 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +同 S1 接頭詞-名詞接続 O +長官 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +イスラエル M10 名詞-固有名詞-地域-国 B-LOCATION +人 S1 名詞-一般 O +の S9 助詞-連体化 O +安全 M1 名詞-形容動詞語幹 O +確保 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +和平 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +つながる M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +アラファト M10 名詞-固有名詞-人名-姓 B-PERSON +議長 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +理解 M1 名詞-サ変接続 O +した M9 名詞-一般 O +、 S2 記号-読点 O +と S9 助詞-格助詞-引用 O +述べ T1-9 動詞-自立 O +、 S2 記号-読点 O +議長 M1 名詞-一般 O +の S9 助詞-連体化 O +姿勢 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +高く T1-9 形容詞-自立 O +評価 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +クリストファー M10 名詞-固有名詞-人名-姓 B-PERSON +長官 M1 名詞-一般 O +は S9 助詞-係助詞 O +六 S6 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +、 S2 記号-読点 O +パレスチナ M10 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +自治 M1 名詞-一般 O +拡大 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +遅延 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +事実 M1 名詞-副詞可能 O +上 S1 名詞-一般 O +容認 M1 名詞-サ変接続 O +、 S2 記号-読点 O +アラファト M10 名詞-固有名詞-人名-姓 B-PERSON +議長 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +圧力 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +かけ M9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +ガザ M10 名詞-固有名詞-地域-一般 B-LOCATION +から M9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +報道 M1 名詞-サ変接続 O +による M9 助詞-格助詞-連語 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +アラファト M10 名詞-固有名詞-人名-姓 B-PERSON +議長 M1 名詞-一般 O +は S9 助詞-係助詞 O +会談 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +イスラエル M10 名詞-固有名詞-地域-国 B-LOCATION +人 S1 名詞-一般 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +治安 M1 名詞-一般 O +確保 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +必要 M1 名詞-形容動詞語幹 O +性 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +考慮 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +おり M9 動詞-非自立 O +、 S2 記号-読点 O +イスラエル M10 名詞-固有名詞-地域-国 B-LOCATION +側 S1 名詞-接尾-一般 O +と S9 助詞-格助詞-引用 O +詳細 M1 名詞-形容動詞語幹 O +について M9 助詞-格助詞-連語 O +話し合う T1-9 動詞-自立 O +用意 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +述べ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +また M9 接続詞 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +パレスチナ M10 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +領土 M1 名詞-一般 O +において M9 助詞-格助詞-連語 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +自治 M1 名詞-一般 O +政府 M1 名詞-一般 O +は S9 助詞-係助詞 O +ただ M9 接続詞 O +一つ T6-9 名詞-一般 O +で S9 助動詞 O +ある M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +だれ M9 名詞-代名詞-一般 O +も S9 助詞-係助詞 O +が S9 助詞-格助詞-一般 O +理解 M1 名詞-サ変接続 O +し S9 動詞-自立 O +なけれ M9 形容詞-自立 O +ば S9 助詞-接続助詞 O +なら M9 助動詞 O +ない M9 形容詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +語り T1-9 名詞-一般 O +、 S2 記号-読点 O +イスラム M10 名詞-固有名詞-一般 O +原理 M1 名詞-一般 O +主義 M1 名詞-一般 O +組織 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ハマス M10 名詞-固有名詞-組織 B-ORGANIZATION +など M9 助詞-副助詞 O +に S9 助詞-格助詞-一般 O +従わ T1-9 動詞-自立 O +ない M9 形容詞-自立 O +よう M9 名詞-非自立-助動詞語幹 O +呼びかけ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +イスラエル M10 名詞-固有名詞-地域-国 B-LOCATION +政府 M1 名詞-一般 O +は S9 助詞-係助詞 O +七日 T6-1 名詞-副詞可能 O +、 S2 記号-読点 O +臨時 M1 名詞-一般 O +閣議 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +開き T1-9 動詞-自立 O +、 S2 記号-読点 O +パレスチナ M10 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +自治 M1 名詞-一般 O +拡大 M1 名詞-サ変接続 O +問題 M1 名詞-ナイ形容詞語幹 O +について M9 助詞-格助詞-連語 O +協議 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +自治 M1 名詞-一般 O +拡大 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +ヨルダン川 T10-1 名詞-固有名詞-一般 O +西岸 M1 名詞-一般 O +で S9 助動詞 O +の S9 助詞-連体化 O +イスラエル M10 名詞-固有名詞-地域-国 B-ORGANIZATION +軍 S1 名詞-一般 I-ORGANIZATION +の S9 助詞-連体化 O +再 S1 接頭詞-名詞接続 O +配備 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +続き T1-9 動詞-自立 O +、 S2 記号-読点 O +パレスチナ M10 名詞-固有名詞-地域-一般 B-LOCATION +総 S1 接頭詞-名詞接続 O +選挙 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +行わ T1-9 動詞-自立 O +なけれ M9 形容詞-自立 O +ば S9 助詞-接続助詞 O +なら M9 助動詞 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +しかし M9 接続詞 O +、 S2 記号-読点 O +軍 S1 名詞-一般 O +の S9 助詞-連体化 O +再 S1 接頭詞-名詞接続 O +配備 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +事実 M1 名詞-副詞可能 O +上の T1-9 名詞-固有名詞-地域-一般 O +撤退 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +つながる M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +から M9 助詞-格助詞-一般 O +、 S2 記号-読点 O +イスラム M10 名詞-固有名詞-一般 O +過激 M1 名詞-一般 O +派 S1 名詞-一般 O +の S9 助詞-連体化 O +活動 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +抑止 M1 名詞-サ変接続 O +でき M9 動詞-自立 O +ない M9 形容詞-自立 O +恐れ T1-9 名詞-一般 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +、 S2 記号-読点 O +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +意見 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +政 S1 名詞-一般 O +府内 M1 名詞-一般 O +で S9 助動詞 O +強まっ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +臨時 M1 名詞-一般 O +閣議 M1 名詞-一般 O +は S9 助詞-係助詞 O +八日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +も S9 助詞-係助詞 O +行 S1 名詞-一般 O +われ M9 名詞-代名詞-一般 O +、 S2 記号-読点 O +同日 M1 名詞-副詞可能 O +中 S1 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +結論 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +出す T1-9 動詞-自立 O +見通し T1-9 名詞-一般 O +。 S2 記号-句点 O + +「 S2 記号-括弧開 O +2 S5 名詞-数 O +度 S1 名詞-一般 O +と S9 助詞-格助詞-引用 O +備え T1-9 名詞-一般 O +怠っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +は S9 助詞-係助詞 O +なら M9 助動詞 O +ぬ S9 助動詞 O +」 S2 記号-括弧閉 O + S13 記号-空白 O +クリントン M10 名詞-固有名詞-人名-姓 B-PERSON +米 S1 名詞-固有名詞-地域-国 B-LOCATION +大統領 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +強調 M1 名詞-サ変接続 O +-- M2 記号-一般 O +「 S2 記号-括弧開 O +真珠湾 M1 名詞-固有名詞-地域-一般 B-DATE +追憶 M1 名詞-サ変接続 I-DATE +の S9 助詞-連体化 I-DATE +日 S1 名詞-一般 I-DATE +」 S2 記号-括弧閉 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +ワシントン M10 名詞-固有名詞-地域-一般 B-DATE +7 S5 名詞-数 I-DATE +日 S1 名詞-一般 I-DATE +河野 M1 名詞-固有名詞-人名-姓 B-PERSON +俊史 M1 名詞-固有名詞-人名-名 I-PERSON +】 S2 記号-括弧閉 O +クリントン M10 名詞-固有名詞-人名-姓 B-PERSON +米 S1 名詞-固有名詞-地域-国 B-LOCATION +大統領 M1 名詞-一般 O += S2 記号-一般 O +似顔絵 M1 名詞-一般 O += S2 記号-一般 O +は S9 助詞-係助詞 O +七日 T6-1 名詞-副詞可能 B-DATE +、 S2 記号-読点 O +今年 M1 名詞-副詞可能 B-DATE +から M9 助詞-格助詞-一般 O +制定 M1 名詞-サ変接続 O +した M9 名詞-一般 O +「 S2 記号-括弧開 O +真珠湾 M1 名詞-固有名詞-地域-一般 B-OPTIONAL +追憶 M1 名詞-サ変接続 I-OPTIONAL +の S9 助詞-連体化 I-OPTIONAL +日 S1 名詞-一般 I-OPTIONAL +」 S2 記号-括弧閉 O +にあたって M9 助詞-格助詞-連語 O +「 S2 記号-括弧開 O +真珠湾生存者協会 M1 名詞-固有名詞-組織 B-ORGANIZATION +」 S2 記号-括弧閉 O +( S2 記号-括弧開 O +ゴールドファーブ M10 名詞-固有名詞-人名-姓 B-PERSON +会長 M1 名詞-一般 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +年次 M1 名詞-一般 O +総会 M1 名詞-一般 O +の S9 助詞-連体化 O +会場 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +電話 M1 名詞-サ変接続 O +、 S2 記号-読点 O +同 S1 接頭詞-名詞接続 O +大統領 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +このほど M9 名詞-副詞可能 O +一九九六年 T6-1 名詞-数 O +から M9 助詞-格助詞-一般 O +二 S6 名詞-数 O +〇 S2 記号-一般 O +〇 S2 記号-一般 O +一 S6 名詞-数 B-DATE +年 S1 名詞-一般 I-DATE +まで M9 助詞-副助詞 O +の S9 助詞-連体化 O +国防 M1 名詞-一般 O +予算 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +二 S6 名詞-数 B-MONEY +ドル M10 名詞-一般 I-MONEY +( S2 記号-括弧開 O +約 S1 接頭詞-数接続 O +二兆五千億円 T6-1 名詞-数 O +) S2 記号-括弧閉 O +増額 M1 名詞-サ変接続 O +する M9 動詞-自立 O +要求 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +行っ T1-9 動詞-自立 O +た S9 助動詞 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +強調 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +二度と T1-9 副詞-一般 O +備え T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +怠っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +は S9 助詞-係助詞 O +なら M9 助動詞 O +ない M9 形容詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +呼び掛け T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +真珠湾 M1 名詞-固有名詞-地域-一般 B-OPTIONAL +追憶 M1 名詞-サ変接続 I-OPTIONAL +の S9 助詞-連体化 I-OPTIONAL +日 S1 名詞-一般 I-OPTIONAL +」 S2 記号-括弧閉 O +は S9 助詞-係助詞 O +今年 M1 名詞-副詞可能 B-DATE +八月 T6-1 名詞-副詞可能 I-DATE +の S9 助詞-連体化 O +上下 M1 名詞-サ変接続 O +両院 M1 名詞-一般 O +の S9 助詞-連体化 O +共同 M1 名詞-サ変接続 O +決議 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +先月 M1 名詞-副詞可能 O +二十九日付 T6-1 名詞-数 O +で S9 助動詞 O +布告 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +十二月 T6-1 名詞-副詞可能 B-DATE +七日 T6-1 名詞-副詞可能 I-DATE +( S2 記号-括弧開 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +時間 M1 名詞-副詞可能 O +八日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +) S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +が S9 助詞-格助詞-一般 O +第 S1 接頭詞-数接続 O +二次世界大戦 T6-1 名詞-数 O +に S9 助詞-格助詞-一般 O +巻き込ま T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +日 S1 名詞-一般 O +」 S2 記号-括弧閉 O +として M9 助詞-格助詞-連語 O +おり M9 動詞-非自立 O +、 S2 記号-読点 O +連邦 M1 名詞-一般 O +政府 M1 名詞-一般 O +機関 M1 名詞-一般 O +の S9 助詞-連体化 O +ビル M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +半旗 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +掲げ T1-9 動詞-自立 O +られ M9 動詞-接尾 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +真珠湾生存者協会 M1 名詞-固有名詞-組織 B-ORGANIZATION +」 S2 記号-括弧閉 O +は S9 助詞-係助詞 O +真珠湾 M1 名詞-固有名詞-地域-一般 B-LOCATION +攻撃 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +体験 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +生き残っ T1-9 動詞-自立 O +た S9 助動詞 O +退役 M1 名詞-サ変接続 O +軍人 M1 名詞-一般 O +ら S9 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +中心 M1 名詞-一般 O +。 S2 記号-句点 O + +大統領 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +( S2 記号-括弧開 O +この M9 連体詞 O +日 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +制定 M1 名詞-サ変接続 O +さ S9 助詞-終助詞 O +れる M9 動詞-接尾 O +まで M9 助詞-副助詞 O +) S2 記号-括弧閉 O +五十三年 T6-1 名詞-数 O +も S9 助詞-係助詞 O +かかっ M9 動詞-自立 O +た S9 助動詞 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +今 S1 名詞-副詞可能 O +、 S2 記号-読点 O +とても M9 副詞-助詞類接続 O +満足 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +述べ T1-9 動詞-自立 O +た S9 助動詞 O +あと M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +国防 M1 名詞-一般 O +予算 M1 名詞-一般 O +の S9 助詞-連体化 O +増額 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +言及 M1 名詞-サ変接続 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +それ M9 名詞-代名詞-一般 O +が S9 助詞-格助詞-一般 O +あなた M9 名詞-代名詞-一般 O +方 S1 名詞-非自立-一般 O +の S9 助詞-連体化 O +犠牲 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +学ん T1-9 動詞-自立 O +だ S9 助動詞 O +もの M9 名詞-非自立-一般 O +だ S9 助動詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +語っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +弁護 M1 名詞-サ変接続 O +側 S1 名詞-接尾-一般 O +、 S2 記号-読点 O +無罪 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +主張 M1 名詞-サ変接続 O + S13 記号-空白 O +3月 T5-1 名詞-副詞可能 B-DATE +2 S5 名詞-数 I-DATE +日 S1 名詞-一般 I-DATE +に S9 助詞-格助詞-一般 O +判決 M1 名詞-サ変接続 O +―― M2 記号-一般 O +東海大 M1 名詞-固有名詞-組織 B-ORGANIZATION +病院 M1 名詞-一般 O +「 S2 記号-括弧開 O +安楽 M1 名詞-一般 O +死 S1 名詞-一般 O +」 S2 記号-括弧閉 O +事件 M1 名詞-一般 O + + S13 記号-空白 O +神奈川 M1 名詞-固有名詞-地域-一般 B-LOCATION +県 S1 名詞-一般 I-LOCATION +伊勢原 M1 名詞-固有名詞-地域-一般 I-LOCATION +市 S1 名詞-一般 I-LOCATION +の S9 助詞-連体化 O +東海大 M1 名詞-固有名詞-組織 B-LOCATION +付属 M1 名詞-サ変接続 I-LOCATION +病院 M1 名詞-一般 I-LOCATION +で S9 助動詞 O +一九九一年四月 T6-1 名詞-数 O +、 S2 記号-読点 O +末期 M1 名詞-一般 O +がん M9 名詞-一般 O +患者 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +塩化カリウム T1-10 名詞-一般 O +を S9 助詞-格助詞-一般 O +注射 M1 名詞-サ変接続 O +し S9 動詞-自立 O +死亡 M1 名詞-サ変接続 O +させ M9 動詞-接尾 O +た S9 助動詞 O +として M9 助詞-格助詞-連語 O +殺人 M1 名詞-一般 O +罪 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +問 S1 名詞-一般 O +われ M9 名詞-代名詞-一般 O +た S9 助動詞 O +元 S1 接頭詞-名詞接続 O +同 S1 接頭詞-名詞接続 O +病院 M1 名詞-一般 O +内科 M1 名詞-一般 O +助手 M1 名詞-一般 O +、 S2 記号-読点 O +徳永 M1 名詞-固有名詞-人名-姓 B-PERSON +雅仁 M1 名詞-固有名詞-人名-名 I-PERSON +被告 M1 名詞-一般 O +( S2 記号-括弧開 O +3 S5 名詞-数 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +第 S1 接頭詞-数接続 O +二十二回公判 T6-1 名詞-数 O +が S9 助詞-格助詞-一般 O +八日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +横浜 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +地裁 M1 名詞-一般 I-ORGANIZATION +( S2 記号-括弧開 O +松浦 M1 名詞-固有名詞-人名-姓 B-PERSON +繁 S1 形容詞-自立 O +裁判 M1 名詞-一般 O +長 S1 形容詞-自立 O +) S2 記号-括弧閉 O +で S9 助動詞 O +開か T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +弁護 M1 名詞-サ変接続 O +側 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +最終 M1 名詞-一般 O +弁論 M1 名詞-サ変接続 O +で S9 助動詞 O +「 S2 記号-括弧開 O +家族 M1 名詞-一般 O +の S9 助詞-連体化 O +要請 M1 名詞-サ変接続 O +による M9 助詞-格助詞-連語 O +被告 M1 名詞-一般 O +の S9 助詞-連体化 O +行為 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +安楽 M1 名詞-一般 O +死に T1-9 動詞-自立 O +準じ T1-9 動詞-自立 O +、 S2 記号-読点 O +罰する T1-9 動詞-自立 O +ほど M9 助詞-副助詞 O +の S9 助詞-連体化 O +違法 M1 名詞-形容動詞語幹 O +性 S1 名詞-一般 O +は S9 助詞-係助詞 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +家族 M1 名詞-一般 O +の S9 助詞-連体化 O +責任 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +問わ T1-9 動詞-自立 O +ず S9 助動詞 O +、 S2 記号-読点 O +医師 M1 名詞-一般 O +だけ M9 助詞-副助詞 O +起訴 M1 名詞-サ変接続 O +した M9 名詞-一般 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +不公平 M1 名詞-形容動詞語幹 O +」 S2 記号-括弧閉 O +など M9 助詞-副助詞 O +として M9 助詞-格助詞-連語 O +公訴 M1 名詞-サ変接続 O +棄却 M1 名詞-サ変接続 O +または M9 接続詞 O +無罪 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +主張 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +この M9 連体詞 O +日 S1 名詞-一般 O +で S9 助動詞 O +審理 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +終了 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +来年 M1 名詞-副詞可能 O +三月 T6-1 名詞-副詞可能 O +二 S6 名詞-数 O +十八日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +に S9 助詞-格助詞-一般 O +判決 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +言い渡さ T1-9 動詞-自立 O +れる M9 動詞-接尾 O +。 S2 記号-句点 O + + S13 記号-空白 O +安楽 M1 名詞-一般 O +死 S1 名詞-一般 O +と S9 助詞-格助詞-引用 O +は S9 助詞-係助詞 O +無縁 M1 名詞-形容動詞語幹 O +の S9 助詞-連体化 O +殺人 M1 名詞-一般 O +行為 M1 名詞-サ変接続 O +として M9 助詞-格助詞-連語 O +懲役 M1 名詞-一般 O +三 S6 名詞-数 O +年 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +求刑 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +検察 M1 名詞-サ変接続 O +側 S1 名詞-接尾-一般 O +に対し T1-9 助詞-格助詞-連語 O +、 S2 記号-読点 O +弁護 M1 名詞-サ変接続 O +側 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +事件 M1 名詞-一般 O +は S9 助詞-係助詞 O +チーム M10 名詞-一般 O +医療 M1 名詞-一般 O +の S9 助詞-連体化 O +崩壊 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +一因 T6-1 名詞-一般 O +だっ M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +また M9 接続詞 O +、 S2 記号-読点 O +家族 M1 名詞-一般 O +は S9 助詞-係助詞 O +死期 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +早める T1-9 動詞-自立 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +明確 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +要請 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ていた M9 形容詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +述べ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +さらに M9 副詞-助詞類接続 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +患者 M1 名詞-一般 O +は S9 助詞-係助詞 O +直前 M1 名詞-一般 O +まで M9 助詞-副助詞 O +のたうち回る T1-9 動詞-自立 O +ほど M9 助詞-副助詞 O +苦痛 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +あっ M9 感動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +末期 M1 名詞-一般 O +で S9 助動詞 O +意思 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +表明 M1 名詞-サ変接続 O +でき M9 動詞-自立 O +ない M9 形容詞-自立 O +場合 M1 名詞-副詞可能 O +、 S2 記号-読点 O +近親 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +本人 M1 名詞-一般 O +の S9 助詞-連体化 O +意思 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +代行 M1 名詞-サ変接続 O +する M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +認め T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +も S9 助詞-係助詞 O +よい M9 形容詞-自立 O +場合 M1 名詞-副詞可能 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +」 S2 記号-括弧閉 O +など M9 助詞-副助詞 O +として M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +安楽 M1 名詞-一般 O +死に T1-9 動詞-自立 O +準じ T1-9 動詞-自立 O +た S9 助動詞 O +行為 M1 名詞-サ変接続 O +だ S9 助動詞 O +と S9 助詞-格助詞-引用 O +主張 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +続く T1-9 動詞-自立 O +最終 M1 名詞-一般 O +陳述 M1 名詞-サ変接続 O +で S9 助動詞 O +、 S2 記号-読点 O +徳永 M1 名詞-固有名詞-人名-姓 B-PERSON +被告 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +お S9 接頭詞-名詞接続 O +騒がせ T1-9 動詞-自立 O +した M9 名詞-一般 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +深く T1-9 形容詞-自立 O +お S9 接頭詞-名詞接続 O +わびし M9 形容詞-自立 O +、 S2 記号-読点 O +反省 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +おり M9 動詞-非自立 O +ます M9 助動詞 O +。 S2 記号-句点 O + +許さ T1-9 動詞-自立 O +れる M9 動詞-接尾 O +なら M9 助動詞 O +医療 M1 名詞-一般 O +の S9 助詞-連体化 O +臨床 M1 名詞-一般 O +の S9 助詞-連体化 O +現場 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +戻り T1-9 動詞-自立 O +、 S2 記号-読点 O +患者 M1 名詞-一般 O +の S9 助詞-連体化 O +人生 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +大切 M1 名詞-形容動詞語幹 O +にし M9 名詞-一般 O +、 S2 記号-読点 O +微力 M1 名詞-形容動詞語幹 O +を S9 助詞-格助詞-一般 O +尽くし T1-9 動詞-自立 O +たい M9 助動詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +用意 M1 名詞-サ変接続 O +した M9 名詞-一般 O +メモ M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +読み上げ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +島根 M1 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +益田 M1 名詞-固有名詞-組織 B-ORGANIZATION +市 S1 名詞-一般 O +の S9 助詞-連体化 O +中学生 M1 名詞-一般 O +自殺 M1 名詞-サ変接続 O +事件 M1 名詞-一般 O + S13 記号-空白 O +市 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +いじめ M9 名詞-一般 O +を S9 助詞-格助詞-一般 O +認め T1-9 動詞-自立 O +、 S2 記号-読点 O +両親 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +根絶 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +約束 M1 名詞-サ変接続 O +し S9 動詞-自立 O +和解 M1 名詞-サ変接続 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +中学生 M1 名詞-一般 O +の S9 助詞-連体化 O +長男 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +自殺 M1 名詞-サ変接続 O +した M9 名詞-一般 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +校内 M1 名詞-一般 O +で S9 助動詞 O +の S9 助詞-連体化 O +悪質 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +いじめ M9 名詞-一般 O +や S9 助詞-並立助詞 O +、 S2 記号-読点 O +教師 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +万引き T1-9 名詞-サ変接続 O +の S9 助詞-連体化 O +疑い T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +かけ M9 動詞-自立 O +て S9 助詞-接続助詞 O +事情 M1 名詞-一般 O +聴取 M1 名詞-サ変接続 O +した M9 名詞-一般 O +こと M9 名詞-非自立-一般 O +など M9 助詞-副助詞 O +が S9 助詞-格助詞-一般 O +原因 M1 名詞-一般 O +」 S2 記号-括弧閉 O +として M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +島根 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +県 S1 名詞-一般 I-ORGANIZATION +益田 M1 名詞-固有名詞-組織 I-ORGANIZATION +市 S1 名詞-一般 O +の S9 助詞-連体化 O +電器 M1 名詞-一般 O +店 S1 名詞-一般 O +経営 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +( S2 記号-括弧開 O +3 S5 名詞-数 O +) S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +妻 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +益田 M1 名詞-固有名詞-組織 B-ORGANIZATION +市 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +相手取り T1-9 動詞-自立 O +慰謝 M1 名詞-サ変接続 O +料 S1 動詞-自立 O +、 S2 記号-読点 O +逸失 M1 名詞-一般 O +利益 M1 名詞-一般 O +など M9 助詞-副助詞 O +三 S6 名詞-数 O +千万 M6 副詞-一般 B-MONEY +円 S1 名詞-一般 I-MONEY +の S9 助詞-連体化 O +支払い T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +求め T1-9 動詞-自立 O +た S9 助動詞 O +損害 M1 名詞-サ変接続 O +賠償 M1 名詞-サ変接続 O +請求 M1 名詞-サ変接続 O +訴訟 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +和解 M1 名詞-サ変接続 O +交渉 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +七日 T6-1 名詞-副詞可能 B-DATE +、 S2 記号-読点 O +松江 M1 名詞-固有名詞-地域-一般 B-LOCATION +地裁 M1 名詞-一般 O +で S9 助動詞 O +あり M9 動詞-自立 O +、 S2 記号-読点 O +和解 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +成立 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +市 S1 名詞-一般 O +側 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +いじめ M9 名詞-一般 O +や S9 助詞-並立助詞 O +、 S2 記号-読点 O +教師 M1 名詞-一般 O +の S9 助詞-連体化 O +事情 M1 名詞-一般 O +聴取 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +自殺 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +因果 M1 名詞-一般 O +関係 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +認め T1-9 動詞-自立 O +なかっ M9 形容詞-自立 O +た S9 助動詞 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +長男 M1 名詞-一般 O +に対する T1-9 助詞-格助詞-連語 O +いじめ M9 名詞-一般 O +が S9 助詞-格助詞-一般 O +あっ M9 感動詞 O +た S9 助動詞 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +認め T1-9 動詞-自立 O +、 S2 記号-読点 O +自殺 M1 名詞-サ変接続 O +について M9 助詞-格助詞-連語 O +遺憾 M1 名詞-形容動詞語幹 O +の S9 助詞-連体化 O +意 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +表明 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +学校 M1 名詞-一般 O +で S9 助動詞 O +の S9 助詞-連体化 O +いじめ M9 名詞-一般 O +根絶 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +努力 M1 名詞-サ変接続 O +する M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +約束 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +両親 M1 名詞-一般 O +は S9 助詞-係助詞 O +賠償 M1 名詞-サ変接続 O +請求 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +放棄 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +訴状 M1 名詞-一般 O +による M9 助詞-格助詞-連語 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +長男 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +益田 M1 名詞-固有名詞-組織 B-ORGANIZATION +市立 M1 名詞-一般 O +中学 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +入学 M1 名詞-サ変接続 O +当時 M1 名詞-副詞可能 O +から M9 助詞-格助詞-一般 O +いじめ M9 名詞-一般 O +グループ M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +暴行 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +三 S6 名詞-数 O +年生 M1 名詞-接尾-助数詞 O +だっ M9 助動詞 O +た S9 助動詞 O +一昨年六月二十二日 T6-1 名詞-数 O +、 S2 記号-読点 O +下級生 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +スーパー M10 名詞-一般 O +で S9 助動詞 O +万引き T1-9 名詞-サ変接続 O +した M9 名詞-一般 O +こと M9 名詞-非自立-一般 O +で S9 助動詞 O +担任 M1 名詞-サ変接続 O +教諭 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +呼び出さ T1-9 動詞-自立 O +れ S9 助動詞 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +万引き T1-9 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +強要 M1 名詞-サ変接続 O +した M9 名詞-一般 O +ので M9 助詞-接続助詞 O +は S9 助詞-係助詞 O +ない M9 形容詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +以後 M1 名詞-副詞可能 O +三 S6 名詞-数 O +日間 M1 名詞-接尾-助数詞 O +にわたって M9 助詞-格助詞-連語 O +事情 M1 名詞-一般 O +聴取 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +事情 M1 名詞-一般 O +聴取 M1 名詞-サ変接続 O +最終 M1 名詞-一般 B-DATE +日 S1 名詞-一般 I-DATE +の S9 助詞-連体化 O +同月 M1 名詞-副詞可能 O +二 S6 名詞-数 O +十四日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +に S9 助詞-格助詞-一般 O +下校 M1 名詞-サ変接続 O +路 S1 名詞-一般 O +わき M9 名詞-一般 O +の S9 助詞-連体化 O +木 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +首 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +つっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +自殺 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +憂楽帳 M1 名詞-固有名詞-一般 O +] S2 記号-括弧閉 O +あっ M9 感動詞 O +危ない T1-9 形容詞-自立 O +( S2 記号-括弧開 O +政 S1 名詞-一般 O +) S2 記号-括弧閉 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +あ S9 フィラー O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +思っ T1-9 動詞-自立 O +た S9 助動詞 O +瞬間 M1 名詞-副詞可能 O +、 S2 記号-読点 O +舞台 M1 名詞-一般 O +の S9 助詞-連体化 O +新珠 M1 名詞-固有名詞-人名-姓 B-PERSON +三千代 T6-1 名詞-固有名詞-人名-名 I-PERSON +さん M9 名詞-接尾-人名 O +の S9 助詞-連体化 O +体 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +前のめり T1-9 名詞-一般 O +に S9 助詞-格助詞-一般 O +なり M9 動詞-自立 O +、 S2 記号-読点 O +柱 S1 名詞-一般 O +で S9 助動詞 O +したたか M9 名詞-一般 O +顔 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +打っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +倒れ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +大阪 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +・ S2 記号-一般 I-ORGANIZATION +劇場 M1 名詞-一般 I-ORGANIZATION +飛天 M1 名詞-固有名詞-組織 I-ORGANIZATION +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +女 S1 名詞-一般 B-OPTIONAL +たち M9 名詞-接尾-一般 I-OPTIONAL +の S9 助詞-連体化 I-OPTIONAL +忠臣蔵 M1 名詞-固有名詞-一般 I-OPTIONAL +」 S2 記号-括弧閉 O +で S9 助動詞 O +の S9 助詞-連体化 O +アクシデント M10 名詞-一般 O +。 S2 記号-句点 O + +新珠 M1 名詞-固有名詞-人名-姓 B-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +瑶泉院 M1 名詞-固有名詞-人名-一般 B-PERSON +の S9 助詞-連体化 O +役 S1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +最後 M1 名詞-一般 O +の S9 助詞-連体化 O +別れ T1-9 名詞-一般 O +に S9 助詞-格助詞-一般 O +きた M9 名詞-一般 O +大石 M1 名詞-固有名詞-人名-姓 B-PERSON +内蔵助 M1 名詞-固有名詞-人名-名 I-PERSON +を S9 助詞-格助詞-一般 O +見送る T1-9 動詞-自立 O +場面 M1 名詞-一般 O +、 S2 記号-読点 O +足 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +もつれ M9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +だっ M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +途中 M1 名詞-副詞可能 O +だが M9 接続詞 O +幕 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +下り T1-9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + +重傷 M1 名詞-一般 O +なの M9 動詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +。 S2 記号-句点 O + +しばらく M9 副詞-助詞類接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +幕 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +上がる T1-9 動詞-自立 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +舞台 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +さっき M9 副詞-助詞類接続 O +まで M9 助詞-副助詞 O +と S9 助詞-格助詞-引用 O +変わら T1-9 動詞-自立 O +ぬ S9 助動詞 O +新珠 M1 名詞-固有名詞-人名-姓 B-PERSON +さん M9 名詞-接尾-人名 O +の S9 助詞-連体化 O +顔 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +あっ M9 感動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +しかも M9 接続詞 O +それ M9 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +大石 M1 名詞-固有名詞-人名-姓 B-PERSON +と S9 助詞-格助詞-引用 O +最後 M1 名詞-一般 O +の S9 助詞-連体化 O +別れ T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +した M9 名詞-一般 O +瑶泉院 M1 名詞-固有名詞-人名-一般 B-PERSON +の S9 助詞-連体化 O +顔 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +場内 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +どっと M9 副詞-一般 O +拍手 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +起こっ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +新珠 M1 名詞-固有名詞-人名-姓 B-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +全く T1-9 副詞-助詞類接続 O +動じる T1-9 動詞-自立 O +気配 M1 名詞-一般 O +も S9 助詞-係助詞 O +なく M9 形容詞-自立 O +、 S2 記号-読点 O +沈着 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +瑶泉院 M1 名詞-固有名詞-人名-一般 B-PERSON +を S9 助詞-格助詞-一般 O +演じ T1-9 動詞-自立 O +終え T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +暗転 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +なる M9 動詞-自立 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +ひときわ M9 副詞-一般 O +高い T1-9 形容詞-自立 O +拍手 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +劇場 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +覆っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +痛い T1-9 形容詞-自立 O +うえ M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +相当 M1 副詞-助詞類接続 O +めまい M9 名詞-一般 O +が S9 助詞-格助詞-一般 O +した M9 名詞-一般 O +はず M9 名詞-非自立-一般 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +客 S1 名詞-一般 O +の S9 助詞-連体化 O +声 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +しかし M9 接続詞 O +みじん M9 名詞-一般 O +も S9 助詞-係助詞 O +それ M9 名詞-代名詞-一般 O +を S9 助詞-格助詞-一般 O +感じ T1-9 名詞-一般 O +させ M9 動詞-接尾 O +ず S9 助動詞 O +、 S2 記号-読点 O +すぐ M9 副詞-助詞類接続 O +に S9 助詞-格助詞-一般 O +芝居 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +続け T1-9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +ベテラン M10 名詞-一般 O +ならでは M9 名詞-接尾-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +昨年 M1 名詞-副詞可能 B-DATE +、 S2 記号-読点 O +東京 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +劇場 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +立ち回り T1-9 名詞-一般 O +の S9 助詞-連体化 O +最中 M1 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +かつら M9 名詞-一般 O +が S9 助詞-格助詞-一般 O +飛ん T1-9 動詞-自立 O +だの M9 助詞-並立助詞 O +を S9 助詞-格助詞-一般 O +見 S1 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +深刻 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +場面 M1 名詞-一般 O +なのに M9 接続詞 O +役者 M1 名詞-一般 O +も S9 助詞-係助詞 O +客 S1 名詞-一般 O +も S9 助詞-係助詞 O +大笑い T1-9 名詞-サ変接続 O +。 S2 記号-句点 O + +短刀 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +抜い T1-9 動詞-自立 O +たら M9 助動詞 O +、 S2 記号-読点 O +間違っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +鞘 S1 名詞-一般 O +の S9 助詞-連体化 O +方 S1 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +握っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +ので M9 助詞-接続助詞 O +刃 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +なく M9 形容詞-自立 O +、 S2 記号-読点 O +思わず T1-9 副詞-助詞類接続 O +「 S2 記号-括弧開 O +あ S9 フィラー O +、 S2 記号-読点 O +ない M9 形容詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +叫ん T1-9 動詞-自立 O +だ S9 助動詞 O +男優 M1 名詞-一般 O +も S9 助詞-係助詞 O +いた M9 形容詞-自立 O +。 S2 記号-句点 O + +舞台 M1 名詞-一般 O +の S9 助詞-連体化 O +アクシデント M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +とっさ M9 名詞-一般 O +に S9 助詞-格助詞-一般 O +どう M9 副詞-助詞類接続 O +乗り切る T1-9 動詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O +。 S2 記号-句点 O + +これ M9 名詞-代名詞-一般 O +も S9 助詞-係助詞 O +役者 M1 名詞-一般 O +の S9 助詞-連体化 O +腕 S1 名詞-一般 O +で S9 助動詞 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + +観客 M1 名詞-一般 O +は S9 助詞-係助詞 O +そこ M9 名詞-代名詞-一般 O +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +ドラマ M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +見 S1 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +政 S1 名詞-一般 O +) S2 記号-括弧閉 O + +「 S2 記号-括弧開 O +お歳暮 T9-1 名詞-一般 O +」 S2 記号-括弧閉 O +包装 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +終わる T1-9 動詞-自立 O +と S9 助詞-格助詞-引用 O +ポケベル M10 名詞-一般 O +で S9 助動詞 O +知らせる T1-9 動詞-自立 O +サービス M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +本格 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +導入 M1 名詞-サ変接続 O + S13 記号-空白 O +難波 M1 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +高島屋 M1 名詞-固有名詞-組織 B-ORGANIZATION + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +歳暮 M1 名詞-一般 O +商戦 M1 名詞-一般 O +も S9 助詞-係助詞 O +中盤 M1 名詞-副詞可能 O +戦 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +入り T1-9 名詞-接尾-サ変接続 O +、 S2 記号-読点 O +バブル M10 名詞-一般 O +崩壊 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +低迷 M1 名詞-サ変接続 O +する M9 動詞-自立 O +歳暮 M1 名詞-一般 O +商戦 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +勝ち抜こ T1-9 動詞-自立 O +うと M9 形容詞-自立 O +、 S2 記号-読点 O +各 S1 接頭詞-名詞接続 O +デパート M10 名詞-一般 O +は S9 助詞-係助詞 O +あの手この手 T9-1 名詞-一般 O +の S9 助詞-連体化 O +商法 M1 名詞-一般 O +で S9 助動詞 O +客 S1 名詞-一般 O +獲得 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +懸命 M1 名詞-形容動詞語幹 O +。 S2 記号-句点 O + +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +難波 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +高島屋 M1 名詞-固有名詞-組織 B-ORGANIZATION +大阪 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +店 S1 名詞-一般 I-ORGANIZATION +は S9 助詞-係助詞 O +今冬 M1 名詞-副詞可能 O +から M9 助詞-格助詞-一般 O +、 S2 記号-読点 O +歳暮 M1 名詞-一般 O +商品 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +包装 M1 名詞-サ変接続 O +する M9 動詞-自立 O +待ち時間 T9-1 名詞-一般 O +中 S1 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +客 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +買い物 T9-1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +もらお M9 動詞-自立 O +うと M9 形容詞-自立 O +、 S2 記号-読点 O +包装 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +終わる T1-9 動詞-自立 O +と S9 助詞-格助詞-引用 O +ポケベル M10 名詞-一般 O +で S9 助動詞 O +知らせる T1-9 動詞-自立 O +サービス M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +本格 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +導入 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +時間 M1 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +追わ T1-9 動詞-自立 O +れる M9 動詞-接尾 O +師走 M1 名詞-一般 O +の S9 助詞-連体化 O +買い物 T9-1 名詞-サ変接続 O +客 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +時 S1 名詞-非自立-副詞可能 O +は S9 助詞-係助詞 O +“ S2 記号-括弧開 O +金 S1 名詞-一般 O +” S2 記号-括弧閉 O +なり M9 動詞-自立 O +」 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +アピール M10 名詞-サ変接続 O +する M9 動詞-自立 O +新手 M1 名詞-一般 O +の S9 助詞-連体化 O +ギフト M10 名詞-サ変接続 O +商法 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +評判 M1 名詞-一般 O +だ S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +同店 M1 名詞-一般 O +による M9 助詞-格助詞-連語 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +バブル M10 名詞-一般 O +崩壊 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +歳暮 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +直接 M1 名詞-副詞可能 O +持 S1 名詞-サ変接続 O +参する T1-9 動詞-自立 O +商店 M1 名詞-一般 O +主 S1 名詞-形容動詞語幹 O +や S9 助詞-並立助詞 O +会社 M1 名詞-一般 O +関係 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +増加 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +昨年 M1 名詞-副詞可能 B-DATE +の S9 助詞-連体化 O +持ち帰り T1-9 名詞-一般 O +は S9 助詞-係助詞 O +前年 M1 名詞-副詞可能 B-DATE +に S9 助詞-格助詞-一般 O +比べ T1-9 動詞-自立 O +約 S1 接頭詞-数接続 O +二百件増 T6-1 名詞-数 O +の S9 助詞-連体化 O +約 S1 接頭詞-数接続 O +四千七百件 T6-1 名詞-数 O +に S9 助詞-格助詞-一般 O +達し T1-9 動詞-自立 O +、 S2 記号-読点 O +今年 M1 名詞-副詞可能 B-DATE +は S9 助詞-係助詞 O +五千件 T6-1 名詞-数 O +に S9 助詞-格助詞-一般 O +迫り T1-9 動詞-自立 O +そう M9 副詞-助詞類接続 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + + S13 記号-空白 O +しかし M9 接続詞 O +包装 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +混雑 M1 名詞-サ変接続 O +すると M9 接続詞 O +三 S6 名詞-数 O +十分 T6-1 名詞-形容動詞語幹 O +前後 M1 名詞-副詞可能 O +かかる M9 動詞-自立 O +ため M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +待ち時間 T9-1 名詞-一般 O +中 S1 名詞-非自立-副詞可能 O +も S9 助詞-係助詞 O +他の T1-9 連体詞 O +売り場 T9-1 名詞-一般 O +で S9 助動詞 O +クリスマス M10 名詞-一般 O +など M9 助詞-副助詞 O +別 S1 名詞-一般 O +の S9 助詞-連体化 O +商品 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +買っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +もらお M9 動詞-自立 O +うと M9 形容詞-自立 O +、 S2 記号-読点 O +三 S6 名詞-数 B-DATE +年 S1 名詞-一般 I-DATE +前 S1 名詞-副詞可能 I-DATE +から M9 助詞-格助詞-一般 O +ポケベル M10 名詞-一般 O +サービス M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +試験 M1 名詞-サ変接続 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +実施 M1 名詞-サ変接続 O +し S9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +現在 M1 名詞-副詞可能 O +、 S2 記号-読点 O +用意 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +ポケベル M10 名詞-一般 O +は S9 助詞-係助詞 O +五 S6 名詞-数 O +台 S1 名詞-一般 O +だが M9 接続詞 O +、 S2 記号-読点 O +官民 M1 名詞-一般 O +の S9 助詞-連体化 O +ボーナス M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +出そろう T1-9 動詞-自立 O +中旬 M1 名詞-副詞可能 B-DATE +以降 M1 名詞-副詞可能 O +は S9 助詞-係助詞 O +二十台 T6-1 名詞-数 O +に S9 助詞-格助詞-一般 O +増やす T1-9 動詞-自立 O +計画 M1 名詞-サ変接続 O +だ S9 助動詞 O +。 S2 記号-句点 O + +京都 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +の S9 助詞-連体化 O +地下鉄 M1 名詞-一般 O +建設 M1 名詞-サ変接続 O +費 S1 名詞-接尾-一般 O +膨張 M1 名詞-サ変接続 O +問題 M1 名詞-ナイ形容詞語幹 O + S13 記号-空白 O +交通 M1 名詞-一般 O +局 S1 名詞-サ変接続 O +だけ M9 助詞-副助詞 O +ベア M10 名詞-一般 O +見送り T1-9 名詞-一般 O + S13 記号-空白 O +財政 M1 名詞-一般 O +悪化 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +労組 M1 名詞-一般 O +も S9 助詞-係助詞 O +同意 M1 名詞-サ変接続 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +市営 M1 名詞-一般 O +地下鉄 M1 名詞-一般 O +東西線 M1 名詞-固有名詞-一般 B-LOCATION +の S9 助詞-連体化 O +建設 M1 名詞-サ変接続 O +費 S1 名詞-接尾-一般 O +膨張 M1 名詞-サ変接続 O +問題 M1 名詞-ナイ形容詞語幹 O +に S9 助詞-格助詞-一般 O +絡み T1-9 動詞-自立 O +、 S2 記号-読点 O +京都 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +交通 M1 名詞-一般 O +局 S1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +労組 M1 名詞-一般 O +側 S1 名詞-接尾-一般 O +に対し T1-9 助詞-格助詞-連語 O +、 S2 記号-読点 O +今年度 M1 名詞-副詞可能 B-DATE +の S9 助詞-連体化 O +職員 M1 名詞-一般 O +給与 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ベースアップ M10 名詞-一般 O +見送り T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +提示 M1 名詞-サ変接続 O +、 S2 記号-読点 O +八 S6 名詞-数 O +日夜 M1 名詞-副詞可能 O +の S9 助詞-連体化 O +団体 M1 名詞-一般 O +交渉 M1 名詞-サ変接続 O +で S9 助動詞 O +労組 M1 名詞-一般 O +側 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +勤務 M1 名詞-サ変接続 O +形態 M1 名詞-一般 O +の S9 助詞-連体化 O +改善 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +など M9 助詞-副助詞 O +を S9 助詞-格助詞-一般 O +条件 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +見送り T1-9 名詞-一般 O +に S9 助詞-格助詞-一般 O +同意 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +同局 M1 名詞-一般 O +による M9 助詞-格助詞-連語 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +管理 M1 名詞-サ変接続 O +職 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +含む T1-9 動詞-自立 O +全 S1 接頭詞-名詞接続 O +職員 M1 名詞-一般 O +約 S1 接頭詞-数接続 O +二千八百五十人分 T6-1 名詞-数 O +で S9 助動詞 O +約 S1 接頭詞-数接続 O +二億六千万円 T6-1 名詞-数 O +の S9 助詞-連体化 O +人件 M1 名詞-一般 O +費 S1 名詞-接尾-一般 O +節減 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +出来る T1-9 動詞-自立 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + + S13 記号-空白 O +東西線 M1 名詞-固有名詞-一般 O +建設 M1 名詞-サ変接続 O +をめぐって M9 助詞-格助詞-連語 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +建設 M1 名詞-サ変接続 O +費 S1 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +当初 M1 名詞-副詞可能 O +計画 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +約 S1 接頭詞-数接続 O +二 S6 名詞-数 B-PERCENT +倍 S1 名詞-一般 I-PERCENT +の S9 助詞-連体化 O +約 S1 接頭詞-数接続 O +四千七百億円 T6-1 名詞-数 O +に S9 助詞-格助詞-一般 O +膨れ T1-9 動詞-自立 O +上がる T1-9 動詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +今夏 M1 名詞-副詞可能 B-DATE +、 S2 記号-読点 O +判明 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +ベア M10 名詞-一般 O +見送り T1-9 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +同局 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +財政 M1 名詞-一般 O +再建 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +作っ T1-9 動詞-自立 O +た S9 助動詞 O +「 S2 記号-括弧開 O +市 S1 名詞-一般 O +交通 M1 名詞-一般 O +事業 M1 名詞-一般 O +の S9 助詞-連体化 O +健全 M1 名詞-形容動詞語幹 B-ARTIFACT +化 S1 名詞-接尾-サ変接続 I-ARTIFACT +計画 M1 名詞-サ変接続 I-ARTIFACT +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +一環 T6-1 名詞-一般 O +として M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +京都 M1 名詞-固有名詞-地域-一般 B-LOCATION +交通 M1 名詞-一般 O +労組 M1 名詞-一般 O +( S2 記号-括弧開 O +約 S1 接頭詞-数接続 O +二千五百人 T6-1 名詞-数 O +) S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +京都市交通局労組 M1 名詞-固有名詞-組織 B-ORGANIZATION +( S2 記号-括弧開 O +約 S1 接頭詞-数接続 O +百人 T6-1 名詞-固有名詞-地域-一般 O +) S2 記号-括弧閉 O +に S9 助詞-格助詞-一般 O +示し T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +市電 M1 名詞-一般 O +廃止 M1 名詞-サ変接続 O +時 S1 名詞-非自立-副詞可能 O +など M9 助詞-副助詞 O +一 S6 名詞-数 B-DATE +〇 S2 記号-一般 I-DATE +年代 M1 名詞-一般 I-DATE +後半 M1 名詞-副詞可能 I-DATE +に S9 助詞-格助詞-一般 O +ベア M10 名詞-一般 O +先送り T1-9 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +した M9 名詞-一般 O +こと M9 名詞-非自立-一般 O +は S9 助詞-係助詞 O +ある M9 動詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +見送り T1-9 名詞-一般 O +は S9 助詞-係助詞 O +初めて T1-9 副詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +一方 T6-1 接続詞 O +、 S2 記号-読点 O +市長部局 M1 名詞-固有名詞-組織 B-ORGANIZATION +、 S2 記号-読点 O +水道局 M1 名詞-固有名詞-組織 B-ORGANIZATION +など M9 助詞-副助詞 O +他 S1 名詞-一般 O +部局 M1 名詞-一般 O +では M9 接続詞 O +、 S2 記号-読点 O +今年 M1 名詞-副詞可能 B-DATE +九月 T6-1 名詞-副詞可能 I-DATE +の S9 助詞-連体化 O +市 S1 名詞-一般 B-ORGANIZATION +人事 M1 名詞-一般 I-ORGANIZATION +委員 M1 名詞-一般 I-ORGANIZATION +会 S1 名詞-一般 I-ORGANIZATION +勧告 M1 名詞-サ変接続 O +通り T1-9 名詞-一般 O +、 S2 記号-読点 O +四月 T6-1 名詞-副詞可能 B-DATE +に S9 助詞-格助詞-一般 O +さかのぼっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +一 S6 名詞-数 B-PERCENT +・ S2 記号-一般 I-PERCENT +二 S6 名詞-数 I-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +引き上げる T1-9 動詞-自立 O +こと M9 名詞-非自立-一般 O +で S9 助動詞 O +労使 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +合意 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +みんな M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +広場 M1 名詞-一般 O +] S2 記号-括弧閉 O +なぜ M9 副詞-助詞類接続 O +鳥獣 M1 名詞-一般 O +保護 M1 名詞-サ変接続 O +区 S1 名詞-一般 O +でも M9 助詞-副助詞 O +駆除 M1 名詞-サ変接続 O +する M9 動詞-自立 O +のか M9 動詞-自立 O += S2 記号-一般 O +自営業 M1 名詞-一般 O +・ S2 記号-一般 O +野村 M1 名詞-固有名詞-人名-姓 B-PERSON +修一 T1-6 名詞-固有名詞-人名-名 I-PERSON + S13 記号-空白 O +4 S5 名詞-数 O + + S13 記号-空白 O +( S2 記号-括弧開 O +宇都宮 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +) S2 記号-括弧閉 O + + S13 記号-空白 O +奥日光 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +シカ M10 名詞-一般 O +の S9 助詞-連体化 O +食害 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +千頭 T6-1 名詞-固有名詞-人名-姓 B-PERSON +を S9 助詞-格助詞-一般 O +駆除 M1 名詞-サ変接続 O +、 S2 記号-読点 O +別に T1-9 副詞-一般 O +一般 T6-1 名詞-一般 O +ハンター M10 名詞-一般 O +の S9 助詞-連体化 O +狩猟 M1 名詞-サ変接続 O +八 S6 名詞-数 O +百頭 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +を S9 助詞-格助詞-一般 O +予定 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +報道 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +あり M9 動詞-自立 O +まし M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +月 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +一回 T6-1 名詞-副詞可能 B-DATE +は S9 助詞-係助詞 O +日光 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +山々 T1-2 名詞-一般 O +を S9 助詞-格助詞-一般 O +歩い T1-9 動詞-自立 O +てい M9 名詞-一般 O +ます M9 助動詞 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +納得 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +いか M9 副詞-一般 O +ない M9 形容詞-自立 O +ところが M9 接続詞 O +あり M9 動詞-自立 O +ます M9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +駆除 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +鳥獣 M1 名詞-一般 O +保護 M1 名詞-サ変接続 O +区 S1 名詞-一般 O +六百二十頭 T6-1 名詞-数 O +、 S2 記号-読点 O +狩猟 M1 名詞-サ変接続 O +区 S1 名詞-一般 O +三百八十頭 T6-1 名詞-数 O +だ S9 助動詞 O +そうですが M9 接続詞 O +、 S2 記号-読点 O +なぜ M9 副詞-助詞類接続 O +鳥獣 M1 名詞-一般 O +保護 M1 名詞-サ変接続 O +区 S1 名詞-一般 O +で S9 助動詞 O +駆除 M1 名詞-サ変接続 O +し S9 動詞-自立 O +なけれ M9 形容詞-自立 O +ば S9 助詞-接続助詞 O +なら M9 助動詞 O +ない M9 形容詞-自立 O +ので M9 助詞-接続助詞 O +すか M9 名詞-一般 O +。 S2 記号-句点 O + +数 S1 名詞-数 O +が S9 助詞-格助詞-一般 O +足り T1-9 動詞-自立 O +ない M9 形容詞-自立 O +なら M9 助動詞 O +、 S2 記号-読点 O +狩猟 M1 名詞-サ変接続 O +区 S1 名詞-一般 O +と S9 助詞-格助詞-引用 O +一般 T6-1 名詞-一般 O +ハンター M10 名詞-一般 O +の S9 助詞-連体化 O +狩猟 M1 名詞-サ変接続 O +分 S1 動詞-自立 O +を S9 助詞-格助詞-一般 O +増やす T1-9 動詞-自立 O +べき M9 助動詞 O +で S9 助動詞 O +、 S2 記号-読点 O +動物 M1 名詞-一般 O +の S9 助詞-連体化 O +聖域 M1 名詞-一般 O +として M9 助詞-格助詞-連語 O +設定 M1 名詞-サ変接続 O +した M9 名詞-一般 O +鳥獣 M1 名詞-一般 O +保護 M1 名詞-サ変接続 O +区 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +まで M9 助詞-副助詞 O +踏み込む T1-9 動詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +許さ T1-9 動詞-自立 O +れる M9 動詞-接尾 O +の S9 助詞-連体化 O +でしょ M9 助動詞 O +うか M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +雪 S1 名詞-一般 O +の S9 助詞-連体化 O +多い T1-9 形容詞-自立 O +冬 S1 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +シカ M10 名詞-一般 O +は S9 助詞-係助詞 O +半減 M1 名詞-サ変接続 O +する M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +明らか T1-9 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +てい M9 名詞-一般 O +ます M9 助動詞 O +。 S2 記号-句点 O + +他 S1 名詞-一般 O +地域 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +追 S1 接頭詞-名詞接続 O +われ M9 名詞-代名詞-一般 O +た S9 助動詞 O +シカ M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +日光 M1 名詞-固有名詞-地域-一般 B-LOCATION +に S9 助詞-格助詞-一般 O +集まる T1-9 動詞-自立 O +とも M9 助詞-副助詞 O +聞き T1-9 動詞-自立 O +ます M9 助動詞 O +。 S2 記号-句点 O + +さらに M9 副詞-助詞類接続 O +、 S2 記号-読点 O +食害 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ひどい M9 形容詞-自立 O +所 S1 名詞-接尾-一般 O +は S9 助詞-係助詞 O +山中 M1 名詞-一般 O +の S9 助詞-連体化 O +自然 M1 名詞-形容動詞語幹 O +林 S1 名詞-一般 O +では M9 接続詞 O +なく M9 形容詞-自立 O +、 S2 記号-読点 O +林道 M1 名詞-一般 O +沿い T1-9 名詞-接尾-一般 O +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +人手 M1 名詞-一般 O +の S9 助詞-連体化 O +入っ T1-9 動詞-自立 O +た S9 助動詞 O +所 S1 名詞-接尾-一般 O +という M9 助詞-格助詞-連語 O +印象 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +ます M9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +もし M9 副詞-一般 O +、 S2 記号-読点 O +その M9 連体詞 O +区域 M1 名詞-一般 O +で S9 助動詞 O +どうしても M9 副詞-一般 O +駆除 M1 名詞-サ変接続 O +する M9 動詞-自立 O +という M9 助詞-格助詞-連語 O +の S9 助詞-連体化 O +なら M9 助動詞 O +、 S2 記号-読点 O +保護 M1 名詞-サ変接続 O +区 S1 名詞-一般 O +の S9 助詞-連体化 O +線引き T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +改めて T1-9 副詞-一般 O +狩猟 M1 名詞-サ変接続 O +区 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +変更 M1 名詞-サ変接続 O +すべ M9 名詞-一般 O +きだ M9 名詞-固有名詞-人名-姓 O +と S9 助詞-格助詞-引用 O +考え T1-9 名詞-一般 O +ます M9 助動詞 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +みんな M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +広場 M1 名詞-一般 O +] S2 記号-括弧閉 O +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +対応 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +? S2 記号-一般 O +! S2 記号-一般 O += S2 記号-一般 O +予備校 M1 名詞-一般 O +生 S1 名詞-形容動詞語幹 O +・ S2 記号-一般 O +綿田 M1 名詞-固有名詞-人名-姓 B-PERSON +絵美 M1 名詞-固有名詞-人名-名 I-PERSON + S13 記号-空白 O +1 S5 名詞-数 O + + S13 記号-空白 O +( S2 記号-括弧開 O +東 S1 名詞-一般 B-LOCATION +京都 M1 名詞-固有名詞-地域-一般 I-LOCATION +中央 M1 名詞-一般 I-LOCATION +区 S1 名詞-一般 I-LOCATION +) S2 記号-括弧閉 O + + S13 記号-空白 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +切手 M1 名詞-一般 O +の S9 助詞-連体化 O +図案 M1 名詞-一般 O +として M9 助詞-格助詞-連語 O +原爆 M1 名詞-一般 O +の S9 助詞-連体化 O +キノコ M10 名詞-一般 O +雲 S1 名詞-一般 O +と S9 助詞-格助詞-引用 O +原爆 M1 名詞-一般 O +投下 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +肯定 M1 名詞-サ変接続 O +する M9 動詞-自立 O +文章 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +採用 M1 名詞-サ変接続 O +しよう M9 名詞-一般 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +と S9 助詞-格助詞-引用 O +聞き T1-9 動詞-自立 O +、 S2 記号-読点 O +日本人 M1 名詞-一般 O +の S9 助詞-連体化 O +大半 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +に対して T1-9 助詞-格助詞-連語 O +不快 M1 名詞-形容動詞語幹 O +感 S1 名詞-一般 O +や S9 助詞-並立助詞 O +憤り T1-9 動詞-自立 O +を S9 助詞-格助詞-一般 O +感じ T1-9 名詞-一般 O +た S9 助動詞 O +ので M9 助詞-接続助詞 O +は S9 助詞-係助詞 O +ない M9 形容詞-自立 O +だろ M9 助動詞 O +うか M9 動詞-自立 O +。 S2 記号-句点 O + +実際 M1 副詞-助詞類接続 O +に S9 助詞-格助詞-一般 O +身内 M1 名詞-一般 O +や S9 助詞-並立助詞 O +自身 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +被爆 M1 名詞-サ変接続 O +した M9 名詞-一般 O +人 S1 名詞-一般 O +だけ M9 助詞-副助詞 O +で S9 助動詞 O +なく M9 形容詞-自立 O +、 S2 記号-読点 O +被爆 M1 名詞-サ変接続 O +国 S1 名詞-一般 O +の S9 助詞-連体化 O +国民 M1 名詞-一般 O +として M9 助詞-格助詞-連語 O +の S9 助詞-連体化 O +感情 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +、 S2 記号-読点 O +私 S1 名詞-代名詞-一般 O +を S9 助詞-格助詞-一般 O +含め T1-9 動詞-自立 O +多く T1-9 名詞-副詞可能 O +の S9 助詞-連体化 O +人 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +拒否 M1 名詞-サ変接続 O +反応 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +示し T1-9 動詞-自立 O +たと M9 動詞-自立 O +思う T1-9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +しかし M9 接続詞 O +、 S2 記号-読点 O +この M9 連体詞 O +“ S2 記号-括弧開 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +対 S1 名詞-接続詞的 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +” S2 記号-括弧閉 O +の S9 助詞-連体化 O +図式 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +“ S2 記号-括弧開 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +対 S1 名詞-接続詞的 O +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +諸国 M1 名詞-一般 O +” S2 記号-括弧閉 O +に S9 助詞-格助詞-一般 O +置き換え T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +みる M9 動詞-自立 O +と S9 助詞-格助詞-引用 O +どう M9 副詞-助詞類接続 O +だろ M9 助動詞 O +うか M9 動詞-自立 O +。 S2 記号-句点 O + +実際 M1 副詞-助詞類接続 O +に S9 助詞-格助詞-一般 O +自身 M1 名詞-一般 O +や S9 助詞-並立助詞 O +身内 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +被害 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +遭わ T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +方々 T1-2 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +もっと M9 副詞-一般 O +ストレート M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +を S9 助詞-格助詞-一般 O +加害 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +と S9 助詞-格助詞-引用 O +認識 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +ので M9 助詞-接続助詞 O +は S9 助詞-係助詞 O +ない M9 形容詞-自立 O +だろ M9 助動詞 O +うか M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +それなのに M9 接続詞 O +次々 T1-2 副詞-助詞類接続 O +と S9 助詞-格助詞-引用 O +出 S1 動詞-自立 O +て S9 助詞-接続助詞 O +くる M9 動詞-自立 O +閣僚 M1 名詞-一般 O +の S9 助詞-連体化 O +問題 M1 名詞-ナイ形容詞語幹 O +発言 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +いい M9 形容詞-自立 O +、 S2 記号-読点 O +従軍 M1 名詞-サ変接続 O +慰安 M1 名詞-サ変接続 O +婦 S1 名詞-接尾-一般 O +問題 M1 名詞-ナイ形容詞語幹 O +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +対応 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +いい M9 形容詞-自立 O +、 S2 記号-読点 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +同様 M1 名詞-形容動詞語幹 O +か S9 助詞-副助詞/並立助詞/終助詞 O +、 S2 記号-読点 O +それ M9 名詞-代名詞-一般 O +以上 M1 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +その M9 連体詞 O +意識 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +欠 S1 名詞-一般 O +落し T1-9 名詞-一般 O +、 S2 記号-読点 O +加害 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +側 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +ごう慢 T9-1 名詞-一般 O +さが M9 動詞-自立 O +存 S1 名詞-サ変接続 O +在し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +こと M9 名詞-非自立-一般 O +は S9 助詞-係助詞 O +否め T1-9 動詞-自立 O +ない M9 形容詞-自立 O +と S9 助詞-格助詞-引用 O +思う T1-9 動詞-自立 O +。 S2 記号-句点 O + +今さら T1-9 名詞-副詞可能 O +ながら M9 助詞-接続助詞 O +痛感 M1 名詞-サ変接続 O +させ M9 動詞-接尾 O +られ M9 動詞-接尾 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +今回 M1 名詞-副詞可能 O +の S9 助詞-連体化 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +機 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +政府 M1 名詞-一般 O +は S9 助詞-係助詞 O +被害 M1 名詞-一般 O +者 S1 名詞-接尾-一般 O +側 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +意識 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +即し T1-9 動詞-自立 O +た S9 助動詞 O +対応 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +努めて T1-9 副詞-一般 O +ほしい M9 形容詞-自立 O +。 S2 記号-句点 O + +“ S2 記号-括弧開 O +人 S1 名詞-一般 O +の S9 助詞-連体化 O +ふり M9 名詞-非自立-一般 O +見 S1 動詞-自立 O +て S9 助詞-接続助詞 O +我が T1-9 連体詞 O +ふり M9 名詞-非自立-一般 O +直せ T1-9 動詞-自立 O +” S2 記号-括弧閉 O +だ S9 助動詞 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +みんな M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +広場 M1 名詞-一般 O +] S2 記号-括弧閉 O +横審 M1 名詞-固有名詞-組織 B-ORGANIZATION +を S9 助詞-格助詞-一般 O +批判 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +も S9 助詞-係助詞 O +いい M9 形容詞-自立 O +では M9 接続詞 O +ない M9 形容詞-自立 O +か S9 助詞-副助詞/並立助詞/終助詞 O += S2 記号-一般 O +主婦 M1 名詞-一般 O +・ S2 記号-一般 O +北村 M1 名詞-固有名詞-人名-姓 B-PERSON +二規子 T6-1 名詞-固有名詞-人名-名 I-PERSON + S13 記号-空白 O +5 S5 名詞-数 O + + S13 記号-空白 O +( S2 記号-括弧開 O +名古屋 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +緑 S1 名詞-一般 I-LOCATION +区 S1 名詞-一般 I-LOCATION +) S2 記号-括弧閉 O + + S13 記号-空白 O +二 S6 名詞-数 O +日の本 T9-1 名詞-一般 O +欄 S1 名詞-一般 O +「 S2 記号-括弧開 O +前 S1 名詞-副詞可能 O +二子山親方 T6-1 名詞-固有名詞-人名-一般 B-PERSON +の S9 助詞-連体化 O +発言 M1 名詞-サ変接続 O +“ S2 記号-括弧開 O +勇み足 T9-1 名詞-一般 O +” S2 記号-括弧閉 O +では M9 接続詞 O +」 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +読み T1-9 動詞-自立 O +まし M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +勇み足 T9-1 名詞-一般 O +と S9 助詞-格助詞-引用 O +は S9 助詞-係助詞 O +思い T1-9 名詞-一般 O +ません M9 動詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +花田 M1 名詞-固有名詞-人名-姓 B-PERSON +氏 S1 名詞-接尾-人名 O +は S9 助詞-係助詞 O +角界 M1 名詞-一般 O +屈指 M1 名詞-一般 O +の S9 助詞-連体化 O +横綱 M1 名詞-一般 O +だっ M9 助動詞 O +たと M9 動詞-自立 O +はい M9 感動詞 O +え S9 フィラー O +、 S2 記号-読点 O +現在 M1 名詞-副詞可能 O +隠居 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +身 S1 名詞-一般 O +です M9 助動詞 O +。 S2 記号-句点 O + +しかも M9 接続詞 O +、 S2 記号-読点 O +講演 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +場 S1 名詞-一般 O +は S9 助詞-係助詞 O +彼 S1 名詞-代名詞-一般 O +の S9 助詞-連体化 O +故郷 M1 名詞-一般 O +。 S2 記号-句点 O + +聴衆 M1 名詞-一般 O +も S9 助詞-係助詞 O +二子山勢 T6-1 名詞-数 O +ファン M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +多かっ T1-9 形容詞-自立 O +た S9 助動詞 O +ので M9 助詞-接続助詞 O +は S9 助詞-係助詞 O +… S2 記号-一般 O +… S2 記号-一般 O +。 S2 記号-句点 O + +また M9 接続詞 O +いうなれば M9 副詞-一般 O +“ S2 記号-括弧開 O +ファン M10 名詞-一般 O +の S9 助詞-連体化 O +集い T1-9 名詞-一般 O +” S2 記号-括弧閉 O +ともい M9 形容詞-自立 O +う S9 感動詞 O +べき M9 助動詞 O +肩ひじ T1-9 名詞-一般 O +張ら T1-9 動詞-自立 O +ぬ S9 助動詞 O +所 S1 名詞-接尾-一般 O +で S9 助動詞 O +の S9 助詞-連体化 O +話 S1 名詞-サ変接続 O +だ S9 助動詞 O +と S9 助詞-格助詞-引用 O +考え T1-9 名詞-一般 O +ます M9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +貴乃花 M1 名詞-固有名詞-人名-一般 B-PERSON +も S9 助詞-係助詞 O +最近 M1 名詞-副詞可能 O +圧倒的 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +強く T1-9 形容詞-自立 O +なっ M9 動詞-自立 O +たし M9 助動詞 O +、 S2 記号-読点 O +精神 M1 名詞-一般 O +面 S1 名詞-一般 O +も S9 助詞-係助詞 O +随分 M1 副詞-助詞類接続 O +成長 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + diff --git a/example/JapaneseNE/train.data b/example/JapaneseNE/train.data new file mode 100644 index 0000000..acd116e --- /dev/null +++ b/example/JapaneseNE/train.data @@ -0,0 +1,4988 @@ +病院 M1 名詞-一般 O +、 S2 記号-読点 O +地下鉄 M1 名詞-一般 O +で S9 助動詞 O +大幅 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +赤字 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +出 S1 動詞-自立 O +たため M9 動詞-自立 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +東 S1 名詞-一般 O +京都 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +市場 M1 名詞-一般 O +事業 M1 名詞-一般 O +で S9 助動詞 O +過去 M1 名詞-副詞可能 O +五 S6 名詞-数 O +年間 M1 名詞-一般 O +で S9 助動詞 O +計 S1 接頭詞-数接続 O +四千百億円計上 T6-1 名詞-数 O +され M9 動詞-自立 O +た S9 助動詞 O +土地 M1 名詞-一般 O +売却 M1 名詞-サ変接続 O +益 S1 名詞-サ変接続 O +( S2 記号-括弧開 O +前年度 M1 名詞-副詞可能 O +五 S6 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +) S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +九 S6 名詞-数 B-DATE +年度 M1 名詞-一般 I-DATE +から M9 助詞-格助詞-一般 O +なくなっ M9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +が S9 助詞-格助詞-一般 O +大きな T1-9 連体詞 O +要因 M1 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +事業 M1 名詞-一般 O +別 S1 名詞-一般 O +概要 M1 名詞-一般 O +は S9 助詞-係助詞 O +次 S1 名詞-一般 O +の S9 助詞-連体化 O +通り T1-9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +水道 M1 名詞-一般 O +】 S2 記号-括弧閉 O +一人 T6-1 名詞-一般 O +一 S6 名詞-数 O +日当たり T1-9 名詞-一般 O +使用 M1 名詞-サ変接続 O +量 S1 動詞-自立 O +は S9 助詞-係助詞 O +三百三十八 M6 名詞-数 O +リットル M10 名詞-一般 O +( S2 記号-括弧開 O +前年度 M1 名詞-副詞可能 O +三百四十一 M6 名詞-数 O +リットル M10 名詞-一般 O +) S2 記号-括弧閉 O +で S9 助動詞 O +、 S2 記号-読点 O +冷夏 M1 名詞-一般 O +の S9 助詞-連体化 O +影響 M1 名詞-サ変接続 O +で S9 助動詞 O +八 S6 名詞-数 B-DATE +〇 S2 記号-一般 I-DATE +年度 M1 名詞-一般 I-DATE +以来 M1 名詞-副詞可能 O +十 S6 名詞-数 O +年 S1 名詞-一般 O +ぶり M9 名詞-一般 O +に S9 助詞-格助詞-一般 O +減少 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +収支 M1 名詞-一般 O +は S9 助詞-係助詞 O +八百十一億円 T6-1 名詞-数 O +の S9 助詞-連体化 O +黒字 M1 名詞-一般 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +地下鉄 M1 名詞-一般 O +】 S2 記号-括弧閉 O +建設 M1 名詞-サ変接続 O +費 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +高騰 M1 名詞-サ変接続 O +など M9 助詞-副助詞 O +から M9 助詞-格助詞-一般 O +九 S6 名詞-数 O +事業 M1 名詞-一般 O +すべて M9 名詞-副詞可能 O +が S9 助詞-格助詞-一般 O +赤字 M1 名詞-一般 O +。 S2 記号-句点 O + +赤字 M1 名詞-一般 O +総額 M1 名詞-一般 O +は S9 助詞-係助詞 O +千五百七十三億円 T6-1 名詞-数 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +バス M10 名詞-一般 O +】 S2 記号-括弧閉 O +年間 M1 名詞-一般 O +輸送 M1 名詞-サ変接続 O +人員 M1 名詞-一般 O +は S9 助詞-係助詞 O +三 S6 名詞-数 O +万人 T6-1 名詞-一般 O +減っ T1-9 動詞-自立 O +た S9 助動詞 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +料金 M1 名詞-一般 O +収入 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +横ばい T1-9 名詞-サ変接続 O +だっ M9 助動詞 O +たこ M9 名詞-一般 O +とも M9 助詞-副助詞 O +あり M9 動詞-自立 O +十 S6 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +の S9 助詞-連体化 O +黒字 M1 名詞-一般 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +病院 M1 名詞-一般 O +】 S2 記号-括弧閉 O +七百三十八事業 T6-1 名詞-数 O +の S9 助詞-連体化 O +うち M9 名詞-非自立-副詞可能 O +黒字 M1 名詞-一般 O +は S9 助詞-係助詞 O +三五 M6 名詞-一般 O +・ S2 記号-一般 O +五 S6 名詞-数 B-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +、 S2 記号-読点 O +赤字 M1 名詞-一般 O +は S9 助詞-係助詞 O +六 S6 名詞-数 B-PERCENT +・ S2 記号-一般 I-PERCENT +五 S6 名詞-数 I-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +。 S2 記号-句点 O + +千百四十二億円 T6-1 名詞-数 O +の S9 助詞-連体化 O +赤字 M1 名詞-一般 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +下水道 M1 名詞-一般 O +】 S2 記号-括弧閉 O +建設 M1 名詞-サ変接続 O +投資 M1 名詞-サ変接続 O +額 S1 名詞-一般 O +は S9 助詞-係助詞 O +四兆四千五百十一億円 T6-1 名詞-数 O +( S2 記号-括弧開 O +前年度 M1 名詞-副詞可能 O +比 S1 名詞-一般 O +五千七百八十三億円増 T6-1 名詞-数 O +) S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +地方 M1 名詞-一般 O +公営 M1 名詞-一般 O +企業 M1 名詞-一般 O +の S9 助詞-連体化 O +建設 M1 名詞-サ変接続 O +投資 M1 名詞-サ変接続 O +額 S1 名詞-一般 O +の S9 助詞-連体化 O +五 S6 名詞-数 B-PERCENT +・ S2 記号-一般 I-PERCENT +二 S6 名詞-数 I-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +を S9 助詞-格助詞-一般 O +占める T1-9 動詞-自立 O +。 S2 記号-句点 O + +ノーベル M10 名詞-固有名詞-人名-一般 B-ARTIFACT +文学 M1 名詞-一般 I-ARTIFACT +賞 S1 名詞-一般 I-ARTIFACT +授賞 M1 名詞-サ変接続 O +式 S1 名詞-一般 O +の S9 助詞-連体化 O +大江 M1 名詞-固有名詞-人名-姓 B-PERSON +健三郎 T6-1 名詞-固有名詞-人名-名 I-PERSON +さん M9 名詞-接尾-人名 O +、 S2 記号-読点 O +晩さん T1-9 名詞-一般 O +会 S1 名詞-一般 O +で S9 助動詞 O +の S9 助詞-連体化 O +あいさつ M9 名詞-サ変接続 O +全文 M1 名詞-一般 O + + S13 記号-空白 O +◇ S2 記号-一般 O +ニルス M10 名詞-固有名詞-人名-一般 B-LOCATION +から M9 助詞-格助詞-一般 O +源氏物語 M1 名詞-固有名詞-一般 B-LOCATION +へ S9 助詞-格助詞-一般 O +… S2 記号-一般 O +雁 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +導く T1-9 動詞-自立 O +魂 S1 名詞-一般 O +の S9 助詞-連体化 O +行方 M1 名詞-一般 O + + S13 記号-空白 O +授賞 M1 名詞-サ変接続 O +式 S1 名詞-一般 O +後 S1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +晩さん T1-9 名詞-一般 O +会 S1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +大江 M1 名詞-固有名詞-人名-姓 B-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +感謝 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +スピーチ M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +英語 M1 名詞-一般 O +で S9 助動詞 O +行う T1-9 動詞-自立 O +。 S2 記号-句点 O + +その M9 連体詞 O +全文 M1 名詞-一般 O +は S9 助詞-係助詞 O +次 S1 名詞-一般 O +の S9 助詞-連体化 O +通り T1-9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O += S2 記号-一般 O + S13 記号-空白 O +◇ S2 記号-一般 O + S13 記号-空白 O += S2 記号-一般 O + + S13 記号-空白 O +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +ニルス M10 名詞-固有名詞-人名-一般 O +・ S2 記号-一般 O +ホーゲルソン M10 名詞-固有名詞-人名-姓 B-PERSON +に S9 助詞-格助詞-一般 O +全面 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +な S9 助詞-終助詞 O +影響 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +幼 S1 形容詞-自立 O +・ S2 記号-一般 O +少年 M1 名詞-一般 O +時 S1 名詞-非自立-副詞可能 O +を S9 助詞-格助詞-一般 O +すごし M9 形容詞-自立 O +た S9 助動詞 O +、 S2 記号-読点 O +奇妙 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +日本人 M1 名詞-一般 O +です M9 助動詞 O +。 S2 記号-句点 O + +スウェーデン M10 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +美しい T1-9 形容詞-自立 O +土地 M1 名詞-一般 O +の S9 助詞-連体化 O +名前 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +自分 M1 名詞-一般 O +の S9 助詞-連体化 O +国 S1 名詞-一般 O +の S9 助詞-連体化 O +地名 M1 名詞-一般 O +より M9 副詞-一般 O +詳しく T1-9 形容詞-自立 O +いう M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +でき M9 動詞-自立 O +た S9 助動詞 O +時期 M1 名詞-副詞可能 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +ほど M9 助詞-副助詞 O +です M9 助動詞 O +。 S2 記号-句点 O + +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +『 S2 記号-括弧開 O +源氏物語 M1 名詞-固有名詞-一般 B-ARTIFACT +』 S2 記号-括弧閉 O +に S9 助詞-格助詞-一般 O +冷淡 M1 名詞-形容動詞語幹 O +でし M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +その M9 連体詞 O +作者 M1 名詞-一般 O +、 S2 記号-読点 O +レディ M10 名詞-一般 O +紫式部 M1 名詞-固有名詞-人名-一般 B-PERSON +より M9 副詞-一般 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +セルマ M10 名詞-固有名詞-人名-名 B-PERSON +・ S2 記号-一般 I-PERSON +ラーゲルレーブ M10 名詞-固有名詞-人名-姓 I-PERSON +に S9 助詞-格助詞-一般 O +親しみ T1-9 名詞-一般 O +と S9 助詞-格助詞-引用 O +敬意 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +抱い T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いま M9 名詞-副詞可能 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +ところが M9 接続詞 O +、 S2 記号-読点 O +やはり M9 副詞-一般 O +雁 S1 名詞-一般 O +( S2 記号-括弧開 O +がん M9 名詞-一般 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +仲介 M1 名詞-サ変接続 O +によって M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +『 S2 記号-括弧開 O +源氏物語 M1 名詞-固有名詞-一般 B-ARTIFACT +』 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +再 S1 接頭詞-名詞接続 O +発見 M1 名詞-サ変接続 O +した M9 名詞-一般 O +の S9 助詞-連体化 O +です M9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +その M9 連体詞 O +ヒーロー M10 名詞-一般 O +、 S2 記号-読点 O +光源氏 M1 名詞-固有名詞-人名-一般 B-PERSON +は S9 助詞-係助詞 O +夢 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +さえ M9 助詞-係助詞 O +現れ T1-9 名詞-一般 O +ない M9 形容詞-自立 O +、 S2 記号-読点 O +亡くなっ T1-9 動詞-自立 O +た S9 助動詞 O +人 S1 名詞-一般 O +の S9 助詞-連体化 O +魂 S1 名詞-一般 O +の S9 助詞-連体化 O +行方 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +探し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +くれ M9 動詞-自立 O +、 S2 記号-読点 O +と S9 助詞-格助詞-引用 O +空 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +飛ぶ T1-9 動詞-自立 O +雁 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +呼びかけ T1-9 動詞-自立 O +ます M9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +私 S1 名詞-代名詞-一般 O +が S9 助詞-格助詞-一般 O +ニルス M10 名詞-固有名詞-人名-一般 B-PERSON +に S9 助詞-格助詞-一般 O +みち M9 名詞-一般 O +びかれて M9 名詞-一般 O +、 S2 記号-読点 O +西欧 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +文学 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +もとめ M9 動詞-自立 O +てき M9 動詞-非自立 O +たのも M9 動詞-自立 O +、 S2 記号-読点 O +魂 S1 名詞-一般 O +の S9 助詞-連体化 O +行方 M1 名詞-一般 O +なの M9 動詞-自立 O +です M9 助動詞 O +。 S2 記号-句点 O + +日本人 M1 名詞-一般 O +として M9 助詞-格助詞-連語 O +の S9 助詞-連体化 O +文学 M1 名詞-一般 O +、 S2 記号-読点 O +文化 M1 名詞-一般 O +の S9 助詞-連体化 O +探究 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +いくらか M9 副詞-一般 O +でも M9 助詞-副助詞 O +西欧 M1 名詞-固有名詞-地域-一般 B-LOCATION +にたいして M9 助詞-格助詞-連語 O +、 S2 記号-読点 O +おかえし M9 名詞-一般 O +を S9 助詞-格助詞-一般 O +する M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +できる M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +ねがっ M9 動詞-自立 O +てい M9 名詞-一般 O +ます M9 助動詞 O +。 S2 記号-句点 O + +そのため M9 副詞-一般 O +の S9 助詞-連体化 O +機会 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +この M9 連体詞 O +賞 S1 名詞-一般 O +はあ M9 感動詞 O +た S9 助動詞 O +えて M9 副詞-一般 O +くれ M9 動詞-自立 O +た S9 助動詞 O +ので M9 助詞-接続助詞 O +は S9 助詞-係助詞 O +ない M9 形容詞-自立 O +でしょ M9 助動詞 O +うか M9 動詞-自立 O +? S2 記号-一般 O + + S13 記号-空白 O +しかし M9 接続詞 O +、 S2 記号-読点 O +まだ M9 副詞-助詞類接続 O +、 S2 記号-読点 O +あたえ M9 動詞-自立 O +られる M9 動詞-接尾 O +もの M9 名詞-非自立-一般 O +のみ M9 助詞-副助詞 O +多く T1-9 名詞-副詞可能 O +、 S2 記号-読点 O +おかえし M9 名詞-一般 O +は S9 助詞-係助詞 O +始まっ T1-9 動詞-自立 O +たばかり M9 動詞-自立 O +。 S2 記号-句点 O + +この M9 連体詞 O +すばらしい M9 形容詞-自立 O +晩さん T1-9 名詞-一般 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +あたえ M9 動詞-自立 O +られる M9 動詞-接尾 O +ものの M9 助詞-接続助詞 O +ひとつ M9 名詞-副詞可能 O +です M9 助動詞 O +。 S2 記号-句点 O + +ベトナム M10 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +ドク M10 名詞-固有名詞-人名-名 B-PERSON +君 S1 名詞-代名詞-一般 O +が S9 助詞-格助詞-一般 O +再 S1 接頭詞-名詞接続 O +手術 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +為 S1 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +来春 M1 名詞-副詞可能 O +来日 M1 名詞-サ変接続 O + S13 記号-空白 O +資金 M1 名詞-一般 O +募集 M1 名詞-サ変接続 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +結合 M1 名詞-サ変接続 O +体 S1 名詞-一般 O +双生児 M1 名詞-一般 O +だっ M9 助動詞 O +た S9 助動詞 O +ベトナム M10 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +ベト M10 名詞-固有名詞-人名-名 B-PERSON +君 S1 名詞-代名詞-一般 I-PERSON +、 S2 記号-読点 O +ドク M10 名詞-固有名詞-人名-名 B-PERSON +君 S1 名詞-代名詞-一般 O +( S2 記号-括弧開 O +ともに M9 副詞-一般 O +十 S6 名詞-数 O +三歳 T6-1 名詞-固有名詞-地域-一般 O +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +うち M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +弟 S1 名詞-一般 O +の S9 助詞-連体化 O +ドク M10 名詞-固有名詞-人名-名 B-PERSON +君 S1 名詞-代名詞-一般 O +が S9 助詞-格助詞-一般 O +自然 M1 名詞-形容動詞語幹 O +排便 M1 名詞-サ変接続 O +できる M9 動詞-自立 O +よう M9 名詞-非自立-助動詞語幹 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +来年 M1 名詞-副詞可能 B-DATE +四月 T6-1 名詞-副詞可能 I-DATE +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +来日 M1 名詞-サ変接続 O +、 S2 記号-読点 O +手術 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +受ける T1-9 動詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +決まっ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +ドク M10 名詞-固有名詞-人名-名 B-PERSON +君 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +現在 M1 名詞-副詞可能 O +、 S2 記号-読点 O +人工 M1 名詞-一般 O +こう門 T9-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +取り付け T1-9 名詞-一般 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +自然 M1 名詞-形容動詞語幹 O +排便 M1 名詞-サ変接続 O +で S9 助動詞 O +発育 M1 名詞-サ変接続 O +など M9 助詞-副助詞 O +が S9 助詞-格助詞-一般 O +良く T1-9 形容詞-自立 O +なる M9 動詞-自立 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +兄弟 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +生活 M1 名詞-サ変接続 O +する M9 動詞-自立 O +国立 M1 名詞-一般 O +ツーズー病院 T10-1 名詞-固有名詞-組織 O +( S2 記号-括弧開 O +ホーチミン M10 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +) S2 記号-括弧閉 O +から M9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +ベト M10 名詞-固有名詞-人名-名 B-PERSON +ちゃんと M9 副詞-一般 O +ドク M10 名詞-固有名詞-人名-名 B-PERSON +ちゃん M9 名詞-接尾-人名 O +の S9 助詞-連体化 O +発達 M1 名詞-サ変接続 B-ORGANIZATION +を S9 助詞-格助詞-一般 I-ORGANIZATION +願う T1-9 動詞-自立 I-ORGANIZATION +会 S1 名詞-一般 I-ORGANIZATION +」 S2 記号-括弧閉 O +( S2 記号-括弧開 O +事務 M1 名詞-一般 O +局 S1 名詞-サ変接続 O +・ S2 記号-一般 O +福井 M1 名詞-固有名詞-地域-一般 B-LOCATION +県 S1 名詞-一般 O +三方町向笠 T6-1 名詞-数 O +) S2 記号-括弧閉 O +に S9 助詞-格助詞-一般 O +援助 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +求める T1-9 動詞-自立 O +手紙 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +届き T1-9 動詞-自立 O +、 S2 記号-読点 O +同 S1 接頭詞-名詞接続 O +会 S1 名詞-一般 O +は S9 助詞-係助詞 O +近く T1-9 名詞-副詞可能 O +渡航 M1 名詞-サ変接続 O +滞在 M1 名詞-サ変接続 O +費 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +募金 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +始める T1-9 動詞-自立 O +。 S2 記号-句点 O + +すでに M9 副詞-一般 O +三重大 T6-1 名詞-固有名詞-組織 B-ORGANIZATION +医学部 M1 名詞-一般 O +付属 M1 名詞-サ変接続 O +病院 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +受け入れ T1-9 名詞-一般 O +準備 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +始めて T1-9 副詞-一般 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +ベトナム M10 名詞-固有名詞-地域-国 B-LOCATION +戦争 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +枯れ葉 T9-1 名詞-一般 O +剤 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +影響 M1 名詞-サ変接続 O +で S9 助動詞 O +結合 M1 名詞-サ変接続 O +体 S1 名詞-一般 O +双生児 M1 名詞-一般 O +として M9 助詞-格助詞-連語 O +生まれ T1-9 名詞-一般 O +た S9 助動詞 O +二 S6 名詞-数 O +人 S1 名詞-一般 O +は S9 助詞-係助詞 O +一九八八年 T6-1 名詞-数 O +、 S2 記号-読点 O +ツーズー病院 T10-1 名詞-固有名詞-組織 B-ORGANIZATION +で S9 助動詞 O +分離 M1 名詞-サ変接続 O +手術 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +しかし M9 接続詞 O +、 S2 記号-読点 O +二 S6 名詞-数 O +人 S1 名詞-一般 O +で S9 助動詞 O +分け合っ T1-9 動詞-自立 O +たため M9 動詞-自立 O +大腸 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +短く T1-9 形容詞-自立 O +、 S2 記号-読点 O +人工 M1 名詞-一般 O +こう門 T9-1 名詞-一般 O +で S9 助動詞 O +生活 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +現在 M1 名詞-副詞可能 O +、 S2 記号-読点 O +ベト M10 名詞-固有名詞-人名-名 B-PERSON +君 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +寝たきり T1-9 名詞-一般 O +の S9 助詞-連体化 O +状態 M1 名詞-一般 O +。 S2 記号-句点 O + +ドク M10 名詞-固有名詞-人名-名 B-PERSON +君 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +義足 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +つけ M9 名詞-一般 O +て S9 助詞-接続助詞 O +病院 M1 名詞-一般 O +内 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +自由 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +歩い T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +短い T1-9 形容詞-自立 O +大腸 M1 名詞-一般 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +栄養 M1 名詞-一般 O +の S9 助詞-連体化 O +吸収 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +悪く T1-9 形容詞-自立 O +、 S2 記号-読点 O +発育 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +遅れ T1-9 名詞-一般 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +ガイドブック M10 名詞-一般 O +] S2 記号-括弧閉 O +浅間温泉 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +国際 M1 名詞-一般 I-ORGANIZATION +スケート M10 名詞-一般 I-ORGANIZATION +センター M10 名詞-一般 I-ORGANIZATION + + S13 記号-空白 O +◇ S2 記号-一般 O +プロフィル M10 名詞-一般 O + S13 記号-空白 O +当初 M1 名詞-副詞可能 O +、 S2 記号-読点 O +青森 M1 名詞-固有名詞-地域-一般 O +県 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +建設 M1 名詞-サ変接続 O +さ S9 助詞-終助詞 O +れる M9 動詞-接尾 O +予定 M1 名詞-サ変接続 O +だっ M9 助動詞 O +た S9 助動詞 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +十勝 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +沖 S1 名詞-一般 O +地震 M1 名詞-一般 O +により M9 助詞-格助詞-連語 O +計画 M1 名詞-サ変接続 O +中止 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +場所 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +長野 M1 名詞-固有名詞-地域-一般 B-LOCATION +県 S1 名詞-一般 I-LOCATION +に S9 助詞-格助詞-一般 O +移し T1-9 動詞-自立 O +、 S2 記号-読点 O +体育 M1 名詞-一般 O +施設 M1 名詞-サ変接続 O +整備 M1 名詞-サ変接続 O +補助 M1 名詞-サ変接続 O +金 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +使っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +1968 M5 名詞-数 O +年 S1 名詞-一般 O +建設 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +開始 M1 名詞-サ変接続 O +され M9 動詞-自立 O +、 S2 記号-読点 O +翌 S1 接頭詞-数接続 O +6 S5 名詞-数 B-DATE +年 S1 名詞-一般 I-DATE +11月 T5-1 名詞-副詞可能 I-DATE +に S9 助詞-格助詞-一般 O +完成 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +整地 M1 名詞-サ変接続 O +工事 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +自衛隊 M1 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +協力 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +毎年 M1 名詞-副詞可能 B-DATE +12月 T5-1 名詞-副詞可能 I-DATE +中旬 M1 名詞-副詞可能 I-DATE +に S9 助詞-格助詞-一般 O +スピード M10 名詞-一般 O +スケート M10 名詞-一般 O +の S9 助詞-連体化 O +浅間 M1 名詞-固有名詞-地域-一般 B-LOCATION +選抜 M1 名詞-サ変接続 O +大会 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +開か T1-9 動詞-自立 O +れる M9 動詞-接尾 O +ほか M9 名詞-副詞可能 O +、 S2 記号-読点 O +9 S5 名詞-数 B-DATE +年 S1 名詞-一般 I-DATE +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +ワールドカップ M10 名詞-固有名詞-一般 O +( S2 記号-括弧開 O +W杯 T7-1 名詞-固有名詞-一般 O +) S2 記号-括弧閉 O +も S9 助詞-係助詞 O +開か T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +◇ S2 記号-一般 O +うつわ M9 名詞-一般 O + S13 記号-空白 O +敷地 M1 名詞-一般 O +面積 M1 名詞-一般 O +は S9 助詞-係助詞 O +3 S5 名詞-数 O +平方メートル T1-10 名詞-接尾-助数詞 O +。 S2 記号-句点 O + +リンク M10 名詞-サ変接続 O +は S9 助詞-係助詞 O +1 S5 名詞-数 O +周 S1 名詞-一般 O +4 S5 名詞-数 O +メートル M10 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +コース M10 名詞-一般 O +幅 S1 名詞-一般 O +は S9 助詞-係助詞 O +1 S5 名詞-数 O +メートル M10 名詞-一般 O +。 S2 記号-句点 O + +8 S5 名詞-数 O +基 S1 名詞-一般 O +の S9 助詞-連体化 O +照明 M1 名詞-サ変接続 O +灯 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +あり M9 動詞-自立 O +、 S2 記号-読点 O +ナイター M10 名詞-一般 O +開催 M1 名詞-サ変接続 O +も S9 助詞-係助詞 O +可能 M1 名詞-形容動詞語幹 O +。 S2 記号-句点 O + +北海道 M1 名詞-固有名詞-地域-一般 B-LOCATION +など M9 助詞-副助詞 O +に S9 助詞-格助詞-一般 O +比べ T1-9 動詞-自立 O +暖かい T1-9 形容詞-自立 O +松本 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +の S9 助詞-連体化 O +気候 M1 名詞-一般 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +リンク M10 名詞-サ変接続 O +の S9 助詞-連体化 O +氷質 M1 名詞-一般 O +は S9 助詞-係助詞 O +軟らかく T1-9 形容詞-自立 O +、 S2 記号-読点 O +国内 M1 名詞-一般 O +でも M9 助詞-副助詞 O +有数 M1 名詞-一般 O +の S9 助詞-連体化 O +ハイスピード M10 名詞-一般 O +リンク M10 名詞-サ変接続 O +として M9 助詞-格助詞-連語 O +知 S1 名詞-一般 O +られ M9 動詞-接尾 O +毎年 M1 名詞-副詞可能 O +、 S2 記号-読点 O +浅間 M1 名詞-固有名詞-地域-一般 B-LOCATION +選抜 M1 名詞-サ変接続 O +大会 M1 名詞-一般 O +では M9 接続詞 O +好 S1 接頭詞-名詞接続 O +記録 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +生まれる T1-9 動詞-自立 O +。 S2 記号-句点 O + +約 S1 接頭詞-数接続 O +4 S5 名詞-数 O +キロ M10 名詞-一般 O +離れ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +浅間 M1 名詞-固有名詞-地域-一般 B-LOCATION +温泉郷 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + +周囲 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +ホテル M10 名詞-一般 O +など M9 助詞-副助詞 O +が S9 助詞-格助詞-一般 O +少ない T1-9 形容詞-自立 O +こと M9 名詞-非自立-一般 O +も S9 助詞-係助詞 O +あっ M9 感動詞 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +競技 M1 名詞-サ変接続 O +会 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +と S9 助詞-格助詞-引用 O +選手 M1 名詞-一般 O +たち M9 名詞-接尾-一般 O +は S9 助詞-係助詞 O +温泉 M1 名詞-一般 O +旅館 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +泊まる T1-9 動詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +多い T1-9 形容詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +◇ S2 記号-一般 O +ところ M9 名詞-非自立-副詞可能 O + S13 記号-空白 O +長野 M1 名詞-固有名詞-地域-一般 B-LOCATION +県 S1 名詞-一般 I-LOCATION +松本 M1 名詞-固有名詞-地域-一般 I-LOCATION +市 S1 名詞-一般 I-LOCATION +三才山 T6-1 名詞-固有名詞-地域-一般 I-LOCATION +1830 M5 名詞-数 O + + S13 記号-空白 O +◇ S2 記号-一般 O +あ S9 フィラー O + S13 記号-空白 O +し S9 動詞-自立 O + S13 記号-空白 O +JR M7 名詞-固有名詞-組織 B-LOCATION +松本 M1 名詞-固有名詞-地域-一般 I-LOCATION +駅 S1 名詞-一般 I-LOCATION +から M9 助詞-格助詞-一般 O +車 S1 名詞-一般 O +で S9 助動詞 O +3 S5 名詞-数 O +分 S1 動詞-自立 O + + S13 記号-空白 O +◇ S2 記号-一般 O +でんわ M9 名詞-一般 O + S13 記号-空白 O +0263 M5 名詞-数 O +・ S2 記号-一般 O +4 S5 名詞-数 O +・ S2 記号-一般 O +0 S5 名詞-数 O + +米州 M1 名詞-固有名詞-地域-一般 B-LOCATION +サミット M10 名詞-一般 O +閉幕 M1 名詞-サ変接続 O + S13 記号-空白 O +市場 M1 名詞-一般 O +統合 M1 名詞-サ変接続 O +、 S2 記号-読点 O +域内 M1 名詞-一般 O +経済 M1 名詞-一般 O +力 S1 名詞-一般 O +の S9 助詞-連体化 O +格差 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +壁 S1 名詞-一般 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +マイアミ M10 名詞-固有名詞-地域-一般 B-LOCATION +1 S5 名詞-数 O +日 S1 名詞-一般 O +潮田 M1 名詞-固有名詞-人名-姓 B-PERSON +道夫 M1 名詞-固有名詞-人名-名 I-PERSON +】 S2 記号-括弧閉 O +米州首脳会議 M1 名詞-固有名詞-組織 B-ORGANIZATION +で S9 助動詞 O +十一日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +合意 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +FTAA M7 名詞-固有名詞-組織 B-ORGANIZATION +設立 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +合意 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +その M9 連体詞 O +実現 M1 名詞-サ変接続 O +について M9 助詞-格助詞-連語 O +予断 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +許さ T1-9 動詞-自立 O +ない M9 形容詞-自立 O +ものの M9 助詞-接続助詞 O +、 S2 記号-読点 O +中南米 M1 名詞-固有名詞-地域-一般 B-LOCATION +地域 M1 名詞-一般 O +の S9 助詞-連体化 O +市場 M1 名詞-一般 O +自由 M1 名詞-形容動詞語幹 O +化 S1 名詞-接尾-サ変接続 O +の S9 助詞-連体化 O +流れ T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +確固たる T1-9 連体詞 O +もの M9 名詞-非自立-一般 O +にし M9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + +同時に T1-9 副詞-一般 O +、 S2 記号-読点 O +太平洋 M1 名詞-固有名詞-地域-一般 B-LOCATION +対岸 M1 名詞-一般 O +の S9 助詞-連体化 O +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +地域 M1 名詞-一般 O +の S9 助詞-連体化 O +市場 M1 名詞-一般 O +統合 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +大きな T1-9 連体詞 O +刺激 M1 名詞-サ変接続 O +となり M9 名詞-一般 O +そうだ M9 名詞-サ変接続 O +。 S2 記号-句点 O + + S13 記号-空白 O +だが M9 接続詞 O +、 S2 記号-読点 O +中南米 M1 名詞-固有名詞-地域-一般 B-LOCATION +諸国 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +望 S1 名詞-一般 O +んで M9 助詞-接続助詞 O +いた M9 形容詞-自立 O +北米 M1 名詞-固有名詞-地域-一般 B-OPTIONAL +自由 M1 名詞-形容動詞語幹 I-OPTIONAL +貿易 M1 名詞-サ変接続 I-OPTIONAL +協定 M1 名詞-サ変接続 I-OPTIONAL +( S2 記号-括弧開 O +NAFTA M7 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +拡大 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +当面 M1 名詞-副詞可能 O +、 S2 記号-読点 O +南米 M1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +経済 M1 名詞-一般 O +優等生 M1 名詞-一般 O +チリ M10 名詞-固有名詞-地域-国 B-LOCATION +一 S6 名詞-数 O +カ国 T10-1 名詞-接尾-助数詞 O +に S9 助詞-格助詞-一般 O +限定 M1 名詞-サ変接続 O +され M9 動詞-自立 O +、 S2 記号-読点 O +同 S1 接頭詞-名詞接続 O +問題 M1 名詞-ナイ形容詞語幹 O +をめぐる M9 助詞-格助詞-連語 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +、 S2 記号-読点 O +カナダ M10 名詞-固有名詞-地域-国 B-LOCATION +、 S2 記号-読点 O +メキシコ M10 名詞-固有名詞-地域-国 B-LOCATION +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +交渉 M1 名詞-サ変接続 O +終了 M1 名詞-サ変接続 O +年限 M1 名詞-一般 O +さえ M9 助詞-係助詞 O +設定 M1 名詞-サ変接続 O +でき M9 動詞-自立 O +なかっ M9 形容詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +マクラーレン M10 名詞-固有名詞-組織 B-ORGANIZATION +・ S2 記号-一般 O +カナダ M10 名詞-固有名詞-地域-国 B-LOCATION +貿易 M1 名詞-サ変接続 B-ORGANIZATION +相 S1 接頭詞-動詞接続 O +は S9 助詞-係助詞 O +記者 M1 名詞-一般 O +団 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +来年 M1 名詞-副詞可能 B-DATE +中 S1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +終了 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +念頭 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +明らか T1-9 名詞-形容動詞語幹 O +にし M9 名詞-一般 O +た S9 助動詞 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +米 S1 名詞-固有名詞-地域-国 B-LOCATION +議会 M1 名詞-一般 B-ORGANIZATION +の S9 助詞-連体化 O +支持 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +明確 M1 名詞-形容動詞語幹 O +で S9 助動詞 O +ない M9 形容詞-自立 O +段階 M1 名詞-一般 O +では M9 接続詞 O +、 S2 記号-読点 O +期待 M1 名詞-サ変接続 O +値 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +高め T1-9 名詞-一般 O +すぎる M9 動詞-非自立 O +よう M9 名詞-非自立-助動詞語幹 O +な S9 助詞-終助詞 O +危険 M1 名詞-形容動詞語幹 O +を S9 助詞-格助詞-一般 O +冒せ T1-9 動詞-自立 O +なかっ M9 形容詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +市場 M1 名詞-一般 O +統合 M1 名詞-サ変接続 O +問題 M1 名詞-ナイ形容詞語幹 O +では M9 接続詞 O +今後 M1 名詞-副詞可能 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +とてつもない M9 形容詞-自立 O +作業 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +( S2 記号-括弧開 O +クリントン M10 名詞-固有名詞-人名-姓 B-PERSON +米 S1 名詞-固有名詞-地域-国 B-LOCATION +大統領 M1 名詞-一般 O +) S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +必要 M1 名詞-形容動詞語幹 O +だ S9 助動詞 O +。 S2 記号-句点 O + +域内 M1 名詞-一般 O +各国 M1 名詞-一般 O +の S9 助詞-連体化 O +経済 M1 名詞-一般 O +力 S1 名詞-一般 O +と S9 助詞-格助詞-引用 O +発展 M1 名詞-サ変接続 O +段階 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +同様 M1 名詞-形容動詞語幹 O +格差 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +あり M9 動詞-自立 O +、 S2 記号-読点 O +数多く T1-9 形容詞-自立 O +の S9 助詞-連体化 O +例外 M1 名詞-一般 O +、 S2 記号-読点 O +優遇 M1 名詞-サ変接続 O +措置 M1 名詞-サ変接続 O +なし M9 形容詞-自立 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +統合 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +は S9 助詞-係助詞 O +成立 M1 名詞-サ変接続 O +しない M9 名詞-一般 O +。 S2 記号-句点 O + +明らか T1-9 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +NAFTA M7 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +モデル M10 名詞-一般 O +だが M9 接続詞 O +、 S2 記号-読点 O +実現 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +多く T1-9 名詞-副詞可能 O +の S9 助詞-連体化 O +困難 M1 名詞-形容動詞語幹 O +が S9 助詞-格助詞-一般 O +予想 M1 名詞-サ変接続 O +さ S9 助詞-終助詞 O +れる M9 動詞-接尾 O +。 S2 記号-句点 O + + S13 記号-空白 O +しかし M9 接続詞 O +、 S2 記号-読点 O +今回 M1 名詞-副詞可能 O +の S9 助詞-連体化 O +合意 M1 名詞-サ変接続 O +で S9 助動詞 O +中南米 M1 名詞-固有名詞-地域-一般 B-LOCATION +諸国 M1 名詞-一般 O +は S9 助詞-係助詞 O +今後 M1 名詞-副詞可能 O +、 S2 記号-読点 O +競っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +一段と T1-9 副詞-一般 O +市場 M1 名詞-一般 O +自由 M1 名詞-形容動詞語幹 O +化 S1 名詞-接尾-サ変接続 O +を S9 助詞-格助詞-一般 O +進める T1-9 動詞-自立 O +ことに M9 副詞-一般 O +なろ M9 動詞-自立 O +う S9 感動詞 O +。 S2 記号-句点 O + +アジア M10 名詞-固有名詞-地域-一般 B-LOCATION +に S9 助詞-格助詞-一般 O +次ぐ T1-9 動詞-自立 O +経済 M1 名詞-一般 O +成長 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +遂げ T1-9 動詞-自立 O +つつ M9 助詞-接続助詞 O +ある M9 動詞-自立 O +中南米 M1 名詞-固有名詞-地域-一般 B-LOCATION +を S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +が S9 助詞-格助詞-一般 O +「 S2 記号-括弧開 O +囲い込み T1-9 名詞-一般 O +」 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +図り T1-9 動詞-自立 O +つつ M9 助詞-接続助詞 O +ある M9 動詞-自立 O +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +印象 M1 名詞-一般 O +は S9 助詞-係助詞 O +免れ T1-9 動詞-自立 O +ず S9 助動詞 O +、 S2 記号-読点 O +域 S1 名詞-一般 O +外国 M1 名詞-一般 O +も S9 助詞-係助詞 O +無 S1 接頭詞-名詞接続 O +関心 M1 名詞-一般 O +で S9 助動詞 O +はい M9 感動詞 O +られ M9 動詞-接尾 O +ない M9 形容詞-自立 O +動き T1-9 名詞-一般 O +で S9 助動詞 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + +< S2 記号-括弧開 O +インフォメーション M10 名詞-一般 O +> S2 記号-括弧閉 O +特筆 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +アバンギャルド M10 名詞-一般 O + + S13 記号-空白 O +もう M9 副詞-一般 O +、 S2 記号-読点 O +さすが M9 副詞-一般 O +に S9 助詞-格助詞-一般 O +7 S5 名詞-数 O +年代 M1 名詞-一般 O +大物 M1 名詞-一般 O +は S9 助詞-係助詞 O +残っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +ない M9 形容詞-自立 O +だろ M9 助動詞 O +う S9 感動詞 O +、 S2 記号-読点 O +と S9 助詞-格助詞-引用 O +思っ T1-9 動詞-自立 O +てい M9 名詞-一般 O +たら M9 助動詞 O +、 S2 記号-読点 O +ブライアン M10 名詞-固有名詞-一般 O +・ S2 記号-一般 O +フェリー M10 名詞-一般 O += S2 記号-一般 O +写真 M1 名詞-一般 O += S2 記号-一般 O +が S9 助詞-格助詞-一般 O +来る T1-9 動詞-自立 O +。 S2 記号-句点 O + +アバンギャルド M10 名詞-一般 O +な S9 助詞-終助詞 O +ロック M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +聞かせ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +くれ M9 動詞-自立 O +た S9 助動詞 O +バンド M10 名詞-一般 O +、 S2 記号-読点 O +ロ S10 名詞-固有名詞-組織 O +キシ M10 名詞-固有名詞-一般 O +ー・ミュージックのリーダーからソロを T10-9 名詞-一般 O +続け T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +来日 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +今度 M1 名詞-副詞可能 O +で S9 助動詞 O +3 S5 名詞-数 O +回 S1 動詞-自立 O +目 S1 名詞-一般 O +、 S2 記号-読点 O +7 S5 名詞-数 O +年 S1 名詞-一般 O +ぶり M9 名詞-一般 O +。 S2 記号-句点 O + +最新 M1 名詞-一般 O +作 S1 動詞-自立 O +「 S2 記号-括弧開 O +マムーナ M10 名詞-固有名詞-一般 B-ARTIFACT +」 S2 記号-括弧閉 O +では M9 接続詞 O +、 S2 記号-読点 O +仲 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +悪い T1-9 形容詞-自立 O +と S9 助詞-格助詞-引用 O +され M9 動詞-自立 O +た S9 助動詞 O +ブライアン M10 名詞-固有名詞-一般 B-PERSON +・ S2 記号-一般 I-PERSON +イーノ M10 名詞-固有名詞-人名-姓 I-PERSON +も S9 助詞-係助詞 O +ジョイント M10 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +4 S5 名詞-数 O +歳 S1 名詞-一般 O +にし M9 名詞-一般 O +て S9 助詞-接続助詞 O +角 S1 形容詞-自立 O +が S9 助詞-格助詞-一般 O +とれ M9 動詞-自立 O +てき M9 動詞-非自立 O +たかな M9 動詞-自立 O +、 S2 記号-読点 O +とも M9 助詞-副助詞 O +思わせ T1-9 動詞-自立 O +た S9 助動詞 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +この M9 連体詞 O +陶芸 M1 名詞-一般 O +の S9 助詞-連体化 O +先生 M1 名詞-一般 O +は S9 助詞-係助詞 O +捕らえ T1-9 動詞-自立 O +どころ M9 名詞-非自立-一般 O +の S9 助詞-連体化 O +ない M9 形容詞-自立 O +奥深 M1 形容詞-自立 O +さと M9 形容詞-自立 O +奇妙 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +内的 M1 名詞-形容動詞語幹 O +イメージ M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +持ち T1-9 動詞-自立 O +続け T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +バック M10 名詞-サ変接続 O +・ S2 記号-一般 O +バンド M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +決まっ T1-9 動詞-自立 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +の S9 助詞-連体化 O +が S9 助詞-格助詞-一般 O +残念 M1 名詞-形容動詞語幹 O +。 S2 記号-句点 O + + S13 記号-空白 O +同じ T1-9 連体詞 O +英国 M1 名詞-固有名詞-地域-国 B-LOCATION +でも M9 助詞-副助詞 O +ガラッ M10 副詞-助詞類接続 O +と S9 助詞-格助詞-引用 O +毛色 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +違う T1-9 動詞-自立 O +ジャミロクワイ M10 名詞-固有名詞-人名-一般 B-PERSON +。 S2 記号-句点 O + +でも M9 助詞-副助詞 O +、 S2 記号-読点 O +ホール M10 名詞-一般 O +より M9 副詞-一般 O +、 S2 記号-読点 O +ダンスホール M10 名詞-一般 O +の S9 助詞-連体化 O +方 S1 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +お似合い T1-9 名詞-一般 O +の S9 助詞-連体化 O +サウンド M10 名詞-一般 O +なの M9 動詞-自立 O +だが M9 接続詞 O +、 S2 記号-読点 O +大物 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +ちゃっ M9 動詞-自立 O +たか M9 形容詞-自立 O +。 S2 記号-句点 O + +原田 M1 名詞-固有名詞-人名-姓 B-PERSON +知世 M1 名詞-固有名詞-人名-名 I-PERSON +は S9 助詞-係助詞 O +、 S2 記号-読点 O +フランス語 T10-1 名詞-一般 O +の S9 助詞-連体化 O +シングル M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +出し T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +ちょっと M9 副詞-助詞類接続 O +クレモンティーヌ M10 名詞-固有名詞-人名-一般 O +風 S1 名詞-一般 O +。 S2 記号-句点 O + +山崎 M1 名詞-固有名詞-人名-姓 B-PERSON +ハコ M10 名詞-固有名詞-人名-名 I-PERSON +は S9 助詞-係助詞 O +、 S2 記号-読点 O +ジャパニーズ M10 名詞-一般 O +・ S2 記号-一般 O +ポップス M10 名詞-一般 O +の S9 助詞-連体化 O +カバー M10 名詞-サ変接続 O +集 S1 動詞-自立 O +「 S2 記号-括弧開 O +十八番 T6-1 名詞-一般 O +」 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +引っ下げ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +の S9 助詞-連体化 O +登場 M1 名詞-サ変接続 O +。 S2 記号-句点 O + + S13 記号-空白 O +オン M10 名詞-サ変接続 O +では M9 接続詞 O +井上陽水 M1 名詞-固有名詞-人名-一般 B-PERSON +が S9 助詞-格助詞-一般 O +元気 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +全国 M1 名詞-一般 O +ツアー M10 名詞-一般 O +中 S1 名詞-非自立-副詞可能 O +。 S2 記号-句点 O + +エコーベリー M10 名詞-固有名詞-一般 O +は S9 助詞-係助詞 O +女性 M1 名詞-一般 O +ボーカル M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +中心 M1 名詞-一般 O +にし M9 名詞-一般 O +た S9 助動詞 O +新進 M1 名詞-一般 O +の S9 助詞-連体化 O +英国 M1 名詞-固有名詞-地域-国 B-LOCATION +バンド M10 名詞-一般 O +。 S2 記号-句点 O + +ザップ M10 名詞-固有名詞-一般 O +と S9 助詞-格助詞-引用 O +ロジャー M10 名詞-固有名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +おちゃめ M9 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +デジタル M10 名詞-一般 O +・ S2 記号-一般 O +ファンク M10 名詞-一般 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +川 S1 名詞-一般 O +) S2 記号-括弧閉 O + +[ S2 記号-括弧開 O +ヒット M10 名詞-サ変接続 O +・ S2 記号-一般 O +ナウ M10 形容詞-自立 O +] S2 記号-括弧閉 O +スクリーン M10 名詞-一般 O + S13 記号-空白 O +堂々たる T2-9 連体詞 O +石井 M1 名詞-固有名詞-人名-姓 B-PERSON +竜也 M1 名詞-固有名詞-人名-名 I-PERSON +監督 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +初 S1 接頭詞-名詞接続 O +作品 M1 名詞-一般 O +「 S2 記号-括弧開 O +河童 M1 名詞-一般 O +」 S2 記号-括弧閉 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +河童 M1 名詞-一般 O +」 S2 記号-括弧閉 O += S2 記号-一般 O +写真 M1 名詞-一般 O += S2 記号-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +メジャー M10 名詞-一般 O +以外 M1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +映画 M1 名詞-一般 O +では M9 接続詞 O +数少ない T1-9 形容詞-自立 O +正月 M1 名詞-一般 O +映画 M1 名詞-一般 O +だ S9 助動詞 O +。 S2 記号-句点 O + +監督 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +米米CLUB T1-7 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +カールスモーキー石井 T10-1 名詞-固有名詞-人名-一般 B-PERSON +という M9 助詞-格助詞-連語 O +こと M9 名詞-非自立-一般 O +も S9 助詞-係助詞 O +大きな T1-9 連体詞 O +話題 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +石井 M1 名詞-固有名詞-人名-姓 B-PERSON +竜也 M1 名詞-固有名詞-人名-名 I-PERSON +の S9 助詞-連体化 O +本名 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +ずっと M9 副詞-一般 O +前 S1 名詞-副詞可能 O +から M9 助詞-格助詞-一般 O +撮り T1-9 動詞-自立 O +たかっ M9 助動詞 O +た S9 助動詞 O +題材 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +取り組ん T1-9 動詞-自立 O +だ S9 助動詞 O +。 S2 記号-句点 O + +第 S1 接頭詞-数接続 O +一回 T6-1 名詞-副詞可能 O +の S9 助詞-連体化 O +監督 M1 名詞-サ変接続 O +作品 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +は S9 助詞-係助詞 O +思え T1-9 動詞-自立 O +ない M9 形容詞-自立 O +堂々 T1-2 副詞-助詞類接続 O +と S9 助詞-格助詞-引用 O +した M9 名詞-一般 O +映画 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +映画 M1 名詞-一般 O +の S9 助詞-連体化 O +河童 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +エイリアン M10 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +少年 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +心 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +通わす T1-9 動詞-自立 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +E・T T2-7 名詞-固有名詞-一般 O +・ S2 記号-一般 O +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +バリエーション M10 名詞-一般 O +でも M9 助詞-副助詞 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + +しかし M9 接続詞 O +、 S2 記号-読点 O +主人公 M1 名詞-一般 O +の S9 助詞-連体化 O +少年 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +河童 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +会っ T1-9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +まだ M9 副詞-助詞類接続 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +が S9 助詞-格助詞-一般 O +高度 M1 名詞-形容動詞語幹 O +成長 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +遂げる T1-9 動詞-自立 O +前 S1 名詞-副詞可能 O +の S9 助詞-連体化 O +昭和 M1 名詞-固有名詞-一般 B-DATE +二十八年 T6-1 名詞-数 O +ごろ M9 名詞-接尾-副詞可能 O +で S9 助動詞 O +、 S2 記号-読点 O +村 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +自然 M1 名詞-形容動詞語幹 O +が S9 助詞-格助詞-一般 O +残っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + +この M9 連体詞 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +緑 S1 名詞-一般 O +あふれる M9 動詞-自立 O +自然 M1 名詞-形容動詞語幹 O +こそ M9 助詞-係助詞 O +、 S2 記号-読点 O +石井 M1 名詞-固有名詞-人名-姓 B-PERSON +監督 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +スクリーン M10 名詞-一般 O +に S9 助詞-格助詞-一般 O +再 S1 接頭詞-名詞接続 O +現し T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +み S9 接頭詞-名詞接続 O +たかっ M9 助動詞 O +た S9 助動詞 O +風景 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +違い T1-9 名詞-ナイ形容詞語幹 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +素朴 M1 名詞-形容動詞語幹 O +だっ M9 助動詞 O +た S9 助動詞 O +人々 T1-2 名詞-一般 O +の S9 助詞-連体化 O +心 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +残っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +時代 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +そんな M9 連体詞 O +気持ち T1-9 名詞-一般 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +かつて M9 副詞-一般 O +の S9 助詞-連体化 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +風景 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +みずみずしい M9 形容詞-自立 O +映像 M1 名詞-一般 O +で S9 助動詞 O +再現 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +二 S6 名詞-数 O +代 S1 動詞-自立 O +にわたる M9 助詞-格助詞-連語 O +父 S1 名詞-一般 O +と S9 助詞-格助詞-引用 O +子 S1 名詞-一般 O +の S9 助詞-連体化 O +物語 M1 名詞-一般 O +、 S2 記号-読点 O +河童 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +約束 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +重 S1 形容詞-自立 O +さが M9 動詞-自立 O +効い T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +熱い T1-9 形容詞-自立 O +涙 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +そそっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +ところが M9 接続詞 O +、 S2 記号-読点 O +河童 M1 名詞-一般 O +は S9 助詞-係助詞 O +なぜ M9 副詞-助詞類接続 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +に S9 助詞-格助詞-一般 O +来 S1 動詞-自立 O +て S9 助詞-接続助詞 O +何 S1 名詞-代名詞-一般 O +を S9 助詞-格助詞-一般 O +しよう M9 名詞-一般 O +として M9 助詞-格助詞-連語 O +いた M9 形容詞-自立 O +のか M9 動詞-自立 O +、 S2 記号-読点 O +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +部分 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +全然 M1 副詞-助詞類接続 O +分から T1-9 動詞-自立 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +細かい T1-9 形容詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +気 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +なりだす M9 動詞-自立 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +お手上げ T1-9 名詞-一般 O +なの M9 動詞-自立 O +だ S9 助動詞 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +公開 M1 名詞-サ変接続 O +中 S1 名詞-非自立-副詞可能 O +) S2 記号-括弧閉 O + +バドミントン M10 名詞-一般 O + S13 記号-空白 O +全日本 M1 名詞-一般 O +総合 M1 名詞-サ変接続 O +選手権 M1 名詞-一般 O +大会 M1 名詞-一般 O +< S2 記号-括弧開 O +最終 M1 名詞-一般 B-DATE +日 S1 名詞-一般 I-DATE +> S2 記号-括弧閉 O + S13 記号-空白 O +女子 M1 名詞-一般 O +複 S1 名詞-一般 O +、 S2 記号-読点 O +松尾 M1 名詞-固有名詞-人名-姓 B-PERSON +・ S2 記号-一般 O +阪本 M1 名詞-固有名詞-人名-姓 B-PERSON +組 S1 名詞-一般 I-PERSON +が S9 助詞-格助詞-一般 O +初 S1 接頭詞-名詞接続 O +優勝 M1 名詞-サ変接続 O + + S13 記号-空白 O +◇ S2 記号-一般 O +全日本 M1 名詞-一般 O +総合 M1 名詞-サ変接続 O +バドミントン M10 名詞-一般 O +選手権 M1 名詞-一般 O +大会 M1 名詞-一般 O +最終 M1 名詞-一般 B-DATE +日 S1 名詞-一般 I-DATE +( S2 記号-括弧開 O +1 S5 名詞-数 B-DATE +日 S1 名詞-一般 I-DATE +・ S2 記号-一般 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +府 S1 名詞-一般 O +守口 M1 名詞-固有名詞-人名-姓 B-PERSON +市民 M1 名詞-一般 O +体育館 M1 名詞-一般 O +) S2 記号-括弧閉 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +男子 M1 名詞-一般 O +シングルス M10 名詞-一般 O +】 S2 記号-括弧閉 O +▽ S2 記号-一般 O +準決勝 M1 名詞-一般 O + S13 記号-空白 O +町田 M1 名詞-固有名詞-地域-一般 B-PERSON +文彦 M1 名詞-固有名詞-人名-名 I-PERSON +( S2 記号-括弧開 O +NTT M7 名詞-固有名詞-組織 B-ORGANIZATION +東京 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +) S2 記号-括弧閉 O +2 S5 名詞-数 O +― S2 記号-一般 O +0 S5 名詞-数 O +須賀 M1 名詞-固有名詞-人名-姓 B-PERSON +隆弘 M1 名詞-固有名詞-人名-名 I-PERSON +( S2 記号-括弧開 O +NTT M7 名詞-固有名詞-組織 B-ORGANIZATION +東京 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +) S2 記号-括弧閉 O +、 S2 記号-読点 O +本山 M1 名詞-一般 B-PERSON +秀昭 M1 名詞-固有名詞-人名-名 I-PERSON +( S2 記号-括弧開 O +トナミ運輸 T10-1 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +2 S5 名詞-数 O +― S2 記号-一般 O +0 S5 名詞-数 B-PERSON +林 S1 名詞-一般 I-PERSON +貴昭 M1 名詞-固有名詞-人名-名 I-PERSON +( S2 記号-括弧開 O +日体大 M1 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O + + S13 記号-空白 O +▽ S2 記号-一般 O +決勝 M1 名詞-一般 O + +町田 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O +2 S5 名詞-数 O + S13 記号-空白 O +1 S5 名詞-数 O +― S2 記号-一般 O +4 S5 名詞-数 O + S13 記号-空白 O +0 S5 名詞-数 O + S13 記号-空白 O +本山 M1 名詞-一般 O + + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +1 S5 名詞-数 O +― S2 記号-一般 O +2 S5 名詞-数 O + + S13 記号-空白 O +( S2 記号-括弧開 O +町田 M1 名詞-固有名詞-地域-一般 B-LOCATION +は S9 助詞-係助詞 O +2 S5 名詞-数 O +年 S1 名詞-一般 O +連続 M1 名詞-サ変接続 O +2 S5 名詞-数 O +回 S1 動詞-自立 O +目 S1 名詞-一般 O +の S9 助詞-連体化 O +優勝 M1 名詞-サ変接続 O +) S2 記号-括弧閉 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +女子 M1 名詞-一般 O +ダブルス M10 名詞-一般 O +】 S2 記号-括弧閉 O +▽ S2 記号-一般 O +準決勝 M1 名詞-一般 O + S13 記号-空白 O +松尾 M1 名詞-固有名詞-人名-姓 B-PERSON +知美 M1 名詞-固有名詞-人名-名 I-PERSON +・ S2 記号-一般 O +阪本 M1 名詞-固有名詞-人名-姓 B-PERSON +雅子 M1 名詞-固有名詞-人名-名 I-PERSON +( S2 記号-括弧開 O +NTT M7 名詞-固有名詞-組織 B-ORGANIZATION +東京 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +) S2 記号-括弧閉 O +2 S5 名詞-数 O +― S2 記号-一般 O +0 S5 名詞-数 O +中山 M1 名詞-固有名詞-人名-姓 B-PERSON +智香子 M1 名詞-固有名詞-人名-名 I-PERSON +・ S2 記号-一般 O +増茂 M1 名詞-固有名詞-人名-姓 B-PERSON +孝枝 M1 名詞-固有名詞-人名-名 I-PERSON +( S2 記号-括弧開 O +三洋電機 T6-1 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +、 S2 記号-読点 O +水井 M1 名詞-固有名詞-人名-姓 B-PERSON +妃佐子 M1 名詞-固有名詞-人名-名 I-PERSON +・ S2 記号-一般 O +水井 M1 名詞-固有名詞-人名-姓 B-PERSON +泰子 M1 名詞-固有名詞-人名-名 I-PERSON +( S2 記号-括弧開 O +フジチュー M10 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +2 S5 名詞-数 O +― S2 記号-一般 O +0 S5 名詞-数 O +井田 M1 名詞-固有名詞-人名-姓 B-PERSON +貴子 M1 名詞-固有名詞-人名-名 I-PERSON +・ S2 記号-一般 O +貴田 M1 名詞-固有名詞-人名-姓 B-PERSON +泉 S1 名詞-一般 I-PERSON +( S2 記号-括弧開 O +三洋電機 T6-1 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O + + S13 記号-空白 O +▽ S2 記号-一般 O +決勝 M1 名詞-一般 O + +松尾 M1 名詞-固有名詞-人名-姓 B-PERSON + S13 記号-空白 O +2 S5 名詞-数 O + S13 記号-空白 O +1 S5 名詞-数 O +― S2 記号-一般 O +2 S5 名詞-数 O + S13 記号-空白 O +0 S5 名詞-数 O + S13 記号-空白 O +水井 M1 名詞-固有名詞-人名-姓 B-PERSON +妃 S1 名詞-一般 O + +阪本 M1 名詞-固有名詞-人名-姓 B-PERSON + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +1 S5 名詞-数 O +― S2 記号-一般 O +9 S5 名詞-数 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +水井 M1 名詞-固有名詞-人名-姓 B-PERSON +泰 S1 名詞-固有名詞-地域-一般 O + + S13 記号-空白 O +( S2 記号-括弧開 O +松尾 M1 名詞-固有名詞-人名-姓 B-PERSON +・ S2 記号-一般 O +阪本 M1 名詞-固有名詞-人名-姓 B-PERSON +組 S1 名詞-一般 I-PERSON +は S9 助詞-係助詞 O +初 S1 接頭詞-名詞接続 O +優勝 M1 名詞-サ変接続 O +) S2 記号-括弧閉 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +混合 M1 名詞-サ変接続 O +ダブルス M10 名詞-一般 O +】 S2 記号-括弧閉 O + + S13 記号-空白 O +▽ S2 記号-一般 O +決勝 M1 名詞-一般 O + + S13 記号-空白 O +今井 M1 名詞-固有名詞-人名-姓 B-PERSON +彰宏 M1 名詞-固有名詞-人名-名 I-PERSON + S13 記号-空白 O +2 S5 名詞-数 O + S13 記号-空白 O +1 S5 名詞-数 O +― S2 記号-一般 O +7 S5 名詞-数 O + S13 記号-空白 O +1 S5 名詞-数 O + S13 記号-空白 O +植村 M1 名詞-固有名詞-人名-姓 B-PERSON +昭彦 M1 名詞-固有名詞-人名-名 I-PERSON + +・ S2 記号-一般 O +甲斐 M1 名詞-固有名詞-人名-姓 B-PERSON +美和 M1 名詞-固有名詞-人名-名 I-PERSON + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +1 S5 名詞-数 O +― S2 記号-一般 O +1 S5 名詞-数 O + S13 記号-空白 O +・ S2 記号-一般 O +田中 M1 名詞-固有名詞-人名-姓 B-PERSON +佐紀子 M1 名詞-固有名詞-人名-名 I-PERSON + +( S2 記号-括弧開 O +NTT M7 名詞-固有名詞-組織 B-ORGANIZATION +関西 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION + S13 記号-空白 O + S13 記号-空白 O +1 S5 名詞-数 O +― S2 記号-一般 O +1 S5 名詞-数 O + S13 記号-空白 O +( S2 記号-括弧開 O +NTT M7 名詞-固有名詞-組織 B-ORGANIZATION +関西 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION + +・ S2 記号-一般 O +NEC M7 名詞-固有名詞-組織 B-ORGANIZATION +九州 T6-1 名詞-固有名詞-地域-一般 I-ORGANIZATION +) S2 記号-括弧閉 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +・ S2 記号-一般 O +三洋電機 T6-1 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O + + S13 記号-空白 O +( S2 記号-括弧開 O +今井 M1 名詞-固有名詞-人名-姓 B-PERSON +・ S2 記号-一般 O +甲斐 M1 名詞-固有名詞-人名-姓 B-PERSON +組 S1 名詞-一般 O +は S9 助詞-係助詞 O +2 S5 名詞-数 O +年 S1 名詞-一般 O +連続 M1 名詞-サ変接続 O +2 S5 名詞-数 O +回 S1 動詞-自立 O +目 S1 名詞-一般 O +の S9 助詞-連体化 O +優勝 M1 名詞-サ変接続 O +) S2 記号-括弧閉 O + +現職 M1 名詞-一般 O +破り T1-9 動詞-自立 O +、 S2 記号-読点 O +現役 M1 名詞-一般 O +2 S5 名詞-数 O +人目 M1 名詞-一般 O +の S9 助詞-連体化 O +女性 M1 名詞-一般 O +町長 M1 名詞-一般 O +-- M2 記号-一般 O +京都 M1 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +野田 M1 名詞-固有名詞-人名-姓 B-PERSON +川町 M1 名詞-固有名詞-人名-姓 I-PERSON + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +任期 M1 名詞-一般 O +満了 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +伴う T1-9 動詞-自立 O +京都 M1 名詞-固有名詞-地域-一般 O +府 S1 名詞-一般 O +与謝 M1 名詞-固有名詞-地域-一般 O +郡 S1 名詞-一般 O +野田 M1 名詞-固有名詞-人名-姓 B-PERSON +川町 M1 名詞-固有名詞-人名-姓 I-PERSON +の S9 助詞-連体化 O +町長 M1 名詞-一般 O +選挙 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +十一日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +投票 M1 名詞-サ変接続 O +、 S2 記号-読点 O +即日 M1 名詞-副詞可能 O +開票 M1 名詞-サ変接続 O +され M9 動詞-自立 O +、 S2 記号-読点 O +無所属 M1 名詞-一般 O +で S9 助動詞 O +新人 M1 名詞-一般 O +の S9 助詞-連体化 O +前 S1 名詞-副詞可能 O +同 S1 接頭詞-名詞接続 O +町議会 M1 名詞-一般 O +議長 M1 名詞-一般 O +の S9 助詞-連体化 O +太田 M1 名詞-固有名詞-地域-一般 B-PERSON +貴美 M1 名詞-固有名詞-人名-名 I-PERSON +さん M9 名詞-接尾-人名 O +( S2 記号-括弧開 O +4 S5 名詞-数 O +) S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +三 S6 名詞-数 O +選 S1 動詞-自立 O +を S9 助詞-格助詞-一般 O +目指し T1-9 動詞-自立 O +た S9 助動詞 O +無所属 M1 名詞-一般 O +の S9 助詞-連体化 O +現職 M1 名詞-一般 O +、 S2 記号-読点 O +茂篭 M1 名詞-固有名詞-人名-姓 B-PERSON +憲郎 M1 名詞-固有名詞-人名-名 I-PERSON +氏 S1 名詞-接尾-人名 O +( S2 記号-括弧開 O +6 S5 名詞-数 O +) S2 記号-括弧閉 O += S2 記号-一般 O +自民 M1 名詞-固有名詞-組織 B-ORGANIZATION +推薦 M1 名詞-サ変接続 O += S2 記号-一般 O +を S9 助詞-格助詞-一般 O +百十八票差 T6-1 名詞-数 O +で S9 助動詞 O +破り T1-9 動詞-自立 O +、 S2 記号-読点 O +初 S1 接頭詞-名詞接続 O +当選 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +果たし T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +現職 M1 名詞-一般 O +の S9 助詞-連体化 O +女性 M1 名詞-一般 O +町長 M1 名詞-一般 O +は S9 助詞-係助詞 O +全国 M1 名詞-一般 O +で S9 助動詞 O +二 S6 名詞-数 O +人目 M1 名詞-一般 O +。 S2 記号-句点 O + +激戦 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +制し T1-9 動詞-自立 O +た S9 助動詞 O +太田 M1 名詞-固有名詞-地域-一般 B-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +公正 M1 名詞-形容動詞語幹 O +平等 M1 名詞-形容動詞語幹 O +を S9 助詞-格助詞-一般 O +むねと M9 副詞-一般 O +し S9 動詞-自立 O +、 S2 記号-読点 O +人 S1 名詞-一般 O +の S9 助詞-連体化 O +気持ち T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +大切 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +する M9 動詞-自立 O +行政 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +進め T1-9 動詞-自立 O +たい M9 助動詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +抱負 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +語っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 B-PERSON +太田 M1 名詞-固有名詞-地域-一般 I-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +京都 M1 名詞-固有名詞-地域-一般 B-LOCATION +市 S1 名詞-一般 I-LOCATION +出身 M1 名詞-一般 O +。 S2 記号-句点 O + +日航 M1 名詞-固有名詞-組織 B-ORGANIZATION +スチュワーデス M10 名詞-一般 O +など M9 助詞-副助詞 O +を S9 助詞-格助詞-一般 O +経て T1-9 動詞-自立 O +、 S2 記号-読点 O +町議 M1 名詞-一般 O +四期目 T6-1 名詞-数 O +。 S2 記号-句点 O + +夫 S1 名詞-一般 O +の S9 助詞-連体化 O +父 S1 名詞-一般 O +は S9 助詞-係助詞 O +避妊 M1 名詞-サ変接続 O +器具 M1 名詞-一般 O +「 S2 記号-括弧開 O +太田リング T1-10 名詞-固有名詞-一般 B-ARTIFACT +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +考案 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +衆院 M1 名詞-固有名詞-組織 B-ORGANIZATION +議員 M1 名詞-一般 O +として M9 助詞-格助詞-連語 O +優生 M1 名詞-一般 B-ARTIFACT +保護 M1 名詞-サ変接続 I-ARTIFACT +法 S1 名詞-一般 I-ARTIFACT +の S9 助詞-連体化 O +制定 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +尽くし T1-9 動詞-自立 O +た S9 助動詞 O +故 S1 接頭詞-名詞接続 O +太田 M1 名詞-固有名詞-地域-一般 B-PERSON +典礼 M1 名詞-一般 I-PERSON +氏 S1 名詞-接尾-人名 O +( S2 記号-括弧開 O +一 S6 名詞-数 O +○ S2 記号-一般 O +○ S2 記号-一般 O +― S2 記号-一般 O +八 S6 名詞-数 O +) S2 記号-括弧閉 O +。 S2 記号-句点 O + +義父 M1 名詞-一般 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +女性 M1 名詞-一般 O +も S9 助詞-係助詞 O +社会 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +な S9 助詞-終助詞 O +仕事 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +持つ T1-9 動詞-自立 O +べき M9 助動詞 O +だ S9 助動詞 O +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +言葉 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +触発 M1 名詞-サ変接続 O +され M9 動詞-自立 O +、 S2 記号-読点 O +政治 M1 名詞-一般 O +の S9 助詞-連体化 O +道 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +入っ T1-9 動詞-自立 O +た S9 助動詞 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + + S13 記号-空白 B-PERSON +太田 M1 名詞-固有名詞-地域-一般 I-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +三千六百四十五票 T6-1 名詞-数 O +、 S2 記号-読点 O +茂篭 M1 名詞-固有名詞-人名-姓 B-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +三千五百二十七票 T6-1 名詞-数 O +。 S2 記号-句点 O + +当日 M1 名詞-副詞可能 O +有権者 M1 名詞-一般 O +数 S1 名詞-数 O +は S9 助詞-係助詞 O +八千五百四十五人 T6-1 名詞-数 O +。 S2 記号-句点 O + +投票 M1 名詞-サ変接続 O +率 S1 名詞-一般 O +は S9 助詞-係助詞 O +八 S6 名詞-数 B-PERCENT +・ S2 記号-一般 I-PERCENT +八 S6 名詞-数 I-PERCENT +% S2 名詞-接尾-助数詞 I-PERCENT +。 S2 記号-句点 O + + S13 記号-空白 O +女性 M1 名詞-一般 O +首長 M1 名詞-一般 O +は S9 助詞-係助詞 O +現在 M1 名詞-副詞可能 O +、 S2 記号-読点 O +福島 M1 名詞-固有名詞-地域-一般 B-LOCATION +県 S1 名詞-一般 I-LOCATION +東白川 M1 名詞-固有名詞-地域-一般 I-LOCATION +郡 S1 名詞-一般 I-LOCATION +棚倉 M1 名詞-固有名詞-人名-姓 I-LOCATION +町 S1 名詞-一般 O +の S9 助詞-連体化 O +藤田 M1 名詞-固有名詞-人名-姓 B-PERSON +満寿恵 M1 名詞-固有名詞-人名-名 I-PERSON +町長 M1 名詞-一般 O +ら S9 名詞-接尾-一般 O +市長 M1 名詞-一般 O +、 S2 記号-読点 O +町長 M1 名詞-一般 O +、 S2 記号-読点 O +村長 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +各 S1 接頭詞-名詞接続 O +一人 T6-1 名詞-一般 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +実業 M1 名詞-一般 O +団 S1 名詞-一般 O +女子 M1 名詞-一般 O +駅伝 M1 名詞-一般 O + S13 記号-空白 O +一区 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +から M9 助詞-格助詞-一般 O +一気 T6-1 名詞-一般 O +、 S2 記号-読点 O +大会 M1 名詞-一般 O +新 S1 接頭詞-名詞接続 O +―― M2 記号-一般 O +リクルート M10 名詞-固有名詞-組織 B-ORGANIZATION +V2 T7-5 名詞-固有名詞-一般 O + + S13 記号-空白 O +リクルート M10 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +圧勝 M1 名詞-サ変接続 O +だっ M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +一区 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +志水 M1 名詞-固有名詞-人名-姓 B-PERSON +が S9 助詞-格助詞-一般 O +最初 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +積極 M1 名詞-形容動詞語幹 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +飛ばし T1-9 動詞-自立 O +、 S2 記号-読点 O +二 S6 名詞-数 O +位 S1 名詞-副詞可能 O +グループ M10 名詞-一般 O +の S9 助詞-連体化 O +ダイハツ M10 名詞-固有名詞-組織 B-ORGANIZATION +、 S2 記号-読点 O +京セラ T1-10 名詞-固有名詞-組織 B-ORGANIZATION +、 S2 記号-読点 O +横浜銀行 M1 名詞-固有名詞-組織 B-ORGANIZATION +、 S2 記号-読点 O +沖電気 M1 名詞-固有名詞-組織 B-ORGANIZATION +宮崎 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +ら S9 名詞-接尾-一般 O +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +差 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +どんどん M9 副詞-助詞類接続 O +広げ T1-9 動詞-自立 O +、 S2 記号-読点 O +区間 M1 名詞-一般 O +新 S1 接頭詞-名詞接続 O +の S9 助詞-連体化 O +走りで T1-9 動詞-自立 O +1 S5 名詞-数 O +メートル M10 名詞-一般 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +貯金 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +二区 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +鈴木 M1 名詞-固有名詞-人名-姓 B-PERSON +智香子 M1 名詞-固有名詞-人名-名 I-PERSON +に S9 助詞-格助詞-一般 O +たすき M9 名詞-一般 O +を S9 助詞-格助詞-一般 O +渡し T1-9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + +鈴木 M1 名詞-固有名詞-人名-姓 B-PERSON +智香子 M1 名詞-固有名詞-人名-名 I-PERSON +が S9 助詞-格助詞-一般 O +さらに M9 副詞-助詞類接続 O +リード M10 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +大き T1-9 形容詞-自立 O +くし M9 形容詞-自立 O +て S9 助詞-接続助詞 O +大勢 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +決め T1-9 動詞-自立 O +、 S2 記号-読点 O +あと M9 名詞-非自立-副詞可能 O +は S9 助詞-係助詞 O +二 S6 名詞-数 O +位 S1 名詞-副詞可能 O +争い T1-9 名詞-一般 O +に S9 助詞-格助詞-一般 O +注目 M1 名詞-サ変接続 O +せ S9 動詞-自立 O +ざる M9 助動詞 O +を S9 助詞-格助詞-一般 O +得 S1 名詞-一般 O +ない M9 形容詞-自立 O +レース M10 名詞-一般 O +にし M9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +二区 T6-1 名詞-固有名詞-地域-一般 O +は S9 助詞-係助詞 O +京セラ T1-10 名詞-固有名詞-組織 B-ORGANIZATION +だっ M9 助動詞 O +た S9 助動詞 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +三区 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +では M9 接続詞 O +7 S5 名詞-数 O +人 S1 名詞-一般 O +抜き T1-9 名詞-一般 O +の S9 助詞-連体化 O +鍾 S1 名詞-一般 O +の S9 助詞-連体化 O +走りで T1-9 動詞-自立 O +ニコニコドー M10 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +二 S6 名詞-数 O +位 S1 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +躍り出 T9-1 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +四区 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +で S9 助動詞 O +地力 M1 名詞-一般 O +の S9 助詞-連体化 O +ある M9 動詞-自立 O +富士銀行 M1 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +上がっ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +きた M9 名詞-一般 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +日本ケミコン T1-10 名詞-固有名詞-組織 B-ORGANIZATION +など M9 助詞-副助詞 O +が S9 助詞-格助詞-一般 O +健闘 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +まだ M9 副詞-助詞類接続 O +混とん T1-9 名詞-一般 O +。 S2 記号-句点 O + +五 S6 名詞-数 O +区 S1 名詞-一般 O +で S9 助動詞 O +片岡 M1 名詞-固有名詞-人名-姓 B-PERSON +が S9 助詞-格助詞-一般 O +快走 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +ようやく M9 副詞-一般 O +二 S6 名詞-数 O +位 S1 名詞-副詞可能 O +が S9 助詞-格助詞-一般 O +決定的 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +。 S2 記号-句点 O + +最終 M1 名詞-一般 O +六 S6 名詞-数 O +区 S1 名詞-一般 O +では M9 接続詞 O +沖電気 M1 名詞-固有名詞-組織 B-ORGANIZATION +宮崎 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +と S9 助詞-格助詞-引用 O +東海銀行 M1 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +激しい T1-9 形容詞-自立 O +三位 T6-1 名詞-一般 O +争い T1-9 名詞-一般 O +。 S2 記号-句点 O + +東海銀行 M1 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +アンカー M10 名詞-一般 O +本荘 M1 名詞-固有名詞-人名-姓 B-PERSON +が S9 助詞-格助詞-一般 O +地元 M1 名詞-一般 O +の S9 助詞-連体化 O +意地 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +見せ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +独り旅 T9-1 名詞-一般 O +」 S2 記号-括弧閉 O +の S9 助詞-連体化 O +リクルート M10 名詞-固有名詞-組織 B-ORGANIZATION +は S9 助詞-係助詞 O +三区 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +五十嵐 T6-1 名詞-固有名詞-人名-姓 B-PERSON +が S9 助詞-格助詞-一般 O +区間 M1 名詞-一般 O +新 S1 接頭詞-名詞接続 O +で S9 助動詞 O +走り T1-9 名詞-一般 O +、 S2 記号-読点 O +あと M9 名詞-非自立-副詞可能 O +は S9 助詞-係助詞 O +記録 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +戦い T1-9 名詞-一般 O +。 S2 記号-句点 O + +区間 M1 名詞-一般 O +距離 M1 名詞-一般 O +など M9 助詞-副助詞 O +諸 S1 接頭詞-名詞接続 O +条件 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +違う T1-9 動詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +エース M10 名詞-一般 O +級 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +たすき M9 名詞-一般 O +リレー M10 名詞-サ変接続 O +した M9 名詞-一般 O +先月 M1 名詞-副詞可能 B-DATE +の S9 助詞-連体化 O +国際 M1 名詞-一般 B-ORGANIZATION +千葉 T6-1 名詞-固有名詞-地域-一般 I-ORGANIZATION +駅伝 M1 名詞-一般 I-ORGANIZATION +の S9 助詞-連体化 O +記録 M1 名詞-サ変接続 O +より M9 副詞-一般 O +1 S5 名詞-数 O +分 S1 動詞-自立 O +半 S1 名詞-一般 B-PERCENT +以上 M1 名詞-非自立-副詞可能 O +も S9 助詞-係助詞 O +速い T1-9 形容詞-自立 O +見事 M1 名詞-形容動詞語幹 O +さ S9 助詞-終助詞 O +だっ M9 助動詞 O +た S9 助動詞 O +。 S2 記号-句点 O + +( S2 記号-括弧開 O +岩元 M1 名詞-固有名詞-人名-姓 B-ARTIFACT +晢 S1 名詞-一般 I-ARTIFACT +) S2 記号-括弧閉 O + +「 S2 記号-括弧開 O +人生 M1 名詞-一般 B-ARTIFACT +を S9 助詞-格助詞-一般 I-ARTIFACT +考え直す T1-9 動詞-自立 I-ARTIFACT +勇気 M1 名詞-一般 I-ARTIFACT +を S9 助詞-格助詞-一般 I-ARTIFACT +与え T1-9 動詞-自立 I-ARTIFACT +られ M9 動詞-接尾 I-ARTIFACT +た S9 助動詞 I-ARTIFACT +」 S2 記号-括弧閉 I-ARTIFACT +―― M2 記号-一般 I-ARTIFACT +ノーベル M10 名詞-固有名詞-人名-一般 I-ARTIFACT +賞 S1 名詞-一般 I-ARTIFACT +受賞 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +大江 M1 名詞-固有名詞-人名-姓 B-PERSON +健三郎 T6-1 名詞-固有名詞-人名-名 I-PERSON +さん M9 名詞-接尾-人名 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +ストックホルム M10 名詞-固有名詞-地域-一般 B-LOCATION +1 S5 名詞-数 O +日 S1 名詞-一般 O +佐藤 M1 名詞-固有名詞-人名-姓 B-PERSON +由紀 M1 名詞-固有名詞-人名-姓 I-PERSON +】 S2 記号-括弧閉 O +「 S2 記号-括弧開 O +自分 M1 名詞-一般 O +の S9 助詞-連体化 O +人生 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +考え直す T1-9 動詞-自立 O +勇気 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +与え T1-9 動詞-自立 O +られ M9 動詞-接尾 O +た S9 助動詞 O +」 S2 記号-括弧閉 O +―― M2 記号-一般 O +。 S2 記号-句点 O + +大江 M1 名詞-固有名詞-人名-姓 B-PERSON +健三郎 T6-1 名詞-固有名詞-人名-名 I-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +十日午後五時半 T6-1 名詞-数 O +すぎ M9 名詞-接尾-副詞可能 O +( S2 記号-括弧開 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +時間 M1 名詞-副詞可能 O +十一日午前一時半 T6-1 名詞-数 O +すぎ M9 名詞-接尾-副詞可能 O +) S2 記号-括弧閉 O +、 S2 記号-読点 O +ノーベル M10 名詞-固有名詞-人名-一般 B-ARTIFACT +賞 S1 名詞-一般 I-ARTIFACT +授賞 M1 名詞-サ変接続 O +式 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +終え T1-9 動詞-自立 O +た S9 助動詞 O +ストックホルム M10 名詞-固有名詞-地域-一般 B-LOCATION +の S9 助詞-連体化 O +コンサートホール M10 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +こう M9 副詞-助詞類接続 O +語っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +大江 M1 名詞-固有名詞-人名-姓 B-PERSON +さん M9 名詞-接尾-人名 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +カール・グスタフ・スウェーデン T2-10 名詞-一般 O +国王 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +証書 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +金メダル T1-10 名詞-一般 O +を S9 助詞-格助詞-一般 O +手渡さ T1-9 動詞-自立 O +れる M9 動詞-接尾 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +会場 M1 名詞-一般 O +から M9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +ひときわ M9 副詞-一般 O +大きな T1-9 連体詞 O +拍手 M1 名詞-サ変接続 O +。 S2 記号-句点 O + +客席 M1 名詞-一般 O +の S9 助詞-連体化 O +前 S1 名詞-副詞可能 O +から M9 助詞-格助詞-一般 O +六 S6 名詞-数 O +番目 M1 名詞-接尾-助数詞 O +に S9 助詞-格助詞-一般 O +座っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +ゆかり M9 名詞-一般 O +夫人 M1 名詞-一般 O +は S9 助詞-係助詞 O +そっと M9 副詞-一般 O +目頭 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +押さえる T1-9 動詞-自立 O +。 S2 記号-句点 O + +手 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +大きく T1-9 形容詞-自立 O +横 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +広げ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +一番 T6-1 名詞-副詞可能 O +力 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +込め T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +拍手 M1 名詞-サ変接続 O +した M9 名詞-一般 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +長男 M1 名詞-一般 O +の S9 助詞-連体化 O +光 S1 名詞-一般 O +さん M9 名詞-接尾-人名 O +だ S9 助動詞 O +。 S2 記号-句点 O + +振りそで T1-9 名詞-一般 O +姿 S1 名詞-一般 O +の S9 助詞-連体化 O +長女 M1 名詞-一般 O +菜採子 M1 名詞-固有名詞-人名-名 B-PERSON +( S2 記号-括弧開 O +なつみこ M9 名詞-固有名詞-人名-名 O +) S2 記号-括弧閉 O +さん M9 名詞-接尾-人名 O +も S9 助詞-係助詞 O +まぶし M9 形容詞-自立 O +そう M9 副詞-助詞類接続 O +に S9 助詞-格助詞-一般 O +父親 M1 名詞-一般 O +の S9 助詞-連体化 O +晴れ姿 T9-1 名詞-一般 O +を S9 助詞-格助詞-一般 O +見つめ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +授賞 M1 名詞-サ変接続 O +式 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +続い T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +市庁舎 M1 名詞-一般 O +ブルーホール M10 名詞-固有名詞-一般 O +で S9 助動詞 O +開か T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +晩さん T1-9 名詞-一般 O +会 S1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +千 S6 名詞-数 B-PERSON +三百人 T6-1 名詞-固有名詞-地域-一般 I-PERSON +が S9 助詞-格助詞-一般 O +正装 M1 名詞-サ変接続 O +で S9 助動詞 O +出席 M1 名詞-サ変接続 O +、 S2 記号-読点 O +大江 M1 名詞-固有名詞-人名-姓 B-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +日本人 M1 名詞-一般 O +として M9 助詞-格助詞-連語 O +の S9 助詞-連体化 O +文学 M1 名詞-一般 O +・ S2 記号-一般 O +文化 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +探求 M1 名詞-サ変接続 O +する M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +いくらか M9 副詞-一般 O +でも M9 助詞-副助詞 O +西欧 M1 名詞-固有名詞-地域-一般 B-LOCATION +に対して T1-9 助詞-格助詞-連語 O +お返し T1-9 名詞-サ変接続 O +したい M9 動詞-自立 O +。 S2 記号-句点 O + +この M9 連体詞 O +賞 S1 名詞-一般 O +は S9 助詞-係助詞 O +その M9 連体詞 O +機会 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +与え T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +くれ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +お返し T1-9 名詞-サ変接続 O +は S9 助詞-係助詞 O +始まっ T1-9 動詞-自立 O +たばかり M9 動詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +英語 M1 名詞-一般 O +で S9 助動詞 O +謝辞 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +述べ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +大江 M1 名詞-固有名詞-人名-姓 B-PERSON +さん M9 名詞-接尾-人名 O +は S9 助詞-係助詞 O +十一日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +に S9 助詞-格助詞-一般 O +マールバッハ M10 名詞-固有名詞-地域-一般 B-LOCATION +を S9 助詞-格助詞-一般 O +訪問 M1 名詞-サ変接続 O +し S9 動詞-自立 O +、 S2 記号-読点 O +十 S6 名詞-数 B-DATE +、 S2 記号-読点 I-DATE +十 S6 名詞-数 I-DATE +両日 M1 名詞-一般 I-DATE +、 S2 記号-読点 O +それぞれ M9 名詞-副詞可能 O +イエーテボリ大学 T10-1 名詞-固有名詞-組織 B-ORGANIZATION +、 S2 記号-読点 O +ルンド M10 名詞-固有名詞-一般 O +大学 M1 名詞-一般 O +で S9 助動詞 O +講演 M1 名詞-サ変接続 O +した M9 名詞-一般 O +のち M9 名詞-副詞可能 O +十四日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +家族 M1 名詞-一般 O +とともに M9 助詞-格助詞-連語 O +帰国 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +途 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +就く T1-9 動詞-自立 O +。 S2 記号-句点 O + +学校 M1 名詞-一般 O +の S9 助詞-連体化 O +窓 S1 名詞-一般 O +ガラス M10 名詞-一般 O +、 S2 記号-読点 O +割 S1 名詞-一般 O +られる M9 動詞-接尾 O + S13 記号-空白 O +1 S5 名詞-数 O +枚 S1 接頭詞-数接続 O +、 S2 記号-読点 O +悪質 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +いやがらせ M9 名詞-一般 O +? S2 記号-一般 O +―― M2 記号-一般 O +いじめ M9 名詞-一般 O +自殺 M1 名詞-サ変接続 O +・ S2 記号-一般 O +東部中 M1 名詞-固有名詞-組織 B-ORGANIZATION + + S13 記号-空白 O +いじめ M9 名詞-一般 O +を S9 助詞-格助詞-一般 O +苦 S1 形容詞-自立 O +にし M9 名詞-一般 O +て S9 助詞-接続助詞 O +自殺 M1 名詞-サ変接続 O +した M9 名詞-一般 O +大河内 M1 名詞-固有名詞-人名-姓 B-PERSON +清輝 M1 名詞-固有名詞-人名-名 I-PERSON +君 S1 名詞-代名詞-一般 O +( S2 記号-括弧開 O +1 S5 名詞-数 O +) S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +通っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +愛知 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +県 S1 名詞-一般 I-ORGANIZATION +西尾 M1 名詞-固有名詞-地域-一般 I-ORGANIZATION +市立 M1 名詞-一般 I-ORGANIZATION +東部中 M1 名詞-固有名詞-組織 I-ORGANIZATION +( S2 記号-括弧開 O +間宮 M1 名詞-固有名詞-人名-姓 B-PERSON +衛 S1 名詞-固有名詞-人名-名 I-PERSON +校長 M1 名詞-一般 O +) S2 記号-括弧閉 O += S2 記号-一般 O +同市 M1 名詞-一般 O +下永良 M1 名詞-固有名詞-地域-一般 B-LOCATION +町 S1 名詞-一般 I-LOCATION +西後 M1 名詞-固有名詞-地域-一般 I-LOCATION +落 S1 名詞-一般 O += S2 記号-一般 O +の S9 助詞-連体化 O +校長 M1 名詞-一般 O +室 S1 名詞-一般 O +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +窓 S1 名詞-一般 O +ガラス M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +割 S1 名詞-一般 O +られ M9 動詞-接尾 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +の S9 助詞-連体化 O +が S9 助詞-格助詞-一般 O +十二日朝 T6-1 名詞-数 O +、 S2 記号-読点 O +見つかっ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +いじめ M9 名詞-一般 O +自殺 M1 名詞-サ変接続 O +に対する T1-9 助詞-格助詞-連語 O +学校 M1 名詞-一般 O +側 S1 名詞-接尾-一般 O +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +悪質 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +いやがらせ M9 名詞-一般 O +ともみ M9 名詞-固有名詞-人名-名 O +られ M9 動詞-接尾 O +、 S2 記号-読点 O +学校 M1 名詞-一般 O +再建 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +取り組む T1-9 動詞-自立 O +関係 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +に S9 助詞-格助詞-一般 O +ショック M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +与え T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +西尾 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +署 S1 名詞-一般 I-ORGANIZATION +の S9 助詞-連体化 O +調べ T1-9 名詞-一般 O +など M9 助詞-副助詞 O +による M9 助詞-格助詞-連語 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +割 S1 名詞-一般 O +られ M9 動詞-接尾 O +ていた M9 形容詞-自立 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +三棟 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +ある M9 動詞-自立 O +校舎 M1 名詞-一般 O +の S9 助詞-連体化 O +うち M9 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +北側 M1 名詞-一般 O +校舎 M1 名詞-一般 O +一 S6 名詞-数 O +階 S1 名詞-一般 O +の S9 助詞-連体化 O +職員 M1 名詞-一般 O +室 S1 名詞-一般 O +北側 M1 名詞-一般 O +の S9 助詞-連体化 O +窓 S1 名詞-一般 O +ガラス M10 名詞-一般 O +( S2 記号-括弧開 O +七 S6 名詞-数 O +センチ M10 名詞-一般 O +× S2 記号-一般 O +六 S6 名詞-数 O +センチ M10 名詞-一般 O +) S2 記号-括弧閉 O +七 S6 名詞-数 O +枚 S1 接頭詞-数接続 O +と S9 助詞-格助詞-引用 O +校長 M1 名詞-一般 O +室 S1 名詞-一般 O +南側 M1 名詞-一般 O +の S9 助詞-連体化 O +窓 S1 名詞-一般 O +ガラス M10 名詞-一般 O +( S2 記号-括弧開 O +七 S6 名詞-数 O +センチ M10 名詞-一般 O +× S2 記号-一般 O +九 S6 名詞-数 O +センチ M10 名詞-一般 O +) S2 記号-括弧閉 O +五 S6 名詞-数 O +枚 S1 接頭詞-数接続 O +、 S2 記号-読点 O +さらに M9 副詞-助詞類接続 O +、 S2 記号-読点 O +真ん中 T9-1 名詞-一般 O +の S9 助詞-連体化 O +校舎 M1 名詞-一般 O +一 S6 名詞-数 O +階 S1 名詞-一般 O +、 S2 記号-読点 O +三 S6 名詞-数 O +年 S1 名詞-一般 O +A S7 記号-アルファベット O +組 S1 名詞-一般 O +の S9 助詞-連体化 O +廊下 M1 名詞-一般 O +北側 M1 名詞-一般 O +の S9 助詞-連体化 O +窓 S1 名詞-一般 O +ガラス M10 名詞-一般 O +( S2 記号-括弧開 O +八 S6 名詞-数 O +・ S2 記号-一般 O +五 S6 名詞-数 O +センチ M10 名詞-一般 O +× S2 記号-一般 O +一 S6 名詞-数 O +〇 S2 記号-一般 O +センチ M10 名詞-一般 O +) S2 記号-括弧閉 O +一 S6 名詞-数 O +枚 S1 接頭詞-数接続 O +の S9 助詞-連体化 O +計 S1 接頭詞-数接続 O +十 S6 名詞-数 O +三枚 T6-1 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +現場 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +石 S1 名詞-一般 O +の S9 助詞-連体化 O +よう M9 名詞-非自立-助動詞語幹 O +な S9 助詞-終助詞 O +もの M9 名詞-非自立-一般 O +は S9 助詞-係助詞 O +残っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +おら M9 名詞-代名詞-一般 O +ず S9 助動詞 O +、 S2 記号-読点 O +棒 S1 名詞-一般 O +など M9 助詞-副助詞 O +で S9 助動詞 O +たたき M9 動詞-自立 O +割 S1 名詞-一般 O +ったらしい M9 形容詞-接尾 O +。 S2 記号-句点 O + + S13 記号-空白 O +十一日午後十一時四十五分 T6-1 名詞-数 O +ごろ M9 名詞-接尾-副詞可能 O +、 S2 記号-読点 O +教師 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +帰宅 M1 名詞-サ変接続 O +した M9 名詞-一般 O +時には T1-9 副詞-一般 O +異常 M1 名詞-形容動詞語幹 O +が S9 助詞-格助詞-一般 O +なかっ M9 形容詞-自立 O +た S9 助動詞 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +十二日午前六時五十分 T6-1 名詞-数 O +ごろ M9 名詞-接尾-副詞可能 O +、 S2 記号-読点 O +部 S1 名詞-一般 O +活動 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +ため M9 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +登校 M1 名詞-サ変接続 O +した M9 名詞-一般 O +生徒 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +見つけ T1-9 動詞-自立 O +、 S2 記号-読点 O +校長 M1 名詞-一般 O +を通じ T1-9 助詞-格助詞-連語 O +午前 M1 名詞-副詞可能 O +八時 T6-1 名詞-一般 O +十分 T6-1 名詞-形容動詞語幹 O +ごろ M9 名詞-接尾-副詞可能 O +、 S2 記号-読点 O +同署 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +届け T1-9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + +稲垣 M1 名詞-固有名詞-人名-姓 B-PERSON +善彦 M1 名詞-固有名詞-人名-名 I-PERSON +教頭 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +( S2 記号-括弧開 O +清輝 M1 名詞-固有名詞-人名-名 B-PERSON +君 S1 名詞-代名詞-一般 O +の S9 助詞-連体化 O +自殺 M1 名詞-サ変接続 O +について M9 助詞-格助詞-連語 O +) S2 記号-括弧閉 O +学校 M1 名詞-一般 O +の S9 助詞-連体化 O +責任 M1 名詞-一般 O +だ S9 助動詞 O +と S9 助詞-格助詞-引用 O +思う T1-9 動詞-自立 O +人 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +やっ M9 動詞-自立 O +た S9 助動詞 O +の S9 助詞-連体化 O +かも M9 助詞-副助詞 O +。 S2 記号-句点 O + +残念 M1 名詞-形容動詞語幹 O +です M9 助動詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +話し T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +同校 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +自殺 M1 名詞-サ変接続 O +に関する T1-9 助詞-格助詞-連語 O +電話 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +頻繁 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +かかっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +中 S1 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +あんた M9 名詞-代名詞-一般 O +たち M9 名詞-接尾-一般 O +が S9 助詞-格助詞-一般 O +死ん T1-9 動詞-自立 O +でし M9 助動詞 O +ま S9 フィラー O +え S9 フィラー O +」 S2 記号-括弧閉 O +という M9 助詞-格助詞-連語 O +過激 M1 名詞-一般 O +な S9 助詞-終助詞 O +もの M9 名詞-非自立-一般 O +も S9 助詞-係助詞 O +あっ M9 感動詞 O +た S9 助動詞 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +産 S1 名詞-接尾-地域 O +リンゴ M10 名詞-一般 O +、 S2 記号-読点 O +来月 M1 名詞-副詞可能 O +上陸 M1 名詞-サ変接続 O + S13 記号-空白 O +甘く T1-9 形容詞-自立 O +歯ごたえ T1-9 名詞-一般 O +十分 T6-1 名詞-形容動詞語幹 O +-- M2 記号-一般 O +将来 M1 名詞-副詞可能 O +は S9 助詞-係助詞 O +低 S1 形容詞-自立 O +価格 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O + + S13 記号-空白 O +輸入 M1 名詞-サ変接続 O +解禁 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +伴う T1-9 動詞-自立 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +産 S1 名詞-接尾-地域 O +リンゴ M10 名詞-一般 O +の S9 助詞-連体化 O +第 S1 接頭詞-数接続 O +一 S6 名詞-数 O +便 S1 動詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +年明け T1-9 名詞-一般 B-DATE +早々 T1-2 副詞-助詞類接続 O +の S9 助詞-連体化 O +一月 T6-1 名詞-副詞可能 O +三日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +に S9 助詞-格助詞-一般 O +上陸 M1 名詞-サ変接続 O +する M9 動詞-自立 O +見通し T1-9 名詞-一般 O +と S9 助詞-格助詞-引用 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +八日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +まで M9 助詞-副助詞 O +の S9 助詞-連体化 O +六 S6 名詞-数 O +日間 M1 名詞-接尾-助数詞 O +に S9 助詞-格助詞-一般 O +横浜 M1 名詞-固有名詞-地域-一般 B-LOCATION +など M9 助詞-副助詞 O +に S9 助詞-格助詞-一般 O +約 S1 接頭詞-数接続 O +四 S6 名詞-数 O +トン M10 名詞-一般 O +入港 M1 名詞-サ変接続 O +、 S2 記号-読点 O +数 S1 名詞-数 O +日 S1 名詞-一般 O +後に T1-9 副詞-一般 O +は S9 助詞-係助詞 O +店頭 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +出回る T1-9 動詞-自立 O +。 S2 記号-句点 O + +すでに M9 副詞-一般 O +サンプル M10 名詞-一般 O +約 S1 接頭詞-数接続 O +八 S6 名詞-数 O +キロ M10 名詞-一般 O +は S9 助詞-係助詞 O +米国 M1 名詞-固有名詞-地域-国 B-LOCATION +大使館 M1 名詞-一般 O +あて M9 名詞-一般 O +で S9 助動詞 O +今月 M1 名詞-副詞可能 B-DATE +十一日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +到着 M1 名詞-サ変接続 O +、 S2 記号-読点 O +検査 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +合格 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +東京 M1 名詞-固有名詞-地域-一般 O +都内 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +先月 M1 名詞-副詞可能 B-DATE +開設 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +米 S1 名詞-固有名詞-地域-国 B-LOCATION +ワシントン M10 名詞-固有名詞-地域-一般 I-LOCATION +州 S1 名詞-一般 I-LOCATION +の S9 助詞-連体化 O +生産 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +団体 M1 名詞-一般 O +アップル・コミッション T2-10 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +広報 M1 名詞-サ変接続 O +センター M10 名詞-一般 O +による M9 助詞-格助詞-連語 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +輸入 M1 名詞-サ変接続 O +業者 M1 名詞-一般 O +は S9 助詞-係助詞 O +大手 M1 名詞-一般 O +ス S10 動詞-自立 O +ーパーのダイエーをはじめ T10-9 名詞-一般 O +、 S2 記号-読点 O +商社 M1 名詞-一般 O +など M9 助詞-副助詞 O +約 S1 接頭詞-数接続 O +五十社 T6-1 名詞-数 O +。 S2 記号-句点 O + +ワシントン M10 名詞-固有名詞-地域-一般 B-LOCATION +州 S1 名詞-一般 I-LOCATION +東部 M1 名詞-一般 O +ウェナッチ M10 名詞-固有名詞-地域-一般 B-LOCATION +産 S1 名詞-接尾-地域 O +の S9 助詞-連体化 O +レッドデリシャス M10 名詞-一般 O +、 S2 記号-読点 O +ゴールデンデリシャス M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +輸入 M1 名詞-サ変接続 O +する M9 動詞-自立 O +。 S2 記号-句点 O + +商社 M1 名詞-一般 O +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +話 S1 名詞-サ変接続 O +では M9 接続詞 O +、 S2 記号-読点 O +価格 M1 名詞-一般 O +は S9 助詞-係助詞 O +小売 M1 名詞-サ変接続 O +値 S1 名詞-一般 O +ベース M10 名詞-一般 O +で S9 助動詞 O +一 S6 名詞-数 O +キロ M10 名詞-一般 O +四 S6 名詞-数 B-MONEY +円 S1 名詞-一般 I-MONEY +前後 M1 名詞-副詞可能 O +と S9 助詞-格助詞-引用 O +見込 M1 名詞-一般 O +まれ M9 名詞-形容動詞語幹 O +、 S2 記号-読点 O +国産 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +同 S1 接頭詞-名詞接続 O +水準 M1 名詞-一般 O +か S9 助詞-副助詞/並立助詞/終助詞 O +やや M9 副詞-一般 O +安い T1-9 形容詞-自立 O +程度 M1 名詞-一般 O +。 S2 記号-句点 O + +しっかり M9 副詞-助詞類接続 O +した M9 名詞-一般 O +歯ごたえ T1-9 名詞-一般 O +で S9 助動詞 O +糖度 M1 名詞-一般 O +も S9 助詞-係助詞 O +高い T1-9 形容詞-自立 O +という M9 助詞-格助詞-連語 O +。 S2 記号-句点 O + + S13 記号-空白 O +「 S2 記号-括弧開 O +低 S1 形容詞-自立 O +価格 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +武器 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +したい M9 動詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +検疫 M1 名詞-サ変接続 O +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +煩雑 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +手続き T1-9 名詞-サ変接続 O +で S9 助動詞 O +コスト M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +押し上げ T1-9 名詞-一般 O +られ M9 動詞-接尾 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +」 S2 記号-括弧閉 O +( S2 記号-括弧開 O +果実 M1 名詞-一般 O +専門 M1 名詞-一般 O +商社 M1 名詞-一般 O +) S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +いい M9 形容詞-自立 O +、 S2 記号-読点 O +将来 M1 名詞-副詞可能 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +国産 M1 名詞-一般 O +より M9 副詞-一般 O +二 S6 名詞-数 B-PERCENT +― S2 記号-一般 I-PERCENT +三 S6 名詞-数 I-PERCENT +割 S1 名詞-一般 I-PERCENT +安い T1-9 形容詞-自立 O +小玉 M1 名詞-一般 O +一個五十円 T6-1 名詞-数 O +、 S2 記号-読点 O +超 S1 接頭詞-名詞接続 O +大玉 M1 名詞-一般 O +百 S6 名詞-数 O +― S2 記号-一般 O +百三十円程度 T6-1 名詞-数 O +で S9 助動詞 O +売り T1-9 動詞-自立 O +たい M9 助動詞 O +として M9 助詞-格助詞-連語 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +一方 T6-1 接続詞 O +、 S2 記号-読点 O +迎え撃つ T1-9 動詞-自立 O +国内 M1 名詞-一般 O +の S9 助詞-連体化 O +リンゴ M10 名詞-一般 O +産地 M1 名詞-一般 O +は S9 助詞-係助詞 O +「 S2 記号-括弧開 O +品質 M1 名詞-一般 O +は S9 助詞-係助詞 O +もとより M9 副詞-一般 O +価格 M1 名詞-一般 O +面 S1 名詞-一般 O +でも M9 助詞-副助詞 O +大きな T1-9 連体詞 O +脅威 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +なら M9 助動詞 O +ない M9 形容詞-自立 O +と S9 助詞-格助詞-引用 O +思う T1-9 動詞-自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +話題 M1 名詞-一般 O +性 S1 名詞-一般 O +や S9 助詞-並立助詞 O +スーパー M10 名詞-一般 O +など M9 助詞-副助詞 O +の S9 助詞-連体化 O +企画 M1 名詞-サ変接続 O +販売 M1 名詞-サ変接続 O +で S9 助動詞 O +消費 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +に S9 助詞-格助詞-一般 O +定着 M1 名詞-サ変接続 O +する M9 動詞-自立 O +こと M9 名詞-非自立-一般 O +は S9 助詞-係助詞 O +考え T1-9 名詞-一般 O +られる M9 動詞-接尾 O +」 S2 記号-括弧閉 O +( S2 記号-括弧開 O +長野県経済連 M1 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +分析 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +みんな M9 名詞-代名詞-一般 O +の S9 助詞-連体化 O +広場 M1 名詞-一般 O +] S2 記号-括弧閉 O +臍帯 M1 名詞-一般 O +血幹 M1 名詞-一般 O +細胞 M1 名詞-一般 O +移植 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +成功 M1 名詞-サ変接続 O +励み T1-9 名詞-一般 O +に S9 助詞-格助詞-一般 O += S2 記号-一般 O +団体 M1 名詞-一般 O +役員 M1 名詞-一般 O +・ S2 記号-一般 O +藤本 M1 名詞-固有名詞-人名-姓 B-PERSON +和男 M1 名詞-固有名詞-人名-名 I-PERSON + S13 記号-空白 O +6 S5 名詞-数 O + + S13 記号-空白 O +( S2 記号-括弧開 O +北 S1 名詞-一般 O +九州市八幡東区 T6-1 名詞-数 O +) S2 記号-括弧閉 O + + S13 記号-空白 O +東海大学 M1 名詞-固有名詞-組織 B-ORGANIZATION +医学部 M1 名詞-一般 O +付属 M1 名詞-サ変接続 O +病院 M1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +急性 M1 名詞-一般 O +骨髄 M1 名詞-一般 O +性 S1 名詞-一般 O +白血病 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +患っ T1-9 動詞-自立 O +ていた M9 形容詞-自立 O +五 S6 名詞-数 O +歳 S1 名詞-一般 O +の S9 助詞-連体化 O +男児 M1 名詞-一般 O +の S9 助詞-連体化 O +「 S2 記号-括弧開 O +臍帯 M1 名詞-一般 O +血幹 M1 名詞-一般 O +細胞 M1 名詞-一般 O +移植 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +わが国 T9-1 名詞-一般 O +で S9 助動詞 O +初めて T1-9 副詞-一般 O +成功 M1 名詞-サ変接続 O +した M9 名詞-一般 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +知っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +朗報 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +心から T1-9 副詞-助詞類接続 O +喜び T1-9 名詞-一般 O +たい M9 助動詞 O +。 S2 記号-句点 O + +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +二十七歳 T6-1 名詞-数 O +の S9 助詞-連体化 O +胃 S1 名詞-一般 O +かいよう M9 名詞-一般 O +の S9 助詞-連体化 O +手術 M1 名詞-サ変接続 O +から M9 助詞-格助詞-一般 O +、 S2 記号-読点 O +五十二 M6 名詞-固有名詞-人名-名 O +歳 S1 名詞-一般 O +の S9 助詞-連体化 O +胆のう T1-9 名詞-一般 O +摘出 M1 名詞-サ変接続 O +まで M9 助詞-副助詞 O +、 S2 記号-読点 O +七回開腹手術 T6-1 名詞-数 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +、 S2 記号-読点 O +二十二回 T6-1 名詞-数 O +にわたる M9 助詞-格助詞-連語 O +長期 M1 名詞-一般 O +入院 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +体験 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +した M9 名詞-一般 O +。 S2 記号-句点 O + +入院 M1 名詞-サ変接続 O +加療 M1 名詞-サ変接続 O +や S9 助詞-並立助詞 O +手術 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +苦しみ T1-9 名詞-一般 O +は S9 助詞-係助詞 O +並 S1 名詞-一般 O +の S9 助詞-連体化 O +人 S1 名詞-一般 O +より M9 副詞-一般 O +少し T1-9 副詞-助詞類接続 O +は S9 助詞-係助詞 O +知っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +つもり M9 名詞-非自立-一般 O +で S9 助動詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +臓器 M1 名詞-一般 O +内 S1 名詞-一般 O +で S9 助動詞 O +、 S2 記号-読点 O +白血球 M1 名詞-一般 O +系 S1 名詞-一般 O +の S9 助詞-連体化 O +細胞 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +際限 M1 名詞-一般 O +なく M9 形容詞-自立 O +無秩序 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +増殖 M1 名詞-サ変接続 O +し S9 動詞-自立 O +悪性 M1 名詞-一般 O +の S9 助詞-連体化 O +しゅよう M9 名詞-一般 O +が S9 助詞-格助詞-一般 O +出来る T1-9 動詞-自立 O +白血病 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +“ S2 記号-括弧開 O +血液 M1 名詞-一般 O +の S9 助詞-連体化 O +がん M9 名詞-一般 O +” S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +言 S1 名詞-一般 O +われ M9 名詞-代名詞-一般 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +の S9 助詞-連体化 O +は S9 助詞-係助詞 O +常識 M1 名詞-一般 O +だが M9 接続詞 O +、 S2 記号-読点 O +三 S6 名詞-数 O +、 S2 記号-読点 O +四 S6 名詞-数 O +種類 M1 名詞-一般 O +ある M9 動詞-自立 O +白血病 M1 名詞-一般 O +の S9 助詞-連体化 O +中 S1 名詞-非自立-副詞可能 O +で S9 助動詞 O +、 S2 記号-読点 O +骨髄 M1 名詞-一般 O +性 S1 名詞-一般 O +の S9 助詞-連体化 O +疾患 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +一番 T6-1 名詞-副詞可能 O +の S9 助詞-連体化 O +難病 M1 名詞-一般 O +だ S9 助動詞 O +と S9 助詞-格助詞-引用 O +聞き及ん T1-9 動詞-自立 O +で S9 助動詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +私 S1 名詞-代名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +麻酔 M1 名詞-サ変接続 O +科 S1 名詞-一般 O +で S9 助動詞 O +ペイン M10 名詞-一般 O +クリニック M10 名詞-一般 O +の S9 助詞-連体化 O +神経 M1 名詞-一般 O +ブロック M10 名詞-一般 O +治療 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +効か T1-9 動詞-自立 O +ない M9 形容詞-自立 O +と S9 助詞-格助詞-引用 O +診断 M1 名詞-サ変接続 O +され M9 動詞-自立 O +た S9 助動詞 O +だけ M9 助詞-副助詞 O +で S9 助動詞 O +、 S2 記号-読点 O +意気 M1 名詞-一般 O +消沈 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +昨今 M1 名詞-副詞可能 O +だが M9 接続詞 O +、 S2 記号-読点 O +幼い T1-9 形容詞-自立 O +生命 M1 名詞-一般 O +は S9 助詞-係助詞 O +頑張り T1-9 動詞-自立 O +抜く T1-9 動詞-自立 O +だろ M9 助動詞 O +う S9 感動詞 O +。 S2 記号-句点 O + +この M9 連体詞 O +幼児 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +学び T1-9 動詞-自立 O +、 S2 記号-読点 O +心機一転 T6-1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +、 S2 記号-読点 O +新た T1-9 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +病気 M1 名詞-サ変接続 O +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +闘い T1-9 名詞-一般 O +に S9 助詞-格助詞-一般 O +挑む T1-9 動詞-自立 O +つもり M9 名詞-非自立-一般 O +で S9 助動詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +[ S2 記号-括弧開 O +仲畑 M1 名詞-固有名詞-人名-姓 B-PERSON +流 S1 動詞-自立 O +・ S2 記号-一般 O +万能 T6-1 名詞-一般 O +川柳 M1 名詞-一般 O +] S2 記号-括弧閉 O + + S13 記号-空白 O +☆ S2 記号-一般 O +印 S1 名詞-一般 O +は S9 助詞-係助詞 O +秀逸 M1 名詞-一般 O +( S2 記号-括弧開 O +仲畑 M1 名詞-固有名詞-人名-姓 B-PERSON +貴志 M1 名詞-一般 O +選 S1 動詞-自立 O +) S2 記号-括弧閉 O + +☆ S2 記号-一般 O +恋愛 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +数 S1 名詞-数 O +に S9 助詞-格助詞-一般 O +入れ T1-9 動詞-自立 O +てる M9 動詞-非自立 O +片想い T1-9 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +東京 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +椿 S1 名詞-一般 O +浩二 T1-6 名詞-固有名詞-人名-名 O + + S13 記号-空白 O +ステーキ M10 名詞-一般 O +が S9 助詞-格助詞-一般 O +仕上げ T1-9 名詞-一般 O +の S9 助詞-連体化 O +牧場 M1 名詞-一般 O +見 S1 動詞-自立 O +学会 M1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +福岡 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +三谷 T6-1 名詞-固有名詞-人名-姓 B-PERSON +ゆりえ M9 名詞-固有名詞-人名-名 O + + S13 記号-空白 O +今頃 M1 名詞-副詞可能 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +何故 M1 副詞-助詞類接続 O +見る T1-9 動詞-自立 O +あんな M9 連体詞 O +夢 S1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +福岡 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +綾部 M1 名詞-固有名詞-地域-一般 B-PERSON +久雄 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +フルコース M10 名詞-一般 O +より M9 副詞-一般 O +焼肉 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +似合う T1-9 動詞-自立 O +仲 S1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +東京 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +関根 M1 名詞-固有名詞-人名-姓 B-PERSON +真弓 M1 名詞-固有名詞-人名-姓 I-PERSON + + S13 記号-空白 O +ああ M9 感動詞 O +これ M9 名詞-代名詞-一般 O +で S9 助動詞 O +三十五度目 T6-1 名詞-数 O +の S9 助詞-連体化 O +十二月 T6-1 名詞-副詞可能 B-DATE + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +尼崎 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +砂田 M1 名詞-固有名詞-人名-姓 B-PERSON +真綸香 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +親子 M1 名詞-一般 O +ゆえ M9 名詞-非自立-副詞可能 O +よけい M9 副詞-一般 O +にて M9 助詞-格助詞-一般 O +れる M9 動詞-接尾 O +事 S1 名詞-一般 O +も S9 助詞-係助詞 O +有り T1-9 動詞-自立 O + S13 記号-空白 O + S13 記号-空白 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +あらき M9 形容詞-自立 O +みやこ M9 名詞-固有名詞-人名-名 O + + S13 記号-空白 O +普通 M1 名詞-形容動詞語幹 O +そう M9 副詞-助詞類接続 O +でしょ M9 助動詞 O +うと M9 形容詞-自立 O +極論 M1 名詞-サ変接続 O +言っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O + S13 記号-空白 O +志木 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +杉山 M1 名詞-固有名詞-人名-姓 B-PERSON +竜 S1 名詞-一般 O + + S13 記号-空白 O +恋愛 M1 名詞-サ変接続 O +は S9 助詞-係助詞 O +五 S6 名詞-数 O +年 S1 名詞-一般 O +で S9 助動詞 O +結婚 M1 名詞-サ変接続 O +一 S6 名詞-数 O +年間 M1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +大分 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +喜 S1 名詞-一般 O +望 S1 名詞-一般 O +峰 S1 名詞-一般 O +士 S1 名詞-一般 O + + S13 記号-空白 O +手 S1 名詞-一般 O +の S9 助詞-連体化 O +皺 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +増え T1-9 名詞-一般 O +て S9 助詞-接続助詞 O +生命 M1 名詞-一般 O +線 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +伸び T1-9 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +町田 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +小西 M1 名詞-固有名詞-人名-姓 B-PERSON +章雄 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +めぐまれ M9 動詞-自立 O +た S9 助動詞 O +子 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +鍵っ子 T9-1 名詞-一般 O +に S9 助詞-格助詞-一般 O +あこがれる M9 動詞-自立 O + S13 記号-空白 O +北九州 T6-1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O +二宮麻里子 T6-1 名詞-数 O + + S13 記号-空白 O +耳 S1 名詞-一般 O +もと M9 名詞-一般 O +で S9 助動詞 O +ささやきあっ M9 動詞-自立 O +て S9 助詞-接続助詞 O +まだ M9 副詞-助詞類接続 O +新婚 M1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O +島田 M1 名詞-固有名詞-人名-姓 B-PERSON + S13 記号-空白 O + S13 記号-空白 O +大石 M1 名詞-固有名詞-人名-姓 B-PERSON +今男 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +両親 M1 名詞-一般 O +の S9 助詞-連体化 O +どちら M9 名詞-代名詞-一般 O +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +似 S1 動詞-自立 O +ず S9 助動詞 O +可愛い T1-9 形容詞-自立 O +児 S1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +相模原 M1 名詞-固有名詞-地域-一般 O + S13 記号-空白 O +水野 M1 名詞-固有名詞-人名-姓 B-PERSON +タケシ M10 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +人 S1 名詞-一般 O +の S9 助詞-連体化 O +靴 S1 名詞-一般 O +揃え T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +診察 M1 名詞-サ変接続 O +受ける T1-9 動詞-自立 O +老 S1 接頭詞-名詞接続 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +尾郷 M1 名詞-固有名詞-人名-姓 B-PERSON +明水 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +先生 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +居 S1 名詞-一般 O +たら M9 助動詞 O +進ま T1-9 動詞-自立 O +ぬ S9 助動詞 O +生徒 M1 名詞-一般 O +会 S1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +中間 M1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O +風の音 T9-1 名詞-固有名詞-人名-一般 O + + S13 記号-空白 O +後 S1 名詞-非自立-副詞可能 O +二十日正月用 T6-1 名詞-数 O +の S9 助詞-連体化 O +鯛 S1 名詞-一般 O +釣ら T1-9 動詞-自立 O +にゃ M9 助詞-特殊 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +池田 M1 名詞-固有名詞-人名-姓 B-PERSON + S13 記号-空白 O + S13 記号-空白 O +岡部 M1 名詞-固有名詞-人名-姓 B-PERSON +秀雄 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +仕事 M1 名詞-サ変接続 O +でき M9 動詞-自立 O +歳暮 M1 名詞-一般 O +も S9 助詞-係助詞 O +届く T1-9 動詞-自立 O +部下 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +ほし M9 形容詞-自立 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +天童 M1 名詞-固有名詞-人名-姓 B-PERSON + S13 記号-空白 O + S13 記号-空白 O +松浦 M1 名詞-固有名詞-人名-姓 B-PERSON +征夫 M1 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +子供 M1 名詞-一般 O +ら S9 名詞-接尾-一般 O +の S9 助詞-連体化 O +希望 M1 名詞-サ変接続 O +で S9 助動詞 O +オセチ M10 名詞-一般 O +中身 M1 名詞-一般 O +変え T1-9 動詞-自立 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +青梅 M1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O +原島 M1 名詞-固有名詞-人名-姓 B-PERSON +喜一 T1-6 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +カット M10 名詞-サ変接続 O +より M9 副詞-一般 O +コーヒー M10 名詞-一般 O +うまい M9 形容詞-自立 O +美容 M1 名詞-一般 O +室 S1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O +相模原 M1 名詞-固有名詞-地域-一般 O + S13 記号-空白 O +水野 M1 名詞-固有名詞-人名-姓 B-PERSON +ユミ M10 名詞-固有名詞-人名-名 I-PERSON + + S13 記号-空白 O +親 S1 名詞-一般 O +の S9 助詞-連体化 O +敷く T1-9 動詞-自立 O +レール M10 名詞-一般 O +は S9 助詞-係助詞 O +長い T1-9 形容詞-自立 O +受験生 M1 名詞-一般 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O + S13 記号-空白 O +徳島 M1 名詞-固有名詞-地域-一般 B-LOCATION + S13 記号-空白 O + S13 記号-空白 O +井上 M1 名詞-固有名詞-人名-姓 B-PERSON +ちえこ M9 名詞-固有名詞-人名-名 I-PERSON + +不安 M1 名詞-形容動詞語幹 O +残る T1-9 動詞-自立 O +権力 M1 名詞-一般 O +基盤 M1 名詞-一般 O + S13 記号-空白 O +ドゥダエフ M10 名詞-固有名詞-人名-姓 B-PERSON +・ S2 記号-一般 O +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +大統領 M1 名詞-一般 O +、 S2 記号-読点 O +直接 M1 名詞-副詞可能 O +選挙 M1 名詞-サ変接続 O +なし M9 形容詞-自立 O +に S9 助詞-格助詞-一般 O +就任 M1 名詞-サ変接続 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +モスクワ M10 名詞-固有名詞-地域-一般 B-LOCATION +1 S5 名詞-数 O +日 S1 名詞-一般 O +飯島 M1 名詞-固有名詞-人名-姓 B-PERSON +一孝 T6-1 名詞-固有名詞-人名-名 I-PERSON +】 S2 記号-括弧閉 O +ロシア M10 名詞-固有名詞-地域-国 B-LOCATION +から M9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +独立 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +闘い T1-9 名詞-一般 O +を S9 助詞-格助詞-一般 O +指導 M1 名詞-サ変接続 O +する M9 動詞-自立 O +ドゥダエフ M10 名詞-固有名詞-人名-姓 B-PERSON +・ S2 記号-一般 O +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +大統領 M1 名詞-一般 O +( S2 記号-括弧開 O +5 S5 名詞-数 O +) S2 記号-括弧閉 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +イスラム M10 名詞-固有名詞-一般 O +教徒 M1 名詞-一般 O +主体 M1 名詞-一般 O +の S9 助詞-連体化 O +組織 M1 名詞-サ変接続 O +「 S2 記号-括弧開 O +チェチェン民族大会 T10-1 名詞-固有名詞-組織 B-ORGANIZATION +」 S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +権力 M1 名詞-一般 O +基盤 M1 名詞-一般 O +にし M9 名詞-一般 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +だが M9 接続詞 O +、 S2 記号-読点 O +正規 M1 名詞-一般 O +の S9 助詞-連体化 O +直接 M1 名詞-副詞可能 O +選挙 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +“ S2 記号-括弧開 O +洗礼 M1 名詞-サ変接続 O +” S2 記号-括弧閉 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +おら M9 名詞-代名詞-一般 O +ず S9 助動詞 O +、 S2 記号-読点 O +法的 M1 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +政治 M1 名詞-一般 O +的 S1 名詞-接尾-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +権力 M1 名詞-一般 O +基盤 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +盤石 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +は S9 助詞-係助詞 O +言い T1-9 動詞-自立 O +難い T1-9 形容詞-自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +ゴルバチョフ M10 名詞-固有名詞-人名-姓 B-PERSON +政権 M1 名詞-一般 O +末期 M1 名詞-一般 O +の S9 助詞-連体化 O +一 S6 名詞-数 O +九九 M6 名詞-一般 O +〇 S2 記号-一般 O +年 S1 名詞-一般 O +、 S2 記号-読点 O +ソ連 T10-1 名詞-固有名詞-地域-国 B-LOCATION +空軍 M1 名詞-一般 O +将軍 M1 名詞-一般 O +の S9 助詞-連体化 O +地位 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +捨て T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +郷里 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +戻っ T1-9 動詞-自立 O +た S9 助動詞 O +ドゥダエフ M10 名詞-固有名詞-人名-姓 B-PERSON +氏 S1 名詞-接尾-人名 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +チェチェン民族大会 T10-1 名詞-固有名詞-組織 B-ORGANIZATION +で S9 助動詞 O +執行 M1 名詞-サ変接続 O +委 S1 名詞-接尾-一般 O +議長 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +選出 M1 名詞-サ変接続 O +され M9 動詞-自立 O +、 S2 記号-読点 O +政界 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +デビュー M10 名詞-サ変接続 O +。 S2 記号-句点 O + +翌年 M1 名詞-副詞可能 B-DATE +の S9 助詞-連体化 O +ソ連 T10-1 名詞-固有名詞-地域-国 B-LOCATION +保守 M1 名詞-サ変接続 O +派 S1 名詞-一般 O +クーデター M10 名詞-一般 O +失敗 M1 名詞-サ変接続 O +の S9 助詞-連体化 O +混乱 M1 名詞-サ変接続 O +期 S1 名詞-一般 O +に S9 助詞-格助詞-一般 O +共産党 M1 名詞-固有名詞-組織 B-ORGANIZATION +指導 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +を S9 助詞-格助詞-一般 O +実力 M1 名詞-一般 O +行使 M1 名詞-サ変接続 O +で S9 助動詞 O +追い出し T1-9 動詞-自立 O +、 S2 記号-読点 O +全権 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +握っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +これ M9 名詞-代名詞-一般 O +に対し T1-9 助詞-格助詞-連語 O +、 S2 記号-読点 O +ロシア M10 名詞-固有名詞-地域-国 B-LOCATION +政府 M1 名詞-一般 O +の S9 助詞-連体化 O +支援 M1 名詞-サ変接続 O +で S9 助動詞 O +反 S1 接頭詞-名詞接続 O +大統領 M1 名詞-一般 O +組織 M1 名詞-サ変接続 O +・ S2 記号-一般 O +暫定 M1 名詞-サ変接続 B-ORGANIZATION +評議 M1 名詞-サ変接続 I-ORGANIZATION +会 S1 名詞-一般 I-ORGANIZATION +を S9 助詞-格助詞-一般 O +創設 M1 名詞-サ変接続 O +した M9 名詞-一般 O +アフトゥルハノフ M10 名詞-固有名詞-人名-姓 B-PERSON +議長 M1 名詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +我々 T1-2 名詞-代名詞-一般 O +抜き T1-9 名詞-一般 O +で S9 助動詞 O +決め T1-9 動詞-自立 O +た S9 助動詞 O +も S9 助詞-係助詞 O +ので M9 助詞-接続助詞 O +、 S2 記号-読点 O +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +指導 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +と S9 助詞-格助詞-引用 O +はみ M9 名詞-一般 O +なし M9 形容詞-自立 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +言い切っ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +ロシア M10 名詞-固有名詞-地域-国 B-LOCATION +政府 M1 名詞-一般 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +ドゥダエフ M10 名詞-固有名詞-人名-姓 B-PERSON +氏 S1 名詞-接尾-人名 O +が S9 助詞-格助詞-一般 O +直接 M1 名詞-副詞可能 O +選挙 M1 名詞-サ変接続 O +で S9 助動詞 O +大統領 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +選出 M1 名詞-サ変接続 O +され M9 動詞-自立 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +として M9 助詞-格助詞-連語 O +大統領 M1 名詞-一般 O +の S9 助詞-連体化 O +正統 M1 名詞-一般 O +性 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +認め T1-9 動詞-自立 O +ず S9 助動詞 O +、 S2 記号-読点 O +正規 M1 名詞-一般 O +の S9 助詞-連体化 O +大統領 M1 名詞-一般 O +選挙 M1 名詞-サ変接続 O +実施 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +勧告 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +独立 M1 名詞-サ変接続 O +宣言 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +、 S2 記号-読点 O +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +は S9 助詞-係助詞 O +ロシア M10 名詞-固有名詞-地域-国 B-LOCATION +から M9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +厳しい T1-9 形容詞-自立 O +経済 M1 名詞-一般 O +制裁 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +受け T1-9 動詞-自立 O +、 S2 記号-読点 O +豊富 M1 名詞-形容動詞語幹 O +な S9 助詞-終助詞 O +油田 M1 名詞-一般 O +と S9 助詞-格助詞-引用 O +石油 M1 名詞-一般 O +精製 M1 名詞-サ変接続 O +基地 M1 名詞-一般 O +以外 M1 名詞-非自立-副詞可能 O +は S9 助詞-係助詞 O +壊滅 M1 名詞-サ変接続 O +状態 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +陥っ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +この M9 連体詞 O +ため M9 名詞-非自立-副詞可能 O +チェチェン M10 名詞-固有名詞-地域-国 B-LOCATION +人 S1 名詞-一般 O +以外 M1 名詞-非自立-副詞可能 O +の S9 助詞-連体化 O +民族 M1 名詞-一般 O +や S9 助詞-並立助詞 O +経済 M1 名詞-一般 O +界 S1 名詞-接尾-一般 O +から M9 助詞-格助詞-一般 O +、 S2 記号-読点 O +ロシア M10 名詞-固有名詞-地域-国 B-LOCATION +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +関係 M1 名詞-サ変接続 O +正常 M1 名詞-形容動詞語幹 O +化 S1 名詞-接尾-サ変接続 O +を S9 助詞-格助詞-一般 O +求める T1-9 動詞-自立 O +声 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +強まっ T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +「 S2 記号-括弧開 O +マツダ M10 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +ジャガー M10 名詞-固有名詞-組織 B-ORGANIZATION +生産 M1 名詞-サ変接続 O +」 S2 記号-括弧閉 O +-- M2 記号-一般 O +米紙 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +報道 M1 名詞-サ変接続 O + + S13 記号-空白 O +【 S2 記号-括弧開 O +ニューヨーク M10 名詞-固有名詞-地域-一般 B-LOCATION +1 S5 名詞-数 O +日 S1 名詞-一般 O +渡辺 M1 名詞-固有名詞-人名-姓 B-PERSON +良行 M1 名詞-固有名詞-人名-名 I-PERSON +】 S2 記号-括弧閉 O +米 S1 名詞-固有名詞-地域-国 B-LOCATION +自動車 M1 名詞-一般 O +メーカー M10 名詞-一般 O +、 S2 記号-読点 O +フォード M10 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +傘下 M1 名詞-一般 O +の S9 助詞-連体化 O +ジャガー M10 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +次期 M1 名詞-一般 O +モデル M10 名詞-一般 O +を S9 助詞-格助詞-一般 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +マツダ M10 名詞-固有名詞-組織 B-ORGANIZATION +に S9 助詞-格助詞-一般 O +デザイン M10 名詞-サ変接続 O +させ M9 動詞-接尾 O +、 S2 記号-読点 O +日本 M1 名詞-固有名詞-地域-国 B-LOCATION +国内 M1 名詞-一般 O +で S9 助動詞 O +生産 M1 名詞-サ変接続 O +する M9 動詞-自立 O +案 S1 名詞-一般 O +を S9 助詞-格助詞-一般 O +検討 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +十一日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +まで M9 助詞-副助詞 O +に S9 助詞-格助詞-一般 O +明らか T1-9 名詞-形容動詞語幹 O +に S9 助詞-格助詞-一般 O +なっ M9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + +米紙 M1 名詞-一般 O +など M9 助詞-副助詞 O +が S9 助詞-格助詞-一般 O +報じ T1-9 動詞-自立 O +た S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +英国 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +ジャガー M10 名詞-固有名詞-組織 B-ORGANIZATION +は S9 助詞-係助詞 O +、 S2 記号-読点 O +高級 M1 名詞-形容動詞語幹 O +車 S1 名詞-一般 O +の S9 助詞-連体化 O +代名詞 M1 名詞-一般 O +の S9 助詞-連体化 O +一つ T6-9 名詞-一般 O +だが M9 接続詞 O +、 S2 記号-読点 O +四年前 T6-1 名詞-数 O +、 S2 記号-読点 O +フォード M10 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +二 S6 名詞-数 B-MONEY +ドル M10 名詞-一般 I-MONEY +( S2 記号-括弧開 O +二千五百億円 T6-1 名詞-数 O +) S2 記号-括弧閉 O +で S9 助動詞 O +買収 M1 名詞-サ変接続 O +後 S1 名詞-非自立-副詞可能 O +も S9 助詞-係助詞 O +、 S2 記号-読点 O +十 S6 名詞-数 B-MONEY +ドル M10 名詞-一般 I-MONEY +の S9 助詞-連体化 O +赤字 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +出し T1-9 動詞-自立 O +、 S2 記号-読点 O +生産 M1 名詞-サ変接続 O +、 S2 記号-読点 O +販売 M1 名詞-サ変接続 O +体制 M1 名詞-一般 O +の S9 助詞-連体化 O +見直し T1-9 名詞-一般 O +が S9 助詞-格助詞-一般 O +迫 S1 動詞-自立 O +られ M9 動詞-接尾 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + + S13 記号-空白 O +今回 M1 名詞-副詞可能 O +の S9 助詞-連体化 O +構想 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +浮上 M1 名詞-サ変接続 O +した M9 名詞-一般 O +背景 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +、 S2 記号-読点 O +フォード M10 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +関連 M1 名詞-サ変接続 O +会社 M1 名詞-一般 O +で S9 助動詞 O +ある M9 動詞-自立 O +マツダ M10 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +余剰 M1 名詞-一般 O +生産 M1 名詞-サ変接続 O +設備 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +抱え T1-9 名詞-一般 O +、 S2 記号-読点 O +経営 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +苦しい T1-9 形容詞-自立 O +という M9 助詞-格助詞-連語 O +事情 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + +また M9 接続詞 O +、 S2 記号-読点 O +マツダ M10 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +デザイン M10 名詞-サ変接続 O +能力 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +定評 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +あり M9 動詞-自立 O +、 S2 記号-読点 O +ジャガー M10 名詞-固有名詞-組織 B-ORGANIZATION +タイプ M10 名詞-一般 O +の S9 助詞-連体化 O +開発 M1 名詞-サ変接続 O +も S9 助詞-係助詞 O +可能 M1 名詞-形容動詞語幹 O +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +連想 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +あっ M9 感動詞 O +た S9 助動詞 O +よう M9 名詞-非自立-助動詞語幹 O +だ S9 助動詞 O +。 S2 記号-句点 O + + S13 記号-空白 O +もし M9 副詞-一般 O +実現 M1 名詞-サ変接続 O +すれ M9 動詞-自立 O +ば S9 助詞-接続助詞 O +、 S2 記号-読点 O +一九九五年 T6-1 名詞-数 O +モデル M10 名詞-一般 O +でも M9 助詞-副助詞 O +最低 M1 名詞-一般 O +価格 M1 名詞-一般 O +五万三千 M6 名詞-数 O +ドル M10 名詞-一般 O +( S2 記号-括弧開 O +五百三十万円 T6-1 名詞-数 O +) S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +値 S1 名詞-一般 O +の S9 助詞-連体化 O +張る T1-9 動詞-自立 O +ジャガー M10 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +価格 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +下げる T1-9 動詞-自立 O +こと M9 名詞-非自立-一般 O +が S9 助詞-格助詞-一般 O +でき M9 動詞-自立 O +、 S2 記号-読点 O +マツダ M10 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +再建 M1 名詞-サ変接続 O +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +つながる M9 動詞-自立 O +。 S2 記号-句点 O + +ただ M9 接続詞 O +、 S2 記号-読点 O +マツダ M10 名詞-固有名詞-組織 B-ORGANIZATION +は S9 助詞-係助詞 O +構想 M1 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +認め T1-9 動詞-自立 O +て S9 助詞-接続助詞 O +おら M9 名詞-代名詞-一般 O +ず S9 助動詞 O +、 S2 記号-読点 O +愛好 M1 名詞-サ変接続 O +者 S1 名詞-接尾-一般 O +からも M9 動詞-自立 O +「 S2 記号-括弧開 O +ジャガー M10 名詞-固有名詞-組織 B-ORGANIZATION +の S9 助詞-連体化 O +イメージ M10 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +壊れる T1-9 動詞-自立 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +の S9 助詞-連体化 O +批判 M1 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +出 S1 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +。 S2 記号-句点 O + +台湾 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +エバ航空 T10-1 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +9 S5 名詞-数 B-DATE +年 S1 名詞-一般 I-DATE +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +関西国際空港 M1 名詞-固有名詞-組織 B-LOCATION +へ S9 助詞-格助詞-一般 O +乗り入れ T1-9 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +申請 M1 名詞-サ変接続 O + S13 記号-空白 O +中国 M1 名詞-固有名詞-地域-国 B-LOCATION +が S9 助詞-格助詞-一般 O +反発 M1 名詞-サ変接続 O +も S9 助詞-係助詞 O + S13 記号-空白 O +【 S2 記号-括弧開 O +大阪 M1 名詞-固有名詞-地域-一般 B-LOCATION +】 S2 記号-括弧閉 O + + S13 記号-空白 O +台湾 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +民間 M1 名詞-一般 O +航空 M1 名詞-一般 O +会社 M1 名詞-一般 O +、 S2 記号-読点 O +長栄航空公司 M1 名詞-固有名詞-組織 B-ORGANIZATION +( S2 記号-括弧開 O +エバ航空 T10-1 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +の S9 助詞-連体化 O +林 S1 名詞-一般 B-PERSON +省三 T1-6 名詞-固有名詞-人名-名 I-PERSON +会長 M1 名詞-一般 O +は S9 助詞-係助詞 O +十 S6 名詞-数 O +二日 T6-1 名詞-固有名詞-地域-一般 B-LOCATION +、 S2 記号-読点 O +大阪 M1 名詞-固有名詞-地域-一般 O +市内 M1 名詞-一般 O +で S9 助動詞 O +開か T1-9 動詞-自立 O +れ S9 助動詞 O +た S9 助動詞 O +日 S1 名詞-一般 O +台 S1 名詞-一般 O +経済 M1 名詞-一般 O +界 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +交流 M1 名詞-サ変接続 O +会議 M1 名詞-サ変接続 O +で S9 助動詞 O +、 S2 記号-読点 O +来年 M1 名詞-副詞可能 B-DATE +早々 T1-2 副詞-助詞類接続 O +に S9 助詞-格助詞-一般 O +も S9 助詞-係助詞 O +関西国際空港 M1 名詞-固有名詞-組織 B-LOCATION +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +乗り入れ T1-9 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +申 S1 名詞-一般 O +請する T1-9 動詞-自立 O +こと M9 名詞-非自立-一般 O +を S9 助詞-格助詞-一般 O +明らか T1-9 名詞-形容動詞語幹 O +にし M9 名詞-一般 O +た S9 助動詞 O +。 S2 記号-句点 O + +地方 M1 名詞-一般 O +空港 M1 名詞-一般 O +へ S9 助詞-格助詞-一般 O +は S9 助詞-係助詞 O +中国 M1 名詞-固有名詞-地域-国 B-LOCATION +、 S2 記号-読点 O +台湾 M1 名詞-固有名詞-地域-国 B-LOCATION +双方 M1 名詞-一般 O +の S9 助詞-連体化 O +航空 M1 名詞-一般 O +会社 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +乗り入れ T1-9 名詞-サ変接続 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +主要 M1 名詞-形容動詞語幹 O +空港 M1 名詞-一般 O +の S9 助詞-連体化 O +関西 M1 名詞-固有名詞-地域-一般 B-LOCATION +空港 M1 名詞-一般 I-LOCATION +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +乗り入れ T1-9 名詞-サ変接続 O +について M9 助詞-格助詞-連語 O +は S9 助詞-係助詞 O +中国 M1 名詞-固有名詞-地域-国 B-LOCATION +が S9 助詞-格助詞-一般 O +反発 M1 名詞-サ変接続 O +する M9 動詞-自立 O +可能 M1 名詞-形容動詞語幹 O +性 S1 名詞-一般 O +も S9 助詞-係助詞 O +ある M9 動詞-自立 O +。 S2 記号-句点 O + +関西 M1 名詞-固有名詞-地域-一般 B-ORGANIZATION +経済 M1 名詞-一般 I-ORGANIZATION +連合 M1 名詞-サ変接続 I-ORGANIZATION +会 S1 名詞-一般 I-ORGANIZATION +、 S2 記号-読点 O +大阪貿易会 M1 名詞-固有名詞-組織 B-ORGANIZATION +と S9 助詞-格助詞-引用 O +台湾 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +中日経済貿易発展基金会 M1 名詞-固有名詞-組織 B-ORGANIZATION +が S9 助詞-格助詞-一般 O +開い T1-9 動詞-自立 O +た S9 助動詞 O +第 S1 接頭詞-数接続 O +一回 T6-1 名詞-副詞可能 O +関西 M1 名詞-固有名詞-地域-一般 B-LOCATION +・ S2 記号-一般 O +台湾 M1 名詞-固有名詞-地域-国 B-LOCATION +経済 M1 名詞-一般 O +交流 M1 名詞-サ変接続 O +会議 M1 名詞-サ変接続 O +で S9 助動詞 O +表明 M1 名詞-サ変接続 O +した M9 名詞-一般 O +。 S2 記号-句点 O + + S13 記号-空白 O +林 S1 名詞-一般 O +会長 M1 名詞-一般 O +は S9 助詞-係助詞 O +台湾 M1 名詞-固有名詞-地域-国 B-LOCATION +第 S1 接頭詞-数接続 O +八 S6 名詞-数 O +位 S1 名詞-副詞可能 O +の S9 助詞-連体化 O +企業 M1 名詞-一般 O +グループ M10 名詞-一般 O +、 S2 記号-読点 O +長栄 M1 名詞-固有名詞-組織 B-ORGANIZATION +( S2 記号-括弧開 O +エバグリーン M10 名詞-固有名詞-組織 B-ORGANIZATION +) S2 記号-括弧閉 O +グループ M10 名詞-一般 O +の S9 助詞-連体化 O +オーナー M10 名詞-一般 O +。 S2 記号-句点 O + +この M9 連体詞 O +日 S1 名詞-一般 O +、 S2 記号-読点 O +福岡空港 M1 名詞-固有名詞-一般 B-LOCATION +へ S9 助詞-格助詞-一般 O +一番 T6-1 名詞-副詞可能 O +機 S1 名詞-一般 O +が S9 助詞-格助詞-一般 O +乗り入れ T1-9 名詞-サ変接続 O +を S9 助詞-格助詞-一般 O +実現 M1 名詞-サ変接続 O +した M9 名詞-一般 O +が S9 助詞-格助詞-一般 O +、 S2 記号-読点 O +「 S2 記号-括弧開 O +関西 M1 名詞-固有名詞-地域-一般 B-LOCATION +空港 M1 名詞-一般 I-LOCATION +― S2 記号-一般 O +台北 M1 名詞-固有名詞-地域-一般 B-LOCATION +間 S1 名詞-非自立-副詞可能 O +に S9 助詞-格助詞-一般 O +週 S1 名詞-一般 O +二十五便 T6-1 名詞-数 O +が S9 助詞-格助詞-一般 O +就航 M1 名詞-サ変接続 O +し S9 動詞-自立 O +て S9 助詞-接続助詞 O +いる M9 動詞-非自立 O +のに M9 助詞-接続助詞 O +、 S2 記号-読点 O +遺憾 M1 名詞-形容動詞語幹 O +ながら M9 助詞-接続助詞 O +台湾 M1 名詞-固有名詞-地域-国 B-LOCATION +の S9 助詞-連体化 O +航空 M1 名詞-一般 O +会社 M1 名詞-一般 O +が S9 助詞-格助詞-一般 O +一社 T6-1 名詞-固有名詞-一般 O +も S9 助詞-係助詞 O +入っ T1-9 動詞-自立 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +。 S2 記号-句点 O + +互恵 M1 名詞-一般 O +の S9 助詞-連体化 O +原則 M1 名詞-一般 O +に S9 助詞-格助詞-一般 O +沿わ T1-9 動詞-自立 O +ず S9 助動詞 O +、 S2 記号-読点 O +至極 M1 名詞-形容動詞語幹 O +残念 M1 名詞-形容動詞語幹 O +だ S9 助動詞 O +」 S2 記号-括弧閉 O +と S9 助詞-格助詞-引用 O +、 S2 記号-読点 O +台湾 M1 名詞-固有名詞-地域-国 B-LOCATION +側 S1 名詞-接尾-一般 O +の S9 助詞-連体化 O +関西 M1 名詞-固有名詞-地域-一般 B-LOCATION +空港 M1 名詞-一般 I-LOCATION +乗り入れ T1-9 名詞-サ変接続 O +が S9 助詞-格助詞-一般 O +実現 M1 名詞-サ変接続 O +し S9 動詞-自立 O +てい M9 名詞-一般 O +ない M9 形容詞-自立 O +こと M9 名詞-非自立-一般 O +へ S9 助詞-格助詞-一般 O +の S9 助詞-連体化 O +不満 M1 名詞-一般 O +を S9 助詞-格助詞-一般 O +表明 M1 名詞-サ変接続 O +。 S2 記号-句点 O + diff --git a/example/basenp/exec.sh b/example/basenp/exec.sh new file mode 100755 index 0000000..7005d08 --- /dev/null +++ b/example/basenp/exec.sh @@ -0,0 +1,7 @@ +#!/bin/sh +../../crf_learn -c 10.0 template train.data model +../../crf_test -m model test.data + +../../crf_learn -a MIRA template train.data model +../../crf_test -m model test.data +rm -f model diff --git a/example/basenp/template b/example/basenp/template new file mode 100644 index 0000000..7048836 --- /dev/null +++ b/example/basenp/template @@ -0,0 +1,27 @@ +# Unigram +U00:%x[-2,0] +U01:%x[-1,0] +U02:%x[0,0] +U03:%x[1,0] +U04:%x[2,0] +U05:%x[-1,0]/%x[0,0] +U06:%x[0,0]/%x[1,0] + +U10:%x[-2,1] +U11:%x[-1,1] +U12:%x[0,1] +U13:%x[1,1] +U14:%x[2,1] +U15:%x[-2,1]/%x[-1,1] +U16:%x[-1,1]/%x[0,1] +U17:%x[0,1]/%x[1,1] +U18:%x[1,1]/%x[2,1] + +U20:%x[-2,1]/%x[-1,1]/%x[0,1] +U21:%x[-1,1]/%x[0,1]/%x[1,1] +U22:%x[0,1]/%x[1,1]/%x[2,1] + +U23:%x[0,1] + +# Bigram +B diff --git a/example/basenp/test.data b/example/basenp/test.data new file mode 100644 index 0000000..207cd0e --- /dev/null +++ b/example/basenp/test.data @@ -0,0 +1,19995 @@ +Rockwell NNP B +International NNP I +Corp. NNP I +'s POS B +Tulsa NNP I +unit NN I +said VBD O +it PRP B +signed VBD O +a DT B +tentative JJ I +agreement NN I +extending VBG O +its PRP$ B +contract NN I +with IN O +Boeing NNP B +Co. NNP I +to TO O +provide VB O +structural JJ B +parts NNS I +for IN O +Boeing NNP B +'s POS B +747 CD I +jetliners NNS I +. . O + +Rockwell NNP B +said VBD O +the DT B +agreement NN I +calls VBZ O +for IN O +it PRP B +to TO O +supply VB O +200 CD B +additional JJ I +so-called JJ I +shipsets NNS I +for IN O +the DT B +planes NNS I +. . O + +These DT B +include VBP O +, , O +among IN O +other JJ B +parts NNS I +, , O +each DT B +jetliner NN I +'s POS B +two CD I +major JJ I +bulkheads NNS I +, , O +a DT B +pressure NN I +floor NN I +, , O +torque NN B +box NN I +, , O +fixed VBN B +leading VBG I +edges NNS I +for IN O +the DT B +wings NNS I +and CC O +an DT B +aft JJ I +keel NN I +beam NN I +. . O + +Under IN O +the DT B +existing VBG I +contract NN I +, , O +Rockwell NNP B +said VBD O +, , O +it PRP B +has VBZ O +already RB O +delivered VBN O +793 CD B +of IN O +the DT B +shipsets NNS I +to TO O +Boeing NNP B +. . O + +Rockwell NNP B +, , O +based VBN O +in IN O +El NNP B +Segundo NNP I +, , O +Calif. NNP B +, , O +is VBZ O +an DT B +aerospace NN I +, , I +electronics NNS I +, , I +automotive JJ I +and CC I +graphics NNS I +concern VBP I +. . O + +Frank NNP B +Carlucci NNP I +III NNP I +was VBD O +named VBN O +to TO O +this DT B +telecommunications NNS I +company NN I +'s POS B +board NN I +, , O +filling VBG O +the DT B +vacancy NN I +created VBN O +by IN O +the DT B +death NN I +of IN O +William NNP B +Sobey NNP I +last JJ B +May NNP I +. . O + +Mr. NNP B +Carlucci NNP I +, , O +59 CD B +years NNS I +old JJ O +, , O +served VBN O +as IN O +defense NN B +secretary NN I +in IN O +the DT B +Reagan NNP I +administration NN I +. . O + +In IN O +January NNP B +, , O +he PRP B +accepted VBD O +the DT B +position NN I +of IN O +vice NN B +chairman NN I +of IN O +Carlyle NNP B +Group NNP I +, , O +a DT B +merchant NN I +banking NN I +concern NN I +. . O + +SHEARSON NNP B +LEHMAN NNP I +HUTTON NNP I +Inc NNP I +. . I + +Thomas NNP B +E. NNP I +Meador NNP I +, , O +42 CD B +years NNS I +old JJ O +, , O +was VBD O +named VBN O +president NN B +and CC O +chief JJ B +operating VBG I +officer NN I +of IN O +Balcor NNP B +Co. NNP I +, , O +a DT B +Skokie NNP I +, , I +Ill. NNP I +, , I +subsidiary NN I +of IN O +this DT B +New NNP I +York NNP I +investment NN I +banking NN I +firm NN I +. . O + +Balcor NNP B +, , O +which WDT B +has VBZ O +interests NNS B +in IN O +real JJ B +estate NN I +, , O +said VBD O +the DT B +position NN I +is VBZ O +newly RB O +created VBN O +. . O + +Mr. NNP B +Meador NNP I +had VBD O +been VBN O +executive JJ B +vice NN I +president NN I +of IN O +Balcor NNP B +. . O + +In IN O +addition NN B +to TO O +his PRP$ B +previous JJ I +real-estate NN I +investment NN I +and CC I +asset-management NN I +duties NNS I +, , O +Mr. NNP B +Meador NNP I +takes VBZ O +responsibility NN B +for IN O +development NN B +and CC O +property NN B +management NN I +. . O + +Those DT B +duties NNS I +had VBD O +been VBN O +held VBN O +by IN O +Van NNP B +Pell NNP I +, , O +44 CD B +, , O +who WP B +resigned VBD O +as IN O +an DT B +executive JJ I +vice NN I +president NN I +. . O + +Shearson NNP B +is VBZ O +about IN O +60%-held JJ O +by IN O +American NNP B +Express NNP I +Co NNP I +. . O + +Great NNP B +American NNP I +Bank NNP I +, , O +citing VBG O +depressed JJ B +Arizona NNP I +real JJ I +estate NN I +prices NNS I +, , O +posted VBD O +a DT B +third-quarter JJ I +loss NN I +of IN O +$ $ B +59.4 CD I +million CD I +, , O +or CC O +$ $ B +2.48 CD I +a DT B +share NN I +. . O + +A DT B +year NN I +earlier RBR O +, , O +the DT B +savings NNS I +bank VBP I +had VBD O +earnings NNS B +of IN O +$ $ B +8.1 CD I +million CD I +, , O +or CC O +33 CD B +cents NNS I +a DT B +share NN I +. . O + +For IN O +the DT B +nine CD I +months NNS I +, , O +it PRP B +had VBD O +a DT B +loss NN I +of IN O +$ $ B +58.3 CD I +million CD I +, , O +or CC O +$ $ B +2.44 CD I +a DT B +share NN I +, , O +after IN O +earnings NNS B +of IN O +$ $ B +29.5 CD I +million CD I +, , O +or CC O +$ $ B +1.20 CD I +a DT B +share NN I +, , O +in IN O +the DT B +1988 CD I +period NN I +. . O + +Great NNP B +American NNP I +said VBD O +it PRP B +increased VBD O +its PRP$ B +loan-loss NN I +reserves NNS I +by IN O +$ $ B +93 CD I +million CD I +after IN O +reviewing VBG O +its PRP$ B +loan NN I +portfolio NN I +, , O +raising VBG O +its PRP$ B +total JJ I +loan NN I +and CC I +real JJ I +estate NN I +reserves NNS I +to TO O +$ $ B +217 CD I +million CD I +. . O + +Before IN O +the DT B +loan-loss NN I +addition NN I +, , O +it PRP B +said VBD O +, , O +it PRP B +had VBD O +operating VBG B +profit NN I +of IN O +$ $ B +10 CD I +million CD I +for IN O +the DT B +quarter NN I +. . O + +The DT B +move NN I +followed VBD O +a DT B +round NN I +of IN O +similar JJ B +increases NNS I +by IN O +other JJ B +lenders NNS I +against IN O +Arizona NNP B +real JJ I +estate NN I +loans NNS I +, , O +reflecting VBG O +a DT B +continuing VBG I +decline NN I +in IN O +that DT B +market NN I +. . O + +In IN O +addition NN B +to TO O +the DT B +increased VBN I +reserve NN I +, , O +the DT B +savings NNS I +bank VBP I +took VBD O +a DT B +special JJ I +charge NN I +of IN O +$ $ B +5 NN I +million CD I +representing VBG O +general JJ B +and CC I +administrative JJ I +expenses NNS I +from IN O +staff NN B +reductions NNS I +and CC O +other JJ B +matters NNS I +, , O +and CC O +it PRP B +posted VBD O +a DT B +$ $ I +7.6 CD I +million CD I +reduction NN I +in IN O +expected VBN B +mortgage NN I +servicing NN I +fees NNS I +, , O +reflecting VBG O +the DT B +fact NN I +that IN O +more JJR B +borrowers NNS I +are VBP O +prepaying VBG O +their PRP$ B +mortgages NNS I +. . O + +Arbitragers NNS B +were VBD O +n't RB O +the DT B +only RB I +big JJ I +losers NNS I +in IN O +the DT B +collapse NN I +of IN O +UAL NNP B +Corp. NNP I +stock NN I +. . O + +Look VB O +at IN O +what WP B +happened VBD O +to TO O +UAL NNP B +'s POS B +chairman NN I +, , O +Stephen NNP B +M. NNP I +Wolf NNP I +, , O +and CC O +its PRP$ B +chief JJ I +financial JJ I +officer NN I +, , O +John NNP B +C. NNP I +Pope NNP I +. . O + +On IN O +a DT B +day NN I +some DT B +United NNP I +Airlines NNPS I +employees NNS I +wanted VBD O +Mr. NNP B +Wolf NNP I +fired VBD O +and CC O +takeover NN B +stock NN I +speculators NNS I +wanted VBD O +his PRP$ B +scalp NN I +, , O +Messrs. NNP B +Wolf NNP I +and CC I +Pope NNP I +saw VBD O +their PRP$ B +prospective JJ I +personal JJ I +fortunes NNS I +continue VBP O +to TO O +plummet VB O +as IN O +shares NNS B +of IN O +UAL NNP B +, , O +United NNP B +'s POS B +parent NN I +company NN I +, , O +dived VBD O +$ $ B +24.875 CD I +on IN O +the DT B +Big NNP I +Board NNP I +to TO O +close VB O +at IN O +$ $ B +198 CD I +. . O + +Including VBG O +Monday NNP B +'s POS B +plunge NN I +, , O +that WDT B +has VBZ O +given VBN O +the DT B +two CD I +executives NNS I +paper NN B +losses NNS I +of IN O +$ $ B +49.5 CD I +million CD I +, , O +based VBN O +on IN O +what WP B +they PRP B +would MD O +have VB O +realized VBN O +had VBN O +the DT B +pilots NNS I +and CC I +management-led JJ I +buy-out NN I +of IN O +UAL NNP B +gone VBN O +through IN O +at IN O +$ $ B +300 CD I +a DT B +share NN I +. . O + +When WRB O +bank NN B +financing NN I +for IN O +the DT B +buy-out NN I +collapsed VBD O +last JJ B +week NN I +, , O +so RB O +did VBD O +UAL NNP B +'s POS B +stock NN I +. . O + +Even RB O +if IN O +the DT B +banks NNS I +resurrect VBP O +a DT B +financing NN I +package NN I +at IN O +$ $ B +250 CD I +a DT B +share NN I +, , O +the DT B +two CD I +executives NNS I +would MD O +still RB O +get VB O +about RB B +$ $ I +25 CD I +million CD I +less JJR O +than IN O +they PRP B +stood VBD O +to TO O +gain VB O +in IN O +the DT B +initial JJ I +transaction NN I +. . O + +Mr. NNP B +Wolf NNP I +owns VBZ O +75,000 CD B +UAL NNP I +shares NNS I +and CC O +has VBZ O +options NNS B +to TO O +buy VB O +another DT B +250,000 CD I +at IN O +$ $ B +83.3125 CD I +each DT B +. . O + +In IN O +the DT B +$ $ I +300-a-share JJ I +buyout NN I +, , O +that WDT B +totaled VBD O +about RB B +$ $ I +76.7 CD I +million CD I +. . O + +By IN O +yesterday NN B +'s POS B +close NN I +of IN O +trading NN B +, , O +it PRP B +was VBD O +good JJ O +for IN O +a DT B +paltry JJ I +$ $ I +43.5 CD I +million CD I +. . O + +Of IN O +course NN B +, , O +Mr. NNP B +Wolf NNP I +, , O +48 CD B +years NNS I +old JJ O +, , O +has VBZ O +some DT B +savings NNS I +. . O + +He PRP B +left VBD O +his PRP$ B +last JJ I +two CD I +jobs NNS I +at IN O +Republic NNP B +Airlines NNPS I +and CC O +Flying NNP B +Tiger NNP I +with IN O +combined VBN B +stock-option NN I +gains NNS I +of IN O +about RB B +$ $ I +22 CD I +million CD I +, , O +and CC O +UAL NNP B +gave VBD O +him PRP B +a DT B +$ $ I +15 CD I +million CD I +bonus NN I +when WRB O +it PRP B +hired VBD O +him PRP B +. . O + +His PRP$ B +1988 CD I +salary NN I +was VBD O +$ $ B +575,000 CD I +, , O +with IN O +a DT B +$ $ I +575,000 CD I +bonus NN I +. . O + +The DT B +40-year JJ I +old JJ I +Mr. NNP I +Pope NNP I +has VBZ O +n't RB O +changed VBN O +jobs NNS B +enough RB O +-- : O +at IN B +least JJS I +the DT I +right NN I +ones NNS I +-- : O +to TO O +stash VB O +away RB O +that DT B +kind NN I +of IN O +money NN B +. . O + +United NNP B +paid VBD O +him PRP B +a DT B +$ $ I +375,000 CD I +bonus NN I +to TO O +lure VB O +him PRP B +away RB O +from IN O +American NNP B +Airlines NNPS I +, , O +and CC O +he PRP B +was VBD O +paid VBN O +a DT B +salary NN I +of IN O +$ $ B +342,122 CD I +last JJ B +year NN I +with IN O +a DT B +$ $ I +280,000 CD I +bonus NN I +. . O + +Mr. NNP B +Pope NNP I +owns VBZ O +10,000 CD B +UAL NNP I +shares NNS I +and CC O +has VBZ O +options NNS B +to TO O +buy VB O +another DT B +150,000 CD I +at IN O +$ $ B +69 CD I +each DT B +. . O + +That DT B +came VBD O +to TO O +a DT B +combined VBN I +$ $ I +37.7 CD I +million CD I +under IN O +the DT B +$ $ I +300-a-share JJ I +buy-out NN I +, , O +but CC O +just RB B +$ $ I +21.3 CD I +million CD I +at IN O +yesterday NN B +'s POS B +close NN I +. . O + +Of IN O +the DT B +combined VBN I +$ $ I +114.4 CD I +million CD I +the DT B +two CD I +men NNS I +were VBD O +scheduled VBN O +to TO O +reap VB O +under IN O +the DT B +buy-out NN I +, , O +they PRP B +agreed VBD O +to TO O +invest VB O +in IN O +the DT B +buy-out NN I +just RB B +$ $ I +15 CD I +million CD I +, , O +angering VBG O +many NN B +of IN O +the DT B +thousands NNS I +of IN O +workers NNS B +asked VBD O +to TO O +make VB O +pay NN B +concessions NNS I +so RB O +the DT B +buy-out NN I +would MD O +be VB O +a DT B +success NN I +. . O + +United NNP B +'s POS B +directors NNS I +voted VBD O +themselves PRP B +, , O +and CC O +their PRP$ B +spouses NNS I +, , O +lifetime NN B +access NN I +to TO O +the DT B +Friendly NNP I +Skies NNPS I +-- : O +free JJ B +first-class JJ I +travel NN I +, , O +and CC O +$ $ B +20,000 CD I +a DT B +year NN I +for IN O +life NN B +as IN O +well RB O +. . O + +Conceivably RB O +, , O +in IN O +a DT B +scaled-back JJ I +buy-out NN I +, , O +they PRP B +could MD O +be VB O +bumped VBN O +back RB O +to TO O +coach NN B +seats NNS I +for IN O +life NN B +. . O + +Thomas NNP B +H. NNP I +Johnson NNP I +, , O +president NN B +of IN O +the DT B +Coatedboard NNP I +division NN I +of IN O +Mead NNP B +Corp. NNP I +, , O +was VBD O +named VBN O +president NN B +of IN O +Manville NNP B +Forest NNP I +Products NNP I +Corp. NNP I +, , O +a DT B +Manville NNP I +unit NN I +, , O +and CC O +senior JJ B +vice NN I +president NN I +of IN O +Manville NNP B +Corp NNP I +. . O + +Mr. NNP B +Johnson NNP I +succeeds VBZ O +Harry NNP B +W. NNP I +Sherman NNP I +, , O +who WP B +resigned VBD O +to TO O +pursue VB O +other JJ B +interests NNS I +, , O +in IN O +both DT B +positions NNS I +. . O + +Manville NNP B +is VBZ O +a DT B +building NN I +and CC I +forest NN I +products NNS I +concern VBP I +. . O + +US PRP B +Facilities NNP I +Corp. NNP I +said VBD O +Robert NNP B +J. NNP I +Percival NNP I +agreed VBD O +to TO O +step VB O +down RB O +as IN O +vice NN B +chairman NN I +of IN O +the DT B +insurance NN I +holding VBG I +company NN I +. . O + +`` `` O +There EX B +was VBD O +a DT B +difference NN I +of IN O +opinion NN B +as IN O +to TO O +the DT B +future NN I +direction NN I +of IN O +the DT B +company NN I +, , O +'' '' O +a DT B +spokeswoman NN I +said VBD O +. . O + +Mr. NNP B +Percival NNP I +declined VBD O +to TO O +comment VB O +. . O + +In IN O +a DT B +statement NN I +, , O +US PRP B +Facilities NNPS I +said VBD O +Mr. NNP B +Percival NNP I +'s POS B +employment NN I +contract NN I +calls VBZ O +for IN O +him PRP B +to TO O +act VB O +as IN O +a DT B +consultant NN I +to TO O +the DT B +company NN I +for IN O +two CD B +years NNS I +. . O + +He PRP B +will MD O +also RB O +remain VB O +a DT B +director NN I +, , O +US PRP B +Facilities NNPS I +said VBD O +, , O +but CC O +wo MD O +n't RB O +serve VB O +on IN O +any DT B +board NN I +committees NNS I +. . O + +Mr. NNP B +Percival NNP I +will MD O +be VB O +succeeded VBN O +on IN O +an DT B +interim JJ I +basis NN I +by IN O +George NNP B +Kadonada NNP I +, , O +US PRP B +Facilities NNPS I +chairman NN I +and CC I +president NN I +. . O + +In IN O +the DT B +same JJ I +statement NN I +, , O +US PRP B +Facilities NNPS I +also RB O +said VBD O +it PRP B +had VBD O +bought VBN O +back RB O +112,000 CD B +of IN O +its PRP$ B +common JJ I +shares NNS I +in IN O +a DT B +private JJ I +transaction NN I +. . O + +Terms NNS B +were VBD O +n't RB O +disclosed VBN O +. . O + +The DT B +buy-back NN I +represents VBZ O +about IN B +3 CD I +% NN I +of IN O +the DT B +company NN I +'s POS B +shares NNS I +, , O +based VBN O +on IN O +the DT B +3.7 CD I +million CD I +shares NNS I +outstanding JJ O +as IN O +of IN O +Sept. NNP B +30 CD I +. . O + +In IN O +national JJ B +over-the-counter JJ I +trading NN I +yesterday NN B +, , O +US PRP B +Facilities NNPS I +closed VBD O +at IN O +$ $ B +3.625 CD I +, , O +unchanged JJ O +. . O + +Three CD B +leading VBG I +drug NN I +companies NNS I +reported VBD O +robust JJ B +third-quarter JJ I +earnings NNS I +, , O +bolstered VBN O +by IN O +strong JJ B +sales NNS I +of IN O +newer JJR B +, , I +big-selling JJ I +prescriptions NNS I +drugs NNS I +that WDT B +provide VBP O +hefty JJ B +profit NN I +margins NNS I +. . O + +Merck NNP B +& CC I +Co. NNP I +reported VBD O +a DT B +25 CD I +% NN I +increase NN I +in IN O +earnings NNS B +; : O +Warner-Lambert NNP B +Co. NNP I +'s POS B +profit NN I +rose VBD O +22 CD B +% NN I +and CC O +Eli NNP B +Lilly NNP I +& CC I +Co. NNP I +'s POS B +net JJ I +income NN I +rose VBD O +24 CD B +% NN I +. . O + +The DT B +results NNS I +were VBD O +in IN O +line NN B +with IN O +analysts NNS B +' POS B +expectations NNS I +. . O + +Merck NNP B +& CC I +Co NNP I +. . I + +Merck NNP B +, , O +Rahway NNP B +, , O +N.J. NNP B +, , O +continued VBD O +to TO O +lead VB O +the DT B +industry NN I +with IN O +a DT B +strong JJ I +sales NNS I +performance NN I +in IN O +the DT B +human NN I +and CC I +animal NN I +health-products NNS I +segment VBP I +. . O + +A DT B +stronger JJR I +U.S. NNP I +dollar NN I +reduced VBD O +third-quarter JJ B +and CC I +first-nine-month JJ I +sales NNS I +growth NN I +2 CD B +% NN I +and CC I +3 CD I +% NN I +, , O +respectively RB O +. . O + +International JJ B +sales NNS I +accounted VBD O +for IN O +47 CD B +% NN I +of IN O +total JJ B +company NN I +sales NNS I +for IN O +the DT B +nine CD I +months NNS I +, , O +compared VBN O +with IN O +50 CD B +% NN I +a DT B +year NN I +earlier RBR O +. . O + +Sales NNS B +for IN O +the DT B +quarter NN I +rose VBD O +to TO O +$ $ B +1.63 CD I +billion CD I +from IN O +$ $ B +1.47 CD I +billion CD I +. . O + +Mevacor NNP B +, , O +Merck NNP B +'s POS B +new JJ I +cholesterol-lowering JJ I +drug NN I +, , O +had VBD O +higher JJR B +vsales NNS I +than IN O +any DT B +other JJ I +prescription NN I +medicine NN I +has VBZ O +ever RB O +achieved VBN O +in IN O +the DT B +U.S. NNP I +in IN O +the DT B +year NN I +following VBG O +introduction NN B +, , O +the DT B +company NN I +said VBD O +. . O + +The DT B +drug NN I +was VBD O +introduced VBN O +in IN O +West NNP B +Germany NNP I +this DT B +year NN I +. . O + +Intense JJ B +competition NN I +, , O +however RB O +, , O +led VBN O +to TO O +unit NN B +sales NNS I +declines NNS I +for IN O +a DT B +group NN I +of IN O +Merck NNP B +'s POS B +established VBN I +human NN I +and CC I +animal-health NN I +products NNS I +, , O +including VBG O +Aldomet NNP B +and CC I +Indocin NNP I +. . O + +In IN O +New NNP B +York NNP I +Stock NNP I +Exchange NNP I +composite JJ I +trading NN I +yesterday NN B +, , O +Merck NNP B +shares NNS I +closed VBD O +at IN O +$ $ B +75.25 CD I +, , O +up IN O +50 CD B +cents NNS I +. . O + +Warner-Lambert NNP B +Co NNP I +. . I + +Warner-Lambert NNP B +, , O +Morris NNP B +Plains NNP I +, , O +N.J. NNP B +, , O +reported VBD O +sales NNS B +that WDT B +were VBD O +a DT B +record NN I +for IN O +any DT B +quarter NN I +and CC O +the DT B +eighth JJ I +quarter NN I +in IN O +a DT B +row NN I +of IN O +20 CD B +% NN I +or CC I +more RBR I +per-share JJ I +earnings NNS I +growth NN I +. . O + +Spurred VBN O +by IN O +growth NN B +in IN O +world-wide JJ B +sales NNS I +of IN O +the DT B +company NN I +'s POS B +prescription NN I +drugs NNS I +, , O +Warner-Lambert NNP B +said VBD O +1989 CD B +will MD O +be VB O +the DT B +best JJS I +year NN I +in IN O +its PRP$ B +history NN I +, , O +with IN O +per-share JJ B +earnings NNS I +expected VBN O +to TO O +increase VB O +more JJR B +than IN I +20 CD I +% NN I +to TO O +about RB B +$ $ I +6.10 CD I +. . O + +Sales NNS B +for IN O +the DT B +quarter NN I +rose VBD O +to TO O +$ $ B +1.11 CD I +billion CD I +from IN O +$ $ B +1.03 CD I +billion CD I +. . O + +Prescription-drug NN B +world-wide JJ I +sales NNS I +rose VBD O +9 CD B +% NN I +in IN O +the DT B +quarter NN I +to TO O +$ $ B +340 CD I +million CD I +; : O +U.S. NNP B +sales NNS I +rose VBD O +15 CD B +% NN I +. . O + +The DT B +segment NN I +'s POS B +growth NN I +was VBD O +led VBN O +by IN O +sales NNS B +of IN O +the DT B +cardiovascular JJ I +drugs NNS I +Lopid NNP B +, , O +a DT B +lipid NN I +regulator NN I +, , O +and CC O +Dilzem NNP B +, , O +a DT B +calcium NN I +channel NN I +blocker NN I +. . O + +World-wide JJ B +sales NNS I +of IN O +Warner-Lambert NNP B +'s POS B +non-prescription JJ I +health-care NN I +products NNS I +, , O +such JJ O +as IN O +Halls NNP B +cough NN I +tablets NNS I +, , O +Rolaids NNP B +antacid NN I +, , O +and CC O +Lubriderm NNP B +skin NN I +lotion NN I +, , O +increased VBN O +3 CD B +% NN I +to TO O +$ $ B +362 CD I +million CD I +in IN O +the DT B +third JJ I +quarter NN I +; : O +U.S. NNP B +sales NNS I +rose VBD O +5 NN B +% NN I +. . O + +Confectionery JJ B +products NNS I +sales NNS I +also RB O +had VBD O +strong JJ B +growth NN I +in IN O +the DT B +quarter NN I +. . O + +World-wide JJ B +sales NNS I +of IN O +Trident NNP B +gum NN I +, , O +Certs NNP B +breath NN I +mints NNS I +, , O +and CC O +Clorets NNP B +gum NN I +and CC I +breath NN I +mints NNS I +, , O +increased VBN O +12 CD B +% NN I +to TO O +$ $ B +277 CD I +million CD I +. . O + +Warner-Lambert NNP B +shares NNS I +closed VBD O +at IN O +$ $ B +109.50 CD I +a DT B +share NN I +, , O +up IN O +$ $ B +1.50 CD I +, , O +in IN O +Big NNP B +Board NNP I +composite JJ I +trading NN I +yesterday NN B +. . O + +Eli NNP B +Lilly NNP I +& CC I +Co NNP I +. . I + +Lilly NNP B +attributed VBD O +record NN B +third-quarter JJ I +and CC I +nine-month JJ I +results NNS I +to TO O +world-wide JJ B +gains NNS I +for IN O +pharmaceuticals NNS B +, , O +medical JJ B +instruments NNS I +and CC O +plant-science NN B +products NNS I +despite IN O +poor JJ B +exchange NN I +rates NNS I +for IN O +the DT B +dollar NN I +that WDT B +slowed VBD O +sales NNS B +abroad RB O +. . O + +Earnings NNS B +continued VBD O +to TO O +pace VB O +sales NNS B +because IN O +of IN O +a DT B +lower JJR I +tax NN I +rate NN I +, , O +profit NN B +from IN O +the DT B +renegotiation NN I +of IN O +the DT B +debt NN I +instrument NN I +received VBD O +from IN O +Faberge NNP B +Inc. NNP I +in IN O +connection NN B +with IN O +Lilly NNP B +'s POS B +sale NN I +of IN O +Elizabeth NNP B +Arden NNP I +Inc. NNP I +in IN O +1987 CD B +, , O +and CC O +net JJ B +proceeds NNS I +from IN O +the DT B +settlement NN I +of IN O +patent NN B +litigation NN I +at IN O +Lilly NNP B +'s POS B +Hybritech NNP I +Inc. NNP I +unit NN I +. . O + +Third-quarter JJ B +sales NNS I +of IN O +the DT B +Indianapolis NNP I +, , I +Ind. NNP I +, , I +company NN I +rose VBD O +11 CD B +% NN I +to TO O +$ $ B +1.045 CD I +billion CD I +from IN O +$ $ B +940.6 CD I +million CD I +. . O + +Nine-month JJ B +sales NNS I +grew VBD O +12 CD B +% NN I +to TO O +$ $ B +3.39 CD I +billion CD I +from IN O +$ $ B +3.03 CD I +billion CD I +a DT B +year NN I +earlier RBR O +. . O + +Sales NNS B +of IN O +Prozac NNP B +, , O +an DT B +anti-depressant NN I +, , O +led VBN O +drug-sales NNS B +increases NNS I +. . O + +Higher JJR B +sales NNS I +of IN O +pesticides NNS B +and CC O +other JJ B +plant-science NN I +products NNS I +more JJR O +than IN O +offset VB O +a DT B +slight JJ I +decline NN I +in IN O +the DT B +sales NNS I +of IN O +animal-health NN B +products NNS I +to TO O +fuel VB O +the DT B +increase NN I +in IN O +world-wide JJ B +agricultural JJ I +product NN I +sales NNS I +, , O +Lilly NNP B +said VBD O +. . O + +Advanced NNP B +Cardiovascular NNP I +Systems NNP I +Inc. NNP I +and CC O +Cardiac NNP B +Pacemakers NNPS I +Inc. NNP I +units NNS I +led VBD O +growth NN B +in IN O +the DT B +medical-instrument JJ I +systems NNS I +division NN I +. . O + +Lilly NNP B +shares NNS I +closed VBD O +yesterday NN B +in IN O +composite JJ B +trading NN I +on IN O +the DT B +Big NNP I +Board NNP I +at IN O +$ $ B +62.25 CD I +, , O +down RB O +12.5 CD B +cents NNS I +. . O + +Reuben NNP B +Mark NNP I +, , O +chairman NN B +of IN O +Colgate-Palmolive NNP B +Co. NNP I +, , O +said VBD O +he PRP B +is VBZ O +`` `` O +comfortable JJ O +'' '' O +with IN O +analysts NNS B +' POS B +estimates NNS I +that IN O +third-quarter JJ B +earnings NNS I +rose VBD O +to TO O +between IN B +95 CD I +cents NNS I +and CC I +$ $ I +1.05 CD I +a DT B +share NN I +. . O + +That DT B +compares VBZ O +with IN O +per-share JJ B +earnings NNS I +from IN O +continuing VBG B +operations NNS I +of IN O +69 CD B +cents NNS I +the DT B +year NN I +earlier RBR O +; : O +including VBG O +discontinued VBN B +operations NNS I +, , O +per-share NN B +was VBD O +88 CD B +cents NNS I +a DT B +year NN I +ago RB O +. . O + +The DT B +per-share JJ I +estimates NNS I +mean VBP O +the DT B +consumer-products NNS I +company NN I +'s POS B +net JJ I +income NN I +, , O +increased VBN O +to TO O +between IN B +$ $ I +69.5 CD I +million CD I +and CC I +$ $ I +76 CD I +million CD I +, , O +from IN O +$ $ B +47.1 CD I +million CD I +the DT B +year-before JJ I +period NN I +. . O + +Analysts NNS B +estimate VBP O +Colgate NNP B +'s POS B +world-wide JJ I +third-quarter JJ I +sales NNS I +rose VBD O +about IN B +8 CD I +% NN I +to TO O +$ $ B +1.29 CD I +billion CD I +. . O + +Mr. NNP B +Mark NNP I +attributed VBD O +the DT B +earnings NNS I +growth NN I +to TO O +strong JJ B +sales NNS I +in IN O +Latin NNP B +America NNP I +, , O +Asia NNP B +and CC O +Europe NNP B +. . O + +Results NNS B +were VBD O +also RB O +bolstered VBN O +by IN O +`` `` B +a DT I +very RB I +meaningful JJ I +'' '' I +increase NN I +in IN O +operating VBG B +profit NN I +by IN O +Colgate NNP B +'s POS B +U.S. NNP I +business NN I +, , O +Mr. NNP B +Mark NNP I +said VBD O +. . O + +Operating NN B +profit NN I +at IN O +Colgate NNP B +'s POS B +U.S. NNP I +household NN I +products NNS I +and CC I +personal-care JJ I +businesses NNS I +jumped VBD O +25 CD B +% NN I +in IN O +the DT B +quarter NN I +, , O +Mr. NNP B +Mark NNP I +added VBD O +. . O + +He PRP B +said VBD O +the DT B +improvement NN I +was VBD O +a DT B +result NN I +of IN O +cost NN B +savings NNS I +achieved VBN O +by IN O +consolidating VBG O +manufacturing NN O +operations NNS B +, , O +blending VBG O +two CD B +sales NNS I +organizations NNS I +and CC O +focusing VBG O +more RBR O +carefully RB O +the DT B +company NN I +'s POS B +promotional JJ I +activities NNS I +. . O + +The DT B +estimated VBN I +improvement NN I +in IN O +Colgate NNP B +'s POS B +U.S. NNP I +operations NNS I +took VBD O +some DT B +analysts NNS I +by IN O +surprise NN B +. . O + +Colgate NNP B +'s POS B +household NN I +products NNS I +business NN I +, , O +which WDT B +includes VBZ O +such JJ B +brands NNS I +as IN O +Fab NNP B +laundry NN I +detergent NN I +and CC O +Ajax NNP B +cleanser NN I +, , O +has VBZ O +been VBN O +a DT B +weak JJ I +performer NN I +. . O + +Analysts NNS B +estimate VBP O +Colgate NNP B +'s POS B +sales NNS I +of IN O +household NN B +products NNS I +in IN O +the DT B +U.S. NNP I +were VBD O +flat JJ O +for IN O +the DT B +quarter NN I +, , O +and CC O +they PRP B +estimated VBD O +operating VBG B +margins NNS I +at IN O +only RB B +1 CD I +% NN I +to TO I +3 CD I +% NN I +. . O + +`` `` O +If IN O +you PRP B +could MD O +say VB O +their PRP$ B +business NN I +in IN O +the DT B +U.S. NNP I +was VBD O +mediocre JJ O +, , O +but CC O +great JJ O +everywhere RB O +else RB O +, , O +that WDT B +would MD O +be VB O +fine JJ O +, , O +'' '' O +says VBZ O +Bonita NNP B +Austin NNP I +, , O +an DT B +analyst NN I +with IN O +Wertheim NNP B +Schroder NNP I +& CC I +Co NNP I +. . O + +`` `` O +But CC O +it PRP B +'s VBZ O +not RB O +mediocre JJ O +, , O +it PRP B +'s VBZ O +a DT B +real JJ I +problem NN I +. . O +'' '' O + +Mr. NNP B +Mark NNP I +conceded VBD O +that IN O +Colgate NNP B +'s POS B +domestic JJ I +business NN I +, , O +apart RB O +from IN O +its PRP$ O +highly RB O +profitable JJ O +Hill NNP B +'s POS I +Pet NNP O +Products NNPS O +unit NN O +, , O +has VBZ O +lagged VBN O +. . O + +`` `` O +We PRP B +'ve VBP O +done VBN O +a DT B +lot NN I +to TO O +improve VB O +-LCB- ( B +U.S. NNP I +. . I +-RCB- ) I +results NNS I +, , O +and CC O +a DT B +lot NN I +more JJR I +will MD O +be VB O +done VBN O +, , O +'' '' O +Mr. NNP B +Mark NNP I +said VBD O +. . O + +`` `` O +Improving VBG O +profitability NN B +of IN O +U.S. NNP B +operations NNS I +is VBZ O +an DT B +extremely RB I +high JJ I +priority NN I +in IN O +the DT B +company NN I +. . O +'' '' O + +To TO O +focus VB O +on IN O +its PRP$ B +global JJ I +consumer-products NNS I +business NN I +, , O +Colgate NNP B +sold VBD O +its PRP$ B +Kendall NNP I +health-care NN I +business NN I +in IN O +1988 CD B +. . O + +H. NNP B +Anthony NNP I +Ittleson NNP I +was VBD O +elected VBN O +a DT B +director NN I +of IN O +this DT B +company NN I +, , O +which WDT B +primarily RB O +has VBZ O +interests NNS B +in IN O +radio NN B +and CC I +television NN I +stations NNS I +, , O +increasing VBG O +the DT B +number NN I +of IN O +seats NNS B +to TO O +five CD B +. . O + +Osborn NNP B +also RB O +operates VBZ O +Muzak NNP B +franchises NNS I +, , O +entertainment NN B +properties NNS I +and CC O +small JJ B +cable-television NN I +systems NNS I +. . O + +Mr. NNP B +Ittleson NNP I +is VBZ O +executive NN B +, , O +special JJ B +projects NNS I +, , O +at IN O +CIT NNP B +Group NNP I +Holdings NNP I +Inc. NNP I +, , O +which WDT B +is VBZ O +controlled VBN O +by IN O +Manufacturers NNP B +Hanover NNP I +Corp NNP I +. . O + +The DT B +Boston NNP I +Globe NNP I +says VBZ O +its PRP$ B +newly RB I +redesigned VBN I +pages NNS I +have VBP O +a DT B +`` `` I +crisper NN I +'' '' I +look VB I +with IN O +revamped VBN B +fixtures NNS I +aimed VBN O +at IN O +making VBG O +the DT B +paper NN I +`` `` O +more RBR O +consistent JJ O +'' '' O +and CC O +`` `` O +easier JJR O +to TO O +read VB O +. . O +'' '' O + +Maybe RB O +so RB O +-- : O +if IN O +you PRP B +can MD O +find VB O +where WRB O +your PRP$ B +favorite JJ I +writer NN I +went VBD O +. . O + +Beantown NNP B +scribes NNS I +, , O +who WP B +spare VB O +no DT B +invective NN I +when WRB O +taking VBG O +on IN O +local JJ B +luminaries NNS I +such JJ O +as IN O +Michael NNP B +`` `` I +Pee NNP I +Wee NNP I +'' '' I +Dukakis NNP I +, , O +or CC O +New NNP B +England NNP I +Patriots NNPS I +Coach NNP I +Raymond NNP I +`` `` I +Rev. NNP I +Ray NNP I +'' '' I +Berry NNP I +, , O +yesterday NN B +poured VBD O +ridicule NN B +on IN O +new JJ B +drawings NNS I +of IN O +Globe NNP B +columnists NNS I +that WDT B +replaced VBD O +old JJ B +photos NNS I +in IN O +the DT B +revamped VBN I +pages NNS I +this DT B +week NN I +. . O + +By IN O +late JJ B +last JJ I +night NN I +, , O +Globe NNP O +Managing NNP O +Editor NNP O +Thomas NNP B +Mulvoy NNP I +, , O +bending VBG O +to TO O +the DT B +will MD I +of IN O +his PRP$ B +troops NNS I +, , O +scrapped VBD O +the DT B +new JJ I +drawings NNS I +. . O + +For IN O +a DT B +few JJ I +days NNS I +at IN O +least JJS O +, , O +he PRP B +says VBZ O +, , O +no DT B +pictures NNS I +or CC I +drawings NNS I +of IN O +any DT B +kind NN I +will MD O +adorn VB O +the DT B +columns NNS I +. . O + +Trouble NN B +was VBD O +, , O +nobody NN B +thought VBD O +they PRP B +looked VBD O +right NN O +. . O + +Globe NNP B +columnist NN I +Mike NNP I +Barnicle NNP I +-- : O +in IN O +the DT B +second JJ I +attack NN I +on IN O +his PRP$ B +employer NN I +in IN O +as IN B +many JJ I +weeks NNS I +-- : O +averred VBD O +that IN O +his PRP$ B +shadowy JJ I +countenance NN I +was VBD O +so RB O +bad JJ O +, , O +it PRP B +looked VBD O +`` `` O +like IN O +a DT B +face NN I +you PRP B +'d MD O +find VB O +on IN O +a DT B +bottle NN I +of IN O +miracle NN B +elixir NN I +that WDT B +promises VBZ O +to TO O +do VB O +away RB O +with IN O +diarrhea NN B +in IN O +our PRP$ B +lifetime NN I +. . O +'' '' O + +Mr. NNP B +Barnicle NNP I +reminded VBD O +readers NNS B +that IN O +he PRP B +still RB O +has VBZ O +n't RB O +forgiven VBN O +Globe NNP B +management NN I +for IN O +questioning VBG O +a DT B +$ $ I +20 CD I +expense NN I +chit NN I +he PRP B +submitted VBD O +for IN O +parking VBG O +his PRP$ B +car NN I +while IN O +chasing VBG O +a DT B +story NN I +. . O + +`` `` O +I PRP B +thought VBD O +-LCB- ( O +the DT B +drawing VBG I +-RCB- ) O +a DT B +cross NN I +between IN O +someone NN B +you PRP B +'d MD O +spot VB O +whipping VBG O +open JJ O +his PRP$ B +trench NN I +coat NN I +... : O +or CC O +a DT B +guy NN I +who WP B +boasted VBD O +he PRP B +'d MD O +been VBN O +Charles NNP B +Manson NNP I +'s POS B +roommate NN I +for IN O +the DT B +last JJ I +19 CD I +years NNS I +, , O +'' '' O +he PRP B +said VBD O +. . O + +Mr. NNP B +Barnicle NNP I +was VBD O +hardly RB O +kinder JJR O +to TO O +the DT B +renderings NNS I +of IN O +colleagues NNS B +Michael NNP B +Madden NNP I +-LRB- ( O +`` `` O +appears VBZ O +to TO O +be VB O +a DT B +pervert NN I +'' '' O +-RRB- ) O +, , O +Will MD B +McDonough NNP I +-LRB- ( O +`` `` O +looks VBZ O +as IN O +if IN O +he PRP B +drove VBD O +for IN O +Abe NNP B +Lincoln NNP I +'' '' O +-RRB- ) O +or CC O +Bella NNP B +English NNP I +, , O +whose WP$ B +`` `` I +little JJ I +girl NN I +now RB O +screams VBZ O +hysterically RB O +every DT B +time NN I +she PRP B +sees VBZ O +a DT B +newspaper NN I +. . O +'' '' O + +Lynn NNP B +Staley NNP I +, , O +the DT B +Globe NNP I +'s POS B +assistant NN I +managing VBG I +editor NN I +for IN O +design NN B +, , O +acknowledges VBZ O +that IN O +the DT B +visages NNS I +were VBD O +`` `` O +on IN O +the DT B +low JJ I +end NN I +of IN O +the DT B +likeness NN I +spectrum NN I +. . O +'' '' O + +Rival NNP B +Boston NNP I +Herald NNP I +columnist NN I +Howie NNP I +Carr NNP I +, , O +who WP B +usually RB O +rails VBZ O +at IN O +Statehouse NN B +`` `` I +hacks NNS I +'' '' I +and CC I +nepotism NN I +, , O +argued VBD O +that IN O +the DT B +new JJ I +drawings NNS I +were VBD O +designed VBN O +to TO O +hide VB O +Mr. NNP B +Madden NNP I +'s POS B +`` `` I +rapidly RB I +growing VBG I +forehead NN I +'' '' I +and CC O +the DT B +facial JJ I +defects NNS I +of IN O +`` `` B +chinless JJ I +'' '' I +Dan NNP I +Shaughnessy NNP I +, , O +a DT B +Globe NNP I +sports NNS I +columnist NN I +. . O + +`` `` O +But CC O +think VBP O +of IN O +the DT B +money NN I +you PRP B +, , O +the DT B +reader NN I +, , O +will MD O +save VB O +on IN O +Halloween NNP B +, , O +'' '' O +said VBD O +Mr. NNP B +Barnicle NNP I +. . O + +`` `` O +Instead RB O +of IN O +buying VBG O +masks NNS B +for IN O +your PRP$ B +kids NNS I +, , O +just RB O +cut VB O +out RP O +the IN B +columnists NNS I +' POS B +pictures NNS I +... : O +. . O + +Deeply RB O +ingrained JJ O +in IN O +both DT O +the DT B +book NN I +review NN I +`` `` I +Kissing VBG O +Nature NNP B +Good-bye UH B +'' '' O +by IN O +Stephen NNP B +MacDonald NNP I +-LRB- ( O +Leisure NNP B +& CC I +Arts NNP I +, , O +Sept. NNP B +27 CD I +-RRB- ) O +and CC O +the DT B +books NNS I +reviewed VBN O +is VBZ O +the DT B +assumption NN I +that IN O +global JJ B +warming NN I +is VBZ O +entirely RB O +a DT B +result NN I +of IN O +human JJ B +activity NN I +. . O + +Is VBZ O +such JJ B +a DT I +view NN I +justified VBN O +? . O + +In IN O +the DT B +absence NN I +of IN O +humans NNS B +, , O +would MD O +the DT B +Earth NNP I +enjoy VB O +a DT B +constant JJ I +climate NN I +over IN O +the DT B +long JJ I +term NN I +? . O + +Clearly RB O +not RB O +. . O + +About IN B +20,000 CD I +years NNS I +ago RB O +the DT B +last JJ I +ice NN I +age NN I +ended VBD O +. . O + +Enormous JJ B +ice NN I +sheets NNS I +retreated VBD O +from IN O +the DT B +face NN I +of IN O +North NNP B +America NNP I +, , O +northern JJ B +Europe NNP I +and CC O +Asia NNP B +. . O + +This DT B +global JJ I +warming NN I +must MD O +have VB O +been VBN O +entirely RB O +natural JJ O +-- : O +nobody NN B +would MD O +blame VB O +it PRP B +on IN O +a DT B +few JJ I +hundred CD I +thousand CD I +hunter-gatherers NNS I +hunting NN O +mammoths NNS B +and CC O +scratching VBG O +around IN O +in IN O +caves NNS B +. . O + +Furthermore RB O +, , O +no DT B +bell NN I +has VBZ O +yet RB O +rung VBN O +to TO O +announce VB O +the DT B +end NN I +of IN O +this DT B +immense JJ I +episode NN I +of IN O +natural JJ B +global JJ I +warming NN I +. . O + +It PRP B +is VBZ O +probably RB O +continuing VBG O +and CC O +may MD O +well RB O +account VB O +for IN O +most RBS B +of IN O +, , O +or CC O +all DT B +of IN O +, , O +present-day JJ B +global JJ I +warming NN I +. . O + +I PRP B +bow VBP O +to TO O +no DT B +one CD I +in IN O +my PRP$ B +regard NN I +for IN O +our PRP$ B +terrestrial JJ I +heritage NN I +, , O +but CC O +if IN O +we PRP B +are VBP O +serious JJ O +about IN O +global JJ B +warming NN I +we PRP B +must MD O +look VB O +at IN O +the DT B +big JJ I +picture NN I +and CC O +not RB O +allow VB O +the DT B +Dominant NNP I +Culture NNP I +to TO O +lock VB O +us PRP B +into IN O +the DT B +capitalist-exploiters-greedy-American-consumers-global JJ I +- : I +warming NN I +scenario NN I +as IN O +the DT B +sole JJ I +model NN I +for IN O +discussion NN B +. . O + +Jocelyn NNP B +Tomkin NNP I +Astronomy NNP B +Department NNP I +University NNP B +of IN O + +The DT B +Internal NNP I +Revenue NNP I +Service NNP I +plans VBZ O +to TO O +restructure VB O +itself PRP B +more JJR O +like IN O +a DT B +private JJ I +corporation NN I +. . O + +In IN O +addition NN B +, , O +the DT B +tax-collecting JJ I +agency NN I +says VBZ O +that IN O +it PRP B +will MD O +take VB O +the DT B +unusual JJ I +step NN I +of IN O +looking VBG O +to TO O +the DT B +private JJ I +sector NN I +to TO O +fill VB O +two CD B +new JJ I +high-level JJ I +positions NNS I +to TO O +guide VB O +the DT B +120,000-employee JJ I +agency NN I +: : O +a DT B +comptroller NN I +to TO O +oversee VB O +daily JJ B +finances NNS I +and CC O +a DT B +chief JJ I +information NN I +officer NN I +to TO O +update VB O +the DT B +information NN I +system NN I +, , O +which WDT B +includes VBZ O +probably RB B +the DT I +largest JJS I +computer NN I +data NNS I +base VBP I +in IN O +the DT B +world NN I +. . O + +The DT B +IRS NNP I +also RB O +said VBD O +that IN O +it PRP B +would MD O +create VB O +the DT B +position NN I +of IN O +chief JJ B +financial JJ I +officer NN I +, , O +who WP B +will MD O +be VB O +hired VBN O +from IN O +within IN O +the DT B +agency NN I +. . O + +IRS NNP B +Commissioner NNP I +Fred NNP I +T. NNP I +Goldberg NNP I +said VBD O +the DT B +changes NNS I +are VBP O +intended VBN O +to TO O +bring VB O +`` `` O +accountability NN B +'' '' O +to TO O +the DT B +agency NN I +, , O +which WDT B +has VBZ O +an DT B +annual JJ I +budget NN I +of IN O +more JJR B +than IN I +$ $ I +5 NN I +billion CD I +and CC O +collects VBZ O +about RB B +$ $ I +1 CD I +trillion CD I +a DT B +year NN I +. . O + +`` `` O +My PRP$ B +assessment NN I +and CC O +everyone NN B +'s POS B +assessment NN I +is VBZ O +that IN O +we PRP B +do VBP O +not RB O +have VB O +the DT B +kinds NNS I +of IN O +information NN B +that WDT B +let VBP O +us PRP B +responsibly RB O +and CC O +effectively RB O +formulate VB O +and CC O +execute VB O +our PRP$ B +budget NN I +, , O +'' '' O +Mr. NNP B +Goldberg NNP I +said VBD O +. . O + +`` `` O +And CC O +we PRP B +do VBP O +n't RB O +have VB O +internal JJ B +controls NNS I +and CC I +discipline NN I +that IN B +we PRP B +need VBP O +to TO O +have VB O +to TO O +spend VB O +$ $ B +5 NN I +billion CD I +properly RB O +. . O +'' '' O + +Mr. NNP B +Goldberg NNP I +, , O +who WP B +took VBD O +over IN O +as IN O +head NN B +of IN O +the DT B +IRS NNP I +in IN O +July NNP B +, , O +has VBZ O +been VBN O +disturbed VBN O +by IN O +what WP B +he PRP B +considers VBZ O +the DT B +inefficiency NN I +, , I +waste NN I +and CC I +lack NN I +of IN O +coordination NN B +among IN O +the DT B +branches NNS I +of IN O +the DT B +vast JJ I +federal JJ I +agency NN I +. . O + +The DT B +IRS NNP I +operates VBZ O +on IN O +a DT B +computer NN I +system NN I +designed VBN O +in IN O +1961 CD B +, , O +which WDT B +it PRP B +has VBZ O +been VBN O +trying VBG O +to TO O +modernize VB O +for IN O +years NNS B +. . O + +And CC O +the DT B +agency NN I +, , O +which WDT B +operated VBD O +throughout IN O +fiscal JJ B +1989 CD I +with IN O +a DT B +$ $ I +360 CD I +million CD I +budget NN I +shortfall NN I +, , O +has VBZ O +been VBN O +under IN O +a DT B +hiring VBG I +freeze NN I +since IN O +last JJ B +fall NN I +. . O + +The DT B +new JJ I +commissioner NN I +says VBZ O +that IN O +closer JJR B +scrutiny NN I +of IN O +how WRB O +the DT B +agency NN I +uses VBZ O +its PRP$ B +resources NNS I +will MD O +go VB O +a DT B +long JJ I +way NN I +toward IN O +enhancing VBG O +its PRP$ B +ability NN I +to TO O +collect VB O +more JJR B +tax NN I +revenue NN I +. . O + +`` `` O +I PRP B +think VBP O +that IN O +you PRP B +will MD O +see VB O +a DT B +significant JJ I +improvement NN I +in IN O +the DT B +budget NN I +formulation NN I +and CC I +execution NN I +process NN I +which WDT B +, , O +in IN O +turn NN B +, , O +I PRP B +believe VBP O +will MD O +result VB O +in IN O +a DT B +significant JJ I +increase NN I +in IN O +revenue NN B +, , O +'' '' O +he PRP B +said VBD O +. . O + +The DT B +IRS NNP I +hopes VBZ O +to TO O +fill VB O +the DT B +new JJ I +positions NNS I +soon RB O +. . O + +Customarily RB O +, , O +it PRP B +would MD O +appoint VB O +career NN B +civil JJ I +servants NNS I +from IN O +within IN O +the DT B +agency NN I +, , O +but CC O +Mr. NNP B +Goldberg NNP I +said VBD O +he PRP B +plans VBZ O +to TO O +`` `` O +scour VBP O +the DT B +world NN I +'' '' O +for IN O +the DT B +chief JJ I +information NN I +officer NN I +and CC O +the DT B +comptroller NN I +. . O + +Although IN O +the DT B +jobs NNS I +will MD O +probably RB O +pay VB O +between IN B +$ $ I +70,000 CD I +and CC I +$ $ I +80,000 CD I +a DT B +year NN I +, , O +IRS NNP B +officials NNS I +are VBP O +confident JJ O +that IN O +they PRP B +can MD O +attract VB O +top-notch JJ B +candidates NNS I +from IN O +the DT B +private JJ I +sector NN I +. . O + +`` `` O +You PRP B +'re VBP O +telling VBG O +someone NN B +they PRP B +can MD O +spend VB O +the DT B +next JJ I +three CD I +or CC I +four CD I +or CC I +five CD I +or CC I +six CD I +years NNS I +of IN O +their PRP$ B +life NN I +bringing VBG O +about IN O +the DT B +most RBS I +difficult JJ I +and CC I +costly JJ I +modernization NN I +of IN O +an DT B +information NN I +system NN I +on IN O +the DT B +civil JJ I +side NN I +ever RB O +, , O +'' '' O +Mr. NNP B +Goldberg NNP I +said VBD O +. . O + +`` `` O +On IN O +the DT B +comptroller NN I +side NN I +, , O +you PRP B +'re VBP O +developing VBG O +and CC O +making VBG O +work NN O +financial JJ B +controls NNS I +governing VBG O +a DT B +$ $ I +6 CD I +billion CD I +budget NN I +. . O + +When WRB O +Maj. NNP B +Moises NNP I +Giroldi NNP I +, , O +the DT B +leader NN I +of IN O +the DT B +abortive JJ I +coup NN I +in IN O +Panama NNP B +, , O +was VBD O +buried VBN O +, , O +his PRP$ B +body NN I +bore VBD O +several JJ B +gunshot NN I +wounds NNS I +, , O +a DT B +cracked VBN I +skull NN I +and CC O +broken VBN B +legs NNS I +and CC I +ribs NNS I +. . O + +They PRP B +were VBD O +the DT B +signature NN I +of IN O +his PRP$ B +adversary NN I +, , O +Panamanian JJ B +leader NN I +Manuel NNP I +Antonio NNP I +Noriega NNP I +. . O + +The DT B +rebel NN I +officer NN I +'s POS B +slow JJ I +and CC I +painful JJ I +death NN I +, , O +at IN O +the DT B +headquarters NN I +of IN O +Panama NNP B +'s POS B +Battalion-2000 NN I +squad NN I +, , O +was VBD O +personally RB O +supervised VBN O +by IN O +Gen. NNP B +Noriega NNP I +, , O +says VBZ O +a DT B +U.S. NNP I +official NN I +with IN O +access NN B +to TO O +intelligence NN B +reports NNS I +. . O + +Leaping VBG O +into IN O +rages VBZ B +, , O +sinking VBG O +into IN O +bouts NNS B +of IN O +drunkenness NN B +and CC I +mistrust NN I +, , O +Mr. NNP B +Noriega NNP I +has VBZ O +put VBN O +to TO O +death NN B +some DT B +70 CD I +of IN O +his PRP$ B +troops NNS I +involved VBN O +in IN O +the DT B +coup NN I +, , O +according VBG O +to TO O +U.S. NNP B +officials NNS I +monitoring NN O +crematoriums NNS B +and CC O +funeral NN B +parlors NNS I +in IN O +Panama NNP B +City NNP I +. . O + +He PRP B +is VBZ O +now RB O +changing VBG O +the DT B +place NN I +he PRP B +sleeps VBZ O +every DT B +night NN I +, , O +sometimes RB B +more JJR I +than IN I +once RB I +a DT B +night NN I +. . O + +His PRP$ B +meals NNS I +are VBP O +most RBS O +often RB O +prepared VBN O +by IN O +women NNS B +he PRP B +trusts VBZ O +-- : O +his PRP$ B +full-time JJ I +mistress NN I +, , O +Vicky NNP B +Amado NNP I +, , O +and CC O +her PRP$ B +mother NN I +, , O +Norma NNP B +. . O + +And CC O +he PRP B +is VBZ O +collecting VBG O +the DT B +names NNS I +of IN O +those DT B +who WP B +telephoned VBD O +the DT B +coup-makers NNS I +to TO O +congratulate VB O +them PRP B +during IN O +their PRP$ B +brief JJ I +time NN I +in IN O +control NN B +of IN O +his PRP$ B +headquarters NN I +. . O + +More JJR B +enemies NNS I +to TO O +be VB O +dealt VBN O +with RB O +. . O + +In IN O +the DT B +two CD I +weeks NNS I +since IN O +the DT B +rebellion NN I +, , O +which WDT B +the DT B +U.S. NNP I +hesitantly RB O +backed VBD O +, , O +Mr. NNP B +Noriega NNP I +has VBZ O +been VBN O +at IN O +his PRP$ B +most RBS I +brutal JJ I +- : I +and CC I +efficient JJ I +- : I +in IN O +maintaining VBG O +power NN B +. . O + +Yet RB O +, , O +while IN O +the DT B +failed VBN I +coup NN I +is VBZ O +a DT B +major JJ I +U.S. NNP I +foreign JJ I +policy NN I +embarrassment NN I +, , O +it PRP B +is VBZ O +merely RB B +the DT I +latest JJS I +chapter NN I +in IN O +a DT B +byzantine JJ I +relationship NN I +between IN O +Mr. NNP B +Noriega NNP I +and CC O +Washington NNP B +that IN B +stretches NNS O +back RB O +three CD B +decades NNS I +. . O + +America NNP B +'s POS B +war NN I +on IN O +the DT B +dictator NN I +over IN O +the DT B +past JJ I +two CD I +years NNS I +, , O +following VBG O +his PRP$ B +indictment NN I +on IN O +drug NN B +charges NNS I +in IN O +February NNP B +1988 CD I +, , O +is VBZ O +the DT B +legacy NN I +of IN O +that DT B +relationship NN I +. . O + +Before IN O +American JJ B +foreign JJ I +policy NN I +set VBN O +out IN O +to TO O +destroy VB O +Noriega NNP B +, , O +it PRP B +helped VBD O +create VB O +him PRP B +out IN O +of IN O +the DT B +crucible NN I +of IN O +Panama NNP B +'s POS B +long JJ I +history NN I +of IN O +conspirators NNS B +and CC I +pirates NNS I +. . O + +For IN O +most RBS B +of IN I +the DT I +past JJ I +30 CD I +years NNS I +, , O +the DT B +marriage NN I +was VBD O +one CD B +of IN O +convenience NN B +. . O + +In IN O +1960 CD B +, , O +for IN O +example NN B +, , O +when WRB O +Mr. NNP B +Noriega NNP I +was VBD O +both DT O +a DT B +cadet NN I +at IN O +an DT B +elite NN I +military JJ I +academy NN I +in IN O +Peru NNP B +and CC O +a DT B +spy-in-training NN I +for IN O +the DT B +U.S. NNP I +Defense NNP I +Intelligence NNP I +Agency NNP I +, , O +he PRP B +was VBD O +detained VBN O +by IN O +Lima NNP B +authorities NNS I +for IN O +allegedly RB O +raping VBG O +and CC O +savagely RB O +beating VBG O +a DT B +prostitute NN I +, , O +according VBG O +to TO O +a DT B +U.S. NNP I +Embassy NNP I +cable NN I +from IN O +that DT B +period NN I +. . O + +The DT B +woman NN I +had VBD O +nearly RB O +died VBN O +. . O + +But CC O +U.S. NNP B +intelligence NN I +, , O +rather RB O +than IN O +rein NN O +in IN O +or CC O +cut NN O +loose JJ O +its PRP$ B +new JJ I +spy NN I +, , O +merely RB O +filed VBN O +the DT B +report NN I +away RB O +. . O + +Mr. NNP B +Noriega NNP I +'s POS B +tips NNS I +on IN O +emerging VBG B +leftists NNS I +at IN O +his PRP$ B +school NN I +were VBD O +deemed VBN O +more RBR O +important JJ O +to TO O +U.S. NNP B +interests NNS I +. . O + +From IN O +that DT B +point NN I +on IN I +, , O +the DT B +U.S. NNP I +would MD O +make VB O +a DT B +practice NN I +of IN O +overlooking VBG O +the DT B +Panamanian NNP I +'s POS B +misadventures NNS I +. . O + +The DT B +U.S. NNP I +has VBZ O +befriended VBN O +and CC O +later RB O +turned VBD O +against IN O +many JJ B +dictators NNS I +, , O +but CC O +none NN B +quite RB O +so RB O +resourceful JJ O +. . O + +The DT B +55-year-old NNP I +Mr. NNP I +Noriega NNP I +is VBZ O +n't RB O +as RB O +smooth JJ O +as IN O +the DT B +shah NN I +of IN O +Iran NNP B +, , O +as RB O +well-born JJ O +as IN O +Nicaragua NNP B +'s POS B +Anastasio NNP I +Somoza NNP I +, , O +as RB O +imperial JJ O +as IN O +Ferdinand NNP B +Marcos NNP I +of IN O +the DT B +Philippines NNP I +or CC O +as RB O +bloody JJ O +as IN O +Haiti NNP B +'s POS B +Baby NNP I +Doc NNP I +Duvalier NNP I +. . O + +Yet RB O +he PRP B +has VBZ O +proved VBN O +more RBR O +resilient JJ O +than IN O +any DT B +of IN O +them PRP B +. . O + +And CC O +out IN O +of IN O +necessity NN B +: : O +The DT B +U.S. NNP I +can MD O +make VB O +mistakes NNS B +and CC O +still JJ O +hope NN O +to TO O +remove VB O +him PRP B +from IN O +power NN B +, , O +but CC O +a DT B +single JJ I +error NN I +on IN O +his PRP$ B +part NN I +could MD O +cost VB O +him PRP B +his PRP$ B +life NN I +. . O + +`` `` O +The DT B +U.S. NNP I +underestimated VBD O +Noriega NNP B +all DT O +along IN O +, , O +'' '' O +says VBZ O +Ambler NNP B +Moss NNP I +, , O +a DT B +former JJ I +Ambassador NNP I +to TO O +Panama NNP B +. . O + +`` `` O +He PRP B +has VBZ O +mastered VBN O +the DT B +art NN I +of IN O +survival NN B +. . O +'' '' O + +In IN O +keeping VBG O +with IN O +America NNP B +'s POS B +long JJ I +history NN I +of IN O +propping VBG O +up IN O +Mr. NNP B +Noriega NNP I +, , O +recent JJ B +U.S. NNP I +actions NNS I +have VBP O +extended VBN O +rather RB O +than IN O +shortened VBN O +his PRP$ B +survival NN I +. . O + +Mr. NNP B +Noriega NNP I +might MD O +have VB O +fallen VBN O +of IN O +his PRP$ B +own JJ I +weight NN I +in IN O +1988 CD B +because IN O +of IN O +Panama NNP B +'s POS B +dire JJ I +economic JJ I +situation NN I +, , O +says VBZ O +Mr. NNP B +Moss NNP I +, , O +but CC O +increasing VBG B +external JJ I +pressure NN I +has VBZ O +only RB O +given VBN O +him PRP B +additional JJ B +excuses NNS I +for IN O +repression NN B +, , O +and CC O +a DT B +scapegoat NN I +for IN O +his PRP$ B +own JJ I +mismanagement NN I +. . O + +`` `` O +If IN O +the DT B +U.S. NNP I +had VBD O +sat VBN O +back RB O +and CC O +done VBN O +nothing NN B +, , O +he PRP B +might MD O +not RB O +have VB O +made VBN O +it PRP B +through IN O +1988 CD B +, , O +'' '' O +Mr. NNP B +Moss NNP I +contends VBZ O +. . O + +Perhaps RB O +most RBS O +important JJ O +, , O +Mr. NNP B +Noriega NNP I +'s POS B +allies NNS I +have VBP O +intervened VBN O +to TO O +encourage VB O +-- : O +in IN O +some DT B +cases NNS I +, , O +to TO O +demand VB O +-- : O +that IN O +the DT B +dictator NN I +maintain VB O +his PRP$ B +grip NN I +of IN O +the DT B +throne NN I +. . O + +One CD B +Colombian JJ I +drug NN I +boss NN I +, , O +upon IN O +hearing NN O +in IN O +1987 CD B +that IN O +Gen. NNP B +Noriega NNP I +was VBD O +negotiating VBG O +with IN O +the DT B +U.S. NNP I +to TO O +abandon VB O +his PRP$ B +command NN I +for IN O +a DT B +comfortable JJ I +exile NN I +, , O +sent VBD O +him PRP B +a DT B +hand-sized JJ I +mahogany NN I +coffin NN I +engraved VBN O +with IN O +his PRP$ B +name NN I +. . O + +`` `` O +He PRP B +is VBZ O +cornered VBN O +, , O +'' '' O +says VBZ O +the DT B +Rev. NNP I +Fernando NNP I +Guardia NNP I +, , O +who WP B +has VBZ O +led VBN O +Catholic NNP B +Church NNP I +opposition NN I +against IN O +Noriega NNP B +. . O + +`` `` O +The DT B +Americans NNPS I +have VBP O +left VBN O +him PRP B +without IN O +a DT B +way NN I +out RB I +. . O + +It PRP B +is VBZ O +easy JJ O +to TO O +fight VB O +when WRB O +you PRP B +do VBP O +n't RB O +have VB O +any DT B +other JJ I +option NN I +. . O +'' '' O + +His PRP$ B +chief JJ I +advantage NN I +in IN O +the DT B +fight NN I +: : O +his PRP$ B +intimate JJ I +knowledge NN I +of IN O +American JJ B +ways NNS I +and CC I +weaknesses NNS I +. . O + +Mr. NNP B +Noriega NNP I +often RB O +tells VBZ O +friends NNS B +that WDT O +patience NN B +is VBZ O +the DT B +best JJS I +weapon NN I +against IN O +the DT B +gringos NNS I +, , O +who WP B +have VBP O +a DT B +short JJ I +attention NN I +span NN I +and CC O +little JJ B +stomach NN I +for IN O +lasting VBG B +confrontation NN I +. . O + +The DT B +U.S. NNP I +discovered VBD O +the DT B +young JJ I +Tony NNP I +Noriega NNP I +in IN O +late JJ B +1959 CD I +, , O +when WRB O +he PRP B +was VBD O +in IN O +his PRP$ B +second JJ I +year NN I +at IN O +the DT B +Chorrillos NNP I +Military NNP I +Academy NNP I +in IN O +Lima NNP B +, , O +according VBG O +to TO O +former JJ B +U.S. NNP I +intelligence NN I +officials NNS I +. . O + +The DT B +contact NN I +occurred VBD O +through IN O +Mr. NNP B +Noriega NNP I +'s POS B +half-brother NN I +, , O +a DT B +Panamanian JJ I +diplomat NN I +based VBN O +in IN O +Peru NNP B +named VBD O +Luis NNP B +Carlos NNP I +Noriega NNP I +Hurtado NNP I +. . O + +Luis NNP B +Carlos NNP I +, , O +knowing VBG O +that IN O +helping VBG O +the DT B +Americans NNPS I +could MD O +advance VB O +the DT B +career NN I +of IN O +any DT B +Panamanian JJ I +officer NN I +, , O +relayed VBD O +Tony NNP B +'s POS B +reports NNS I +on IN O +the DT B +leftist JJ I +tendencies NNS I +he PRP B +observed VBD O +among IN O +his PRP$ B +fellow NN I +students NNS I +and CC O +, , O +more RBR O +important JJ O +, , O +among IN O +his PRP$ B +officers NNS I +and CC I +instructors NNS I +. . O + +A DT B +spy NN I +was VBD O +born VBN O +. . O + +It PRP B +was VBD O +a DT B +heady JJ I +experience NN I +for IN O +the DT B +pockmarked JJ I +and CC I +slightly RB I +built VBN I +Mr. NNP I +Noriega NNP I +, , O +who WP B +was VBD O +known VBN O +to TO O +his PRP$ B +friends NNS I +as IN O +Cara NNP B +la FW I +Pina NNP I +-- : O +pineapple NN B +face NN I +. . O + +Born VBN O +the DT B +illegitimate JJ I +son NN I +of IN O +his PRP$ B +father NN I +'s POS B +maid NN I +, , O +he PRP B +was VBD O +raised VBN O +on IN O +the DT B +mean NN I +streets NNS I +of IN O +the DT B +central JJ I +market NN I +district NN I +of IN O +Panama NNP B +City NNP I +. . O + +Tony NNP B +was VBD O +four CD B +years NNS I +older JJR O +than IN O +most RBS B +of IN O +his PRP$ B +fellow NN I +cadets NNS I +, , O +and CC O +gained VBD O +admission NN B +to TO O +the DT B +academy NN I +because IN O +his PRP$ B +brother NN I +had VBD O +falsified VBN O +his PRP$ B +birth NN I +certificate NN I +. . O + +He PRP B +considered VBD O +himself PRP B +intellectually RB O +superior JJ O +to TO O +his PRP$ B +Peruvian JJ I +peers NNS I +, , O +many NN O +of IN O +whom WP B +were VBD O +wayward JJ B +sons NNS I +sent VBN O +by IN O +their PRP$ B +well-off JJ I +families NNS I +to TO O +the DT B +highly RB I +disciplined VBN I +, , I +French-modeled JJ I +academy NN I +as IN O +a DT B +sort NN I +of IN O +reform NN B +school NN I +. . O + +In IN O +his PRP$ B +peaked VBD I +military JJ I +cap NN I +and CC I +neatly RB I +pressed VBN I +, , I +French-made JJ I +uniform NN I +, , O +Noriega NNP B +felt VBD O +more RBR O +respected VBN O +and CC O +powerful JJ O +than IN O +ever RB B +in IN O +his PRP$ B +underprivileged JJ I +life NN I +, , O +friends NNS B +from IN O +the DT B +period NN I +say VBP O +. . O + +`` `` O +He PRP B +had VBD O +an DT B +elegant JJ I +uniform NN I +with IN O +gold NN B +buttons NNS I +in IN O +a DT B +country NN I +where WRB O +there EX B +was VBD O +a DT B +cult NN I +of IN O +militarism NN B +, , O +where WRB O +officers NNS B +were VBD O +the DT B +elite NN I +with IN O +special JJ B +privileges NNS I +, , O +'' '' O +recalls VBZ O +Darien NNP B +Ayala NNP I +, , O +a DT B +fellow NN I +student NN I +in IN O +Peru NNP B +and CC O +a DT B +lifelong JJ I +friend NN I +. . O + +Mr. NNP B +Noriega NNP I +'s POS B +relationship NN I +to TO O +American JJ B +intelligence NN I +agencies NNS I +became VBD O +contractual JJ O +in IN O +either DT B +1966 CD I +or CC I +1967 CD I +, , O +intelligence NN B +officials NNS I +say VBP O +. . O + +His PRP$ B +commanding NN I +officer NN I +at IN O +the DT B +Chiriqui NNP I +Province NNP I +garrison NN I +, , O +Major NNP B +Omar NNP I +Torrijos NNP I +, , O +gave VBD O +him PRP B +an DT B +intriguing JJ I +assignment NN I +: : O +Mr. NNP B +Noriega NNP I +would MD O +organize VB O +the DT B +province NN I +'s POS B +first JJ I +intelligence NN I +service NN I +. . O + +The DT B +spy NN I +network NN I +would MD O +serve VB O +two CD B +clients NNS I +: : O +the DT B +Panamanian JJ I +government NN I +, , O +by IN O +monitoring VBG O +political JJ B +opponents NNS I +in IN O +the DT B +region NN I +, , O +and CC O +the DT B +U.S. NNP I +, , O +by IN O +tracking VBG O +the DT B +growing VBG I +Communist NNP I +influence NN I +in IN O +the DT B +unions NNS I +organized VBN O +at IN O +United NNP B +Fruit NNP I +Co. NNP I +'s POS B +banana NN I +plantations NNS I +in IN O +Bocas NNP B +del NNP I +Toros NNP I +and CC O +Puerto NNP B +Armuelles NNP I +. . O + +United NNP B +Fruit NNP I +was VBD O +one CD B +of IN O +the DT B +two CD I +largest JJS I +contributors NNS I +to TO O +Panama NNP B +'s POS B +national JJ I +income NN I +. . O + +Satisfying VBG O +its PRP$ B +interests NNS I +was VBD O +a DT B +priority NN I +for IN O +any DT B +Panamanian JJ I +leader NN I +. . O + +Mr. NNP B +Noriega NNP I +'s POS B +initial JJ I +retainer NN I +was VBD O +only RB B +$ $ I +50 CD I +to TO I +$ $ I +100 CD I +a DT B +month NN I +, , O +plus CC O +occasional JJ B +gifts NNS I +of IN O +liquor NN B +or CC I +groceries NNS I +from IN O +the DT B +American NNP I +PX NNP I +, , O +a DT B +former JJ I +intelligence NN I +official NN I +says NNS O +. . O + +It PRP B +was VBD O +modest JJ B +pay NN I +by IN O +American JJ B +standards NNS I +, , O +but CC O +a DT B +healthy JJ I +boost NN I +to TO O +his PRP$ B +small JJ I +military JJ I +salary NN I +, , O +which WDT B +fellow NN B +officers NNS I +remember VBP O +as IN O +having VBG O +been VBN O +$ $ B +300 CD I +to TO I +$ $ I +400 CD I +monthly JJ O +. . O + +`` `` O +He PRP B +did VBD O +it PRP B +very RB O +well RB O +, , O +'' '' O +recalls VBZ O +Boris NNP B +Martinez NNP I +, , O +a DT B +former JJ I +Panamanian JJ I +colonel NN I +who WP B +managed VBD O +Mr. NNP B +Noriega NNP I +and CC O +his PRP$ B +operation NN I +. . O + +`` `` O +He PRP B +started VBD O +building VBG O +the DT B +files NNS I +that WDT B +helped VBD O +him PRP B +gain VBP O +power NN B +. . O +'' '' O + +A DT B +National NNP I +Guard NNP I +job NN I +assumed VBN O +by IN O +Capt. NNP B +Noriega NNP I +in IN O +1964 CD B +-- : O +as IN O +chief NN B +of IN O +the DT B +transit NN I +police NN I +in IN O +David NNP B +City NNP I +, , O +capital NN B +of IN O +the DT B +Chiriqui NNP I +Province NNP I +-- : O +was VBD O +tailor-made JJ O +for IN O +an DT B +aspiring JJ I +super-spy NN I +. . O + +By IN O +pressuring VBG O +taxi NN B +and CC I +bus NN I +drivers NNS I +who WP B +needed VBD O +licenses NNS B +, , O +he PRP B +gained VBD O +a DT B +ready JJ I +cache NN I +of IN O +information NN B +. . O + +He PRP B +knew VBD O +which WDT B +local JJ I +luminaries NNS I +had VBD O +been VBN O +caught VBN O +driving VBG O +drunk JJ O +, , O +which WDT B +had VBD O +been VBN O +found VBN O +with IN O +their PRP$ B +mistresses NNS I +. . O + +This DT B +proved VBD O +particularly RB O +valuable JJ O +to TO O +the DT B +Panamanian JJ I +government NN I +in IN O +1967 CD B +, , O +when WRB O +union NN B +leaders NNS I +were VBD O +planning VBG O +a DT B +May NNP I +Day NNP I +march NN I +that IN B +the DT B +government NN I +feared VBD O +could MD O +turn VB O +violent JJ O +. . O + +Mr. NNP B +Noriega NNP I +had VBD O +learned VBN O +that IN O +a DT B +local JJ I +union NN I +leader NN I +was VBD O +sleeping VBG O +with IN O +the DT B +wife NN I +of IN O +his PRP$ B +deputy NN I +. . O + +So RB O +he PRP B +splashed VBD O +the DT B +information NN I +on IN O +handbills NNS B +that IN B +he PRP B +distributed VBD O +throughout IN O +the DT B +banana-exporting JJ I +city NN I +of IN O +Puerto NNP B +Armuelles NNP I +, , O +which WDT B +was VBD O +ruled VBN O +by IN O +United NNP B +Fruit NNP I +Co NNP I +. . O + +The DT B +campaign NN I +so RB O +divided VBD O +union NN B +leaders NNS I +that IN O +the DT B +government NN I +found VBD O +them PRP B +far RB O +easier JJR O +to TO O +control VB O +. . O + +`` `` O +It PRP B +was VBD O +like IN O +a DT B +play NN I +on IN O +Broadway NNP B +, , O +'' '' O +recalls VBZ O +Mr. NNP B +Martinez NNP I +. . O + +`` `` O +Noriega NNP B +managed VBD O +the DT B +whole JJ I +thing NN I +. . O + +He PRP B +was VBD O +superb JJ O +. . O + +Noriega NNP B +was VBD O +an DT B +expert NN I +at IN O +bribing VBG O +and CC O +blackmailing VBG O +people NNS B +. . O +'' '' O + +During IN O +his PRP$ B +years NNS I +in IN O +Chiriqui NNP B +, , O +however RB O +, , O +Mr. NNP B +Noriega NNP I +also RB O +revealed VBD O +himself PRP B +as IN O +an DT B +officer NN I +as RB O +perverse JJ O +as IN O +he PRP B +was VBD O +ingenious JJ O +. . O + +Rodrigo NNP B +Miranda NNP I +, , O +a DT B +local JJ I +lawyer NN I +and CC I +human-rights JJ I +monitor NN I +, , O +recalls VBZ O +an DT B +intoxicated JJ I +Noriega NNP I +visiting VBG O +prisoners NNS B +in IN O +their PRP$ B +cells NNS I +at IN O +the DT B +5th NNP I +Zone NNP I +Garrison NNP I +headquarters NN I +in IN O +David NNP B +, , O +where WRB O +he PRP B +had VBD O +his PRP$ B +offices NNS I +. . O + +Mr. NNP B +Noriega NNP I +would MD O +order VB O +them PRP B +all DT O +to TO O +take VB O +off IN O +their PRP$ B +clothes NNS I +and CC O +run VB O +around IN O +the DT B +courtyard NN I +naked JJ O +, , O +laughing VBG O +at IN O +them PRP B +and CC O +then RB O +retreating VBG O +to TO O +his PRP$ B +office NN I +. . O + +`` `` O +People NNS B +started VBD O +wondering VBG O +if IN O +something NN B +was VBD O +wrong JJ O +with IN O +him PRP B +, , O +'' '' O +Mr. NNP B +Miranda NNP I +recalls VBZ O +. . O + +But CC O +through IN O +this DT B +period NN I +, , O +so RB O +far RB O +as IN O +the DT B +U.S. NNP I +military NN I +was VBD O +concerned VBN O +, , O +Mr. NNP B +Noriega NNP I +was VBD O +a DT B +model NN I +recruit NN I +. . O + +He PRP B +signed VBD O +up IN O +for IN O +intelligence NN B +and CC I +counter-intelligence JJ I +training NN I +under IN O +American JJ B +officers NNS I +at IN O +Fort NNP B +Gulick NNP I +in IN O +Panama NNP B +in IN O +July NNP B +1967 CD I +, , O +according VBG O +to TO O +a DT B +copy NN I +of IN O +a DT B +1983 CD I +resume NN I +with IN O +details NNS B +Mr. NNP B +Noriega NNP I +has VBZ O +since IN O +classified VBN O +as IN O +secret NN O +. . O + +He PRP B +flew VBD O +to TO O +Fort NNP B +Bragg NNP I +, , O +N.C. NNP B +, , O +in IN O +September NNP B +of IN O +that DT B +year NN I +for IN O +a DT B +course NN I +in IN O +psychological JJ B +operations NNS I +, , O +returning VBG O +to TO O +the DT B +School NNP I +of IN O +the DT B +Americas NNP I +in IN O +Panama NNP B +for IN O +a DT B +two-month JJ I +course NN I +called VBN O +`` `` O +military JJ B +intelligence NN I +for IN O +officers NNS B +. . O +'' '' O + +Some DT B +American JJ I +officers NNS I +interpreted VBD O +his PRP$ B +eagerness NN I +and CC I +studiousness NN I +as IN O +a DT B +sign NN I +of IN O +loyalty NN B +, , O +but CC O +they PRP B +did VBD O +so RB O +falsely RB O +. . O + +He PRP B +rose VBD O +to TO O +chief NN B +of IN O +intelligence NN B +in IN O +Panama NNP B +'s POS B +socalled JJ I +G-2 NN I +in IN O +1970 CD B +after IN O +providing VBG O +populist JJ O +dictator NN O +Torrijos NNP B +the DT B +critical JJ I +support NN I +to TO O +defeat VB O +a DT B +coup NN I +attempt NN I +against IN O +him PRP B +a DT B +year NN I +earlier RBR O +. . O + +He PRP B +became VBD O +Gen. NNP B +Torrijos NNP I +'s POS B +inseparable JJ I +shadow NN I +, , O +and CC O +the DT B +holder NN I +of IN O +all DT B +Panama NNP I +'s POS B +secrets NNS I +. . O + +Mr. NNP B +Noriega NNP I +, , O +by IN O +now RB B +a DT B +lieutenant NN I +colonel NN I +, , O +expanded VBD O +his PRP$ B +contacts NNS I +to TO O +include VB O +the DT B +Cubans NNPS I +-- : O +not RB O +to TO O +mention VB O +the DT B +Israelis NNPS I +, , O +the DT B +Taiwanese JJ I +and CC O +any DT B +other JJ I +intelligence NN I +service NN I +that WDT B +came VBD O +knocking VBG O +. . O + +When WRB O +U.S. NNP B +diplomats NNS I +complained VBD O +to TO O +the DT B +CIA NNP I +of IN O +Col. NNP B +Noriega NNP I +'s POS B +moonlighting NN I +, , O +intelligence NN B +experts NNS I +always RB O +insisted VBD O +that IN O +his PRP$ B +allegiance NN I +was VBD O +first JJ O +to TO O +the DT B +Americans NNPS I +. . O + +`` `` O +Early RB O +on IN O +in IN O +the DT B +State NNP I +Department NNP I +, , O +we PRP B +took VBD O +to TO O +calling VBG O +him PRP B +the DT B +rent-a-colonel NN I +, , O +in IN O +tribute NN B +to TO O +his PRP$ B +ability NN I +to TO O +simultaneously RB O +milk NN O +the DT B +antagonistic JJ I +intelligence NN I +services NNS I +of IN O +Cuba NNP B +and CC O +the DT B +United NNP I +States NNPS I +, , O +'' '' O +recalls VBZ O +Francis NNP B +J. NNP I +McNeil NNP I +, , O +who WP B +, , O +as IN O +deputy NN B +assistant NN I +secretary NN I +of IN O +state NN B +for IN O +inter-American JJ B +affairs NNS I +, , O +first JJ O +ran VBD O +across IN O +reports NNS B +about IN O +Mr. NNP B +Noriega NNP I +in IN O +1977 CD B +. . O + +`` `` O +Some DT B +of IN O +us PRP B +wondered VBD O +how WRB O +our PRP$ B +intelligence NN I +people NNS I +could MD O +put VB O +so RB B +much JJ I +stock NN I +in IN O +his PRP$ B +information NN I +when WRB O +he PRP B +was VBD O +just RB O +as IN O +close RB O +to TO O +the DT B +Cubans NNPS I +. . O +'' '' O + +Even RB O +at IN O +this DT B +early JJ I +stage NN I +, , O +drugs NNS B +caused VBD O +additional JJ B +concerns NNS I +. . O + +During IN O +the DT B +Nixon NNP I +administration NN I +, , O +the DT B +Drug NNP I +Enforcement NNP I +Administration NNP I +became VBD O +dismayed VBN O +at IN O +the DT B +extent NN I +of IN O +the DT B +G-2 NN I +'s POS B +connections NNS I +to TO O +arrested VBN B +drug NN I +traffickers NNS I +. . O + +One CD B +DEA NNP I +agent NN I +drew VBD O +up IN O +a DT B +list NN I +of IN O +five CD B +options NNS I +for IN O +dealing VBG O +with IN O +Col. NNP B +Noriega NNP I +, , O +one CD O +of IN O +which WDT B +was VBD O +assassination NN B +. . O + +The DT B +head NN I +of IN O +the DT B +DEA NNP I +at IN O +the DT B +time NN I +, , O +John NNP B +Ingersoll NNP I +, , O +scotched VBD O +the DT B +assassination NN I +plan NN I +. . O + +But CC O +he PRP B +did VBD O +fly VB O +to TO O +Panama NNP B +to TO O +scold VB O +dictator NN B +Torrijos NNP I +on IN O +the DT B +drug NN I +ties NNS I +of IN O +Panamanian JJ B +officials NNS I +, , O +including VBG O +Mr. NNP B +Noriega NNP I +. . O + +Mr. NNP B +Ingersoll NNP I +later RB O +recalled VBD O +that IN O +Gen. NNP B +Torrijos NNP I +seemed VBD O +afraid JJ O +to TO O +act VB O +on IN O +the DT B +concerns NNS I +of IN O +the DT B +U.S. NNP I +. . O + +`` `` O +Everybody NN B +was VBD O +afraid JJ O +of IN O +him PRP B +, , O +'' '' O +Mr. NNP B +Ingersoll NNP I +says VBZ O +. . O + +Mr. NNP B +Noriega NNP I +became VBD O +an DT B +even RB I +greater JJR I +threat NN I +in IN O +1976 CD B +, , O +when WRB O +U.S. NNP B +intelligence NN I +services NNS I +discovered VBN O +that IN O +he PRP B +had VBD O +been VBN O +buying VBG O +recordings NNS B +of IN O +electronically RB B +monitored VBN I +conversations NNS I +from IN O +three CD B +sergeants NNS I +working VBG O +for IN O +the DT B +U.S. NNP I +Army NNP I +'s POS B +470th NNP I +Military NNP I +Intelligence NNP I +Group NNP I +. . O + +The DT B +tapes NNS I +included VBD O +wiretaps NNS B +of IN O +Gen. NNP B +Torrijos NNP I +'s POS B +own JJ I +phone NN I +, , O +according VBG O +to TO O +American JJ B +intelligence NN I +officials NNS I +. . O + +`` `` O +We PRP B +caught VBD O +him PRP B +with IN O +his PRP$ B +hands NNS I +on IN O +our PRP$ B +cookie NN I +jar NN I +, , O +'' '' O +says VBZ O +former JJ B +CIA NNP I +Director NNP I +Stansfield NNP I +Turner NNP I +. . O + +For IN O +the DT B +first JJ I +time NN I +, , O +the DT B +U.S. NNP I +considered VBD O +cutting VBG O +Mr. NNP B +Noriega NNP I +from IN O +its PRP$ B +intelligence NN I +payroll NN I +-- : O +and CC O +the DT B +deliberations NNS I +were VBD O +intense JJ O +, , O +Mr. NNP B +Turner NNP I +says VBZ O +. . O + +`` `` O +In IN O +the DT B +world NN I +of IN O +intelligence NN B +, , O +if IN O +you PRP B +want VBP O +to TO O +get VB O +information NN B +, , O +you PRP B +get VBP O +it PRP B +from IN O +seedy JJ B +characters NNS I +. . O + +The DT B +question NN I +is VBZ O +how WRB O +much JJ O +you PRP B +get VBP O +tied VBN O +in IN O +with IN O +seedy JJ B +characters NNS I +so IN O +they PRP B +can MD O +extort VB O +you PRP B +. . O +'' '' O + +Intelligence NN B +officials NNS I +to TO O +this DT B +day NN I +worry NN O +whether IN O +Mr. NNP B +Noriega NNP I +sold VBD O +sensitive JJ B +information NN I +on IN O +the DT B +recordings NNS I +to TO O +the DT B +Cubans NNPS I +or CC O +others NNS B +. . O + +Mr. NNP B +Turner NNP I +was VBD O +troubled JJ O +enough RB O +to TO O +cancel VB O +the DT B +U.S. NNP I +contract NN I +with IN O +the DT B +rent-a-colonel NN I +at IN O +the DT B +beginning NN I +of IN O +the DT B +Carter NNP I +administration NN I +. . O + +The DT B +U.S. NNP I +soon RB O +found VBD O +new JJ B +cause NN I +for IN O +concern NN B +: : O +gun-running JJ B +. . O + +Prosecutors NNS B +in IN O +Southern NNP B +Florida NNP I +indicted VBD O +five CD B +Panamanians NNS I +on IN O +charges NNS B +of IN O +illegally RB O +running VBG O +arms NNS B +to TO O +Sandinista NNP B +rebels NNS I +trying VBG O +to TO O +overthrow VB O +the DT B +Nicaraguan JJ I +government NN I +of IN O +Mr. NNP B +Somoza NNP I +. . O + +They PRP B +included VBD O +one CD B +of IN O +Mr. NNP B +Noriega NNP I +'s POS B +closest JJS I +friends NNS I +and CC I +business NN I +partners NNS I +, , O +Carlos NNP B +Wittgreen NNP I +. . O + +And CC O +the DT B +investigators NNS I +were VBD O +quickly RB O +closing VBG O +in IN O +on IN O +Mr. NNP B +Noriega NNP I +himself PRP B +. . O + +At IN O +the DT B +time NN I +, , O +though RB O +, , O +in IN O +1979 CD B +, , O +the DT B +U.S. NNP I +was VBD O +once RB O +again RB O +flirting VBG O +with IN O +its PRP$ B +longtime JJ I +Latin NNP I +American JJ I +spy NN I +. . O + +Mr. NNP B +Noriega NNP I +made VBD O +plans NNS B +to TO O +fly VB O +to TO O +Washington NNP B +for IN O +a DT B +meeting NN I +with IN O +his PRP$ B +counterpart NN I +at IN O +the DT B +Pentagon NNP I +. . O + +Dade NNP B +County NNP I +and CC I +federal JJ I +authorities NNS I +, , O +learning VBG O +that IN O +he PRP B +intended VBD O +to TO O +fly VB O +through IN O +Miami NNP B +, , O +made VBN O +plans NNS B +to TO O +arrest VB O +him PRP B +on IN O +the DT B +gun-running JJ I +charges NNS I +as RB O +soon RB O +as IN O +he PRP B +hit VBD O +U.S. NNP B +soil NN I +. . O + +It PRP B +was VBD O +a DT B +Friday NNP I +in IN O +June NNP B +. . O + +The DT B +Pentagon NNP I +foiled VBD O +the DT B +plan NN I +. . O + +According VBG O +to TO O +military JJ B +officers NNS I +at IN O +the DT B +time NN I +, , O +word NN B +was VBD O +passed VBN O +to TO O +Mr. NNP B +Noriega NNP I +by IN O +his PRP$ B +American JJ I +hosts NNS I +that IN O +the DT B +police NN I +would MD O +be VB O +waiting VBG O +. . O + +On IN O +Monday NNP B +, , O +U.S. NNP B +officials NNS I +received VBD O +a DT B +routine NN I +, , I +unclassified JJ I +message NN I +from IN O +the DT B +military JJ I +group NN I +commander NN I +in IN O +Panama NNP B +. . O + +`` `` O +Due JJ O +to TO O +health NN B +reasons NNS I +, , O +Lt. NNP B +Col. NNP I +Noriega NNP I +has VBZ O +elected VBN O +to TO O +postpone VB O +his PRP$ B +visit NN I +to TO O +Washington NNP B +, , O +'' '' O +it PRP B +read VBP O +. . O + +Prosecutors NNS B +in IN O +Miami NNP B +received VBD O +yet RB B +another DT I +setback NN I +. . O + +Their PRP$ B +original JJ I +indictment NN I +against IN O +Mr. NNP B +Wittgreen NNP I +, , O +the DT B +friend NN I +of IN O +Mr. NNP B +Noriega NNP I +, , O +and CC O +the DT B +other JJ I +four CD I +was VBD O +dismissed VBN O +on IN O +a DT B +technicality NN I +. . O + +But CC O +now RB O +, , O +along IN O +with IN O +reindicting VBG O +Mr. NNP B +Noriega NNP I +'s POS B +pal NN I +, , O +they PRP B +intended VBD O +to TO O +charge VB O +Mr. NNP B +Noriega NNP I +himself PRP B +, , O +on IN O +allegations NNS B +that IN O +he PRP B +was VBD O +involved VBN O +in IN O +the DT B +illegal JJ I +trading NN I +of IN O +some DT B +$ $ I +2 CD I +million CD I +in IN O +arms NNS B +. . O + +In IN O +January NNP B +1980 CD I +, , O +Jerome NNP B +Sanford NNP I +, , O +as IN O +assistant NN B +U.S. NNP I +attorney NN I +, , O +was VBD O +summoned VBN O +to TO O +a DT B +meeting NN I +with IN O +a DT B +Federal NNP I +Bureau NNP I +of IN O +Investigation NNP B +agent NN O +assigned VBN O +to TO O +the DT B +Bureau NNP I +of IN O +Alcohol NN B +, , I +Tobacco NNP I +and CC I +Firearms NNP I +in IN O +Miami NNP B +. . O + +Panamanian JJ O +dictator NN O +Torrijos NNP B +, , O +he PRP B +was VBD O +told VBN O +, , O +had VBD O +granted VBN O +the DT B +shah NN I +of IN O +Iran NNP B +asylum NN B +in IN O +Panama NNP B +as IN O +a DT B +favor NN I +to TO O +Washington NNP B +. . O + +Mr. NNP B +Sanford NNP I +was VBD O +told VBN O +Mr. NNP B +Noriega NNP I +'s POS B +friend NN I +, , O +Mr. NNP B +Wittgreen NNP I +, , O +would MD O +be VB O +handling VBG O +the DT B +shah NN I +'s POS B +security NN I +. . O + +It PRP B +would MD O +n't RB O +be VB O +a DT B +good JJ I +idea NN I +to TO O +indict VB O +him PRP B +-- : O +much RB O +less JJR O +Mr. NNP B +Noriega NNP I +, , O +the DT B +prosecutor NN I +was VBD O +told VBN O +. . O + +After IN O +prodding VBG B +from IN O +Mr. NNP B +Sanford NNP I +, , O +U.S. NNP B +Attorney NNP I +Jack NNP I +Eskenazi NNP I +pleaded VBD O +with IN O +Justice NNP B +Department NNP I +officials NNS I +in IN O +Washington NNP B +to TO O +let VB O +the DT B +indictment NN I +proceed VB O +. . O + +`` `` O +Unfortunately RB O +, , O +'' '' O +Mr. NNP B +Eskenazi NNP I +wrote VBD O +in IN O +a DT B +letter NN I +, , O +`` `` O +those DT B +of IN O +us PRP B +in IN O +law NN B +enforcement NN I +in IN O +Miami NNP B +find NN O +ourselves PRP B +frequently RB O +attempting VBG O +to TO O +enforce VB O +the DT B +laws NNS I +of IN O +the DT B +United NNP I +States NNPS I +but CC O +simultaneously RB O +being VBG O +caught VBN O +between IN O +foreign JJ B +policy NN I +considerations NNS I +over IN O +which WDT B +we PRP B +have VBP O +no DT B +control NN I +. . O +'' '' O + +The DT B +letter NN I +, , O +along IN O +with IN O +a DT B +detailed VBN I +prosecution NN I +memo NN I +, , O +sat VBD O +on IN O +the DT B +desks NNS I +of IN O +Justice NNP B +officials NNS I +for IN O +months NNS B +before IN O +the DT B +case NN I +died VBD O +a DT B +quiet JJ I +death NN I +. . O + +`` `` O +I PRP B +think VBP O +if IN O +we PRP B +had VBD O +been VBN O +allowed VBN O +to TO O +go VB O +ahead RB O +then RB O +we PRP B +would MD O +n't RB O +have VB O +the DT B +problems NNS I +we PRP B +have VBP O +now RB O +, , O +'' '' O +Mr. NNP B +Sanford NNP I +says VBZ O +. . O + +`` `` O +If IN O +he PRP B +had VBD O +been VBN O +found VBN O +guilty JJ O +, , O +we PRP B +could MD O +have VB O +stopped VBN O +him PRP B +. . O +'' '' O + +In IN O +August NNP B +1983 CD I +, , O +Mr. NNP B +Noriega NNP I +took VBD O +over IN O +as IN O +General NNP B +and CC O +de-facto JJ B +dictator NN I +of IN O +Panama NNP B +, , O +having VBG O +maneuvered VBN O +his PRP$ B +way NN I +to TO O +the DT B +top JJ I +only RB B +two CD I +years NNS I +after IN O +the DT B +mysterious JJ I +death NN I +in IN O +a DT B +plane NN I +crash NN I +of IN O +his PRP$ B +old JJ I +boss NN I +Omar NNP I +Torrijos NNP I +. . O + +Soon RB O +, , O +the DT B +military NN I +became VBD O +a DT B +veritable JJ I +mafia NN I +controlling VBG O +legal JJ B +and CC I +illegal JJ I +businesses NNS I +. . O + +The DT B +Reagan NNP I +administration NN I +also RB O +put VB O +Mr. NNP B +Noriega NNP I +'s POS B +G-2 NN I +back RB O +on IN O +the DT B +U.S. NNP I +payroll NN I +. . O + +Payments NNS B +averaged VBD O +nearly RB B +$ $ I +200,000 CD I +a DT B +year NN I +from IN O +the DT B +U.S. NNP I +Defense NNP I +Intelligence NNP I +Agency NNP I +and CC O +the DT B +CIA NNP I +. . O + +Although IN O +working VBG O +for IN O +U.S. NNP B +intelligence NN I +, , O +Mr. NNP B +Noriega NNP I +was VBD O +hardly RB O +helping VBG O +the DT B +U.S. NNP I +exclusively RB O +. . O + +During IN O +the DT B +Reagan NNP I +years NNS I +he PRP B +expanded VBD O +his PRP$ B +business NN I +and CC I +intelligence NN I +contacts NNS I +with IN O +the DT B +Cubans NNPS I +and CC O +the DT B +Sandinistas NNPS I +. . O + +He PRP B +allegedly RB O +entered VBD O +into IN O +Panama NNP B +'s POS B +first JJ I +formal JJ I +business NN I +arrangement NN I +with IN O +Colombian JJ B +drug NN I +bosses NNS I +, , O +according VBG O +to TO O +Floyd NNP B +Carlton NNP I +, , O +a DT B +pilot NN I +who WP B +once RB O +worked VBD O +for IN O +Mr. NNP B +Noriega NNP I +and CC O +who WP B +testified VBD O +before IN O +the DT B +U.S. NNP I +grand JJ I +jury NN I +in IN O +Miami NNP B +that WDT B +would MD O +ultimately RB O +indict VB O +the DT B +Panamanian JJ I +on IN O +drug NN B +charges NNS I +. . O + +But CC O +Mr. NNP B +Noriega NNP I +was VBD O +convinced VBN O +the DT B +Reagan NNP I +White NNP I +House NNP I +would MD O +n't RB O +act VB O +against IN O +him PRP B +, , O +recalls VBZ O +his PRP$ B +close NN I +ally NN I +Jose NNP B +Blandon NNP I +, , O +because IN O +he PRP B +had VBD O +an DT B +insurance NN I +policy NN I +: : O +his PRP$ B +involvement NN I +with IN O +the DT B +Contra NNP I +rebels NNS I +in IN O +Nicaragua NNP B +. . O + +Mr. NNP B +Blandon NNP I +says VBZ O +the DT B +general JJ I +allowed VBN O +the DT B +Contras NNPS I +to TO O +set VB O +up IN O +a DT B +secret JJ I +training NN I +center NN I +in IN O +Panama NNP B +. . O + +Mr. NNP B +Noriega NNP I +also RB O +conveyed VBD O +intelligence NN B +from IN O +his PRP$ B +spy NN I +operation NN I +inside IN O +the DT B +Nicaraguan JJ I +capital NN I +of IN O +Managua NNP B +. . O + +And CC O +on IN O +at IN B +least JJS I +one CD I +occasion NN I +, , O +in IN O +the DT B +spring NN I +of IN O +1985 CD B +, , O +he PRP B +helped VBD O +arrange VB O +a DT B +sabotage NN I +attack NN I +on IN O +a DT B +Sandinista NNP I +arsenal NN I +in IN O +Nicaragua NNP B +. . O + +Although IN O +, , O +his PRP$ B +help NN I +for IN O +the DT B +Contra NNP I +cause NN I +was VBD O +limited JJ O +, , O +it PRP B +was VBD O +enough RB O +to TO O +win VB O +him PRP B +important JJ B +protectors NNS I +in IN O +the DT B +Reagan NNP I +administration NN I +, , O +says VBZ O +Sen. NNP B +Patrick NNP I +Leahy NNP I +, , O +a DT B +Vermont NNP I +Democrat NNP I +who WP B +then RB O +served VBN O +on IN O +the DT B +Senate NNP I +Intelligence NNP I +Committee NNP I +. . O + +`` `` O +Noriega NNP B +played VBD O +U.S. NNP B +intelligence NN I +agencies NNS I +and CC O +the DT B +U.S. NNP I +government NN I +like IN O +a DT B +violin NN I +, , O +'' '' O +he PRP B +says VBZ O +. . O + +An DT B +incident NN I +in IN O +1984 CD B +suggested VBD O +one CD B +additional JJ I +means NNS I +by IN O +which WDT B +Mr. NNP B +Noriega NNP I +might MD O +have VB O +maintained VBN O +such JJ B +influence NN I +with IN O +Washington NNP B +-- : O +by IN O +compromising VBG O +U.S. NNP B +officials NNS I +. . O + +Curtin NNP B +Windsor NNP I +, , O +then RB O +the DT B +ambassador NN I +to TO O +Costa NNP B +Rica NNP I +, , O +recalls VBZ O +being VBG O +invited VBN O +to TO O +Panama NNP B +by IN O +Mr. NNP B +Noriega NNP I +'s POS B +brother NN I +Luis NNP B +Carlos NNP I +for IN O +a DT B +weekend NN I +of IN O +deep JJ B +sea NN I +fishing NN I +and CC O +`` `` O +quiet JJ B +, , I +serious JJ I +conversation NN I +'' '' O +on IN O +the DT B +Aswara NNP I +Peninsula NNP I +. . O + +Mr. NNP B +Windsor NNP I +notified VBD O +Everett NNP B +E. NNP I +Briggs NNP I +, , O +the DT B +U.S. NNP I +ambassador NN I +to TO O +Panama NNP B +, , O +of IN O +the DT B +invitation NN I +. . O + +`` `` O +Briggs NNP B +screamed VBD O +, , O +'' '' O +Mr. NNP B +Windsor NNP I +recalls VBZ O +. . O + +He PRP B +says VBZ O +Mr. NNP B +Briggs NNP I +told VBD O +him PRP B +he PRP B +was VBD O +being VBG O +set VBN O +up IN O +for IN O +a DT B +`` `` I +honey NN I +trap NN I +, , O +'' '' O +in IN O +which WDT B +Mr. NNP B +Noriega NNP I +would MD O +try VB O +to TO O +involve VB O +him PRP B +in IN O +an DT B +orgy NN I +and CC O +then JJ O +record NN O +the DT B +event NN I +`` `` O +with IN O +sound NN B +and CC I +video NN I +. . O +'' '' O + +Mr. NNP B +Briggs NNP I +, , O +on IN O +vacation NN B +after IN O +resigning VBG O +his PRP$ B +position NN I +at IN O +the DT B +National NNP I +Security NNP I +Council NNP I +, , O +could MD O +n't RB O +be VB O +reached VBN O +for IN O +comment NN B +. . O + +As IN O +Mr. NNP B +Noriega NNP I +'s POS B +political JJ I +troubles NNS I +grew VBD O +, , O +so RB O +did VBD O +his PRP$ B +offers NNS I +of IN O +assistance NN B +to TO O +the DT B +Contras NNPS I +, , O +an DT B +apparent JJ I +attempt NN I +to TO O +curry VB O +more JJR B +favor NN I +in IN O +Washington NNP B +. . O + +For IN O +instance NN B +, , O +he PRP B +helped VBD O +steal VB O +the DT B +May NNP I +1984 CD I +Panamanian JJ I +elections NNS I +for IN O +the DT B +ruling NN I +party NN I +. . O + +But CC O +just RB B +one CD I +month NN I +later RB O +, , O +he PRP B +also RB O +contributed VBD O +$ $ B +100,000 CD I +to TO O +a DT B +Contra NNP I +leader NN I +, , O +according VBG O +to TO O +documents NNS B +released VBN O +for IN O +Oliver NNP B +North NNP I +'s POS B +criminal JJ I +trial NN I +in IN O +Washington NNP B +, , O +D.C NNP B +. . O + +Yet RB O +, , O +his PRP$ B +political JJ I +setbacks NNS I +mounted VBN O +. . O + +Mr. NNP B +Noriega NNP I +was VBD O +accused VBN O +of IN O +ordering VBG O +in IN O +1985 CD B +the DT B +beheading NN I +of IN O +Hugo NNP B +Spadafora NNP I +, , O +his PRP$ B +most RBS I +outspoken JJ I +political JJ I +opponent NN I +and CC O +the DT B +first JJ I +man NN I +to TO O +publicly RB O +finger NN O +Mr. NNP B +Noriega NNP I +on IN O +drug NN B +trafficking NN I +charges NNS I +. . O + +He PRP B +then RB O +ousted VBD O +President NNP B +Nicholas NNP I +Ardito NNP I +Barletta NNP I +, , O +a DT B +former JJ I +World NNP I +Bank NNP I +official NN I +with IN O +close NN B +ties NNS I +to TO O +the DT B +U.S. NNP I +, , O +after IN O +Mr. NNP B +Barletta NNP I +tried VBD O +to TO O +create VB O +a DT B +commission NN I +to TO O +investigate VB O +the DT B +murder NN I +. . O + +And CC O +, , O +all PDT B +the DT I +while NN I +, , O +Panama NNP B +'s POS B +debt NN I +problems NNS I +continued VBD O +to TO O +grow VB O +. . O + +Mr. NNP B +Noriega NNP I +was VBD O +growing VBG O +desperate JJ O +. . O + +In IN O +late JJ B +1986 CD I +, , O +he PRP B +made VBD O +an DT B +offer NN I +he PRP B +thought VBD O +the DT B +U.S. NNP I +could MD O +n't RB O +refuse VB O +. . O + +As IN O +recounted VBN O +in IN O +a DT B +stipulation NN I +that WDT B +summarized VBD O +government NN B +documents NNS I +released VBN O +for IN O +the DT B +North NNP I +trial NN I +, , O +Mr. NNP B +Noriega NNP I +offered VBD O +to TO O +assassinate VB O +the DT B +Sandinista NNP I +leadership NN I +in IN O +exchange NN B +`` `` O +for IN O +a DT B +promise NN I +to TO O +help VB O +clean JJ O +up IN O +Noriega NNP B +'s POS B +image NN I +and CC O +a DT B +commitment NN I +to TO O +lift VB O +the DT B +-LCB- ( I +U.S. NNP I +. . I +-RCB- ) I +ban NN I +on IN O +military JJ B +sales NNS I +to TO O +the DT B +Panamanian NNP I +Defense NNP I +Forces NNPS I +. . O +'' '' O + +`` `` O +North NNP B +, , O +'' '' O +the DT B +document NN I +went VBD O +on IN O +, , O +referring VBG O +to TO O +Oliver NNP B +North NNP I +, , O +`` `` O +has VBZ O +told VBN O +Noriega NNP B +'s POS B +representative NN I +that IN O +U.S. NNP B +law NN I +forbade VBD O +such JJ B +actions NNS I +. . O + +The DT B +representative NN I +responded VBD O +that IN O +Noriega NNP B +had VBD O +numerous JJ B +assets NNS I +in IN O +place NN B +in IN O +Nicaragua NNP B +and CC O +could MD O +accomplish VB O +many JJ B +essential JJ I +things NNS I +, , O +just RB O +as IN O +Noriega NNP B +had VBD O +helped VBN O +-LCB- ( O +the DT B +U.S. NNP I +. . O +-RCB- ) O +the DT B +previous JJ I +year NN I +in IN O +blowing VBG O +up IN O +a DT B +Sandinista NNP I +arsenal NN I +. . O +'' '' O + +Col. NNP B +North NNP I +conveyed VBD O +the DT B +request NN I +to TO O +his PRP$ B +superiors NNS I +and CC O +to TO O +Assistant NNP O +Secretary NNP O +of IN O +State NNP B +Elliot NNP O +Abrams NNP O +, , O +who WP B +relayed VBD O +it PRP B +to TO O +Secretary NNP O +of IN O +State NNP B +George NNP O +Shultz NNP O +. . O + +Mr. NNP B +Noriega NNP I +'s POS B +proposal NN I +was VBD O +turned VBN O +down RB O +. . O + +And CC O +Mr. NNP B +Shultz NNP I +curtly RB O +told VBD O +Mr. NNP B +Abrams NNP I +that IN O +the DT B +general NN I +should MD O +be VB O +told VBN O +that IN O +only RB B +he PRP I +could MD O +repair VB O +his PRP$ B +tarnished VBN I +image NN I +. . O + +The DT B +end NN I +of IN O +the DT B +marriage NN I +was VBD O +at IN O +hand NN B +. . O + +Within IN O +weeks NNS B +the DT B +unfolding VBG I +Iran-Contra NNP I +scandal NN I +took VBD O +away RB O +Mr. NNP B +Noriega NNP I +'s POS B +insurance NN I +policy NN I +. . O + +The DT B +death NN I +of IN O +CIA NNP O +Director NNP O +William NNP B +Casey NNP I +and CC O +resignation NN B +of IN O +Oliver NNP B +North NNP I +allowed VBD O +anti-Noriega JJ B +political JJ I +forces NNS I +to TO O +gain VB O +influence NN B +. . O + +Public JJ B +protests NNS I +against IN O +him PRP B +were VBD O +triggered VBN O +in IN O +June NNP B +1987 CD I +due JJ O +to TO O +charges NNS B +by IN O +Diaz NNP B +Herrera NNP I +, , O +his PRP$ B +former JJ I +chief NN I +of IN O +staff NN B +, , O +that IN O +Mr. NNP B +Noriega NNP I +had VBD O +stolen VBN O +the DT B +1984 CD I +election NN I +and CC O +had VBD O +ordered VBN O +the DT B +killing NN I +of IN O +Messrs. NNP B +Spadafora NNP I +and CC I +Torrijos NNP I +. . O + +Few NNP B +American JJ I +officials NNS I +were VBD O +willing JJ O +any RB O +longer RB O +to TO O +defend VB O +him PRP B +. . O + +Lawyers NNS B +in IN O +Miami NNP B +-- : O +this DT B +time NN I +working VBG O +virtually RB O +without IN O +impediment NN B +-- : O +prepared VBN O +to TO O +have VB O +him PRP B +indicted VBN O +on IN O +drug NN B +charges NNS I +in IN O +February NNP B +1988 CD I +. . O + +During IN O +negotiations NNS B +with IN O +American JJ B +officials NNS I +in IN O +May NNP B +1988 CD I +over IN O +proposals NNS B +to TO O +drop VB O +the DT B +U.S. NNP I +indictments NNS I +in IN O +exchange NN B +for IN O +his PRP$ B +resignation NN I +, , O +Mr. NNP B +Noriega NNP I +often RB O +asked VBD O +almost RB O +plaintively RB O +how WRB O +the DT B +Americans NNPS I +, , O +whom WP B +he PRP B +had VBD O +helped VBN O +for IN O +so RB B +many JJ I +years NNS I +, , O +could MD O +turn VB O +against IN O +him PRP B +. . O + +Now RB O +, , O +neither DT B +side NN I +-- : O +the DT B +U.S. NNP I +nor CC O +Mr. NNP B +Noriega NNP I +-- : O +has VBZ O +an DT B +easy JJ I +out RB I +. . O + +President NNP B +Bush NNP I +has VBZ O +sworn VBN O +to TO O +bring VB O +him PRP B +to TO O +justice NN B +. . O + +Mr. NNP B +Noriega NNP I +believes VBZ O +he PRP B +has VBZ O +n't RB O +any DT B +alternative NN I +but CC O +to TO O +continue VB O +clutching VBG O +to TO O +power VB B +. . O + +It PRP B +is VBZ O +a DT B +knock-out JJ I +battle NN I +-- : O +perhaps RB O +to TO O +the DT B +death NN I +. . O + +In IN O +the DT B +end NN I +, , O +is VBZ O +Mr. NNP B +Noriega NNP I +the DT B +political JJ I +equivalent NN I +of IN O +Frankenstein NNP B +'s POS B +monster NN I +, , O +created VBN O +by IN O +a DT B +well-intentioned JJ I +but CC I +misguided JJ I +foreign JJ I +power NN I +? . O + +Not RB O +quite RB O +, , O +Sen. NNP B +Leahy NNP I +contends VBZ O +. . O + +`` `` O +For IN O +short-term JJ B +gains NNS I +, , O +people NNS B +were VBD O +willing JJ O +to TO O +put VB O +up IN O +with IN O +him PRP B +. . O + +That DT B +allowed VBN O +him PRP B +to TO O +get VB O +stronger JJR O +and CC O +stronger JJR O +, , O +'' '' O +he PRP B +says VBZ O +. . O + +`` `` O +I PRP B +do VBP O +n't RB O +think VB O +we PRP B +created VBD O +him PRP B +as RB O +much JJ O +as IN O +we PRP B +fed VBD O +him PRP B +, , O +nurtured VBD O +him PRP B +and CC O +let VB O +him PRP B +grow VB O +up VB O +to TO O +be VB O +big JJ O +and CC O +strong JJ O +. . O + +UPJOHN NNP B +Co. NNP I +reported VBD O +that IN O +third-quarter JJ B +net JJ I +income NN I +rose VBD O +to TO O +$ $ B +96 CD I +million CD I +, , O +or CC O +52 CD B +cents NNS I +a DT B +share NN I +, , O +from IN O +$ $ B +89.6 CD I +million CD I +, , O +or CC O +49 CD B +cents NNS I +a DT B +share NN I +, , O +a DT B +year NN I +earlier RBR O +. . O + +Yesterday NN B +'s POS B +edition NN I +provided VBD O +analysts NNS B +' POS B +estimates NNS I +for IN O +the DT B +company NN I +when WRB O +actual JJ B +earnings NNS I +were VBD O +available JJ O +. . O + +Industrial JJ B +production NN I +declined VBD O +0.1 CD B +% NN I +in IN O +September NNP B +, , O +reinforcing VBG O +other JJ B +signs NNS I +that IN O +the DT B +manufacturing NN I +sector NN I +continues VBZ O +its PRP$ B +slowing NN I +trend NN I +. . O + +The DT B +Federal NNP I +Reserve NNP I +Board NNP I +said VBD O +output NN B +of IN O +the DT B +nation NN I +'s POS B +factories NNS I +, , I +mines NNS I +and CC I +utilities NNS I +expanded VBN O +at IN O +an DT B +annual JJ I +rate NN I +of IN O +1.3 CD B +% NN I +in IN O +the DT B +third JJ I +quarter NN I +, , O +substantially RB O +slower JJR O +than IN O +the DT B +3.3 CD I +% NN I +annual JJ I +rate NN I +in IN O +the DT B +second JJ I +quarter NN I +. . O + +`` `` O +Capital NNP B +spending NN I +and CC I +exports NNS I +, , O +which WDT B +have VBP O +been VBN O +the DT B +driving VBG I +force NN I +in IN O +this DT B +expansion NN I +, , O +are VBP O +showing VBG O +clear JJ B +signs NNS I +of IN O +having VBG O +the DT B +steam NN I +taken VBN O +out IN O +of IN O +them PRP B +, , O +'' '' O +said VBD O +Robert NNP B +Dederick NNP I +, , O +economist NN B +for IN O +Northern NNP B +Trust NNP I +Co. NNP I +in IN O +Chicago NNP B +. . O + +The DT B +new JJ I +reports NNS I +of IN O +sluggishness NN B +, , O +which WDT B +were VBD O +foreshadowed VBN O +by IN O +an DT B +earlier RBR I +Labor NNP I +Department NNP I +report NN I +that IN O +manufacturing NN B +payrolls NNS I +dropped VBN O +by IN O +105,000 CD B +in IN O +September NNP B +, , O +give VB O +the DT B +Fed NNP I +another DT B +reason NN I +to TO O +further VB O +ease VB O +its PRP$ B +grip NN I +on IN O +credit NN B +and CC O +lower JJR O +interest NN B +rates NNS I +. . O + +`` `` O +They PRP B +need VBP O +to TO O +do VB O +something NN B +about IN O +this DT B +, , O +'' '' O +said VBD O +Maury NNP B +Harris NNP I +, , O +economist NN B +at IN O +PaineWebber NNP B +Group NNP I +Inc NNP I +. . O + +The DT B +Fed NNP I +also RB O +said VBD O +U.S. NNP B +industry NN I +operated VBN O +at IN O +83.6 CD B +% NN I +of IN O +capacity NN B +last JJ B +month NN I +, , O +down RB O +from IN O +83.8 CD B +% NN I +in IN O +August NNP B +. . O + +Measures NNS B +of IN O +manufacturing NN B +activity NN I +fell VBD O +more JJR O +than IN O +the DT B +overall JJ I +measures NNS I +. . O + +Factory NN B +output NN I +dropped VBD O +0.2 CD B +% NN I +, , O +its PRP$ B +first JJ I +decline NN I +since IN O +February NNP B +, , O +after IN O +having VBG O +been VBN O +unchanged JJ O +in IN O +October NNP B +. . O + +Factories NNS B +operated VBN O +at IN O +83.7 CD B +% NN I +of IN O +capacity NN B +, , O +the DT B +lowest JJS I +rate NN I +in IN O +more JJR B +than IN I +a DT I +year NN I +and CC O +down RB O +from IN O +84.1 CD B +% NN I +in IN O +September NNP B +. . O + +The DT B +declines NNS I +mainly RB O +reflected VBD O +widespread JJ B +weakness NN I +in IN O +durable JJ B +goods NNS I +, , O +those DT B +intended VBN O +to TO O +last VB O +more JJR B +than IN I +three CD I +years NNS I +. . O + +The DT B +biggest JJS I +drop NN I +was VBD O +recorded VBN O +by IN O +primary JJ B +metals NNS I +producers NNS I +, , O +a DT B +category NN I +that WDT B +includes VBZ O +the DT B +steel NN I +industry NN I +. . O + +Output NN B +of IN O +business NN B +equipment NN I +was VBD O +unchanged JJ O +in IN O +September NNP B +. . O + +Production NN B +of IN O +factory NN B +equipment NN I +, , O +one CD B +indication NN I +of IN O +the DT B +strength NN I +of IN O +manufacturers NNS B +' POS B +investment NN I +spending NN I +, , O +fell VBD O +0.3 CD B +% NN I +. . O + +Some DT B +economists NNS I +expect VBP O +further JJ B +declines NNS I +in IN O +investment NN B +spending NN I +. . O + +`` `` O +Whenever WRB O +corporate JJ B +profits NNS I +are VBP O +weak JJ O +that WDT B +means VBZ O +capital NN B +spending NN I +is VBZ O +going VBG O +to TO O +soften VB O +subsequently RB O +, , O +'' '' O +Mr. NNP B +Harris NNP I +said VBD O +. . O + +`` `` O +You PRP B +have VBP O +n't RB O +seen VBN O +the DT B +full JJ I +effect NN I +of IN O +that DT B +yet RB O +. . O +'' '' O + +A DT B +decline NN I +in IN O +truck NN B +production NN I +more JJR O +than IN O +offset VB O +a DT B +sharp JJ I +rise NN I +in IN O +auto NN B +assemblies NNS I +, , O +the DT B +Fed NNP I +noted VBD O +. . O + +Analysts NNS B +do VBP O +n't RB O +expect VB O +the DT B +September NNP I +surge NN I +in IN O +auto NN B +production NN I +to TO O +be VB O +repeated VBN O +in IN O +the DT B +coming VBG I +months NNS I +. . O + +Here RB B +is VBZ O +a DT B +summary NN I +of IN O +the DT B +Federal NNP I +Reserve NNP I +Board NNP I +'s POS B +report NN I +on IN O +industrial JJ B +production NN I +in IN O +September NNP B +. . O + +The DT B +figures NNS I +are VBP O +seasonally RB O +adjusted VBN O +. . O + +142.3 CD B +% NN I +of IN O +the DT B +1977 CD I +average JJ I +. . O + +Robin NNP B +Honiss NNP I +, , O +president NN B +and CC O +chief JJ B +executive JJ I +officer NN I +of IN O +this DT B +bank NN I +holding VBG I +company NN I +, , O +was VBD O +elected VBN O +to TO O +the DT B +additional JJ I +posts NNS I +of IN O +chairman NN B +, , O +president NN B +and CC O +chief JJ B +executive NN I +of IN O +the DT B +company NN I +'s POS B +New NNP I +England NNP I +Savings NNP I +Bank NNP I +subsidiary NN I +. . O + +William NNP B +R. NNP I +Attridge NNP I +resigned VBD O +those DT B +posts NNS I +, , O +as RB O +well RB O +as IN O +a DT B +seat NN I +on IN O +NESB NNP B +'s POS B +board NN I +. . O + +NESB NNP B +is VBZ O +also RB O +the DT B +parent NN I +of IN O +Omnibank NNP B +. . O + +Lung-cancer NN B +mortality NN I +rates NNS I +for IN O +people NNS B +under IN O +45 CD B +years NNS I +of IN O +age NN B +have VBP O +begun VBN O +to TO O +decline VB O +, , O +federal JJ B +researchers NNS I +report VBP O +. . O + +The DT B +drop NN I +is VBZ O +particularly RB O +large JJ O +for IN O +white JJ B +males NNS I +, , O +although IN O +black JJ B +males NNS I +and CC O +white JJ B +and CC I +black JJ I +women NNS I +also RB O +show VBP O +lower JJR B +mortality NN I +rates NNS I +. . O + +A DT B +report NN I +in IN O +this DT B +week NN I +'s POS B +issue NN I +of IN O +the DT B +Journal NNP I +of IN O +the DT B +National NNP I +Cancer NNP I +Institute NNP I +also RB O +projects VBZ O +that IN O +overall JJ B +U.S. NNP I +mortality NN I +rates NNS I +from IN O +lung NN B +cancer NN I +, , O +the DT B +leading VBG I +cause NN I +of IN O +cancer NN B +death NN I +, , O +should MD O +begin VB O +to TO O +drop VB O +in IN O +several JJ B +years NNS I +if IN O +cigarette NN B +smoking NN I +continues VBZ O +to TO O +abate VB O +. . O + +The DT B +report NN I +, , O +which WDT B +comes VBZ O +25 CD B +years NNS I +after IN O +the DT B +U.S. NNP I +Surgeon NNP I +General NNP I +issued VBD O +a DT B +report NN I +warning NN O +against IN O +the DT B +dangers NNS I +of IN O +smoking NN B +, , O +is VBZ O +the DT B +strongest JJS I +indication NN I +to TO O +date VB B +that IN O +the DT B +reduction NN I +in IN O +smoking NN B +is VBZ O +leading VBG O +to TO O +lower JJR B +death NN I +rates NNS I +from IN O +lung NN B +cancer NN I +. . O + +`` `` O +What WP B +this DT B +is VBZ O +saying VBG O +is VBZ O +that IN O +the DT B +surgeon NN I +general NN I +'s POS B +message NN I +is VBZ O +having VBG O +an DT B +impact NN I +, , O +'' '' O +said VBD O +Melvyn NNP B +Tockman NNP I +, , O +an DT B +epidemiologist NN I +at IN O +the DT B +Johns NNP I +Hopkins NNP I +School NNP I +of IN O +Hygiene NNP B +and CC O +Public NNP B +Health NNP I +in IN O +Baltimore NNP B +. . O + +The DT B +National NNP I +Cancer NNP I +Institute NNP I +report NN I +compares VBZ O +mortality NN B +rates NNS I +of IN O +two CD B +groups NNS I +of IN O +people NNS B +between IN O +the DT B +ages NNS I +of IN O +35 CD B +and CC I +44 CD I +a DT B +decade NN I +apart RB O +. . O + +The DT B +death NN I +rate NN I +from IN O +lung NN B +cancer NN I +of IN O +white JJ B +males NNS I +aged VBN O +35 CD B +to TO O +44 CD B +in IN O +the DT B +mid-1970s NNS I +was VBD O +13.4 CD B +per IN O +100,000 CD B +, , O +but CC O +the DT B +mortality NN I +rate NN I +of IN O +the DT B +same JJ I +age NN I +group NN I +in IN O +the DT B +mid-1980s NNS I +was VBD O +9.6 CD B +, , O +a DT B +decline NN I +of IN O +28.7 CD B +% NN I +. . O + +Measured VBN O +the DT B +same JJ I +way NN I +, , O +the DT B +decline NN I +for IN O +black JJ B +males NNS I +was VBD O +14.2 CD B +% NN I +. . O + +The DT B +drop NN I +in IN O +mortality NN B +rates NNS I +for IN O +women NNS B +was VBD O +less RBR O +steep JJ O +-- : O +8.9 CD B +% NN I +for IN O +blacks NNS B +and CC O +5.3 CD B +% NN I +for IN O +whites NNS B +. . O + +The DT B +study NN I +, , O +by IN O +Susan NNP B +Devesa NNP I +, , O +William NNP B +Blot NNP I +and CC O +Joseph NNP B +Fraumeni NNP I +of IN O +the DT B +institute NN I +'s POS B +staff NN I +, , O +also RB O +shows VBZ O +that IN O +the DT B +incidence NN I +of IN O +lung NN B +cancer NN I +as RB O +well RB O +as IN O +the DT B +death NN I +rate NN I +declined VBD O +over IN O +the DT B +decade NN I +for IN O +all DT B +groups NNS I +in IN O +the DT B +35-44 JJ I +age NN I +bracket NN I +, , O +except IN O +black JJ B +men NNS I +. . O + +Although IN O +lung-cancer NN B +mortality NN I +rates NNS I +are VBP O +increasing VBG O +for IN O +the DT B +nation NN I +as IN O +a DT B +whole NN I +, , O +the DT B +report NN I +projects VBZ O +that IN O +death NN B +rates NNS I +will MD O +begin VB O +to TO O +decline VB O +in IN O +the DT B +1990s CD I +for IN O +men NNS B +and CC O +after IN O +the DT B +year NN I +2000 CD I +for IN O +women NNS B +. . O + +Lung-cancer NN B +mortality NN I +rates NNS I +increase VBP O +with IN O +age NN B +and CC O +are VBP O +continuing VBG O +to TO O +rise VB O +for IN O +all DT B +age NN I +groups NNS I +over IN O +55 NN B +, , O +with IN O +sharp JJ B +increases NNS I +for IN O +everybody NN B +but CC O +white JJ B +men NNS I +. . O + +But CC O +Dr. NNP B +Fraumeni NNP I +, , O +one CD B +of IN O +the DT B +authors NNS I +of IN O +the DT B +report NN I +, , O +said VBD O +`` `` O +the DT B +declining VBG I +rates NNS I +we PRP B +'re VBP O +seeing VBG O +for IN O +younger JJR B +people NNS I +we PRP B +believe VBP O +may MD O +be VB O +a DT B +harbinger NN I +of IN O +declining VBG B +mortality NN I +in IN O +the DT B +future NN I +. . O +'' '' O + +However RB O +, , O +he PRP B +stressed VBD O +that IN O +the DT B +improvement NN I +depends VBZ O +on IN O +a DT B +continued VBN I +reduction NN I +in IN O +smoking NN B +. . O + +`` `` O +Even RB O +though IN O +these DT B +favorable JJ I +trends NNS I +in IN O +lung-cancer NN B +mortality NN I +affect NN O +all DT B +sex NN I +and CC I +race NN I +groups NNS I +, , O +they PRP B +ca MD O +n't RB O +be VB O +taken VBN O +for IN O +granted VBN O +, , O +'' '' O +the DT B +report NN I +says NNS O +. . O + +`` `` O +Smoking NNP B +prevention NN I +programs NNS I +should MD O +reach VB O +larger JJR B +segments NNS I +of IN O +the DT B +population NN I +, , O +especially RB B +children NNS I +, , I +adolescents NNS I +and CC I +minorities NNS I +. . O +'' '' O + +An DT B +editorial NN I +in IN O +the DT B +NCI NNP I +Journal NNP I +says VBZ O +the DT B +report NN I +of IN O +declining VBG B +lung-cancer NN I +mortality NN I +`` `` I +among IN O +young JJ B +men NNS I +and CC I +women NNS I +in IN O +the DT B +U.S. NNP I +indicates VBZ O +that IN O +we PRP B +finally RB O +may MD O +be VB O +winning VBG O +the DT B +battle NN I +-- : O +this DT B +even RB O +in IN O +a DT B +country NN I +where WRB O +the DT B +tobacco NN I +industry NN I +spends VBZ O +over IN B +$ $ I +2 CD I +billion CD I +a DT B +year NN I +for IN O +promotion NN B +of IN O +the DT B +addictive JJ I +habit NN I +of IN O +smoking NN B +. . O +'' '' O + +But CC O +the DT B +editorial NN I +, , O +by IN O +Jan NNP B +Stjernsward NNP I +of IN O +the DT B +World NNP I +Health NNP I +Organization NNP I +, , O +notes VBZ O +that DT O +tobacco NN B +consumption NN I +and CC I +lung-cancer NN I +mortality NN I +rates NNS I +are VBP O +rising VBG O +in IN O +developing VBG B +countries NNS I +. . O + +`` `` O +Non-smoking NN B +should MD O +be VB O +established VBN O +as IN O +the DT B +norm NN I +of IN O +social JJ B +behavior NN I +'' '' O +around IN O +the DT B +world NN I +, , O +the DT B +editorial NN I +says VBZ O +, , O +through IN O +the DT B +enactment NN I +of IN O +laws NNS B +that WDT B +limit VBP O +advertising VBG B +, , O +boost VB O +tobacco NN B +prices NNS I +and CC O +promote VB O +anti-smoking JJ B +education NN I +. . O + +Asked VBN O +for IN O +comment NN B +, , O +Walker NNP B +Merryman NNP I +, , O +a DT B +vice NN I +president NN I +of IN O +the DT B +Tobacco NNP I +Institute NNP I +, , O +said VBD O +new JJ B +efforts NNS I +to TO O +restrict VB O +tobacco NN B +advertising NN I +in IN O +the DT B +U.S. NNP I +could MD O +violate VB O +the DT B +First NNP I +Amendment NNP I +protection NN I +of IN O +free JJ B +speech NN I +. . O + +According VBG O +to TO O +the DT B +American NNP I +Cancer NNP I +Society NNP I +, , O +smoking NN B +is VBZ O +responsible JJ O +for IN O +85 CD B +% NN I +of IN O +the DT B +lung-cancer NN I +cases NNS I +among IN O +men NNS B +and CC O +75 CD B +% NN I +among IN O +women NNS B +. . O + +The DT B +NCI NNP I +report NN I +attributes VBZ O +the DT B +differences NNS I +in IN O +mortality NN B +rates NNS I +by IN O +race NN B +to TO O +different JJ B +smoking NN I +patterns NNS I +. . O + +A DT B +higher JJR I +proportion NN I +of IN O +black JJ B +men NNS I +smoke VBP O +than IN O +white JJ B +men NNS I +. . O + +While IN O +nearly RB B +equal JJ I +percentages NNS I +of IN O +black JJ B +and CC I +white JJ I +women NNS I +currently JJ O +smoke NN O +, , O +in IN O +both DT B +sexes NNS I +more JJR B +whites NNS I +have VBP O +given VBN O +up IN O +smoking NN B +than IN O +blacks NNS B +. . O + +In IN O +comparing VBG O +changes NNS B +in IN O +mortality NN B +rates NNS I +over IN O +the DT B +past JJ I +decade NN I +, , O +the DT B +NCI NNP I +study NN I +looked VBD O +only RB O +at IN O +blacks NNS B +and CC I +whites NNS I +. . O + +Asians NNS B +and CC O +native JJ B +Americans NNPS I +were VBD O +n't RB O +studied VBN O +; : O +Hispanics NNPS B +were VBD O +included VBN O +with IN O +whites NNS B +. . O + +Recent JJ B +changes NNS I +in IN O +average JJ B +annual JJ I +age-specific JJ I +lung-cancer NN I +rates NNS I +per IN O +100,000 CD B +population NN I +by IN O +race NN B +and CC I +sex NN I +. . O + +White NNP B +Males NNPS I + +White NNP B +Females NNPS I + +Black NNP B +Males NNPS I + +Black NNP B +Females NNPS I + +Directors NNS B +elected VBD O +R. NNP B +Marvin NNP I +Womack NNP I +, , O +currently JJ O +vice NN B +president\/product NN I +supply NN I +, , I +purchasing VBG I +, , O +to TO O +head VB O +the DT B +company NN I +'s POS B +Washington NNP I +, , I +D.C. NNP I +, , I +office NN I +. . O + +As IN O +vice NN B +president\/national-government NN I +relations NNS I +, , O +Mr. NNP B +Womack NNP I +will MD O +work VB O +with IN O +P&G NNP B +'s POS B +top JJ I +management NN I +and CC O +with IN O +the DT B +company NN I +'s POS B +government-relations NNS I +staff VBP I +`` `` O +to TO O +represent VB O +P&G NNP B +'s POS B +interests NNS I +at IN O +the DT B +federal JJ I +level NN I +, , O +'' '' O +said VBD O +John NNP B +G. NNP I +Smale NNP I +, , O +chairman NN B +and CC O +chief JJ B +executive JJ I +officer NN I +. . O + +Mr. NNP B +Smale NNP I +said VBD O +the DT B +appointment NN I +`` `` O +recognizes VBZ O +the DT B +growing VBG I +influence NN I +of IN O +government NN B +on IN O +our PRP$ B +business NN I +. . O +'' '' O + +Mr. NNP B +Womack NNP I +, , O +53 CD B +years NNS I +old JJ O +, , O +has VBZ O +been VBN O +with IN O +the DT B +big JJ I +producer NN I +of IN O +household NN B +products NNS I +, , O +food NN B +and CC O +pharmaceuticals NNS B +for IN O +30 CD B +years NNS I +. . O + +Traders NNS B +trying VBG O +to TO O +profit VB O +from IN O +the DT B +recent JJ I +volatility NN I +in IN O +financial JJ B +markets NNS I +invaded VBD O +the DT B +Nasdaq NNP I +over-the-counter JJ I +market NN I +, , O +prompting VBG O +even RB B +more JJR I +swings NNS I +in IN O +stock NN B +prices NNS I +. . O + +After IN O +gaining VBG O +strength NN B +during IN O +a DT B +brief JJ I +run-up NN I +when WRB O +trading NN B +began VBD O +, , O +the DT B +Nasdaq NNP I +Composite NNP I +Index NNP I +weakened VBD O +under IN O +selling VBG B +pressure NN I +. . O + +The DT B +forces NNS I +at IN O +work NN B +included VBD O +computer-guided JJ B +trading NN I +, , O +as RB O +well RB O +as IN O +profit-driven CD B +market NN I +makers NNS I +and CC O +institutional JJ B +investors NNS I +who WP B +had VBD O +bought VBN O +stock NN B +on IN O +the DT B +cheap NN I +during IN O +the DT B +recent JJ I +correction NN I +. . O + +During IN O +the DT B +last JJ I +two CD I +hours NNS I +of IN O +trading NN B +, , O +the DT B +composite JJ I +almost RB O +drew VBD O +even RB O +on IN O +the DT B +day NN I +before IN O +slipping VBG O +again RB O +. . O + +The DT B +Nasdaq NNP I +Composite NNP I +closed VBD O +down RB O +1.05 CD B +, , O +or CC O +0.2 CD B +% NN I +, , O +to TO O +459.93 CD B +. . O + +The DT B +action NN I +was VBD O +confined VBN O +to TO O +Nasdaq NNP B +'s POS B +biggest JJS I +and CC I +most RBS I +liquid JJ I +stocks NNS I +, , O +traders NNS B +said VBD O +. . O + +The DT B +Nasdaq NNP I +100 CD I +Index NNP I +began VBD O +the DT B +day NN I +at IN O +449.89 CD B +, , O +lost VBD O +2 CD B +% NN I +at IN O +one CD B +point NN I +, , O +and CC O +was VBD O +up IN O +0.4 CD B +% NN I +at IN O +another DT B +. . O + +The DT B +barometer NN I +of IN O +the DT B +biggest JJS I +nonfinancial JJ I +stocks NNS I +settled VBD O +at IN O +448.49 CD B +, , O +off IN O +1.40 CD B +. . O + +Its PRP$ B +counterpart NN I +, , O +the DT B +Nasdaq NNP I +Financial NNP I +Index NNP I +, , O +was VBD O +weak JJ O +for IN O +most RBS B +of IN O +the DT B +day NN I +, , O +sliding VBG O +2.51 CD B +to TO O +453.57 CD B +by IN O +the DT B +end NN I +of IN O +trading NN B +. . O + +The DT B +volatility NN I +was VBD O +dizzying JJ O +for IN O +traders NNS B +. . O + +`` `` O +The DT B +market NN I +must MD O +have VB O +turned VBN O +up IN O +and CC O +down RB O +15 CD B +different JJ I +times NNS I +, , O +'' '' O +commented VBD O +Lance NNP B +Zipper NNP I +, , O +head NN B +of IN O +OTC NNP B +trading NN I +at IN O +Kidder NNP B +Peabody NNP I +. . O + +`` `` O +Every DT B +time NN I +you PRP B +thought VBD O +it PRP B +was VBD O +going VBG O +into IN O +a DT B +rally NN I +it PRP B +gave VBD O +up IN O +, , O +and CC O +every DT B +time NN I +you PRP B +thought VBD O +it PRP B +would MD O +rally VB O +it PRP B +came VBD O +down RB O +. . O + +This DT B +is VBZ O +a DT B +tough JJ I +market NN I +. . O +'' '' O + +Mr. NNP B +Zipper NNP I +said VBD O +the DT B +market NN I +is VBZ O +still RB O +settling VBG O +down RB O +after IN O +the DT B +recent JJ I +correction NN I +. . O + +Most JJS B +of IN O +trading NN B +action NN I +now RB O +is VBZ O +from IN O +professional JJ B +traders NNS I +who WP B +are VBP O +trying VBG O +to TO O +take VB O +advantage NN B +of IN O +the DT B +price NN I +swings NNS I +to TO O +turn VB O +a DT B +quick JJ I +profit NN I +, , O +he PRP B +and CC O +other JJ B +traders NNS I +said VBD O +. . O + +`` `` O +Everybody NN B +'s POS O +confused VBN O +and CC O +no DT B +one CD I +has VBZ O +an DT B +opinion NN I +that WDT B +lasts VBZ O +longer RB O +than IN O +30 CD B +seconds NNS I +, , O +'' '' O +said VBD O +Mr. NNP B +Zipper NNP I +. . O + +`` `` O +A DT B +lot NN I +of IN O +the DT B +professional JJ I +traders NNS I +are VBP O +just RB O +going VBG O +back RB O +and CC O +forth RB O +. . O + +They PRP B +'re VBP O +just RB O +as IN O +confused VBN O +. . O +'' '' O + +William NNP B +Rothe NNP I +, , O +head NN B +of IN O +OTC NNP B +trading NN I +at IN O +Alex NNP B +. . I +Brown NNP I +& CC I +Sons NNP I +, , O +in IN O +Baltimore NNP B +, , O +said VBD O +program NN B +trading NN I +is VBZ O +keeping VBG O +the DT B +markets NNS I +unsettled JJ O +. . O + +He PRP B +believes VBZ O +that IN O +the DT B +volatile JJ I +conditions NNS I +created VBN O +by IN O +program NN B +trading NN I +has VBZ O +`` `` O +thoroughly RB O +confused VBN O +'' '' O +investors NNS B +about IN O +where WRB O +the DT B +market NN I +is VBZ O +headed VBN O +. . O + +Program NN B +trading NN I +is VBZ O +`` `` O +benefiting VBG O +a DT B +few JJ I +to TO O +the DT B +detriment NN I +of IN O +many JJ B +and CC O +I PRP B +wish VBP O +someone NN B +would MD O +do VB O +something NN B +about IN O +it PRP B +, , O +'' '' O +he PRP B +complained VBD O +. . O + +Trading NN B +activity NN I +cooled VBN O +off IN O +from IN O +Monday NNP B +'s POS B +sizzling JJ I +pace NN I +. . O + +Share NN B +turnover NN I +subsided VBD O +to TO O +161.5 CD B +million CD I +. . O + +Advancing VBG B +and CC I +declining VBG I +issues NNS I +finished VBD O +about IN O +even RB O +. . O + +Of IN O +the DT B +4,345 CD I +stocks NNS I +that WDT B +changed VBD O +hands NNS B +, , O +1,174 CD B +declined VBD O +and CC O +1,040 CD B +advanced VBD O +. . O + +One CD B +big JJ I +technology NN I +issue NN I +, , O +Novell NNP B +, , O +rode VBD O +the DT B +roller NN I +coaster NN I +. . O + +The DT B +stock NN I +, , O +which WDT B +finished VBD O +Monday NNP B +at IN O +29 CD B +1\/2 CD I +, , O +traded VBD O +as RB O +high JJ O +as IN O +29 CD B +3\/4 CD I +and CC O +as RB O +low JJ O +as IN O +28 CD B +3\/4 CD I +before IN O +closing VBG O +at IN O +29 CD B +1\/4 CD I +, , O +down RB O +1\/4 CD B +. . O + +It PRP B +was VBD O +a DT B +jarring VBG I +day NN I +for IN O +investors NNS B +in IN O +Genetics NNP B +Institute NNP I +. . O + +The DT B +stock NN I +tumbled VBD O +2 CD B +3\/4 CD I +on IN O +news NN B +that IN O +it PRP B +might MD O +have VB O +to TO O +take VB O +a DT B +charge NN I +against IN O +earnings NNS B +if IN O +it PRP B +ca MD O +n't RB O +successfully RB O +resolve VB O +a DT B +dispute NN I +with IN O +its PRP$ B +European JJ I +licensee NN I +, , O +Boehringer NNP B +Mannheim NNP I +, , O +over IN O +its PRP$ B +anti-anemia NN I +drug NN I +, , O +EPO NNP B +. . O + +The DT B +stock NN I +recovered VBD O +somewhat RB O +to TO O +finish VB O +1 CD B +1\/4 CD I +lower JJR O +at IN O +26 CD B +1\/4 CD I +. . O + +In IN O +a DT B +statement NN I +, , O +Genetics NNP B +Institute NNP I +said VBD O +the DT B +dispute NN I +with IN O +Boehringer NNP B +centers NNS O +on IN O +questions NNS B +of IN O +the DT B +usability NN I +of IN O +certain JJ B +batches NNS I +of IN O +EPO NNP B +material NN I +valued VBN O +at IN O +$ $ B +13.6 CD I +million CD I +. . O + +Earlier RBR O +this DT B +week NN I +, , O +Genetics NNP B +Institute NNP I +reported VBD O +wider JJR B +losses NNS I +in IN O +its PRP$ B +fiscal JJ I +third JJ I +quarter NN I +ended VBN O +Aug. NNP B +31 CD I +. . O + +Price NNP B +Co. NNP I +jumped VBD O +2 CD B +1\/4 CD I +to TO O +44 CD B +on IN O +1.7 CD B +million CD I +shares NNS I +. . O + +The DT B +wholesaler NN I +of IN O +cash NN B +and CC I +carry VB I +merchandise NN I +reported VBD O +fiscal JJ B +fourthquarter NN I +earnings NNS I +that WDT B +were VBD O +better JJR O +than IN O +analysts NNS B +had VBD O +expected VBN O +. . O + +The DT B +company NN I +also RB O +pleased VBD O +analysts NNS B +by IN O +announcing VBG O +four CD B +new JJ I +store NN I +openings NNS I +planned VBN O +for IN O +fiscal JJ B +1990 CD I +, , O +ending VBG O +next JJ B +August NNP I +. . O + +That DT B +will MD O +bring VB O +the DT B +total NN I +for IN O +the DT B +year NN I +to TO O +10 CD B +, , O +from IN O +five CD B +during IN O +fiscal JJ B +1989 CD I +. . O + +`` `` O +Every DT B +year NN I +we PRP B +'ve VBP O +been VBN O +waiting VBG O +for IN O +stepped-up JJ B +expansion NN I +from IN O +the DT B +company NN I +. . O + +The DT B +news NN I +could MD O +n't RB O +have VB O +been VBN O +better JJR O +, , O +'' '' O +said VBD O +Linda NNP B +Kristiansen NNP I +, , O +a DT B +Dean NNP I +Witter NNP I +Reynolds NNP I +analyst NN I +, , O +in IN O +an DT B +interview NN I +. . O + +Intermec NNP B +, , O +a DT B +maker NN I +of IN O +optical JJ B +character-recognition NN I +devices NNS I +, , O +also RB O +reported VBD O +higher JJR B +third-quarter JJ I +earnings NNS I +. . O + +Its PRP$ B +shares NNS I +added VBD O +3\/4 CD B +to TO O +30 CD B +3\/4 CD I +. . O + +But CC O +favorable JJ B +earnings NNS I +was VBD O +n't RB O +a DT B +guarantee NN I +that IN O +a DT B +stock NN I +'s POS B +price NN I +would MD O +improve VB O +yesterday NN B +. . O + +MCI NNP B +Communications NNPS I +tumbled VBD O +2 CD B +5\/8 CD I +to TO O +42 CD B +3\/8 CD I +on IN O +4.7 CD B +million CD I +shares NNS I +even RB O +though IN O +the DT B +telecommunications NNS I +giant NN I +reported VBD O +a DT B +63 CD I +% NN I +increase NN I +in IN O +third-quarter JJ B +profit NN I +. . O + +CoreStates NNP B +Financial NNP I +slipped VBD O +3\/8 CD B +to TO O +43 CD B +1\/8 CD I +in IN O +active JJ B +trading NN I +after IN O +reporting VBG O +that IN O +third-quarter JJ B +earnings NNS I +improved VBN O +to TO O +$ $ B +1.27 CD I +a DT B +share NN I +from IN O +$ $ B +1.15 CD I +a DT B +share NN I +a DT B +year NN I +earlier RBR O +. . O + +However RB O +, , O +the DT B +bank NN I +holding VBG I +company NN I +'s POS B +loan-loss NN I +reserves NNS I +rose VBD O +to TO O +$ $ B +177.3 CD I +million CD I +from IN O +$ $ B +154 CD I +million CD I +a DT B +year NN I +earlier RBR O +. . O + +A&W NNP B +Brands NNP I +lost VBD O +1\/4 CD B +to TO O +27 CD B +. . O + +But CC O +its PRP$ B +thirdquarter JJ I +earnings NNS I +rose VBD O +to TO O +26 CD B +cents NNS I +a DT B +share NN I +from IN O +18 CD B +cents NNS I +a DT B +share NN I +last JJ B +year NN I +. . O + +Capital NNP B +Associates NNPS I +dropped VBD O +1 CD B +to TO O +5 VB B +3\/8 CD I +. . O + +The DT B +company NN I +, , O +which WDT B +leases VBZ O +technology NN B +equipment NN I +, , O +reported VBD O +substantially RB B +lower JJR I +net JJ I +income NN I +for IN O +its PRP$ B +fiscal JJ I +first JJ I +quarter NN I +, , O +which WDT B +ended VBN O +Aug. NNP B +31 CD I +. . O + +Robert NNP B +M. NNP I +Jelenic NNP I +, , O +39 CD B +, , O +was VBD O +named VBN O +president NN B +and CC O +chief JJ B +operating VBG I +officer NN I +of IN O +this DT B +closely RB I +held VBN I +publisher NN I +. . O + +The DT B +post NN I +had VBD O +been VBN O +vacant JJ O +for IN O +more JJR B +than IN I +a DT I +year NN I +. . O + +Mr. NNP B +Jelenic NNP I +had VBD O +been VBN O +executive JJ B +vice NN I +president NN I +for IN O +operations NNS B +. . O + +In IN O +addition NN B +, , O +Ralph NNP B +Ingersoll NNP I +II NNP I +, , O +43 CD B +, , O +chairman NN B +and CC O +chief JJ B +executive NN I +, , O +said VBD O +he PRP B +would MD O +take VB O +on IN O +additional JJ B +responsibilities NNS I +as IN O +editor NN B +in IN O +chief NN B +of IN O +the DT B +company NN I +. . O + +John NNP B +Wilpers NNP I +resigned VBD O +as IN O +editor NN B +in IN O +chief NN B +. . O + +Mr. NNP B +Ingersoll NNP I +remains VBZ O +editor NN B +in IN O +chief NN B +of IN O +the DT B +company NN I +'s POS B +recently RB I +launched VBN I +daily JJ I +, , O +the DT B +St. NNP I +Louis NNP I +Sun NNP I +. . O + +Also RB O +, , O +Jean NNP B +B. NNP I +Clifton NNP I +, , O +28 CD B +, , O +was VBD O +named VBN O +executive JJ B +vice NN I +president NN I +, , O +treasurer NN B +and CC O +chief JJ B +financial JJ I +officer NN I +. . O + +Michael NNP B +Applebaum NNP I +resigned VBD O +after IN O +less JJR B +than IN I +a DT I +year NN I +in IN O +the DT B +posts NNS I +. . O + +Ms. NNP B +Clifton NNP I +had VBD O +been VBN O +executive NN B +financial JJ I +assistant NN I +to TO O +the DT B +chairman NN I +. . O + +Certainly RB O +conservative JJ B +environmentalists NNS I +can MD O +defend VB O +their PRP$ B +limited JJ I +government NN I +position NN I +by IN O +differentiating VBG O +between IN O +Old NNP B +Environmentalism NNP I +and CC O +New NNP B +Environmentalism NNP I +-LRB- ( O +`` `` O +Journalists NNS B +and CC I +Others NNS I +for IN O +Saving VBG O +the DT B +Planet NNP I +, , O +'' '' O +by IN O +David NNP B +Brooks NNP I +, , O +editorial NN B +page NN I +, , O +Oct. NNP B +5 NN I +-RRB- ) O +. . O + +Old NNP B +Environmentalism NNP I +involved VBD O +microbe NN B +hunters NNS I +and CC O +sanitationists NNS B +. . O + +It PRP B +started VBD O +with IN O +improvements NNS B +in IN O +hygiene NN B +made VBD O +possible JJ O +by IN O +affordable JJ B +soap NN I +and CC O +washable JJ B +underwear NN I +during IN O +the DT B +Industrial NNP I +Revolution NNP I +. . O + +Then RB O +cast-iron NN B +sewer NN I +pipe NN I +and CC O +the DT B +flush JJ I +toilet NN I +were VBD O +followed VBN O +by IN O +sewage NN B +- : I +and CC I +water-treatment NN I +plants NNS I +toward IN O +the DT B +end NN I +of IN O +the DT B +19th JJ I +century NN I +. . O + +Medicine NNP B +in IN O +the DT B +19th JJ I +century NN I +was VBD O +dedicated VBN O +mostly RB O +to TO O +combating VBG O +sepsis NN B +and CC O +diagnostic JJ B +analysis NN I +. . O + +Then RB O +the DT B +20th JJ I +century NN I +saw VBD O +the DT B +evolution NN I +of IN O +private-sector JJ B +wonder NN I +drugs NNS I +, , O +which WDT B +promulgated VBD O +medical JJ B +therapy NN I +. . O + +The DT B +process NN I +dramatically RB O +increased VBD O +our PRP$ B +average JJ I +life NN I +expectancy NN I +, , O +eliminated VBN O +much JJ B +pain NN I +and CC O +constantly RB O +improved VBN O +health NN B +and CC I +well-being NN I +. . O + +Most JJS B +public-health JJ I +measures NNS I +were VBD O +handled VBN O +at IN O +the DT B +local JJ I +level NN I +. . O + +New NNP B +Environmentalism NNP I +probably RB O +started VBD O +in IN O +1962 CD B +with IN O +the DT B +publication NN I +of IN O +Rachel NNP B +Carson NNP I +'s POS B +book NN I +`` `` O +Silent NNP B +Spring NNP I +. . O +'' '' O + +Shortly RB O +thereafter RB O +, , O +hysterical JJ B +articles NNS I +began VBD O +to TO O +appear VB O +predicting VBG O +that WDT O +advanced VBD B +industrial JJ I +societies NNS I +would MD O +produce VB O +a DT B +blackened VBN I +, , I +uninhabitable JJ I +planet NN I +possibly RB O +by IN O +the DT B +turn NN I +of IN O +the DT B +century NN I +. . O + +These DT B +apocalyptic JJ I +predictions NNS I +were VBD O +advanced VBN O +by IN O +such JJ B +stalwarts NNS I +as IN O +Paul NNP B +Ehrlich NNP I +, , O +Barry NNP B +Commoner NNP I +, , O +Rene NNP B +Dubois NNP I +and CC O +George NNP B +Wald NNP I +. . O + +Writing VBG O +in IN O +the DT B +1960s CD I +Ms. NNP B +Carson NNP I +suggested VBD O +that IN O +the DT B +human JJ I +race NN I +could MD O +be VB O +eliminated VBN O +in IN O +20 CD B +years NNS I +, , O +and CC O +Mr. NNP B +Wald NNP I +suggested VBD O +that DT O +life NN B +on IN O +earth NN B +might MD O +end VB O +by IN O +1985 CD B +. . O + +Mr. NNP B +Ehrlich NNP I +predicted VBD O +unprecedented JJ B +famine NN I +by IN O +1980 CD B +. . O + +There EX B +were VBD O +many RB B +more JJR I +. . O + +Thousands NNS B +of IN O +chemical NN B +products NNS I +were VBD O +categorized VBN O +as IN O +carcinogenic JJ O +, , O +with IN O +recommendations NNS B +that IN O +they PRP B +be VBP O +banned VBN O +from IN O +industrial JJ B +use NN I +because IN O +they PRP B +produced VBD O +malignant JJ B +tumors NNS I +in IN O +overdosed VBN B +rats NNS I +. . O + +Unknown JJ O +before IN O +1960 CD B +were VBD O +the DT B +inconclusive JJ I +effects NNS I +of IN O +acid NN B +rain NN I +, , O +greenhouse NN B +warming NN I +and CC O +ozone NN B +depletion NN I +, , O +all DT O +of IN O +which WDT B +required VBD O +burgeoning VBG B +political JJ I +power NN I +and CC O +gargantuan JJ B +expense NN I +. . O + +Meanwhile RB O +, , O +the DT B +New NNP I +Environmentalists NNS I +systematically RB O +opposed VBN O +the DT B +methods NNS I +of IN O +the DT B +Old NNP I +Environmentalists NNS I +. . O + +Local JJ B +pollution NN I +problems NNS I +require VBP O +cheap JJ B +energy NN I +and CC O +capital NN B +for IN O +their PRP$ B +solution NN I +. . O + +But CC O +the DT B +New NNP I +Environmentalists NNS I +oppose VBP O +private JJ B +wealth NN I +creation NN I +-LRB- ( O +which WDT B +, , O +they PRP B +claim VBP O +, , O +depletes VBZ O +natural JJ B +resources NNS I +-RRB- ) O +and CC O +nuclear JJ B +power NN I +-LRB- ( O +even RB O +though IN O +it PRP B +would MD O +counteract VB O +the DT B +greenhouse NN I +effect NN I +-RRB- ) O +. . O + +They PRP B +are VBP O +in IN O +the DT B +forefront NN I +of IN O +opposing VBG O +the DT B +search NN I +for IN O +new JJ B +landfills NNS I +and CC I +methods NNS I +of IN O +incineration NN B +and CC O +even RB O +oppose VB O +new JJ B +methods NNS I +of IN O +research NN B +such JJ O +as IN O +genetic JJ B +engineering NN I +. . O + +New NNP B +Environmentalism NNP I +is VBZ O +an DT B +emotional JJ I +attack NN I +on IN O +proven VBN B +methods NNS I +of IN O +improving VBG O +our PRP$ B +quality NN I +of IN O +life NN B +and CC O +a DT B +bid NN I +for IN O +political JJ B +power NN I +. . O + +Let VB O +'s POS B +rationalize VB O +our PRP$ B +priorities NNS I +by IN O +solving VBG O +pollution NN B +problems NNS I +at IN O +the DT B +local JJ I +level NN I +as IN O +heretofore RB O +. . O + +Harry NNP B +Lee NNP I +Smith NNP I +Alpharetta NNP B +, , O +Ga NNP B +. . O + +Your PRP$ B +story NN I +missed VBD O +some DT B +essential JJ I +points NNS I +of IN O +the DT B +conference NN I +on IN O +`` `` O +The DT B +Global NNP I +Environment NNP I +: : O +Are VBP O +We PRP B +Overreacting VBG O +? . O +'' '' O + +First NNP O +and CC O +foremost JJ O +, , O +the DT B +vignettes NNS I +presented VBN O +by IN O +the DT B +various JJ I +scientists NNS I +represent VBP O +a DT B +general JJ I +consensus NN I +among IN O +specialists NNS B +working VBG O +in IN O +the DT B +respective JJ I +aspects NNS I +of IN O +the DT B +global JJ I +environment NN I +. . O + +Consider VB O +, , O +for IN O +example NN B +, , O +the DT B +greenhouse NN I +effect NN I +and CC O +climate NN B +change NN I +; : O +numerous JJ B +blue-ribbon JJ I +scientific JJ I +committees NNS I +, , O +including VBG O +one CD B +from IN O +the DT B +National NNP I +Academy NNP I +of IN O +Science NNP B +, , O +judge NN O +there EX B +is VBZ O +a DT B +greater JJR I +than IN I +50 CD I +% NN I +probability NN I +of IN O +a DT B +grave JJ I +problem NN I +in IN O +the DT B +offing NN I +. . O + +The DT B +point NN I +was VBD O +to TO O +answer VB O +the DT B +question NN I +in IN O +the DT B +conference NN I +title NN I +, , O +not RB O +to TO O +try VB O +to TO O +create VB O +news NN B +stories NNS I +for IN O +the DT B +event NN I +itself PRP I +. . O + +Nor CC O +was VBD O +it PRP B +intended VBD O +to TO O +dictate VB O +a DT B +set NN I +of IN O +prescriptive JJ B +solutions NNS I +, , O +although IN O +various JJ B +points NNS I +were VBD O +raised VBN O +. . O + +Each DT B +speaker NN I +was VBD O +asked VBN O +to TO O +address VB O +a DT B +specific JJ I +topic NN I +, , O +not RB O +deliver VB O +a DT B +point NN I +of IN O +view NN B +. . O + +Each DT B +scientist NN I +independently RB O +concluded VBD O +society NN B +and CC I +government NN I +are VBP O +underreacting VBG O +when WRB O +it PRP B +comes VBZ O +to TO O +substantive JJ B +policy NN I +change NN I +. . O + +This DT B +leads VBZ O +to TO O +a DT B +very RB I +special JJ I +sense NN I +of IN O +urgency NN B +. . O + +If IN O +the DT B +media NNS I +decide VBP O +to TO O +work VB O +harder JJR O +at IN O +educating VBG O +the DT B +public NN I +about IN O +these DT B +complex JJ I +and CC I +technical JJ I +issues NNS I +, , O +that IN B +hardly RB O +can MD O +be VB O +termed VBN O +non-objective JJ B +journalism NN I +. . O + +The DT B +environment NN I +can MD O +no RB O +longer RB O +be VB O +a DT B +normal JJ I +issue NN I +, , O +to TO O +be VB O +dealt VBN O +with IN O +on IN O +a DT B +business-as-usual JJ I +basis NN I +with IN O +comfortable JJ B +increments NNS I +of IN O +change NN B +. . O + +We PRP B +have VBP O +literally RB O +altered VBN O +the DT B +chemistry NN I +and CC I +physics NN I +of IN O +our PRP$ B +planet NN I +'s POS B +atmosphere NN I +. . O + +This DT B +portends VBZ O +consequences NNS B +from IN O +what WP B +we PRP B +have VBP O +already RB O +done VBN O +that WDT B +will MD O +be VB O +very RB O +destabilizing VBG O +to TO O +social JJ B +and CC I +economic JJ I +systems NNS I +. . O + +The DT B +problems NNS I +of IN O +the DT B +environment NN I +are VBP O +so RB O +interrelated VBN O +, , O +so RB O +inextricably RB O +entwined VBN O +with IN O +our PRP$ B +current JJ I +way NN I +of IN O +life NN B +and CC O +so RB O +large JJ O +that IN O +it PRP B +is VBZ O +unlikely JJ O +we PRP B +will MD O +be VB O +able JJ O +to TO O +address VB O +them PRP B +effectively RB O +unless IN O +major JJ B +changes NNS I +are VBP O +made VBN O +in IN O +less JJR B +than IN I +10 CD I +years NNS I +. . O + +The DT B +consensus NN I +from IN O +the DT B +scientific JJ I +community NN I +is VBZ O +that IN O +there EX B +is VBZ O +sufficient JJ B +evidence NN I +to TO O +advise VB O +major JJ B +policy NN I +changes NNS I +. . O + +No DT O +, , O +we PRP B +are VBP O +not RB O +overreacting VBG O +. . O + +Thomas NNP B +E. NNP I +Lovejoy NNP I +Assistant NNP B +Secretary NNP I +for IN O +External NNP B +Affairs NNP I +Smithsonian NNP B +Institution NNP I + +Coca-Cola NNP B +Enterprises NNPS I +Inc. NNP I +, , O +fulfilling VBG O +its PRP$ B +dismal JJ I +earnings NNS I +forecast NN I +for IN O +1989 CD B +, , O +said VBD O +its PRP$ B +third-quarter JJ I +net JJ I +income NN I +fell VBD O +68 CD B +% NN I +on IN O +flat JJ B +revenue NN I +. . O + +Stung VBN O +by IN O +higher JJR B +marketing NN I +costs NNS I +and CC O +slowing VBG B +volume NN I +growth NN I +, , O +the DT B +giant NN I +Coke NNP I +bottling NN I +operation NN I +said VBD O +net NN B +fell VBD O +to TO O +$ $ B +12.7 CD I +million CD I +, , O +or CC O +six CD B +cents NNS I +a DT B +share NN I +, , O +from IN O +$ $ B +39.9 CD I +million CD I +, , O +or CC O +26 CD B +cents NNS I +a DT B +share NN I +, , O +the DT B +year NN I +earlier RBR O +. . O + +The DT B +results NNS I +met VBD O +estimates NNS B +of IN O +analysts NNS B +, , O +who WP B +had VBD O +already RB O +slashed VBN O +their PRP$ B +projections NNS I +after IN O +the DT B +company NN I +said VBD O +in IN O +late JJ B +August NNP I +that IN O +its PRP$ B +1989 CD I +earnings NNS I +could MD O +tumble VB O +as RB B +much JJ I +as IN I +37 CD I +% NN I +. . O + +A DT B +company NN I +spokesman NN I +said VBD O +yesterday NN B +that IN O +Coca-Cola NNP B +Enterprises NNPS I +sticks NNS O +by IN O +its PRP$ B +1989 CD I +forecast NN I +. . O + +Third-quarter JJ B +revenue NN I +was VBD O +flat JJ O +at IN O +$ $ B +1.02 CD I +billion CD I +. . O + +The DT B +year-ago JJ I +results NNS I +, , O +however RB O +, , O +included VBD O +the DT B +operations NNS I +of IN O +a DT B +bottling NN I +business NN I +, , O +which WDT B +was VBD O +sold VBN O +last JJ B +December NNP I +. . O + +Excluding VBG O +that DT B +bottling NN I +business NN I +, , O +Coca-Cola NNP B +Enterprises NNPS I +' POS B +volume NN I +, , O +measured VBN O +by IN O +cases NNS B +of IN O +soda NN B +, , O +rose VBD O +only RB B +1 CD I +% NN I +. . O + +The DT B +volume NN I +is VBZ O +well RB O +below IN O +the DT B +industry NN I +'s POS B +4 CD I +% NN I +to TO I +5 VB I +% NN I +growth NN I +rate NN I +of IN O +recent JJ B +years NNS I +, , O +but CC O +in IN O +line NN B +with IN O +other JJ B +soft-drink NN I +companies NNS I +for IN O +the DT B +third JJ I +quarter NN I +. . O + +The DT B +latest JJS I +third-quarter JJ I +volume NN I +also RB O +compares VBZ O +with IN O +a DT B +very RB I +strong JJ I +10 CD I +% NN I +growth NN I +in IN O +the DT B +year-ago JJ I +quarter NN I +. . O + +Coca-Cola NNP B +Enterprises NNPS I +blamed VBD O +the DT B +lower JJR I +volume NN I +on IN O +its PRP$ B +soft-drink NN I +prices NNS I +, , O +which WDT B +were VBD O +about IN O +3 CD O +% NN O +higher JJR O +in IN O +the DT B +third JJ I +quarter NN I +. . O + +Consumers NNS B +have VBP O +been VBN O +accustomed VBN O +to TO O +buying VBG O +soft-drinks NNS B +at IN O +discounted VBN B +prices NNS I +for IN O +several JJ B +years NNS I +. . O + +Coca-Cola NNP B +Enterprises NNPS I +said VBD O +it PRP B +had VBD O +to TO O +boost VB O +spending NN B +for IN O +trade NN B +and CC I +dealer NN I +incentives NNS I +to TO O +try VB O +to TO O +keep VB O +volumes NNS B +from IN O +slipping VBG O +. . O + +The DT B +company NN I +said VBD O +it PRP B +expects VBZ O +consumers NNS B +will MD O +adjust VB O +to TO O +higher-priced JJ B +soft JJ I +drinks NNS I +. . O + +A DT B +spokesman NN I +attributed VBD O +the DT B +bulk NN I +of IN O +a DT B +14 CD I +% NN I +increase NN I +in IN O +selling VBG B +, , I +administrative JJ I +and CC I +general JJ I +expenses NNS I +-- : O +to TO O +$ $ B +324.9 CD I +million CD I +-- : O +to TO O +marketing NN B +costs NNS I +. . O + +`` `` O +They PRP B +'re VBP O +out IN O +there RB B +promoting VBG O +like IN O +crazy JJ O +, , O +trying VBG O +to TO O +get VB O +prices NNS B +up IN O +by IN O +promotion NN B +, , O +'' '' O +said VBD O +Roy NNP B +Burry NNP I +, , O +an DT B +analyst NN I +with IN O +Kidder NNP B +, , I +Peabody NNP I +& CC I +Co NNP I +. . O + +For IN O +the DT B +nine CD I +months NNS I +, , O +Coca-Cola NNP B +Enterprises NNPS I +' POS B +net NN I +fell VBD O +31 CD B +% NN I +to TO O +$ $ B +65 CD I +million CD I +, , O +or CC O +39 CD B +cents NNS I +a DT B +share NN I +, , O +from IN O +$ $ B +93.8 CD I +million CD I +, , O +or CC O +63 CD B +cents NNS I +a DT B +share NN I +. . O + +Revenue NN B +was VBD O +flat JJ O +at IN O +about RB B +$ $ I +2.97 CD I +billion CD I +. . O + +Coca-Cola NNP B +Enterprises NNPS I +, , O +which WDT B +is VBZ O +49%-owned JJ O +by IN O +Coca-Cola NNP B +Co. NNP I +, , O +also RB O +said VBD O +it PRP B +repurchased VBD O +about IN B +1.2 CD I +million CD I +of IN O +its PRP$ B +common JJ I +shares NNS I +during IN O +the DT B +third JJ I +quarter NN I +. . O + +The DT B +buy-back NN I +is VBZ O +part NN B +of IN O +a DT B +25-million-share JJ I +repurchase NN I +plan NN I +, , O +under IN O +which WDT B +Coca-Cola NNP B +Enterprises NNPS I +so RB O +far RB O +has VBZ O +acquired VBN O +a DT B +total NN I +of IN O +9.7 CD B +million CD I +shares NNS I +. . O + +Separately RB O +, , O +Purchase NNP B +, , I +N.Y.-based JJ I +PepsiCo NNP I +Inc. NNP I +, , O +as IN O +expected VBN O +, , O +said VBD O +fiscal JJ B +third-quarter JJ I +net NN I +rose VBD O +11 CD B +% NN I +to TO O +$ $ B +269.3 CD I +million CD I +, , O +or CC O +$ $ B +1.02 CD I +a DT B +share NN I +, , O +from IN O +$ $ B +241.6 CD I +million CD I +, , O +or CC O +91 CD B +cents NNS I +a DT B +share NN I +. . O + +Sales NNS B +rose VBD O +25 CD B +% NN I +to TO O +$ $ B +3.90 CD I +billion CD I +from IN O +$ $ B +3.13 CD I +billion CD I +. . O + +The DT B +year-ago JJ I +quarter NN I +'s POS B +results NNS I +include VBP O +an DT B +after-tax JJ I +charge NN I +of IN O +$ $ B +5.9 CD I +million CD I +from IN O +the DT B +sale NN I +of IN O +a DT B +winery NN I +in IN O +Spain NNP B +. . O + +In IN O +composite JJ B +trading NN I +on IN O +the DT B +New NNP I +York NNP I +Stock NNP I +Exchange NNP I +, , O +Coca-Cola NNP B +Enterprises NNPS I +closed VBD O +at IN O +$ $ B +16.375 CD I +a DT B +share NN I +, , O +down RB O +62.5 CD B +cents NNS I +. . O + +PepsiCo NNP B +closed VBD O +at IN O +$ $ B +58.50 CD I +a DT B +share NN I +, , O +up IN O +$ $ B +1.375 CD I +. . O + +L.J. NNP B +Hooker NNP I +Corp. NNP I +is VBZ O +expected VBN O +to TO O +reach VB O +an DT B +agreement NN I +in IN O +principle NN B +this DT B +week NN I +to TO O +sell VB O +Merksamer NNP B +Jewelers NNP I +Inc. NNP I +to TO O +management NN B +, , O +say VBP O +executives NNS B +familiar JJ O +with IN O +the DT B +talks NNS I +. . O + +L.J. NNP B +Hooker NNP I +, , O +based VBN O +in IN O +Atlanta NNP B +, , O +filed VBN O +for IN O +Chapter NN B +11 CD I +bankruptcy NN I +protection NN I +earlier RBR O +this DT B +year NN I +. . O + +Currently RB O +, , O +its PRP$ B +parent NN I +company NN I +, , O +Hooker NNP B +Corp. NNP I +of IN O +Sydney NNP B +, , O +Australia NNP B +, , O +is VBZ O +being VBG O +managed VBN O +by IN O +a DT B +court-appointed JJ I +liquidator NN I +. . O + +It PRP B +is VBZ O +expected VBN O +that IN O +GE NNP B +Capital NNP I +Corp. NNP I +, , O +a DT B +financial-services NNS I +subsidiary NN I +of IN O +General NNP B +Electric NNP I +Co. NNP I +, , O +will MD O +provide VB O +much NN O +of IN O +the DT B +funding NN I +for IN O +the DT B +proposed VBN I +leveraged JJ I +buy-out NN I +of IN O +Merksamer NNP B +, , O +based VBN O +in IN O +Sacramento NNP B +, , O +Calif NNP B +. . O + +A DT B +spokesman NN I +for IN O +GE NNP B +Capital NNP I +declined VBD O +to TO O +comment VB O +. . O + +GE NNP B +Capital NNP I +has VBZ O +a DT B +working VBG I +relationship NN I +with IN O +L.J. NNP B +Hooker NNP I +. . O + +It PRP B +is VBZ O +providing VBG O +$ $ B +50 CD I +million CD I +in IN O +emergency NN B +financing NN I +to TO O +the DT B +company NN I +and CC O +has VBZ O +agreed VBN O +to TO O +buy VB O +as RB B +much JJ I +as IN O +$ $ B +75 CD I +million CD I +in IN O +receivables NN B +from IN O +B. NNP B +Altman NNP I +& CC I +Co. NNP I +and CC O +Bonwit NNP B +Teller NNP I +, , O +L.J. NNP B +Hooker NNP I +'s POS B +two CD I +fully RB I +owned VBN I +department-store NN I +chains NNS I +. . O + +Sam NNP B +Merksamer NNP I +, , O +chief JJ B +executive JJ I +officer NN I +of IN O +the DT B +nationwide JJ I +jewelry NN I +chain NN I +, , O +and CC O +Sanford NNP B +Sigoloff NNP I +, , O +chief JJ B +executive NN I +of IN O +L.J. NNP B +Hooker NNP I +Corp. NNP I +, , O +both DT B +declined VBD O +to TO O +comment VB O +. . O + +Currently RB O +, , O +Mr. NNP B +Merksamer NNP I +owns VBZ O +20 CD B +% NN I +of IN O +the DT B +company NN I +; : O +L.J. NNP B +Hooker NNP I +acquired VBD O +its PRP$ B +80 CD I +% NN I +interest NN I +in IN O +the DT B +firm NN I +in IN O +May NNP B +1986 CD I +. . O + +At IN O +the DT B +time NN I +, , O +the DT B +Merksamer NNP I +chain NN I +had VBD O +11 CD B +stores NNS I +in IN O +operation NN B +. . O + +Today NN B +, , O +there EX B +are VBP O +77 CD B +units NNS I +, , O +all DT B +located VBN O +in IN O +shopping NN B +malls NNS I +. . O + +In IN O +recent JJ B +weeks NNS I +Mr. NNP B +Merksamer NNP I +has VBZ O +approached VBN O +a DT B +number NN I +of IN O +his PRP$ B +suppliers NNS I +and CC O +asked VBD O +them PRP B +to TO O +provide VB O +letters NNS B +of IN O +intent NN B +saying VBG O +they PRP B +will MD O +continue VB O +shipping VBG O +merchandise NN B +to TO O +the DT B +chain NN I +following VBG O +the DT B +buy-out NN I +, , O +say VBP O +those DT B +familiar NN O +with IN O +the DT B +situation NN I +. . O + +This DT B +year NN I +, , O +a DT B +number NN I +of IN O +retail JJ B +leveraged JJ I +buyouts NNS I +have VBP O +failed VBN O +, , O +causing VBG O +jitters NNS B +among IN O +suppliers NNS B +, , O +and CC O +Mr. NNP B +Merksamer NNP I +apparently RB O +wanted VBD O +assurances NNS B +that IN O +he PRP B +wo MD O +n't RB O +have VB O +delivery NN B +problems NNS I +. . O + +For IN O +the DT B +year NN I +ended VBN O +June NNP B +30 CD I +, , I +1989 CD I +, , O +Merksamer NNP B +Jewelers NNPS I +had VBD O +$ $ B +62 CD I +million CD I +of IN O +revenue NN B +and CC O +operating VBG B +profit NN I +of IN O +$ $ B +2.5 CD I +million CD I +. . O + +The DT B +jewelery NN I +chain NN I +was VBD O +put VBN O +up IN O +for IN O +sale NN B +in IN O +June NNP B +. . O + +According VBG O +to TO O +those DT B +familiar NN O +with IN O +the DT B +situation NN I +, , O +other JJ B +bidders NNS I +included VBD O +Ratners NNP B +Group NNP I +PLC NNP I +of IN O +London NNP B +and CC O +Kay NNP B +Jewelers NNP I +Inc NNP I +. . O + +First NNP B +Boston NNP I +Corp. NNP I +is VBZ O +advising VBG O +L.J. NNP B +Hooker NNP I +on IN O +the DT B +sale NN I +of IN O +the DT B +Merksamer NNP I +business NN I +. . O + +Merksamer NNP B +was VBD O +the DT B +first JJ I +in IN O +a DT B +series NN I +of IN O +retail JJ B +acquisitions NNS I +made VBN O +by IN O +L.J. NNP B +Hooker NNP I +. . O + +The DT B +company NN I +was VBD O +founded VBN O +in IN O +Sacramento NNP B +in IN O +1929 CD B +by IN O +two CD B +brothers NNS I +, , O +Ralph NNP B +and CC I +Walter NNP I +Merksamer NNP I +, , O +who WP B +operated VBD O +as IN O +DeVon NNP B +'s POS B +Jewelers NNPS I +. . O + +In IN O +1979 CD B +, , O +the DT B +pair NN I +split NN O +the DT B +company NN I +in IN O +half NN B +, , O +with IN O +Walter NNP B +and CC O +his PRP$ B +son NN I +, , O +Sam NNP B +, , O +agreeing VBG O +to TO O +operate VB O +under IN O +the DT B +Merksamer NNP I +Jewelery NNP I +name NN I +. . O + +The DT B +sale NN I +of IN O +Merksamer NNP B +Jewelers NNPS I +is VBZ O +subject NN O +to TO O +approval NN B +by IN O +Judge NNP B +Tina NNP I +Brozman NNP I +of IN O +U.S. NNP B +Bankruptcy NNP I +Court NNP I +. . O + +As IN O +earlier RBR O +reported VBD O +, , O +L.J. NNP B +Hooker NNP I +this DT B +week NN I +received VBD O +a DT B +$ $ I +409 CD I +million CD I +bid NN I +for IN O +its PRP$ B +three CD I +shopping NN I +malls NNS I +, , O +plus CC O +other JJ B +properties NNS I +from IN O +a DT B +consortium NN I +led VBN O +by IN O +Honolulu NNP B +real-estate NN I +investor NN I +Jay NNP I +Shidler NNP I +and CC O +A. NNP B +Boyd NNP I +Simpson NNP I +, , O +an DT B +Atlanta NNP I +developer NN I +and CC O +former JJ B +L.J. NNP I +Hooker NNP I +senior JJ I +executive NN I +. . O + +The DT B +offer NN I +, , O +which WDT B +did VBD O +n't RB O +include VB O +the DT B +Merksamer NNP I +chain NN I +, , O +is VBZ O +being VBG O +reviewed VBN O +by IN O +Mr. NNP B +Sigoloff NNP I +. . O + +Robert NNP B +J. NNP I +Regal NNP I +was VBD O +named VBN O +president NN B +and CC O +chief JJ B +executive JJ I +officer NN I +of IN O +this DT B +company NN I +'s POS B +Universal-Rundle NNP I +Corp. NNP I +unit NN I +. . O + +Mr. NNP B +Regal NNP I +had VBD O +been VBN O +president NN B +and CC O +chief JJ B +executive NN I +of IN O +RBS NNP B +Industries NNP I +Inc NNP I +. . O + +Robert NNP B +H. NNP I +Carlson NNP I +, , O +previous JJ B +president NN I +and CC I +chief JJ I +executive NN I +of IN O +Universal-Rundle NNP B +, , O +will MD O +assume VB O +the DT B +title NN I +of IN O +chairman NN B +of IN O +the DT B +unit NN I +, , O +a DT B +vitreous-china NN I +maker NN I +. . O + +The DT B +days NNS I +may MD O +be VB O +numbered VBN O +for IN O +animated JJ B +shows NNS I +featuring VBG O +Alf NNP B +, , O +the DT B +Karate NNP I +Kid NNP I +and CC O +the DT B +Chipmunks NNPS I +. . O + +NBC NNP B +, , O +a DT B +leader NN I +in IN O +morning NN B +, , I +prime-time JJ I +and CC I +late JJ I +night NN I +programs NNS I +but CC O +an DT B +also-ran NN I +on IN O +Saturday NNP B +mornings NNS I +, , O +when WRB O +children NNS B +rule VBP O +the DT B +TV NN I +set VBN I +, , O +is VBZ O +contemplating VBG O +getting VBG O +out IN O +of IN O +the DT B +cartoon NN I +business NN I +. . O + +Instead RB O +, , O +network NN B +officials NNS I +say VBP O +, , O +it PRP B +may MD O +`` `` O +counterprogram VB O +'' '' O +with IN O +shows VBZ B +for IN O +an DT B +audience NN I +that WDT B +is VBZ O +virtually RB O +ignored VBN O +in IN O +that DT B +time NN I +period NN I +: : O +adults NNS B +. . O + +`` `` O +There EX B +is VBZ O +talk VB B +of IN O +some DT B +revamping VBG I +and CC O +we PRP B +'re VBP O +certainly RB O +heading VBG O +in IN O +the DT B +direction NN I +of IN O +less JJR B +and CC I +less JJR I +animation NN I +, , O +'' '' O +said VBD O +Joseph NNP B +S. NNP I +Cicero NNP I +, , O +vice NN B +president NN I +of IN O +finance NN B +and CC I +administration NN I +for IN O +National NNP B +Broadcasting NNP I +Co. NNP I +, , O +a DT B +unit NN I +of IN O +General NNP B +Electric NNP I +Co NNP I +. . O + +Mr. NNP B +Cicero NNP I +said VBD O +that IN O +NBC NNP B +Entertainment NNP I +president NNP I +Brandon NNP I +Tartikoff NNP I +, , O +who WP B +declined VBD O +to TO O +be VB O +interviewed VBN O +, , O +is VBZ O +`` `` O +looking VBG O +at IN O +options NNS B +now RB O +and CC O +may MD O +put VB O +some DT B +things NNS I +into IN O +the DT B +schedule NN I +by IN O +mid-season NN B +. . O +'' '' O + +He PRP B +declined VBD O +to TO O +elaborate VB O +. . O + +NBC NNP B +'s POS B +options NNS I +could MD O +range VB O +from IN O +news-oriented JJ B +programming NN I +to TO O +sports NNS B +shows VBZ I +, , O +although IN O +the DT B +network NN I +declined VBD O +to TO O +comment VB O +. . O + +One CD B +major JJ I +NBC NNP I +affiliate NN I +, , O +KCRA NNP B +in IN O +Sacramento NNP B +, , O +plans VBZ O +to TO O +cancel VB O +the DT B +NBC NNP I +Saturday NNP I +morning NN I +line-up NN I +as IN O +of IN O +January NNP B +and CC O +replace VB O +it PRP B +with IN O +a DT B +local JJ I +newscast NN I +. . O + +The DT B +one-hour JJ I +program NN I +will MD O +be VB O +repeated VBN O +with IN O +updates NNS B +throughout IN O +Saturday NNP B +mornings NNS I +. . O + +`` `` O +We PRP B +feel VBP O +there EX B +is VBZ O +an DT B +opportunity NN I +for IN O +an DT B +audience NN I +that WDT B +is VBZ O +not RB O +being VBG O +served VBN O +by IN O +any DT B +network NN I +, , O +so IN O +we PRP B +want VBP O +to TO O +take VB O +the DT B +lead NN I +, , O +'' '' O +says VBZ O +KCRA NNP B +'s POS B +general JJ I +manager NN I +, , O +John NNP B +Kueneke NNP I +. . O + +`` `` O +We PRP B +do VBP O +n't RB O +need VB O +cartoons NNS B +anymore RB O +. . O + +They PRP B +only RB O +accounted VBD O +for IN O +5 NN B +% NN I +, , O +at IN O +best JJS O +, , O +of IN O +the DT B +station NN I +'s POS B +total JJ I +revenues NNS I +. . O +'' '' O + +An DT B +NBC NNP I +spokesman NN I +says VBZ O +the DT B +network NN I +will MD O +`` `` O +closely RB O +monitor VB O +'' '' O +the DT B +Sacramento NNP I +situation NN I +, , O +and CC O +says VBZ O +it PRP B +is VBZ O +the DT B +only JJ I +station NN I +to TO O +defect VB O +. . O + +Spokesmen NNS B +for IN O +the DT B +television NN I +networks NNS I +of IN O +CBS NNP B +Inc. NNP I +and CC O +Capital NNP B +Cities\/ABC NNP I +Inc. NNP I +, , O +say VBP O +there EX B +are VBP O +no DT B +plans NNS I +to TO O +alter VB O +the DT B +children NNS I +'s POS B +line-up NN I +on IN O +Saturday NNP B +mornings NNS I +. . O + +The DT B +youthful JJ I +audience NN I +for IN O +Saturday NNP B +programming NN I +is VBZ O +no RB O +longer RB O +dependent JJ O +on IN O +the DT B +networks NNS I +. . O + +There EX B +has VBZ O +been VBN O +a DT B +surge NN I +in IN O +syndicated VBN O +children NNS B +'s POS I +shows VBZ O +to TO O +independent JJ B +stations NNS I +, , O +as RB O +well RB O +as IN O +competition NN B +from IN O +videocassettes NNS B +for IN O +kids NNS B +and CC O +from IN O +cable NN B +outlets NNS I +such JJ O +as IN O +Nickelodeon NNP B +and CC O +the DT B +Disney NNP I +Channel NNP I +. . O + +At IN O +the DT B +same JJ I +time NN I +, , O +there EX B +appears VBZ O +to TO O +be VB O +a DT B +market NN I +for IN O +news-oriented JJ B +programming NN I +; : O +Turner NNP B +Broadcasting NNP I +System NNP I +Inc. NNP I +'s POS B +Cable NNP I +News NNP I +Network NNP I +has VBZ O +its PRP$ B +highest JJS I +ratings NNS I +, , O +outside IN O +of IN O +prime JJ B +time NN I +, , O +on IN O +Saturday NNP B +mornings NNS I +. . O + +NBC NNP B +has VBZ O +on IN O +previous JJ B +occasions NNS I +considered VBN O +replacing VBG O +cartoons NNS B +with IN O +a DT B +Saturday NNP I +version NN I +of IN O +`` `` O +Today NN B +, , O +'' '' O +which WDT B +is VBZ O +produced VBN O +by IN O +NBC NNP B +News NNP I +. . O + +The DT B +network NN I +'s POS B +own JJ I +production NN I +company NN I +, , O +NBC NNP B +Productions NNPS I +, , O +supplies VBZ O +a DT B +half-hour NN I +family-oriented JJ I +show NN I +titled VBN O +`` `` O +Saved NNP O +By IN O +The DT B +Bell NNP I +. . O +'' '' O + +NBC NNP B +Productions NNPS I +or CC O +NBC NNP B +News NNP I +could MD O +supply VB O +the DT B +network NN I +with IN O +other JJ B +Saturday NNP I +morning NN I +shows VBZ I +, , O +a DT B +move NN I +that WDT B +would MD O +control VB O +costs NNS B +. . O + +Animated JJ B +shows NNS I +, , O +which WDT B +are VBP O +made VBN O +by IN O +outside IN B +production NN I +companies NNS I +, , O +cost NN O +the DT B +network NN I +about RB B +$ $ I +300,000 CD I +per IN O +episode NN B +. . O + +Rohm NNP B +& CC I +Haas NNP I +Co. NNP I +said VBD O +third-quarter JJ B +net JJ I +income NN I +skidded VBD O +35 CD B +% NN I +to TO O +$ $ B +32.6 CD I +million CD I +, , O +or CC O +49 CD B +cents NNS I +a DT B +share NN I +. . O + +In IN O +the DT B +year-earlier JJ I +quarter NN I +, , O +the DT B +chemicals NNS I +company NN I +had VBD O +net NN B +of IN O +$ $ B +49.8 CD I +million CD I +, , O +or CC O +75 CD B +cents NNS I +a DT B +share NN I +. . O + +Sales NNS B +were VBD O +$ $ B +623 CD I +million CD I +, , O +up IN O +0.5 CD B +% NN I +from IN O +$ $ B +619.8 CD I +million CD I +a DT B +year NN I +ago RB O +. . O + +Rohm NNP B +& CC I +Haas NNP I +, , O +which WDT B +plans VBZ O +to TO O +start VB O +operating VBG O +seven CD B +new JJ I +production NN I +units NNS I +this DT B +year NN I +, , O +attributed VBD O +the DT B +profit NN I +slide NN I +partly RB O +to TO O +higher JJR B +start-up JJ I +expense NN I +. . O + +The DT B +company NN I +also RB O +cited VBD O +the DT B +stronger JJR I +dollar NN I +, , O +which WDT B +cuts VBZ O +the DT B +value NN I +of IN O +overseas JJ B +profit NN I +when WRB O +it PRP B +is VBZ O +translated VBN O +into IN O +dollars NNS B +. . O + +In IN O +addition NN B +, , O +the DT B +company NN I +said VBD O +, , O +it PRP B +was VBD O +hurt VBN O +by IN O +higher JJR B +than IN I +previous-year JJ I +costs NNS I +for IN O +raw JJ B +materials NNS I +, , O +though IN O +those DT B +costs NNS I +have VBP O +declined VBN O +since IN O +the DT B +second JJ I +quarter NN I +. . O + +Incrementally RB B +higher JJR I +production NN I +of IN O +those DT B +chemicals NNS I +which WDT B +remain VBP O +in IN O +heavy JJ B +demand NN I +also RB O +has VBZ O +forced VBN O +up IN O +costs NNS B +, , O +such JJ O +as IN O +overtime NN B +pay NN I +. . O + +For IN O +the DT B +nine CD I +months NNS I +, , O +Rohm NNP B +& CC I +Haas NNP I +net NN I +totaled VBD O +$ $ B +155 CD I +million CD I +, , O +or CC O +$ $ B +2.33 CD I +a DT B +share NN I +, , O +down RB O +17 CD B +% NN I +from IN O +$ $ B +187.8 CD I +million CD I +, , O +or CC O +$ $ B +2.82 CD I +a DT B +share NN I +, , O +a DT B +year NN I +ago RB O +. . O + +Sales NNS B +rose VBD O +5.2 CD B +% NN I +to TO O +$ $ B +2.04 CD I +billion CD I +from IN O +$ $ B +1.94 CD I +billion CD I +the DT B +previous JJ I +year NN I +. . O + +In IN O +New NNP B +York NNP I +Stock NNP I +Exchange NNP I +composite JJ I +trading NN I +, , O +Rohm NNP B +& CC I +Haas NNP I +closed VBD O +at IN O +$ $ B +33 CD I +a DT B +share NN I +, , O +down RB O +$ $ B +1.75 CD I +. . O + +Michael NNP B +A. NNP I +Gaskin NNP I +, , O +55 NN B +years NNS I +old JJ O +, , O +was VBD O +named VBN O +president NN B +and CC O +chief JJ B +executive JJ I +officer NN I +of IN O +this DT B +manufacturer NN I +of IN O +industrial JJ B +robots NNS I +, , O +succeeding VBG O +Walter NNP B +K. NNP I +Weisel NNP I +. . O + +Mr. NNP B +Weisel NNP I +, , O +49 CD B +, , O +resigned VBD O +as IN O +president NN B +and CC O +chief JJ B +executive NN I +and CC O +will MD O +work VB O +on IN O +special JJ B +projects NNS I +, , O +said VBD O +John NNP B +J. NNP I +Wallace NNP I +, , O +chairman NN B +. . O + +Mr. NNP B +Gaskin NNP I +formerly RB O +was VBD O +president NN B +and CC O +chief JJ B +executive NN I +of IN O +Taylor NNP B +& CC I +Gaskin NNP I +Inc. NNP I +and CC O +was VBD O +a DT B +director NN I +of IN O +Prab NNP B +Robots NNP I +since IN O +1985 CD B +. . O + +Stephen NNP B +N. NNP I +Wertheimer NNP I +was VBD O +named VBN O +managing VBG B +director NN I +and CC O +group NN B +head NN I +of IN O +investment NN B +banking NN I +in IN O +Asia NNP B +, , O +based VBN O +in IN O +Tokyo NNP B +. . O + +Mr. NNP B +Wertheimer NNP I +, , O +38 CD B +years NNS I +old JJ O +, , O +had VBD O +been VBN O +a DT B +first JJ I +vice NN I +president NN I +in IN O +the DT B +industrial JJ I +group NN I +in IN O +investment NN B +banking NN I +. . O + +He PRP B +succeeds VBZ O +Everett NNP B +Meyers NNP I +, , O +who WP B +resigned VBD O +in IN O +May NNP B +. . O + +This DT B +is VBZ O +written VBN O +to TO O +correct VB O +a DT B +misquotation NN I +in IN O +your PRP$ B +Oct. NNP I +3 CD I +article NN I +`` `` O +Deaths NNP B +From IN O +Advanced NNP B +Colon NNP I +Cancer NNP I +Can MD O +Be VB O +Reduced NNP O +by IN O +Using VBG O +Two CD B +Drugs NNS I +. . O +'' '' O + +In IN O +this DT B +article NN I +, , O +I PRP B +was VBD O +alleged VBN O +to TO O +have VB O +said VBD O +, , O +`` `` O +Any DT B +patient NN I +with IN O +high-risk JJ B +colon NN I +cancer NN I +is VBZ O +really RB O +getting VBG O +short JJ B +shrift NN I +if IN O +he PRP B +'s VBZ O +not RB O +getting VBG O +this DT B +therapy NN I +. . O +'' '' O + +I PRP B +did VBD O +n't RB O +say VB O +this DT B +, , O +and CC O +I PRP B +'m VBP O +totally RB O +opposed VBN O +to TO O +the DT B +philosophy NN I +expressed VBN O +by IN O +the DT B +quote NN I +. . O + +I PRP B +have VBP O +not RB O +offered VBN O +and CC O +will MD O +not RB O +offer VB O +routine JJ B +therapy NN I +with IN O +the DT B +two CD I +drugs NNS I +, , O +levamisole NN B +and CC I +5-fluorouracil JJ I +, , O +to TO O +any DT B +of IN O +my PRP$ B +colon-cancer NN I +patients NNS I +. . O + +With IN O +this DT B +treatment NN I +we PRP B +have VBP O +reduced VBN O +deaths NNS B +in IN O +high-risk JJ B +colon NN I +cancer NN I +by IN O +one-third NN B +-- : O +but CC O +this DT B +leaves VBZ O +the DT B +two-thirds NNS I +who WP B +are VBP O +dying VBG O +of IN O +cancer NN B +. . O + +This DT B +is VBZ O +not RB O +nearly RB O +good JJ O +enough RB O +. . O + +I PRP B +believe VBP O +any DT B +physician NN I +who WP B +truly RB O +cares VBZ O +about IN O +cancer NN B +patients NNS I +, , O +both DT B +today NN I +and CC I +tomorrow NN I +, , O +should MD O +offer VB O +the DT B +hope NN I +of IN O +something NN B +better JJR O +than IN O +that DT B +. . O + +My PRP$ B +statement NN I +, , O +read VB O +verbatim RB O +from IN O +a DT B +printed VBN I +text NN I +available JJ O +to TO O +all DT B +reporters NNS I +attending VBG O +the DT B +National NNP I +Cancer NNP I +Institute NNP I +news NN I +conference NN I +, , O +was VBD O +the DT B +following VBG I +: : O +`` `` O +New NNP B +clinical JJ I +trials NNS I +are VBP O +already RB O +in IN O +operation NN B +seeking VBG O +to TO O +improve VB O +these DT B +results NNS I +. . O + +These DT B +research NN I +protocols NNS I +offer VBP O +to TO O +the DT B +patient NN I +not RB O +only RB O +the DT B +very RB I +best JJS I +therapy NN I +which WDT B +we PRP B +have VBP O +established VBN O +today NN B +but CC O +also RB O +the DT B +hope NN I +of IN O +something NN B +still RB O +better JJR O +. . O + +I PRP B +feel VBP O +any DT B +patient NN I +with IN O +high-risk JJ B +cancer NN I +is VBZ O +getting VBG O +short JJ B +shrift NN I +if IN O +he PRP B +is VBZ O +not RB O +offered VBN O +this DT B +opportunity NN I +. . O +'' '' O + +We PRP B +have VBP O +very RB B +exciting JJ I +prospects NNS I +for IN O +far RB B +more RBR I +impressive JJ I +advances NNS I +in IN O +the DT B +treatment NN I +of IN O +colon NN B +cancer NN I +during IN O +the DT B +years NNS I +immediately RB O +ahead RB O +. . O + +This DT B +hope NN I +, , O +however RB O +, , O +will MD O +never RB O +be VB O +realized VBN O +if IN O +we PRP B +use VBP O +levamisole NN B +and CC I +5-fluorouracil JJ I +as IN O +a DT B +stopping VBG I +point NN I +. . O + +Charles NNP B +G. NNP I +Moertel NNP I +M.D NNP I +. . I +Mayo NNP B +Clinic NNP I +Rochester NNP B +, , O +Minn NNP B +. . O + +The DT B +oil NN I +and CC I +auto NN I +industries NNS I +, , O +united VBN O +in IN O +their PRP$ B +dislike NN I +of IN O +President NNP B +Bush NNP I +'s POS B +proposal NN I +for IN O +cars NNS B +that WDT B +run VBP O +on IN O +alternative NN B +fuels NNS I +, , O +announced VBD O +a DT B +joint JJ I +research NN I +program NN I +that WDT B +could MD O +turn VB O +up IN O +a DT B +cleaner-burning JJ I +gasoline NN I +. . O + +Officials NNS B +of IN O +the DT B +Big NNP I +Three CD I +auto NN I +makers NNS I +and CC O +14 CD B +petroleum NN I +companies NNS I +said VBD O +they PRP B +are VBP O +setting VBG O +out IN O +to TO O +find VB O +the DT B +most RBS I +cost-effective JJ I +fuel NN I +for IN O +reducing VBG O +cities NNS B +' POS B +air-pollution NN I +problems NNS I +, , O +with IN O +no DT B +bias NN I +toward IN O +any DT B +fuel NN I +in IN O +particular NN B +. . O + +However RB O +, , O +their PRP$ B +search NN I +notably RB O +wo MD O +n't RB O +include VB O +natural JJ B +gas NN I +or CC O +pure JJ B +methanol NN I +-- : O +the DT B +two CD I +front-running JJ I +alternative NN I +fuels NNS I +-- : O +in IN O +tests NNS B +to TO O +be VB O +completed VBN O +by IN O +next JJ B +summer NN I +. . O + +Instead RB O +, , O +the DT B +tests NNS I +will MD O +focus VB O +heavily RB O +on IN O +new JJ B +blends NNS I +of IN O +gasoline NN B +, , O +which WDT B +are VBP O +still RB O +undeveloped JJ O +but CC O +which WDT B +the DT B +petroleum NN I +industry NN I +has VBZ O +been VBN O +touting VBG O +as IN O +a DT B +solution NN I +for IN O +automobile NN B +pollution NN I +that WDT B +is VBZ O +choking VBG O +urban JJ B +areas NNS I +. . O + +Environmentalists NNS B +criticized VBD O +the DT B +program NN I +as IN O +merely RB B +a DT I +public-relations NNS I +attempt VBP I +to TO O +head VB O +off IN O +a DT B +White NNP I +House NNP I +proposal NN I +to TO O +require VB O +a DT B +million CD I +cars NNS I +a DT B +year NN I +that WDT B +run VBP O +on IN O +cleaner-burning JJ B +fuels NNS I +by IN O +1997 CD B +. . O + +While IN O +major JJ B +oil NN I +companies NNS I +have VBP O +been VBN O +experimenting VBG O +with IN O +cleaner-burning JJ B +gasoline NN I +blends NNS I +for IN O +years NNS B +, , O +only RB B +Atlantic NNP I +Richfield NNP I +Co. NNP I +is VBZ O +now RB O +marketing VBG O +a DT B +lower-emission NN I +gasoline NN I +for IN O +older JJR B +cars NNS I +currently RB O +running VBG O +on IN O +leaded JJ B +fuel NN I +. . O + +The DT B +initial JJ I +$ $ I +11 CD I +million CD I +research NN I +program NN I +will MD O +conduct VB O +the DT B +most RBS I +extensive JJ I +testing NN I +to TO O +date VB B +of IN O +reformulated VBN B +gasolines NNS I +, , O +said VBD O +Joe NNP B +Colucci NNP I +, , O +head NN B +of IN O +fuels NNS B +and CC I +lubricants NNS I +at IN O +General NNP B +Motors NNPS I +Corp. NNP I +research NN I +laboratories NNS I +. . O + +It PRP B +will MD O +compare VB O +21 CD B +different JJ I +blends NNS I +of IN O +gasolines NNS B +with IN O +three CD B +mixtures NNS I +of IN O +up IN B +to TO I +85 CD I +% NN I +methanol NN I +. . O + +A DT B +second JJ I +phase NN I +of IN O +research NN B +, , O +which WDT B +is VBZ O +still RB O +being VBG O +planned VBN O +, , O +will MD O +test VB O +reformulated VBN B +gasolines NNS I +on IN O +newer JJR B +engine NN I +technologies NNS I +now RB O +being VBG O +developed VBN O +for IN O +use NN B +in IN O +1992 CD B +or CC I +1993 CD I +cars NNS I +. . O + +There EX B +was VBD O +no DT B +cost NN I +estimate NN I +for IN O +the DT B +second JJ I +phase NN I +. . O + +`` `` O +The DT B +whole JJ I +idea NN I +here RB I +is VBZ O +the DT B +automobile NN I +and CC I +oil NN I +companies NNS I +have VBP O +joint JJ B +customers NNS I +, , O +'' '' O +said VBD O +Keith NNP B +McHenry NNP I +, , O +a DT B +senior JJ I +vice NN I +president NN I +of IN O +technology NN B +at IN O +Amoco NNP B +Corp NNP I +. . O + +`` `` O +And CC O +we PRP B +are VBP O +looking VBG O +for IN O +the DT B +most RBS I +cost-effective JJ I +way NN I +to TO O +clean VB O +up IN O +the DT B +air NN I +. . O +'' '' O + +But CC O +David NNP B +Hawkins NNP I +, , O +an DT B +environmental JJ I +lawyer NN I +with IN O +the DT B +Natural NNP I +Resources NNP I +Defense NNP I +Council NNP I +, , O +said VBD O +the DT B +research NN I +appears VBZ O +merely RB O +to TO O +be VB O +a DT B +way NN I +to TO O +promote VB O +reformulated VBN B +gasoline NN I +. . O + +Oil NNP B +and CC I +auto NN I +companies NNS I +supported VBD O +a DT B +move NN I +on IN O +Capitol NNP B +Hill NNP I +last JJ B +week NN I +to TO O +gut VB O +Mr. NNP B +Bush NNP I +'s POS B +plans NNS I +to TO O +require VB O +auto NN B +makers NNS I +to TO O +begin VB O +selling VBG O +alternative-fueled JJ B +cars NNS I +by IN O +1995 CD B +. . O + +Instead RB O +, , O +a DT B +House NNP I +subcommittee NN I +adopted VBD O +a DT B +clean-fuels NNS I +program VBP I +that WDT B +specifically RB O +mentions VBZ O +reformulated VBN B +gasoline NN I +as IN O +an DT B +alternative NN I +. . O + +The DT B +Bush NNP I +administration NN I +has VBZ O +said VBD O +it PRP B +will MD O +try VB O +to TO O +resurrect VB O +its PRP$ B +plan NN I +when WRB O +the DT B +House NNP I +Energy NNP I +and CC I +Commerce NNP I +Committee NNP I +takes VBZ O +up IN O +a DT B +comprehensive JJ I +clean-air JJ I +bill NN I +. . O + +William NNP B +Seidman NNP I +, , O +chairman NN B +of IN O +the DT B +Federal NNP I +Deposit NNP I +Insurance NNP I +Corp. NNP I +, , O +said VBD O +Lincoln NNP B +Savings NNP I +& CC I +Loan NNP I +Association NNP I +should MD O +have VB O +been VBN O +seized VBN O +by IN O +the DT B +government NN I +in IN O +1986 CD B +to TO O +contain VB O +losses NNS B +that IN B +he PRP B +estimated VBD O +will MD O +cost VB O +taxpayers NNS B +as RB B +much JJ I +as IN I +$ $ I +2 CD I +billion CD I +. . O + +Mr. NNP B +Seidman NNP I +, , O +who WP B +has VBZ O +been VBN O +the DT B +nation NN I +'s POS B +top JJ I +bank NN I +regulator NN I +, , O +inherited VBD O +the DT B +problems NNS I +of IN O +Lincoln NNP B +, , O +based VBN O +in IN O +Irvine NNP B +, , O +Calif. NNP B +, , O +after IN O +his PRP$ B +regulatory JJ I +role NN I +was VBD O +expanded VBN O +by IN O +the DT B +new JJ I +savings-and-loan JJ I +bailout NN I +law NN I +. . O + +He PRP B +made VBD O +his PRP$ B +comments NNS I +before IN O +House NNP B +Banking NNP I +Committee NNP I +hearings NNS I +to TO O +investigate VB O +what WP B +appears VBZ O +to TO O +be VB O +the DT B +biggest JJS I +thrift NN I +disaster NN I +in IN O +a DT B +scandal-ridden JJ I +industry NN I +. . O + +The DT B +inquiry NN I +also RB O +will MD O +cover VB O +the DT B +actions NNS I +of IN O +Charles NNP B +Keating NNP I +Jr. NNP I +, , O +who WP B +is VBZ O +chairman NN B +of IN O +American NNP B +Continental NNP I +Corp. NNP I +, , O +Lincoln NNP B +'s POS B +parent NN I +, , O +and CC O +who WP B +contributed VBD O +heavily RB O +to TO O +several JJ B +U.S. NNP I +senators NNS I +. . O + +Mr. NNP B +Seidman NNP I +told VBD O +the DT B +committee NN I +that IN O +the DT B +Resolution NNP I +Trust NNP I +Corp. NNP I +, , O +the DT B +agency NN I +created VBN O +to TO O +sell VB O +sick JJ B +thrifts NNS I +, , O +has VBZ O +studied VBN O +Lincoln NNP B +'s POS B +examination NN I +reports NNS I +by IN O +former JJ B +regulators NNS I +dating VBG O +back RB O +to TO O +1986 CD B +. . O + +`` `` O +My PRP$ B +staff NN I +indicated VBD O +that WDT O +had VBD O +we PRP B +made VBD O +such JJ B +findings NNS I +in IN O +one CD B +of IN O +our PRP$ B +own JJ I +institutions NNS I +, , O +we PRP B +would MD O +have VB O +sought VBN O +an DT B +immediate JJ I +cease-and-desist JJ I +order NN I +to TO O +stop VB O +the DT B +hazardous JJ I +operations NNS I +, , O +'' '' O +Mr. NNP B +Seidman NNP I +said VBD O +. . O + +When WRB O +Lincoln NNP B +was VBD O +seized VBN O +by IN O +the DT B +government NN I +, , O +for IN O +example NN B +, , O +15 CD B +% NN I +of IN O +its PRP$ B +loans NNS I +, , O +or CC O +$ $ B +250 CD I +million CD I +, , O +were VBD O +to TO O +borrowers NNS B +who WP B +were VBD O +buying VBG O +real JJ B +estate NN I +from IN O +one CD B +of IN O +American NNP B +Continental NNP I +'s POS B +50 CD I +other JJ I +subsidiaries NNS I +, , O +according VBG O +to TO O +Mr. NNP B +Seidman NNP I +. . O + +But CC O +the DT B +government NN I +did VBD O +n't RB O +step VB O +in IN O +until IN O +six CD B +months NNS I +ago RB O +, , O +when WRB O +thrift NN B +officials NNS I +put VBP O +Lincoln NNP B +into IN O +conservatorship NN B +-- : O +the DT B +day NN I +after IN O +American NNP B +Continental NNP I +filed VBD O +for IN O +Chapter NN B +11 CD I +bankruptcy NN I +protection NN I +from IN O +creditors NNS B +. . O + +The DT B +bankruptcy NN I +filing NN I +, , O +the DT B +government NN I +has VBZ O +charged VBN O +in IN O +a DT B +$ $ I +1.1 CD I +billion CD I +civil JJ I +lawsuit NN I +, , O +was VBD O +part NN B +of IN O +a DT B +pattern NN I +to TO O +shift VB O +insured VBN B +deposits NNS I +to TO O +the DT B +parent NN I +company NN I +, , O +which WDT B +used VBD O +the DT B +deposits NNS I +as IN O +a DT B +cache NN I +for IN O +real-estate NN B +deals NNS I +. . O + +The DT B +deposits NNS I +that WDT B +have VBP O +been VBN O +transferred VBN O +to TO O +other JJ B +subsidiaries NNS I +are VBP O +now RB O +under IN O +the DT B +jurisdiction NN I +of IN O +the DT B +bankruptcy NN I +court NN I +. . O + +`` `` O +I PRP B +think VBP O +it PRP B +'s VBZ O +fairly RB O +clear JJ O +-LCB- ( O +Mr. NNP B +Keating NNP I +-RCB- ) O +knew VBD O +, , O +'' '' O +that IN O +regulators NNS B +were VBD O +set VBN O +to TO O +seize VB O +Lincoln NNP B +, , O +Mr. NNP B +Seidman NNP I +said VBD O +. . O + +Further JJ B +investigation NN I +, , O +he PRP B +said VBD O +, , O +may MD O +result VB O +in IN O +further JJ B +actions NNS I +against IN O +Lincoln NNP B +'s POS B +executives NNS I +, , O +said VBD O +Mr. NNP B +Seidman NNP I +, , O +`` `` O +including VBG O +fraud NN B +actions NNS I +. . O +'' '' O + +Mr. NNP B +Keating NNP I +, , O +for IN O +his PRP$ B +part NN I +, , O +has VBZ O +filed VBN O +suit NN B +alleging VBG O +that IN O +regulators NNS B +unlawfully RB O +seized VBN O +the DT B +thrift NN I +. . O + +Leonard NNP B +Bickwit NNP I +, , O +an DT B +attorney NN I +in IN O +Washington NNP B +for IN O +Mr. NNP B +Keating NNP I +, , O +declined VBD O +to TO O +comment VB O +on IN O +the DT B +hearings NNS I +, , O +except VB O +to TO O +say VB O +, , O +`` `` O +We PRP B +will MD O +be VB O +responding VBG O +comprehensively RB O +in IN O +several JJ B +forums NNS I +to TO O +each DT B +of IN O +these DT B +allegations NNS I +at IN O +the DT B +appropriate JJ I +time NN I +. . O +'' '' O + +Lincoln NNP B +'s POS B +treatment NN I +by IN O +former JJ B +thrift NN I +regulators NNS I +, , O +in IN O +an DT B +agency NN I +disbanded VBN O +by IN O +the DT B +new JJ I +law NN I +, , O +has VBZ O +proved VBN O +embarrassing JJ O +for IN O +five CD B +senators NNS I +who WP B +received VBD O +thousands NNS B +of IN O +dollars NNS B +in IN O +campaign NN B +contributions NNS I +from IN O +Mr. NNP B +Keating NNP I +. . O + +Mr. NNP B +Seidman NNP I +said VBD O +yesterday NN B +, , O +for IN O +example NN B +, , O +that IN O +Sen. NNP B +Dennis NNP I +DeConcini NNP I +-LRB- ( O +D. NNP B +, , O +Ariz. NNP B +-RRB- ) O +, , O +who WP B +received VBD O +$ $ B +48,100 CD I +in IN O +contributions NNS B +from IN O +Mr. NNP B +Keating NNP I +, , O +phoned VBD O +Mr. NNP B +Seidman NNP I +to TO O +request VB O +that IN O +he PRP B +push VBP O +for IN O +a DT B +sale NN I +of IN O +Lincoln NNP B +before IN O +it PRP B +would MD O +be VB O +seized VBN O +. . O + +After IN O +the DT B +government NN I +lawsuit NN I +was VBD O +filed VBN O +against IN O +Lincoln NNP B +, , O +Sen. NNP B +DeConcini NNP I +returned VBD O +the DT B +campaign NN I +contributions NNS I +. . O + +The DT B +senator NN I +'s POS B +spokesman NN I +said VBD O +yesterday NN B +that IN O +he PRP B +pushed VBD O +for IN O +the DT B +sale NN I +of IN O +Lincoln NNP B +because IN O +`` `` O +hundreds NNS B +of IN O +Arizona NNP B +jobs NNS I +-LCB- ( O +at IN O +Lincoln NNP B +-RCB- ) O +were VBD O +on IN O +the DT B +line NN I +. . O +'' '' O + +Senate NNP B +Banking NNP I +Committee NNP I +Chairman NNP I +Donald NNP I +Riegle NNP I +-LRB- ( O +D. NNP B +, , O +Mich NNP B +. . I +-RRB- ) O +has VBZ O +also RB O +returned VBN O +contributions NNS B +he PRP B +received VBD O +from IN O +Mr. NNP B +Keating NNP I +a DT B +year NN I +ago RB O +. . O + +Sens. NNP O +John NNP O +Glenn NNP O +-LRB- ( O +D. NNP B +, , O +Ohio NNP B +-RRB- ) O +, , O +John NNP O +McCain NNP O +, , O +-LRB- ( O +R. NNP B +, , O +Ariz. NNP B +-RRB- ) O +and CC O +Alan NNP O +Cranston NNP O +-LRB- ( O +D. NNP B +, , O +Calif. NNP B +-RRB- ) O +also RB O +received VBD O +substantial JJ B +contributions NNS I +from IN O +Mr. NNP B +Keating NNP I +and CC O +sought VBD O +to TO O +intervene VB O +on IN O +behalf NN B +of IN O +Lincoln NNP B +. . O + +House NNP B +Banking NNP I +Committee NNP I +Chairman NNP I +Henry NNP I +Gonzalez NNP I +-LRB- ( O +D. NNP B +, , O +Texas NNP B +-RRB- ) O +said VBD O +Sen. NNP B +Cranston NNP I +volunteered VBD O +to TO O +appear VB O +before IN O +the DT B +House NNP I +committee NN I +, , O +if IN O +necessary JJ O +. . O + +But CC O +a DT B +committee NN I +staff NN I +member NN I +said VBD O +the DT B +panel NN I +is VBZ O +unlikely JJ O +to TO O +pursue VB O +closely RB O +the DT B +role NN I +of IN O +the DT B +senators NNS I +. . O + +At IN O +the DT B +hearing NN I +, , O +Mr. NNP B +Seidman NNP I +said VBD O +the DT B +RTC NNP I +has VBZ O +already RB O +pumped VBN O +$ $ B +729 CD I +million CD I +into IN O +Lincoln NNP B +for IN O +liquidity NN B +. . O + +He PRP B +also RB O +held VBD O +out IN O +little JJ B +hope NN I +of IN O +restitution NN B +for IN O +purchasers NNS B +of IN O +$ $ B +225 CD I +million CD I +in IN O +American NNP B +Continental NNP I +subordinated VBD I +debt NN I +. . O + +Some DT B +of IN O +those DT B +debtholders NNS I +have VBP O +filed VBN O +a DT B +suit NN I +, , O +saying VBG O +they PRP B +believed VBD O +they PRP B +were VBD O +buying VBG O +government-insured JJ B +certificates NNS I +of IN O +deposit NN B +. . O + +`` `` O +We PRP B +have VBP O +no DT B +plans NNS I +at IN O +this DT B +time NN I +to TO O +pay VB O +off IN O +those DT B +notes NNS I +, , O +'' '' O +he PRP B +said VBD O +. . O + +Eastern NNP B +Airlines NNPS I +' POS B +creditors NNS I +committee NN I +, , O +unhappy JJ O +with IN O +the DT B +carrier NN I +'s POS B +plans NNS I +for IN O +emerging VBG O +from IN O +bankruptcy-law NN B +proceedings NNS I +, , O +asked VBD O +its PRP$ B +own JJ I +experts NNS I +to TO O +devise VB O +alternate JJ B +approaches NNS I +to TO O +a DT B +reorganization NN I +. . O + +Representatives NNS B +of IN O +the DT B +accounting NN I +firm NN I +of IN O +Ernst NNP B +& CC I +Young NNP I +and CC O +the DT B +securities NNS I +firm NN I +of IN O +Goldman NNP B +, , I +Sachs NNP I +& CC I +Co. NNP I +, , O +hired VBN O +by IN O +creditors NNS B +to TO O +consult VB O +on IN O +Eastern NNP B +'s POS B +financial JJ I +plans NNS I +, , O +told VBD O +the DT B +committee NN I +in IN O +a DT B +private JJ I +meeting NN I +yesterday NN B +that IN O +Eastern NNP B +'s POS B +latest JJS I +plan NN I +to TO O +emerge VB O +from IN O +bankruptcy-law NN B +protection NN I +is VBZ O +far RB O +riskier JJR O +than IN O +an DT B +earlier RBR I +one CD I +which WDT B +won VBD O +the DT B +creditors NNS I +' POS B +approval NN I +. . O + +According VBG O +to TO O +one CD B +person NN I +present JJ O +at IN O +the DT B +meeting NN I +, , O +Eastern NNP B +'s POS B +new JJ I +plan NN I +is VBZ O +financially RB O +`` `` O +overly RB O +optimistic JJ O +. . O +'' '' O + +Asked VBN O +about IN O +the DT B +consultants NNS I +' POS B +reports NNS I +, , O +an DT B +Eastern NNP I +spokeswoman NN I +said VBD O +`` `` O +we PRP B +totally RB O +disagree VBP O +. . O +'' '' O + +She PRP B +said VBD O +they PRP B +have VBP O +`` `` O +oversimplified VBN O +and CC O +made VBD O +some DT B +erroneous JJ I +assumptions NNS I +that WDT B +make VBP O +their PRP$ B +analysis NN I +completely RB O +off-base JJ O +. . O +'' '' O + +At IN O +a DT B +later JJ I +news NN I +conference NN I +here RB I +, , O +Frank NNP B +Lorenzo NNP I +, , O +chairman NN B +of IN O +Eastern NNP B +'s POS B +parent NN I +Texas NNP I +Air NNP I +Corp. NNP I +, , O +said VBD O +Eastern NNP B +was VBD O +exceeding VBG O +its PRP$ B +goals NNS I +for IN O +getting VBG O +back RB O +into IN O +operation NN B +and CC O +predicted VBD O +it PRP B +would MD O +emerge VB O +from IN O +Chapter NN B +11 CD I +protection NN I +from IN O +creditors NNS B +early JJ B +next JJ I +year NN I +, , O +operating VBG O +with IN O +more JJR B +service NN I +than IN O +it PRP B +originally RB O +had VBD O +scheduled VBN O +. . O + +He PRP B +insisted VBD O +, , O +as IN O +he PRP B +has VBZ O +before RB O +, , O +that IN O +creditors NNS B +would MD O +be VB O +paid VBN O +in IN O +full JJ O +under IN O +the DT B +plan NN I +. . O + +Mr. NNP B +Lorenzo NNP I +made VBD O +no DT B +mention NN I +of IN O +creditors NNS B +' POS B +negative JJ I +response NN I +to TO O +his PRP$ B +plan NN I +. . O + +`` `` O +We PRP B +'re VBP O +in IN O +the DT B +process NN I +of IN O +discussing VBG O +an DT B +amended VBN I +plan NN I +with IN O +the DT B +creditors NNS I +and CC O +anticipate VB O +filing NN O +that WDT B +amended VBD I +plan NN I +shortly RB O +, , O +'' '' O +Mr. NNP B +Lorenzo NNP I +told VBD O +reporters NNS B +. . O + +`` `` O +We PRP B +'re VBP O +meeting VBG O +and CC O +surpassing VBG O +our PRP$ B +goals NNS I +, , O +'' '' O +he PRP B +added VBD O +. . O + +In IN O +July NNP B +, , O +Eastern NNP B +and CC O +its PRP$ B +creditors NNS I +agreed VBD O +on IN O +a DT B +reorganization NN I +plan NN I +that WDT B +called VBD O +for IN O +Eastern NNP B +to TO O +sell VB O +$ $ B +1.8 CD I +billion CD I +in IN O +assets NNS B +and CC O +to TO O +emerge VB O +from IN O +bankruptcy-law NN B +protection NN I +at IN O +two-thirds NNS B +its PRP$ I +former JJ I +size NN I +. . O + +But CC O +after IN O +selling VBG O +off IN O +pieces NNS B +such JJ O +as IN O +its PRP$ B +East NNP I +Coast NNP I +shuttle NN I +, , O +its PRP$ B +Philadelphia NNP I +hub NN I +and CC O +various JJ B +planes NNS I +, , O +Eastern NNP B +hit VBD O +a DT B +stumbling VBG I +block NN I +. . O + +It PRP B +could MD O +n't RB O +sell VB O +its PRP$ B +South JJ I +American JJ I +routes NNS I +, , O +one CD B +of IN O +the DT B +major JJ I +assets NNS I +marked VBN O +for IN O +disposal NN B +. . O + +Those DT B +routes NNS I +, , O +valued VBN O +by IN O +the DT B +creditors NNS I +' POS B +professionals NNS I +at IN O +about RB B +$ $ I +400 CD I +million CD I +, , O +were VBD O +to TO O +be VB O +sold VBN O +to TO O +AMR NNP B +Corp. NNP I +'s POS B +American NNP I +Airlines NNPS I +. . O + +A DT B +last-minute JJ I +snag NN I +in IN O +negotiations NNS B +with IN O +AMR NNP B +, , O +over IN O +an DT B +unrelated JJ I +lawsuit NN I +between IN O +American NNP B +and CC O +another DT B +Texas NNP I +Air NNP I +unit NN I +, , O +caused VBD O +the DT B +deal NN I +to TO O +collapse VB O +. . O + +Eastern NNP B +ultimately RB O +decided VBD O +it PRP B +would MD O +have VB O +to TO O +keep VB O +and CC O +operate VB O +the DT B +routes NNS I +itself PRP B +, , O +which WDT B +would MD O +leave VB O +it PRP B +with IN O +less JJR B +cash NN I +for IN O +its PRP$ B +reorganization NN I +. . O + +It PRP B +also RB O +would MD O +leave VB O +Eastern NNP B +a DT B +bigger JJR I +carrier NN I +than IN O +the DT B +scaled-down JJ I +one CD I +proposed VBN O +under IN O +the DT B +initial JJ I +plan NN I +. . O + +Those DT B +changes NNS I +in IN O +its PRP$ B +condition NN I +meant VBD O +the DT B +reorganization NN I +plan NN I +previously RB O +presented VBD O +to TO O +creditors NNS B +would MD O +have VB O +to TO O +be VB O +revamped VBN O +. . O + +Since IN O +then RB B +, , O +Eastern NNP B +has VBZ O +been VBN O +negotiating VBG O +with IN O +creditors NNS B +over IN O +revisions NNS B +, , O +but CC O +the DT B +creditors NNS I +committee NN I +has VBZ O +been VBN O +having VBG O +problems NNS B +with IN O +the DT B +revisions NNS I +. . O + +The DT B +committee NN I +has VBZ O +two CD B +groups NNS I +of IN O +experts NNS B +it PRP B +calls VBZ O +on IN O +to TO O +analyze VB O +Eastern NNP B +'s POS B +plans NNS I +. . O + +Both DT B +said VBD O +the DT B +new JJ I +plan NN I +would MD O +n't RB O +work VB O +. . O + +Ernst NNP B +& CC I +Young NNP I +said VBD O +Eastern NNP B +'s POS B +plans NNS I +will MD O +miss VB O +its PRP$ B +projections NNS I +of IN O +earnings NNS B +before IN O +interest NN B +, , I +tax NN I +and CC I +depreciation NN I +by IN O +$ $ B +100 CD I +million CD I +, , O +and CC O +that IN O +Eastern NNP B +'s POS B +plan NN I +presented VBD O +no DT B +comfort NN I +level NN I +, , O +according VBG O +to TO O +a DT B +source NN I +present JJ O +at IN O +yesterday NN B +'s POS B +session NN I +. . O + +Experts NNS B +from IN O +Goldman NNP B +Sachs NNP I +estimated VBD O +Eastern NNP B +would MD O +miss VB O +the DT B +same JJ I +mark NN I +by IN O +$ $ B +120 CD I +million CD I +to TO I +$ $ I +135 CD I +million CD I +, , O +the DT B +source NN I +said VBD O +. . O + +The DT B +experts NNS I +said VBD O +they PRP B +expected VBD O +Eastern NNP B +would MD O +have VB O +to TO O +issue VB O +new JJ B +debt NN I +to TO O +cover VB O +its PRP$ B +costs NNS I +, , O +and CC O +that IN O +it PRP B +would MD O +generate VB O +far RB B +less JJR I +cash NN I +than IN O +anticipated VBN O +. . O + +Other JJ B +costs NNS I +also RB O +would MD O +increase VB O +, , O +including VBG O +maintenance NN B +, , O +because IN O +Eastern NNP B +has VBZ O +an DT B +older JJR I +fleet NN I +. . O + +At IN O +the DT B +news NN I +conference NN I +, , O +Mr. NNP B +Lorenzo NNP I +and CC O +Eastern NNP B +President NNP I +Phil NNP I +Bakes NNP I +presented VBD O +a DT B +far RB I +rosier JJR I +assessment NN I +. . O + +Flanked VBN O +by IN O +flight NN B +attendants NNS I +, , O +pilots NNS B +and CC O +gate NN B +agents NNS I +dressed VBN O +in IN O +spiffy JJ B +new JJ I +blue JJ I +uniforms NNS I +, , O +they PRP B +said VBD O +Eastern NNP B +has VBZ O +exceeded VBN O +its PRP$ B +operational JJ I +goals NNS I +and CC O +is VBZ O +filling VBG O +its PRP$ B +seats NNS I +. . O + +Starting VBG O +next JJ B +month NN I +, , O +Eastern NNP B +will MD O +begin VB O +flying VBG O +775 CD B +flights NNS I +daily JJ O +instead RB O +of IN O +the DT B +previously RB I +announced VBN I +700 CD I +, , O +they PRP B +said VBD O +. . O + +Mr. NNP B +Bakes NNP I +declined VBD O +to TO O +give VB O +out IN O +Eastern NNP B +'s POS B +daily JJ I +losses NNS I +, , O +but CC O +said VBD O +he PRP B +did VBD O +n't RB O +expect VB O +Eastern NNP B +would MD O +have VB O +to TO O +dip VB O +into IN O +the DT B +cash NN I +from IN O +asset NN B +sales NNS I +currently RB O +held VBN O +in IN O +escrow NN B +. . O + +These DT B +accounts NNS I +hold VBP O +several JJ B +hundred CD I +million CD I +dollars NNS I +, , O +primarily RB O +from IN O +asset NN B +sales NNS I +. . O + +The DT B +plan NN I +Eastern NNP B +hopes VBZ O +to TO O +pursue VB O +, , O +he PRP B +said VBD O +, , O +calls VBZ O +for IN O +Eastern NNP B +to TO O +have VB O +$ $ B +390 CD I +million CD I +in IN O +cash NN B +by IN O +year NN B +'s POS B +end NN I +. . O + +Both DT O +he PRP B +and CC O +Mr. NNP B +Lorenzo NNP I +predicted VBD O +that DT B +plan NN I +might MD O +be VB O +confirmed VBN O +in IN O +January NNP B +. . O + +As IN O +to TO O +negotiations NNS B +with IN O +creditors NNS B +, , O +Mr. NNP B +Lorenzo NNP I +said VBD O +in IN O +remarks NNS B +after IN O +the DT B +conference NN I +`` `` O +we PRP B +'ll MD O +have VB O +to TO O +see VB O +how WRB O +they PRP B +-LCB- ( O +talks NNS B +-RCB- ) O +come VB O +along IN O +. . O +'' '' O + +However RB O +, , O +he PRP B +added VBD O +, , O +`` `` O +it PRP B +'s VBZ O +not RB O +a DT B +requirement NN I +that IN O +the DT B +plan NN I +be VB O +accepted VBN O +by IN O +creditors NNS B +. . O + +It PRP B +must MD O +be VB O +accepted VBN O +by IN O +the DT B +court NN I +. . O +'' '' O + +Under IN O +bankruptcy NN B +law NN I +, , O +Eastern NNP B +has VBZ O +exclusive JJ B +rights NNS I +for IN O +a DT B +certain JJ I +period NN I +to TO O +develop VB O +its PRP$ B +own JJ I +reorganization NN I +plan NN I +. . O + +That DT B +deadline NN I +has VBZ O +been VBN O +extended VBN O +once RB O +and CC O +could MD O +be VB O +extended VBN O +again RB O +. . O + +If IN O +Eastern NNP B +can MD O +get VB O +creditor NN B +support NN I +, , O +court NN B +confirmation NN I +of IN O +its PRP$ B +plan NN I +could MD O +be VB O +relatively RB O +swift JJ O +. . O + +But CC O +creditors NNS B +are VBP O +free JJ O +to TO O +press VB O +for IN O +court NN B +approval NN I +of IN O +their PRP$ B +own JJ I +plan NN I +, , O +or CC O +the DT B +court NN I +could MD O +ignore VB O +both DT B +sides NNS I +and CC O +draw VB O +its PRP$ B +own JJ I +. . O + +In IN O +any DT B +event NN I +, , O +some DT B +people NNS I +familiar JJ O +with IN O +the DT B +case NN I +question NN O +whether IN O +the DT B +court NN I +will MD O +act VB O +by IN O +January NNP B +as IN O +forecast NN O +by IN O +Mr. NNP B +Lorenzo NNP I +and CC O +Mr. NNP B +Bakes NNP I +. . O + +Eastern NNP B +sought VBD O +bankruptcy-law NN B +protection NN I +a DT B +few JJ I +days NNS I +after IN O +a DT B +crippling JJ I +strike NN I +began VBD O +March NNP B +4 CD I +. . O + +Mr. NNP B +Lorenzo NNP I +told VBD O +reporters NNS B +the DT B +reorganization NN I +Eastern NNP B +is VBZ O +pursuing VBG O +would MD O +create VB O +a DT B +carrier NN I +85 CD B +% NN I +to TO I +90 CD I +% NN I +of IN O +the DT B +size NN I +of IN O +the DT B +pre-bankruptcy NN I +Eastern NNP I +. . O + +He PRP B +projected VBD O +it PRP B +would MD O +be VB O +operating VBG O +about IN B +1,000 CD I +flights NNS I +a DT B +day NN I +by IN O +late JJ B +spring NN I +, , O +only RB O +slightly RB O +fewer JJR O +than IN O +the DT B +carrier NN I +'s POS B +old JJ I +volume NN I +of IN O +1,050 CD B +a DT B +day NN I +. . O + +HOPES NNS B +OF IN O +SIMPLIFYING VBG O +the DT B +corporate JJ I +minimum JJ I +tax NN I +before IN O +1990 CD B +are VBP O +weakening VBG O +. . O + +The DT B +method NN I +of IN O +calculating VBG O +the DT B +20 CD I +% NN I +tax NN I +, , O +paid VBN O +if IN O +it PRP B +exceeds VBZ O +tax NN B +figured VBD O +the DT B +regular JJ I +way NN I +, , O +is VBZ O +due JJ O +for IN O +a DT B +change NN I +in IN O +1990 CD B +, , O +thanks VBZ B +to TO O +1986 CD B +'s POS B +tax NN I +act NN I +. . O + +But CC O +most RBS B +experts NNS I +agree VBP O +that IN O +the DT B +concept NN I +that WDT B +is VBZ O +to TO O +be VB O +introduced VBN O +drags VBZ O +in IN O +great JJ B +complexity NN I +; : O +they PRP B +have VBP O +been VBN O +trying VBG O +to TO O +head VB O +it PRP B +off IN O +this DT B +year NN I +. . O + +Ways NNS B +and CC I +Means NNP I +Chairman NNP I +Rostenkowski NNP I +backed VBD O +a DT B +simplification NN I +plan NN I +in IN O +the DT B +pending VBG I +House NNP I +tax NN I +bill NN I +, , O +but CC O +the DT B +plan NN I +turns VBZ O +out IN O +to TO O +be VB O +a DT B +big JJ I +revenue NN I +loser NN I +. . O + +Now RB O +the DT B +Senate NNP I +'s POS B +stripped-down JJ I +bill NN I +omits VBZ O +any DT B +proposal NN I +to TO O +deal VB O +with IN O +the DT B +corporate JJ I +tax NN I +. . O + +Proponents NNS B +of IN O +simplification NN B +fear NN O +that IN O +the DT B +chances NNS I +of IN O +getting VBG O +it PRP B +into IN O +the DT B +final JJ I +bill NN I +are VBP O +waning VBG O +. . O + +`` `` O +We PRP B +hear VBP O +it PRP B +has VBZ O +low JJ B +priority NN I +on IN O +the DT B +House NNP I +side NN I +, , O +'' '' O +says VBZ O +Samuel NNP B +Starr NNP I +of IN O +Coopers NNP B +& CC I +Lybrand NNP I +, , I +CPAs NNS I +. . O + +If IN O +the DT B +law NN I +is VBZ O +n't RB O +changed VBN O +, , O +he PRP B +says VBZ O +, , O +`` `` O +we PRP B +are VBP O +left VBN O +staring VBG O +at IN O +rules NNS B +that WDT B +are VBP O +almost RB O +impossible JJ O +to TO O +implement VB O +, , O +because IN O +there EX B +are VBP O +so RB B +many JJ I +complex JJ I +depreciation NN I +calculations NNS I +to TO O +do VB O +. . O +'' '' O + +But CC O +Congress NNP B +still RB O +could MD O +resolve VB O +the DT B +issue NN I +with IN O +other JJ B +legislation NN I +this DT B +year NN I +or CC O +next JJ B +, , O +Starr NNP B +adds VBZ O +. . O + +HUGO NNP B +'S VBZ B +RAVAGES NNS I +may MD O +be VB O +offset VB O +by IN O +immediate JJ B +claims NNS I +for IN O +tax NN B +refunds NNS I +. . O + +This DT B +law NN I +aids VBZ O +hurricane-wracked JJ B +locales NNS I +named VBN O +by IN O +the DT B +president NN I +as IN O +disaster NN B +areas NNS I +, , O +as RB O +well RB O +as IN O +regions NNS B +so RB O +designated VBN O +after IN O +other JJ B +1989 CD I +disasters NNS I +. . O + +It PRP B +lets VBZ O +victims NNS B +elect VBP O +to TO O +deduct VB O +casualty NN B +losses NNS I +on IN O +either DT O +1989 CD B +or CC O +amended VBN B +1988 CD I +returns NNS O +, , O +whichever WDT B +offers VBZ O +the DT B +larger JJR I +tax NN I +benefit NN I +; : O +they PRP B +have VBP O +until IN O +April NNP B +16 CD I +to TO O +choose VB O +. . O + +Amending VBG O +a DT B +1988 CD I +return NN I +to TO O +claim VB O +a DT B +refund NN I +brings VBZ O +cash NN B +faster RBR O +; : O +but CC O +for IN O +personal JJ B +losses NNS I +, , O +there EX B +are VBP O +other JJ B +factors NNS I +to TO O +consider VB O +, , O +notes NNS O +publisher NN B +Prentice NNP I +Hall NNP I +. . O + +A DT B +loss NN I +-- : O +after IN O +insurance NN B +recoveries NNS I +-- : O +is VBZ O +deductible JJ O +only RB O +to TO O +the DT B +extent NN I +that IN O +it PRP B +exceeds VBZ O +$ $ B +100 CD I +and CC O +that IN O +the DT B +year NN I +'s POS B +total JJ I +losses NNS I +exceed VBP O +10 CD B +% NN I +of IN O +adjusted VBN B +gross JJ I +income NN I +; : O +victims NNS B +may MD O +pick VB O +the DT B +year NN I +when WRB O +income NN B +is VBZ O +lower JJR O +and CC O +deductions NNS B +higher JJR O +. . O + +In IN O +filing VBG O +an DT B +original JJ I +-LRB- ( I +not RB I +amended VBN I +-RRB- ) I +return NN I +, , O +a DT B +couple NN I +should MD O +consider VB O +whether IN O +damaged VBN B +property NN I +is VBZ O +owned VBN O +jointly RB O +or CC O +separately RB O +and CC O +whether IN O +one CD B +spouse NN I +has VBZ O +larger JJR B +income NN I +; : O +that WDT B +may MD O +determine VB O +whether IN O +they PRP B +should MD O +file VB O +jointly RB O +or CC O +separately RB O +. . O + +THE DT B +IRS NNP I +DELAYS VBZ O +several JJ B +deadlines NNS I +for IN O +Hugo NNP B +'s POS B +victims NNS I +. . O + +Returns NNS B +for IN O +1988 CD B +from IN O +people NNS B +with IN O +six-month JJ B +filing NN I +extensions NNS I +were VBD O +due JJ O +Monday NNP B +, , O +but CC O +the DT B +IRS NNP I +says VBZ O +people NNS B +in IN O +the DT B +disaster NN I +areas NNS I +wo MD O +n't RB O +be VB O +penalized VBN O +for IN O +late JJ B +filing NN I +if IN O +their PRP$ B +returns NNS I +are VBP O +marked VBN O +`` `` O +Hugo NNP B +'' '' O +and CC O +postmarked VBN O +by IN O +Jan. NNP B +16 CD I +. . O + +Interest NN B +will MD O +be VB O +imposed VBN O +on IN O +unpaid JJ B +taxes NNS I +, , O +but CC O +late-payment NN B +penalties NNS I +on IN O +the DT B +returns NNS I +will MD O +be VB O +waived VBN O +if IN O +the DT B +balance NN I +due JJ O +and CC O +paid VBN O +is VBZ O +10 CD B +% NN I +or CC I +less JJR I +of IN O +the DT B +liability NN I +. . O + +IRS NNP B +Notice NN I +89-136 CD I +describes VBZ O +this DT B +and CC O +other JJ B +deadline NN I +relief NN I +for IN O +Hugo NNP B +'s POS B +victims NNS I +. . O + +Among IN O +the DT B +provisions NNS I +: : O +Fiscal-year JJ B +taxpayers NNS I +with IN O +returns NNS B +due JJ O +last JJ B +Monday NNP I +wo MD O +n't RB O +be VB O +penalized VBN O +if IN O +they PRP B +file VBP O +-- : O +or CC O +request VB O +an DT B +extension NN I +-- : O +and CC O +pay VB O +tax NN B +due JJ O +by IN O +Nov. NNP B +15 CD I +. . O + +Excise-tax JJ B +returns NNS I +due JJ O +by IN O +Oct. NNP B +31 CD I +or CC O +Nov. NNP B +30 CD I +may MD O +be VB O +delayed VBN O +to TO O +Jan. NNP B +16 CD I +. . O + +Extensions NNS B +ca MD O +n't RB O +be VB O +granted VBN O +for IN O +filing VBG O +employment-tax JJ B +returns NNS I +due JJ O +Oct. NNP B +31 CD I +or CC O +for IN O +depositing VBG O +withheld VBN B +taxes NNS I +, , O +but CC O +late JJ B +penalties NNS I +will MD O +be VB O +abated VBN O +for IN O +deposits NNS B +made VBN O +by IN O +Nov. NNP B +15 CD I +. . O + +The DT B +notice NN I +also RB O +grants VBZ O +relief NN B +for IN O +certain JJ B +estate-tax JJ I +returns NNS I +. . O + +ONE-DAY JJ B +JAUNTS NNS I +in IN O +a DT B +chartered JJ I +boat NN I +were VBD O +perks NNS B +for IN O +permanent JJ B +staffers NNS I +of IN O +American NNP B +Business NNP I +Service NNP I +Corp. NNP I +, , O +a DT B +Costa NNP I +Mesa NNP I +, , I +Calif. NNP I +, , I +supplier NN I +of IN O +temporary JJ B +workers NNS I +. . O + +The DT B +IRS NNP I +denied VBD O +cost NN B +deductions NNS I +because IN O +few NN B +of IN O +the DT B +temps NNS I +got VBD O +to TO O +go VB O +aboard RB O +. . O + +But CC O +the DT B +Tax NNP I +Court NNP I +said VBD O +the DT B +limitations NNS I +were VBD O +reasonable JJ O +and CC O +realistic JJ O +and CC O +allowed VBD O +the DT B +deductions NNS I +. . O + +USED-CAR NN B +BUYERS NNS I +who WP B +try VBP O +to TO O +avoid VB O +sales NNS B +tax VB I +by IN O +understating VBG O +prices NNS B +paid VBN O +in IN O +private JJ B +deals NNS I +are VBP O +the DT B +targets NNS I +of IN O +a DT B +New NNP I +York NNP I +drive NN I +. . O + +Estimating VBG O +that IN O +the DT B +state NN I +may MD O +lose VB O +$ $ B +15 CD I +million CD I +a DT B +year NN I +, , O +officials NNS B +announced VBD O +the DT B +filing NN I +of IN O +15 CD B +criminal JJ I +actions NNS I +and CC O +`` `` O +hundreds NNS B +'' '' O +of IN O +civil JJ B +penalties NNS I +. . O + +WHEN WRB O +AN DT B +IRA NNP I +OWNER NNP I +dies VBZ O +, , O +the DT B +trustee NN I +of IN O +the DT B +individual JJ I +retirement NN I +account NN I +must MD O +file VB O +forms NNS B +5498 CD I +reporting VBG O +market NN B +values NNS I +relating VBG O +to TO O +the DT B +decedent NN I +and CC O +each DT B +beneficiary NN I +, , O +with IN O +copies NNS B +to TO O +the DT B +executor NN I +and CC I +beneficiaries NNS I +. . O + +IRS NNP B +Revenue NN I +Procedure NN I +89-52 CD I +describes VBZ O +the DT B +reporting VBG I +requirements NNS I +. . O + +BIGGER JJR O +THAN IN O +A DT B +BREADBOX NN I +was VBD O +this DT B +cash NN I +hoarder NN I +'s POS B +reputation NN I +for IN O +honesty NN B +. . O + +People NNS B +often RB O +cite VBP O +frugality NN B +and CC O +distrust NN B +of IN O +banks NNS B +to TO O +justify VB O +cash NN B +caches NNS I +to TO O +the DT B +IRS NNP I +. . O + +Gregory NNP B +Damonne NNP I +Brown NNP I +of IN O +Fremont NNP B +, , O +Calif. NNP B +, , O +a DT B +hardworking JJ I +, , I +reclusive JJ I +young JJ I +bachelor NN I +, , O +told VBD O +that DT B +story NN I +to TO O +the DT B +Tax NNP I +Court NNP I +. . O + +But CC O +judges NNS B +usually RB O +find VBP O +the DT B +real JJ I +aim NN I +is VBZ O +to TO O +escape VB O +tax NN B +on IN O +hidden VBN B +income NN I +; : O +and CC O +the DT B +IRS NNP I +said VBD O +Brown NNP B +must MD O +have VB O +had VBN O +such JJ B +income NN I +-- : O +although IN O +it PRP B +uncovered VBD O +no DT B +source NN I +-- : O +because IN O +he PRP B +deposited VBD O +$ $ B +124,732 CD I +in IN O +a DT B +bank NN I +account NN I +in IN O +1982-84 CD B +while IN O +reporting VBG O +income NN B +of IN O +only RB B +$ $ I +52,012 CD I +. . O + +Brown NNP B +'s POS B +story NN I +: : O + +The DT B +deposits NNS I +came VBD O +from IN O +savings NNS B +kept VBD O +in IN O +a DT B +Tupperware NNP I +breadbox NN I +; : O +he PRP B +saved VBD O +$ $ B +47,000 CD I +in IN O +1974-81 CD B +by IN O +living VBG O +with IN O +family NN B +members NNS I +and CC O +pinching VBG O +pennies NNS B +and CC O +$ $ B +45,000 CD I +of IN O +secret JJ B +gifts NNS I +from IN O +his PRP$ B +remorseful JJ I +father NN I +, , O +who WP B +had VBD O +abandoned VBN O +the DT B +family NN I +in IN O +1955 CD B +. . O + +Brown NNP B +had VBD O +no DT B +proof NN I +; : O +but CC O +testimony NN B +of IN O +his PRP$ B +mother NN I +and CC I +stepmother NN I +about IN O +his PRP$ B +father NN I +and CC O +of IN O +an DT B +ex-employer NN I +about IN O +his PRP$ B +honesty NN I +and CC I +habits NNS I +satisfied VBD O +a DT B +judge NN I +that IN O +Brown NNP B +was VBD O +truthful JJ O +and CC O +his PRP$ B +tale NN I +of IN O +gifts NNS B +was VBD O +possible JJ O +. . O + +The DT B +IRS NNP I +offered VBD O +no DT B +evidence NN I +of IN O +hidden VBN B +sources NNS I +of IN O +taxable JJ B +income NN I +, , O +so RB O +Judge NNP B +Shields NNP I +rejected VBD O +its PRP$ B +claims NNS I +. . O + +BRIEFS NNS B +: : I + +Asked VBN O +how WRB O +he PRP B +made VBD O +charitable JJ B +gifts NNS I +of IN O +$ $ B +26,350 CD I +out IN O +of IN O +reported VBN B +two-year JJ I +income NN I +of IN O +$ $ B +46,892 CD I +, , O +Thomas NNP B +H. NNP I +McFall NNP I +of IN O +Bryan NNP B +, , O +Texas NNP B +, , O +told VBD O +the DT B +Tax NNP I +Court NNP I +he PRP B +had VBD O +understated VBN O +his PRP$ B +income NN I +. . O + +The DT B +court NN I +rejected VBD O +his PRP$ B +incredible JJ I +claims NNS I +, , O +denied VBD O +his PRP$ B +deductions NNS I +, , O +and CC O +imposed VBD O +a DT B +negligence NN I +penalty NN I +... : O +. . O + +Rep. NNP B +Schaefer NNP I +-LRB- ( O +R. NNP B +, , O +Colo. NNP B +-RRB- ) O +entered VBD O +a DT B +bill NN I +to TO O +exempt VB O +from IN O +tax NN B +rewards NNS B +for IN O +tips NNS B +leading VBG O +to TO O +the DT B +arrest NN I +of IN O +violent JJ B +criminals NNS I +. . O + +Kay NNP B +Peterson NNP I +mounts NNS O +her PRP$ B +bicycle NN I +and CC O +grinds VBZ O +up IN O +yet RB B +another DT I +steep NN I +, , I +rocky JJ I +path NN I +seemingly RB O +suitable JJ O +only RB O +for IN O +mountain NN B +goats NNS I +. . O + +After IN O +a DT B +tortuous JJ I +climb NN I +, , O +she PRP B +is VBZ O +rewarded VBN O +by IN O +a DT B +picture-postcard NN I +vista NN I +: : O +a DT B +glade NN I +of IN O +golden JJ B +aspens NNS I +under IN O +an DT B +azure JJ I +Indian-summer JJ I +sky NN I +. . O + +This DT B +place NN I +is VBZ O +12 CD B +miles NNS I +into IN O +the DT B +back JJ I +country NN I +-- : O +a DT B +day-long JJ I +trudge NN I +for IN O +a DT B +hiker NN I +, , O +but CC O +reached VBD O +by IN O +Ms. NNP B +Peterson NNP I +and CC O +six CD B +others NNS I +in IN O +a DT B +mere JJ I +two CD I +hours NNS I +of IN O +pedaling VBG O +fat-tired JJ B +mountain NN I +bikes NNS I +. . O + +`` `` O +This DT B +, , O +'' '' O +says VBZ O +Ms. NNP B +Peterson NNP I +, , O +`` `` O +is VBZ O +what WP B +it PRP B +'s VBZ O +all DT O +about IN O +. . O +'' '' O + +Twelve CD B +hundred CD I +miles NNS I +away RB O +, , O +rangers NNS B +at IN O +a DT B +Napa NNP I +County NNP I +, , I +Calif. NNP I +, , I +state NN I +park NN I +are VBP O +among IN O +the DT B +many JJ I +who WP B +do VBP O +n't RB O +quite RB O +share VBP O +the DT B +enthusiasm NN I +. . O + +This DT B +summer NN I +, , O +speeding VBG B +bikers NNS I +were VBD O +blamed VBN O +for IN O +an DT B +accident NN I +in IN O +the DT B +Napa NNP I +County NNP I +park NN I +, , O +in IN O +which WDT B +a DT B +horse NN I +-- : O +spooked VBN O +on IN O +a DT B +trail NN I +that WDT B +was VBD O +closed VBN O +to TO O +bikers NNS B +-- : O +broke VBD O +its PRP$ B +leg NN I +. . O + +The DT B +animal NN I +had VBD O +to TO O +be VB O +destroyed VBN O +; : O +the DT B +bikers NNS I +fled VBD O +and CC O +were VBD O +never RB O +found VBN O +. . O + +In IN O +numerous JJ B +parks NNS I +near IN O +San NNP B +Francisco NNP I +, , O +rangers NNS B +have VBP O +been VBN O +forced VBN O +to TO O +close VB O +trails NNS B +, , O +set VBN O +up IN O +speed NN B +traps NNS I +and CC O +use NN O +radar NN B +guns NNS I +to TO O +curb VB O +fast RB B +and CC I +reckless JJ I +riding NN I +. . O + +They PRP B +have VBP O +even RB O +sent VBN O +helicopters NNS B +in IN O +pursuit NN B +of IN O +bikers NNS B +after IN O +hikers NNS B +and CC I +equestrians NNS I +complained VBD O +they PRP B +were VBD O +being VBG O +driven VBN O +from IN O +trails NNS B +. . O + +`` `` O +We PRP B +were VBD O +being VBG O +overrun VBN O +, , O +'' '' O +says VBZ O +Steve NNP B +Fiala NNP I +, , O +trails NNS B +coordinator NN I +of IN O +the DT B +East NNP I +Bay NNP I +Regional NNP I +Park NNP I +District NNP I +. . O + +Two CD B +years NNS I +ago RB O +, , O +the DT B +district NN I +decided VBD O +to TO O +limit VB O +the DT B +bikes NNS I +to TO O +fire VB B +roads NNS I +in IN O +its PRP$ B +65,000 CD I +hilly JJ I +acres NNS I +. . O + +From IN O +about IN B +200,000 CD I +six CD B +years NNS I +ago RB O +, , O +the DT B +number NN I +of IN O +mountain NN B +bikes NNS I +in IN O +the DT B +U.S. NNP I +is VBZ O +expected VBN O +to TO O +grow VB O +to TO O +10 CD B +million CD I +in IN O +1990 CD B +. . O + +At IN B +least JJS I +half PDT I +that DT I +growth NN I +will MD O +have VB O +come VBN O +in IN O +the DT B +past JJ I +three CD I +years NNS I +alone RB O +. . O + +The DT B +controversy NN I +kicked VBD O +up IN O +by IN O +the DT B +proliferation NN I +of IN O +these DT B +all-terrain JJ I +bicycles NNS I +is VBZ O +one CD B +of IN O +the DT B +most RBS I +divisive JJ I +storms NNS I +to TO O +blow VB O +through IN O +the DT B +national JJ I +conservation NN I +movement NN I +in IN O +recent JJ B +memory NN I +. . O + +Bikers NNS B +-- : O +many NN B +of IN O +them PRP B +ardent JJ B +environmentalists NNS I +-- : O +proclaim VB O +their PRP$ B +sport NN I +an DT B +efficient JJ I +, , I +safe JJ I +, , I +fitness-promoting JJ I +way NN I +to TO O +get VB O +back RB O +to TO O +nature NN B +, , O +while IN O +asserting VBG O +a DT B +right NN I +, , O +as IN O +taxpayers NNS B +, , O +to TO O +pedal VB O +on IN O +public JJ B +lands NNS I +. . O + +But CC O +the DT B +bikes NNS I +' POS B +burgeoning VBG I +numbers NNS I +, , O +safety NN B +concerns NNS I +and CC O +fear NN B +that IN O +they PRP B +damage VBP O +fragile JJ B +landscapes NNS I +have VBP O +prompted VBN O +pleas NNS B +, , O +from IN O +the DT B +Sierras NNPS I +to TO O +the DT B +Eastern NNP I +Seaboard NNP I +, , O +to TO O +ban VB O +them PRP B +from IN O +the DT B +back JJ I +country NN I +. . O + +Key NNP O +to TO O +the DT B +issue NN I +is VBZ O +that IN O +the DT B +bikes NNS I +, , O +in IN O +skillful JJ B +hands NNS I +, , O +can MD O +go VB O +virtually RB O +anywhere RB O +, , O +and CC O +in IN O +reckless JJ B +hands NNS I +can MD O +become VB O +vehicles NNS B +of IN O +terror NN B +. . O + +An DT B +adept JJ I +bicyclist NN I +can MD O +leap VB O +from IN O +a DT B +dead JJ I +stop NN I +to TO O +the DT B +top NN I +of IN O +a DT B +picnic NN I +table NN I +without IN O +losing VBG O +balance NN B +. . O + +Such JJ B +skills NNS I +allow VBP O +riders NNS B +to TO O +fly VB O +down RB O +treacherous JJ B +mountain NN I +grades NNS I +at IN O +speeds NNS B +of IN O +up IN B +to TO I +40 CD I +miles NNS I +an DT B +hour NN I +-- : O +a DT B +thrill NN I +for IN O +the DT B +cyclist NN I +but CC O +a DT B +nightmare NN I +for IN O +unsuspecting JJ B +hikers NNS I +or CC I +equestrians NNS I +. . O + +For IN O +harried VBN B +public-land JJ I +managers NNS I +across IN O +the DT B +nation NN I +, , O +the DT B +response NN I +is VBZ O +increasingly RB O +to TO O +shut VB O +the DT B +gates NNS I +. . O + +The DT B +state NN I +of IN O +California NNP B +, , O +following VBG O +the DT B +lead NN I +of IN O +some DT B +regional JJ I +parks NNS I +, , O +recently RB O +adopted VBN O +regulations NNS B +that WDT B +closed VBD O +nearly RB B +all DT I +hiking VBG I +paths NNS I +in IN O +state NN B +parks NNS I +to TO O +mountain NN B +bicycles NNS I +. . O + +The DT B +move NN I +largely RB O +consigns VBZ O +them PRP B +to TO O +roads NNS B +used VBN O +by IN O +motorized JJ B +vehicles NNS I +. . O + +Most JJS B +other JJ I +states NNS I +have VBP O +enacted VBN O +similar JJ B +bans NNS I +. . O + +The DT B +bikes NNS I +are VBP O +unwelcome JJ O +on IN O +trails NNS B +in IN O +national JJ B +parks NNS I +. . O + +Even RB B +the DT I +U.S. NNP I +Forest NNP I +Service NNP I +, , O +whose WP$ B +lenient JJ I +`` `` I +multiple-use JJ I +'' '' I +philosophy NN I +permits VBZ O +motorized VBN B +vehicles NNS I +on IN O +thousands NNS B +of IN O +miles NNS B +of IN O +its PRP$ B +trails NNS I +across IN O +the DT B +U.S. NNP I +, , O +has VBZ O +begun VBN O +to TO O +close VB O +some DT B +lands NNS I +to TO O +the DT B +bikes NNS I +, , O +including VBG O +major JJ B +portions NNS I +of IN O +the DT B +popular JJ I +Pacific NNP I +Crest NNP I +Trail NNP I +, , O +which WDT B +stretches VBZ O +from IN O +California NNP B +to TO O +Canada NNP B +. . O + +Often RB O +these DT B +closings NNS I +come VBP O +after IN O +vigorous JJ B +anti-bike JJ I +lobbying NN I +by IN O +conservation NN B +organizations NNS I +, , O +the DT B +politically RB I +potent JJ I +Sierra NNP I +Club NNP I +among IN O +them PRP B +. . O + +Sierra NNP B +has VBZ O +been VBN O +instrumental JJ O +in IN O +securing VBG O +a DT B +number NN I +of IN O +the DT B +California NNP I +bans NNS I +. . O + +It PRP B +has VBZ O +been VBN O +waging VBG O +an DT B +all-out JJ I +campaign NN I +to TO O +beat VB O +back RB O +a DT B +proposal NN I +, , O +pushed VBN O +by IN O +Utah NNP B +bike NN I +groups NNS I +, , O +to TO O +allow VB O +the DT B +cycles NNS I +in IN O +federally RB B +designated VBN I +wilderness NN I +areas NNS I +, , O +where WRB O +they PRP B +are VBP O +now RB O +prohibited VBN O +. . O + +Yet RB O +Sierra NNP B +'s POS B +hard-line JJ I +stance NN I +has VBZ O +created VBN O +something NN B +of IN O +a DT B +rift NN I +in IN O +the DT B +organization NN I +, , O +which WDT B +estimates VBZ O +that IN O +17 CD B +% NN I +of IN O +its PRP$ B +500,000 CD I +members NNS I +own JJ O +mountain NN B +bikes NNS I +. . O + +Pressure NN B +from IN O +these DT B +members NNS I +prompted VBD O +the DT B +club NN I +recently RB O +to TO O +soften VB O +its PRP$ B +anti-bike JJ I +rhetoric NN I +; : O +it PRP B +no RB O +longer RB O +, , O +for IN O +example NN B +, , O +lumps VBZ O +the DT B +bikes NNS I +into IN O +the DT B +same JJ I +category NN I +as IN O +motorcycles NNS B +and CC O +other JJ B +terrain-marring JJ I +off-road JJ I +vehicles NNS I +. . O + +But CC O +the DT B +club NN I +still RB O +insists VBZ O +that IN O +public JJ B +lands NNS I +ought MD O +to TO O +be VB O +closed VBN O +to TO O +the DT B +bikes NNS I +unless IN O +studies NNS B +indicate VBP O +the DT B +bikes NNS I +wo MD O +n't RB O +injure VB O +the DT B +environment NN I +or CC O +other JJ B +users NNS I +. . O + +`` `` O +I PRP B +have VBP O +a DT B +mountain NN I +bike NN I +, , O +yet RB O +as IN O +a DT B +hiker NN I +I PRP B +'ve VBP O +been VBN O +run VB O +off IN O +the DT B +road NN I +by IN O +kids NNS B +careening VBG O +down RP O +a DT B +fire NN I +trail NN I +on IN O +them PRP B +, , O +'' '' O +says VBZ O +Gene NNP B +Coan NNP I +, , O +an DT B +official NN I +at IN O +Sierra NNP B +'s POS B +headquarters NN I +in IN O +San NNP B +Francisco NNP I +, , O +echoing VBG O +the DT B +concerns NNS I +of IN O +many JJ B +members NNS I +. . O + +`` `` O +People NNS B +who WP B +feel VBP O +that IN O +cyclists NNS B +should MD O +be VB O +banned VBN O +from IN O +an DT B +area NN I +are VBP O +n't RB O +looking VBG O +at IN O +the DT B +whole JJ I +picture NN I +, , O +'' '' O +complains VBZ O +Mark NNP B +Langton NNP I +, , O +associate JJ B +editor NN I +of IN O +Mountain NNP B +and CC I +City NNP I +Biking NNP I +magazine NN I +in IN O +Canoga NNP B +Park NNP I +, , O +Calif NNP B +. . O + +Mr. NNP B +Langton NNP I +is VBZ O +among IN O +the DT B +legions NNS I +of IN O +bikers NNS B +who WP B +got VBD O +their PRP$ B +first JJ I +taste NN I +of IN O +wilderness NN B +as IN O +hikers NNS B +or CC I +backpackers NNS I +. . O + +He PRP B +says VBZ O +fellow NN B +bikers NNS I +show VBP O +the DT B +same JJ I +concern NN I +for IN O +the DT B +land NN I +that IN B +they PRP B +demonstrated VBD O +as IN O +hikers NNS B +; : O +many JJ B +are VBP O +appalled VBN O +that IN O +the DT B +conservation NN I +community NN I +would MD O +suddenly RB O +consider VB O +them PRP B +the DT B +enemy NN I +. . O + +To TO O +fight VB O +back RB O +, , O +activists NNS B +such JJ O +as IN O +Mr. NNP B +Langton NNP I +are VBP O +forming VBG O +groups NNS B +to TO O +lobby VB O +land NN B +managers NNS I +over IN O +access NN B +issues NNS I +and CC O +undertake VB O +education NN B +programs NNS I +to TO O +show VB O +that IN O +the DT B +bikes NNS I +can MD O +responsibly RB O +share VB O +trails NNS B +. . O + +Mr. NNP B +Langton NNP I +'s POS B +group NN I +, , O +Concerned NNP B +Off-Road NNP I +Bicyclists NNPS I +Association NNP I +, , O +mounted VBN O +petition NN B +drives NNS I +to TO O +help VB O +keep VB O +open JJ O +certain JJ B +Santa NNP I +Monica NNP I +Mountain NNP I +trails NNS I +designated VBN O +for IN O +closing VBG B +. . O + +Biking NNP B +groups NNS I +in IN O +Montana NNP B +, , I +Idaho NNP I +, , I +Michigan NNP I +and CC I +Massachusetts NNP I +have VBP O +won VBN O +similar JJ B +concessions NNS I +, , O +says VBZ O +Tim NNP B +Blumenthal NNP I +, , O +mountain NN B +bike NN I +editor NN I +of IN O +Bicycling NNP B +magazine NN I +. . O + +These DT B +groups NNS I +have VBP O +been VBN O +trying VBG O +to TO O +improve VB O +the DT B +mountain NN I +biker NN I +'s POS B +image NN I +; : O +in IN O +the DT B +San NNP I +Francisco-area JJ I +park NN I +district NN I +where WRB O +a DT B +ranger NN I +was VBD O +clobbered VBN O +by IN O +a DT B +cyclist NN I +this DT B +summer NN I +bikers NNS B +have VBP O +formed VBN O +a DT B +volunteer NN I +patrol NN I +to TO O +help VB O +rangers NNS B +enforce VB O +regulations NNS B +, , O +and CC O +to TO O +school VB O +riders NNS B +in IN O +proper JJ B +trail NN I +etiquette NN I +. . O + +Even RB B +staunch JJ I +anti-bike JJ I +Sierra NNP I +members NNS I +concede VBP O +that IN O +10 CD B +% NN I +of IN O +all DT B +riders NNS I +cause VBP O +most RBS B +of IN O +the DT B +problems NNS I +. . O + +While IN O +some DT B +are VBP O +renegade NN B +riders NNS I +who WP B +simply JJ O +scorn NN O +regulations NNS B +, , O +much JJ B +bad JJ I +riding NN I +simply RB O +reflects VBZ O +ignorance NN B +that WDT B +can MD O +be VB O +corrected VBN O +through IN O +`` `` O +education NN B +and CC O +peer NN B +pressure NN I +, , O +'' '' O +says VBZ O +Jim NNP B +Hasenauer NNP I +, , O +a DT B +director NN I +of IN O +the DT B +International NNP I +Mountain NNP I +Biking NNP I +Association NNP I +. . O + +`` `` O +I PRP B +think VBP O +we PRP B +'re VBP O +making VBG O +progress NN B +. . O +'' '' O + +Few JJ B +would MD O +have VB O +foreseen VBN O +such JJ B +a DT I +furor NN I +when WRB O +, , O +a DT B +decade NN I +ago RB O +, , O +some DT B +Marin NNP I +County NNP I +bicycle NN I +enthusiasts NNS I +created VBD O +a DT B +hybrid JJ I +bike NN I +using VBG O +fat JJ B +tires NNS I +, , O +lightweight JJ B +metallurgy NN I +and CC O +multi-gear JJ B +technology NN I +. . O + +They PRP B +wanted VBD O +a DT B +machine NN I +that WDT B +would MD O +allow VB O +them PRP B +to TO O +pedal VB O +into IN O +rugged JJ B +terrain NN I +then RB O +inaccessible JJ O +to TO O +cycles NNS B +. . O + +They PRP B +got VBD O +a DT B +machine NN I +more RBR O +responsive JJ O +, , O +more RBR O +stable JJ O +and CC O +in IN O +many JJ B +ways NNS I +easier JJR O +to TO O +ride VB O +than IN O +the DT B +thin-tired JJ I +racing NN I +bikes NNS I +that IN B +then RB O +were VBD O +the DT B +rage NN I +. . O + +When WRB O +the DT B +bikes NNS I +first JJ O +entered VBD O +mass NN B +production NN I +in IN O +1981 CD B +, , O +they PRP B +were VBD O +dismissed VBN O +as IN O +a DT B +fad NN I +. . O + +Last JJ B +year NN I +, , O +25 CD B +% NN I +of IN O +the DT B +10 CD I +million CD I +bicycles NNS I +sold VBN O +in IN O +the DT B +U.S. NNP I +were VBD O +mountain NN B +bikes NNS I +. . O + +In IN O +California NNP B +, , O +a DT B +bellwether NN I +market NN I +, , O +they PRP B +accounted VBD O +for IN O +more JJR B +than IN I +80 CD I +% NN I +of IN O +all DT B +bike NN I +sales NNS I +. . O + +The DT B +majority NN I +of IN O +the DT B +bikes NNS I +never RB O +even RB O +make VB O +it PRP B +into IN O +the DT B +high JJ I +country NN I +. . O + +City NN B +dwellers NNS I +love VBP O +them PRP B +because IN O +they PRP B +shift VBP O +smoothly RB O +in IN O +traffic NN B +, , O +bounce VB O +easily RB O +over IN O +curbs NNS B +and CC O +roll NN O +through IN O +road NN B +glass NN I +with IN O +far RB B +fewer RBR I +flat JJ I +tires NNS I +than IN O +racing VBG B +bikes NNS I +. . O + +Crested NNP B +Butte NNP I +, , O +population NN B +1,200 CD I +, , O +is VBZ O +a DT B +bastion NN I +of IN O +the DT B +sport NN I +. . O + +By IN O +one CD B +estimate NN I +, , O +everyone NN B +here RB I +under IN O +50 CD B +owns VBZ O +at IN B +least JJS I +one CD I +bike NN I +. . O + +The DT B +town NN I +is VBZ O +home NN B +to TO O +the DT B +Mountain NNP I +Bike NNP I +Hall NNP I +of IN O +Fame NNP B +and CC O +it PRP B +hosts VBZ O +the DT B +annual JJ I +Fat NNP I +Tire NNP I +Bike NNP I +Week NNP I +. . O + +This DT B +summer NN I +, , O +the DT B +jamboree NN I +attracted VBN O +more JJR B +visitors NNS I +than IN O +the DT B +busiest JJS I +week NN I +of IN O +the DT B +town NN I +'s POS B +winter NN I +ski NN I +season NN I +. . O + +David NNP B +Lindsey NNP I +, , O +chairman NN B +of IN O +the DT B +Fat NNP I +Tire NNP I +Bike NNP I +celebration NN I +, , O +muses VBZ O +that IN O +the DT B +bike NN I +'s POS B +popularity NN I +may MD O +be VB O +a DT B +combination NN I +of IN O +technology NN B +and CC I +nostalgia NN I +. . O + +`` `` O +The DT B +mountain NN I +bike NN I +feels VBZ O +as RB O +comfortable JJ O +as IN O +the DT B +` `` I +paperboy NN I +' '' I +bike NN I +you PRP B +had VBD O +as IN O +a DT B +kid NN I +, , O +but CC O +it PRP B +can MD O +do VB O +so RB B +much RB I +more JJR I +, , O +'' '' O +he PRP B +says VBZ O +. . O + +The DT B +following VBG I +issues NNS I +were VBD O +recently RB O +filed VBN O +with IN O +the DT B +Securities NNP I +and CC I +Exchange NNP I +Commission NNP I +: : O + +Canada NNP B +'s POS B +Province NNP I +of IN O +Nova NNP B +Scotia NNP I +, , O +shelf NN B +offering NN I +of IN O +up IN B +to TO I +$ $ I +550 CD I +million CD I +of IN O +debentures NNS B +. . O + +Golar NNP B +Gas NNP I +Holding NNP I +Co. NNP I +, , O +a DT B +subsidiary NN I +of IN O +Gotaas-Larsen NNP B +Shipping NNP I +Corp. NNP I +, , O +offering NN B +of IN O +$ $ B +280 CD I +million CD I +first JJ I +preferred JJ I +ship NN I +mortgage NN I +notes NNS I +, , O +via IN O +Merrill NNP B +Lynch NNP I +Capital NNP I +Markets NNPS I +. . O + +H.F. NNP B +Ahmanson NNP I +& CC I +Co. NNP I +, , O +offering NN B +of IN O +four CD B +million CD I +shares NNS I +of IN O +noncumulative JJ B +convertible JJ I +preferred JJ I +stock NN I +, , O +Series NNP B +B. NNP I +, , O +via IN O +Goldman NNP B +, , I +Sachs NNP I +& CC I +Co NNP I +, , O +First NNP B +Boston NNP I +Corp. NNP I +, , O +and CC O +Merrill NNP B +Lynch NNP I +. . O + +Shared NNP B +Technologies NNP I +Inc. NNP I +, , O +offering NN B +of IN O +2.5 CD B +million CD I +common JJ I +shares NNS I +, , O +via IN O +Smetek NNP B +, , I +Van NNP I +Horn NNP I +& CC I +Cormack NNP I +Inc. NNP I +and CC O +Oakes NNP B +, , I +Fitzwilliams NNP I +& CC I +Co NNP I +. . O + +Stock-market NN B +tremors NNS I +again RB O +shook VBD O +bond NN B +prices NNS I +, , O +while IN O +the DT B +dollar NN I +turned VBD O +in IN O +a DT B +mixed VBN I +performance NN I +. . O + +Early JJ B +yesterday NN I +, , O +investors NNS B +scrambled VBD O +to TO O +buy VB O +Treasury NNP B +bonds NNS I +for IN O +safety NN B +as IN O +stock NN B +prices NNS I +plummeted VBD O +and CC O +fears NNS B +mounted VBN O +of IN O +a DT B +replay NN I +of IN O +Friday NNP B +. . O + +But CC O +stocks NNS B +later RB O +recovered VBD O +, , O +erasing VBG O +most RBS B +of IN O +their PRP$ B +early JJ I +declines NNS I +. . O + +That DT B +cut NN O +short VB O +the DT B +rally NN I +in IN O +Treasury NNP B +bonds NNS I +and CC O +depressed JJ O +prices NNS B +moderately RB O +below IN O +late JJ B +Monday NNP I +'s POS B +levels NNS I +. . O + +The DT B +Dow NNP I +Jones NNP I +Industrial NNP I +Average NNP I +, , O +down RB O +more JJR B +than IN I +60.25 CD I +points NNS I +early RB O +in IN O +the DT B +day NN I +, , O +finished VBD O +18.65 CD B +points NNS I +lower JJR O +at IN O +2638.73 CD B +. . O + +Long-term NNP B +Treasury NNP I +issues NNS I +declined VBD O +about IN B +half PDT I +a DT I +point NN I +, , O +or CC O +$ $ B +5 NN I +for IN O +each DT B +$ $ I +1,000 CD I +face NN I +amount NN I +. . O + +`` `` O +The DT B +stock NN I +market NN I +clearly RB O +is VBZ O +leading VBG O +the DT B +bond NN I +markets NNS I +, , O +'' '' O +said VBD O +Jack NNP B +Conlon NNP I +, , O +an DT B +executive JJ I +vice NN I +president NN I +at IN O +Nikko NNP B +Securities NNP I +. . O + +`` `` O +People NNS B +are VBP O +breathing VBG O +a DT B +major JJ I +sigh NN I +of IN O +relief NN B +that IN O +the DT B +world NN I +did VBD O +n't RB O +end VB O +Monday NNP B +morning NN I +'' '' O +or CC O +yesterday NN B +. . O + +Gold NNP B +, , O +a DT B +closely RB I +watched VBN I +barometer NN I +of IN O +investor NN B +anxiety NN I +, , O +was VBD O +little RB O +changed VBN O +. . O + +The DT B +dollar NN I +initially RB O +fell VBD O +against IN O +other JJ B +major JJ I +currencies NNS I +on IN O +news NN B +that IN O +the DT B +U.S. NNP I +trade NN I +deficit NN I +surged VBD O +in IN O +August NNP B +to TO O +$ $ B +10.77 CD I +billion CD I +. . O + +But CC O +the DT B +dollar NN I +later RB O +rebounded VBD O +, , O +finishing VBG O +slightly RB O +higher JJR O +against IN O +the DT B +yen NN I +although IN O +slightly RB O +lower JJR O +against IN O +the DT B +mark NN I +. . O + +Federal NNP B +Reserve NNP I +officials NNS I +sent VBD O +another DT B +signal NN I +of IN O +their PRP$ B +determination NN I +to TO O +shore VB O +up IN O +investor NN B +confidence NN I +. . O + +In IN O +an DT B +apparent JJ I +attempt NN I +to TO O +keep VB O +a DT B +lid NN I +on IN O +short-term JJ B +interest NN I +rates NNS I +, , O +the DT B +Fed NNP I +once RB O +again RB O +pumped VBN O +money NN B +into IN O +the DT B +banking NN I +system NN I +. . O + +But CC O +the DT B +Fed NNP I +move NN I +was VBD O +a DT B +small JJ I +gesture NN I +, , O +traders NNS B +said VBD O +. . O + +Fed JJ B +officials NNS I +appear VBP O +reluctant JJ O +to TO O +ease VB O +their PRP$ B +credit NN I +grip NN I +any DT O +further JJ O +because IN O +a DT B +bold JJ I +move NN I +does VBZ O +n't RB O +appear VB O +necessary JJ O +, , O +several JJ B +investment NN I +managers NNS I +said VBD O +. . O + +The DT B +Fed NNP I +has VBZ O +allowed VBN O +a DT B +key JJ I +short-term JJ I +interest NN I +rate NN I +to TO O +decline VB O +about IN B +one-quarter NN I +percentage NN I +point NN I +. . O + +The DT B +federal JJ I +funds NNS I +rate NN I +on IN O +overnight JJ B +loans NNS I +between IN O +banks NNS B +has VBZ O +been VBN O +hovering VBG O +around IN O +8 CD B +3\/4 CD I +% NN I +, , O +down RB O +from IN O +9 CD B +% NN I +previously RB O +. . O + +Although IN O +stocks NNS B +have VBP O +led VBN O +bonds NNS B +this DT B +week NN I +, , O +some DT B +traders NNS I +predict VBP O +that DT B +relationship NN I +will MD O +reverse VB O +during IN O +the DT B +next JJ I +few JJ I +weeks NNS I +. . O + +Nikko NNP B +'s POS B +Mr. NNP I +Conlon NNP I +fears VBZ O +a DT B +huge JJ I +wave NN I +of IN O +Treasury NNP B +borrowing NN I +early JJ B +next JJ I +month NN I +will MD O +drive VB O +down RB O +Treasury NNP B +bond NN I +prices NNS I +. . O + +That DT B +, , O +coupled VBN O +with IN O +poor JJ B +third-quarter JJ I +corporate-earnings NNS I +comparisons NNS I +, , O +`` `` O +will MD O +make VB O +trouble NN B +for IN O +the DT B +equity NN I +market NN I +for IN O +the DT B +next JJ I +two CD I +to TO I +three CD I +months NNS I +, , O +'' '' O +he PRP B +says VBZ O +. . O + +But CC O +several JJ B +other JJ I +traders NNS I +contend VBP O +investors NNS B +have VBP O +overreacted VBN O +to TO O +junk-bond NN B +jitters NNS I +, , O +and CC O +that IN O +stock NN B +prices NNS I +will MD O +continue VB O +to TO O +recover VB O +. . O + +`` `` O +They PRP B +shot NN O +the DT B +whole JJ I +orchestra NN I +just RB O +because IN O +the DT B +piano NN I +player NN I +hit VBD O +a DT B +bad JJ I +note NN I +, , O +'' '' O +said VBD O +Laszlo NNP B +Birinyi NNP I +, , O +president NN B +of IN O +Birinyi NNP B +Associates NNP I +Inc. NNP I +, , O +referring VBG O +to TO O +the DT B +stock NN I +market NN I +'s POS B +plunge NN I +Friday NNP B +on IN O +news NN B +of IN O +trouble NN B +in IN O +financing VBG O +the DT B +UAL NNP I +Corp NNP I +. . I +buy-out NN I +. . O + +In IN O +major JJ B +market NN I +activity NN I +: : O +Treasury NNP B +bond NN I +prices NNS I +fell VBD O +. . O + +The DT B +yield NN I +on IN O +30-year NNP B +Treasury NNP I +bonds NNS I +climbed VBD O +back RB O +above IN O +8 CD B +% NN I +, , O +ending VBG O +the DT B +day NN I +at IN O +8.03 CD B +% NN I +. . O + +The DT B +dollar NN I +was VBD O +mixed VBN O +. . O + +Late JJ B +yesterday NN I +in IN O +New NNP B +York NNP I +, , O +the DT B +dollar NN I +rose VBD O +to TO O +142.75 CD B +yen NN I +from IN O +141.80 CD B +yen NN I +Monday NNP B +, , O +but CC O +fell VBD O +to TO O +1.8667 CD B +marks NNS I +from IN O +1.8685 CD B +marks NNS I +. . O + +The DT B +Consumer NNP I +News NNP I +and CC I +Business NNP I +Channel NNP I +cable NN I +network NN I +and CC O +U.S. NNP B +News NNP I +& CC I +World NNP I +Report NNP I +have VBP O +formed VBN O +a DT B +joint JJ I +venture NN I +to TO O +produce VB O +cable NN B +program NN I +versions NNS I +of IN O +special JJ B +issues NNS I +of IN O +the DT B +magazine NN I +. . O + +The DT B +programs NNS I +will MD O +run VB O +on IN O +the DT B +cable NN I +network NN I +the DT B +Sunday NNP I +evening NN I +immediately RB O +prior RB O +to TO O +the DT B +release NN I +of IN O +the DT B +special JJ I +issue NN I +of IN O +U.S. NNP B +News NNP I +& CC I +World NNP I +Report NNP I +. . O + +CNBC NNP B +is VBZ O +a DT B +joint JJ I +venture NN I +of IN O +the DT B +National NNP I +Broadcasting NNP I +Co. NNP I +, , O +a DT B +unit NN I +of IN O +General NNP B +Electric NNP I +Co. NNP I +, , O +and CC O +Cablevision NNP B +System NNP I +Corp NNP I +. . O + +Advertisers NNS B +will MD O +be VB O +offered VBN O +an DT B +advertising NN I +package NN I +, , O +which WDT B +for IN O +a DT B +single JJ I +price NN I +, , O +will MD O +include VB O +time NN B +on IN O +the DT B +CNBC NNP I +program NN I +and CC O +ad NN B +pages NNS I +in IN O +the DT B +special JJ I +guides NNS I +. . O + +CNBC NNP B +will MD O +produce VB O +six CD B +, , I +one-hour JJ I +programs NNS I +, , O +beginning VBG O +in IN O +April NNP B +1990 CD I +. . O + +The DT B +first JJ I +program NN I +scheduled VBN O +in IN O +the DT B +joint JJ I +venture NN I +is VBZ O +`` `` O +The DT O +1990 CD O +Homeowner NNP B +'s POS I +Guide NNP O +. . O +'' '' O + +Other JJ B +programs NNS I +and CC I +special JJ I +issues NNS I +will MD O +be VB O +based VBN O +on IN O +themes NNS B +of IN O +health NN B +, , O +jobs NNS B +, , O +personal JJ B +finance NN I +, , O +the DT B +best JJS I +colleges NNS I +, , O +and CC O +investments NNS B +. . O + +The DT B +programs NNS I +will MD O +be VB O +written VBN O +and CC O +produced VBN O +by IN O +CNBC NNP B +, , O +with IN O +background NN B +and CC I +research NN I +provided VBN O +by IN O +staff NN B +from IN O +U.S. NNP B +News NNP I +& CC I +World NNP I +Report NNP I +. . O + +Skoal NNP B +Daze NNP I + +I PRP B +'ve VBP O +learned VBD O +the DT B +hard JJ I +way NN I +that IN O +too RB B +much JJ I +booze NN I +Takes VBZ O +revenge NN B +the DT B +next JJ I +day NN I +about IN O +nine CD B +; : O +No DT B +wonder NN I +I PRP I +say VBP O +, , O +`` `` O +I PRP B +drink VBP O +to TO O +your PRP$ B +health NN I +'' '' O +-- : O +It PRP B +certainly RB O +is VBZ O +n't RB O +to TO O +mine VB B +! . O + +-- : B +George NNP I +O. NNP I +Ludcke NNP I +. . I + +Spaced NNP O +Out IN O + +Those DT B +supermarket NN I +tabloids NNS I +Make VBP O +me PRP B +feel VBP O +slow JJ O +Because IN O +I PRP B +still RB O +have VBP O +n't RB O +seen VBN O + +-- : B +Bruce NNP I +Kafaroff NNP I +. . I + +Daffynition NN B + +Repression NN B +: : O +emote VB B +control NN I +. . O + +-- : B +Daisy NNP I +Brown NNP I +. . I + +Weyerhaeuser NNP B +Co. NNP I +reported VBD O +a DT B +one-time JJ I +gain NN I +and CC O +strong JJ B +wood-product NN I +sales NNS I +that WDT B +offset VBP O +weakness NN B +in IN O +pulp NN B +and CC I +paper NN I +to TO O +fuel VB O +a DT B +15 CD I +% NN I +jump NN I +in IN O +third-quarter JJ B +net JJ I +income NN I +to TO O +$ $ B +166.8 CD I +million CD I +, , O +or CC O +78 CD B +cents NNS I +a DT B +share NN I +. . O + +In IN O +the DT B +1988 CD I +third JJ I +quarter NN I +, , O +the DT B +forest-products NNS I +company NN I +reported VBD O +profit NN B +of IN O +$ $ B +144.9 CD I +million CD I +, , O +or CC O +69 CD B +cents NNS I +a DT B +share NN I +. . O + +Sales NNS B +rose VBD O +9 CD B +% NN I +to TO O +$ $ B +2.57 CD I +billion CD I +from IN O +$ $ B +2.36 CD I +billion CD I +. . O + +For IN O +the DT B +nine CD I +months NNS I +, , O +the DT B +company NN I +posted VBD O +a DT B +14 CD I +% NN I +rise NN I +in IN O +profit NN B +to TO O +$ $ B +469.8 CD I +million CD I +, , O +or CC O +$ $ B +2.21 CD I +a DT B +share NN I +, , O +from IN O +$ $ B +410.3 CD I +million CD I +, , O +or CC O +$ $ B +1.95 CD I +a DT B +share NN I +. . O + +Sales NNS B +rose VBD O +9 CD B +% NN I +to TO O +$ $ B +7.54 CD I +billion CD I +from IN O +$ $ B +6.95 CD I +billion CD I +. . O + +Results NNS B +for IN O +the DT B +1989 CD I +third JJ I +quarter NN I +and CC I +nine CD I +months NNS I +include VBP O +a DT B +pretax JJ I +loss NN I +of IN O +$ $ B +33 CD I +million CD I +from IN O +the DT B +company NN I +'s POS B +business NN I +improvement NN I +and CC I +refocusing NN I +program NN I +, , O +and CC O +a DT B +gain NN I +of IN O +$ $ B +49 CD I +million CD I +on IN O +the DT B +sale NN I +of IN O +a DT B +subsidiary NN I +'s POS B +common JJ I +stock NN I +. . O + +Forest-products NNS B +operations NNS I +strengthened VBN O +in IN O +the DT B +third JJ I +quarter NN I +, , O +while IN O +paper NN B +operations NNS I +were VBD O +dogged VBN O +by IN O +higher JJR B +costs NNS I +, , O +soft JJ B +newsprint NN I +exports NNS I +and CC O +a DT B +strong JJ I +Japanese JJ I +yen NN I +. . O + +Some DT B +competing VBG I +forest-products NNS I +firms NNS I +have VBP O +recently RB O +reported VBN O +improved VBN B +results NNS I +due JJ O +to TO O +strong JJ B +pulp NN I +and CC I +paper NN I +business NN I +. . O + +Weyerhaeuser NNP B +'s POS B +pulp NN I +and CC I +paper NN I +operations NNS I +were VBD O +up IN O +for IN O +the DT B +nine CD I +months NNS I +, , O +but CC O +full-year JJ B +performance NN I +depends VBZ O +on IN O +the DT B +balance NN I +of IN O +operating VBG B +and CC I +maintenance NN I +costs NNS I +, , O +plus CC O +pricing NN B +of IN O +certain JJ B +products NNS I +, , O +the DT B +company NN I +said VBD O +. . O + +Looking VBG O +ahead RB O +to TO O +the DT B +fourth JJ I +quarter NN I +, , O +the DT B +company NN I +said VBD O +export NN B +log NN I +and CC I +lumber NN I +markets NNS I +will MD O +be VB O +weak JJ O +, , O +while IN O +panel NN B +and CC I +plywood NN I +markets NNS I +will MD O +be VB O +stronger JJR O +. . O + +Pulp NNP B +and CC I +paper NN I +performance NN I +depends VBZ O +on IN O +cost NN B +and CC I +price NN I +variables NNS I +, , O +the DT B +company NN I +said VBD O +. . O + +Bankers NNP B +Trust NNP I +New NNP I +York NNP I +Corp. NNP I +became VBD O +the DT B +latest JJS I +major JJ I +U.S. NNP I +bank NN I +to TO O +increase VB O +reserves NNS B +for IN O +its PRP$ B +loans NNS I +to TO O +less-developed JJ B +countries NNS I +, , O +making VBG O +a DT B +$ $ I +1.6 CD I +billion CD I +third-quarter JJ I +addition NN I +to TO O +its PRP$ B +provision NN I +. . O + +The DT B +bank NN I +also RB O +said VBD O +it PRP B +expects VBZ O +to TO O +report VB O +a DT B +$ $ I +1.42 CD I +billion CD I +loss NN I +for IN O +the DT B +third JJ I +quarter NN I +and CC O +a DT B +loss NN I +for IN O +the DT B +full JJ I +year NN I +. . O + +The DT B +new JJ I +reserves NNS I +bring VBP O +the DT B +company NN I +'s POS B +provision NN I +for IN O +loans NNS B +to TO O +Third NNP B +World NNP I +countries NNS I +to TO O +$ $ B +2.6 CD I +billion CD I +, , O +or CC O +85 CD B +% NN I +of IN O +Bankers NNP B +Trust NNP I +'s POS B +medium NN I +and CC I +long-term JJ I +loans NNS I +to TO O +these DT B +countries NNS I +. . O + +`` `` O +Step NN O +up IN O +to TO O +the DT B +plate NN I +and CC O +take VB O +the DT B +big JJ I +swing NN I +. . O + +Get VB O +the DT B +problem NN I +behind IN O +you PRP B +and CC O +do VBP O +n't RB O +look VB O +back RB O +, , O +'' '' O +said VBD O +James NNP B +J. NNP I +McDermott NNP I +, , O +analyst NN B +at IN O +Keefe NNP B +, , I +Bruyette NNP I +& CC I +Woods NNP I +, , O +in IN O +approving VBG O +of IN O +the DT B +move NN I +. . O + +Bankers NNP B +Trust NNP I +`` `` O +has VBZ O +had VBN O +the DT B +capacity NN I +to TO O +do VB O +this DT B +for IN O +some DT B +time NN I +, , O +'' '' O +the DT B +analyst NN I +said VBD O +. . O + +He PRP B +expects VBZ O +Citicorp NNP B +to TO O +take VB O +a DT B +similar JJ I +step NN I +this DT B +year NN I +. . O + +Citicorp NN B +yesterday NN B +reported VBD O +a DT B +9 CD I +% NN I +third-quarter JJ I +earnings NNS I +drop NN I +, , O +which WDT B +analysts NNS B +called VBD O +a DT O +bit NN O +disappointing JJ O +, , O +while IN O +Manufacturers NNP B +Hanover NNP I +Corp. NNP I +posted VBD O +a DT B +$ $ I +789 CD I +million CD I +loss NN I +for IN O +the DT B +quarter NN I +after IN O +adding VBG O +$ $ B +950 CD I +million CD I +to TO O +its PRP$ B +reserve NN I +for IN O +loans NNS B +to TO O +less-developed JJ B +countries NNS I +. . O + +Three CD B +other JJ I +major JJ I +U.S. NNP I +banks NNS I +posted VBD O +earnings NNS B +increases NNS I +. . O + +Wells NNP B +Fargo NNP I +& CC I +Co. NNP I +of IN O +San NNP B +Francisco NNP I +posted VBD O +a DT B +17 CD I +% NN I +jump NN I +. . O + +PNC NNP B +Financial NNP I +Corp. NNP I +, , O +the DT B +parent NN I +of IN O +Pittsburgh NNP B +National NNP I +Bank NNP I +, , O +reported VBD O +net JJ B +income NN I +climbed VBD O +9.8 CD B +% NN I +, , O +while IN O +net JJ B +for IN O +Banc NNP B +One CD I +Corp. NNP I +of IN O +Columbus NNP B +, , O +Ohio NNP B +, , O +grew VBD O +3.8 CD B +% NN I +. . O + diff --git a/example/basenp/train.data b/example/basenp/train.data new file mode 100644 index 0000000..0523a7d --- /dev/null +++ b/example/basenp/train.data @@ -0,0 +1,1973 @@ +Confidence NN B +in IN O +the DT B +pound NN I +is VBZ O +widely RB O +expected VBN O +to TO O +take VB O +another DT B +sharp JJ I +dive NN I +if IN O +trade NN B +figures NNS I +for IN O +September NNP B +, , O +due JJ O +for IN O +release NN B +tomorrow NN B +, , O +fail VB O +to TO O +show VB O +a DT B +substantial JJ I +improvement NN I +from IN O +July NNP B +and CC I +August NNP I +'s POS B +near-record JJ I +deficits NNS I +. . O + +Chancellor NNP O +of IN O +the DT B +Exchequer NNP I +Nigel NNP O +Lawson NNP O +'s POS B +restated VBN I +commitment NN I +to TO O +a DT B +firm NN I +monetary JJ I +policy NN I +has VBZ O +helped VBN O +to TO O +prevent VB O +a DT B +freefall NN I +in IN O +sterling NN B +over IN O +the DT B +past JJ I +week NN I +. . O + +But CC O +analysts NNS B +reckon VBP O +underlying VBG B +support NN I +for IN O +sterling NN B +has VBZ O +been VBN O +eroded VBN O +by IN O +the DT B +chancellor NN I +'s POS B +failure NN I +to TO O +announce VB O +any DT B +new JJ I +policy NN I +measures NNS I +in IN O +his PRP$ B +Mansion NNP I +House NNP I +speech NN I +last JJ B +Thursday NNP I +. . O + +This DT B +has VBZ O +increased VBN O +the DT B +risk NN I +of IN O +the DT B +government NN I +being VBG O +forced VBN O +to TO O +increase VB O +base NN B +rates NNS I +to TO O +16 CD B +% NN I +from IN O +their PRP$ B +current JJ I +15 CD I +% NN I +level NN I +to TO O +defend VB O +the DT B +pound NN I +, , O +economists NNS B +and CC O +foreign JJ B +exchange NN I +market NN I +analysts NNS I +say VBP O +. . O + +`` `` O +The DT B +risks NNS I +for IN O +sterling NN B +of IN O +a DT B +bad JJ I +trade NN I +figure NN I +are VBP O +very RB O +heavily RB O +on IN O +the DT B +down JJ I +side NN I +, , O +'' '' O +said VBD O +Chris NNP B +Dillow NNP I +, , O +senior JJ B +U.K. NNP I +economist NN I +at IN O +Nomura NNP B +Research NNP I +Institute NNP I +. . O + +`` `` O +If IN O +there EX B +is VBZ O +another DT B +bad JJ I +trade NN I +number NN I +, , O +there EX B +could MD O +be VB O +an DT B +awful JJ I +lot NN I +of IN O +pressure NN B +, , O +'' '' O +noted VBD O +Simon NNP B +Briscoe NNP I +, , O +U.K. NNP B +economist NN I +for IN O +Midland NNP B +Montagu NNP I +, , O +a DT B +unit NN I +of IN O +Midland NNP B +Bank NNP I +PLC NNP I +. . O + +Forecasts NNS B +for IN O +the DT B +trade NN I +figures NNS I +range VBP O +widely RB O +, , O +but CC O +few JJ B +economists NNS I +expect VBP O +the DT B +data NNS I +to TO O +show VB O +a DT B +very RB I +marked VBN I +improvement NN I +from IN O +the DT B +# # I +2 CD I +billion CD I +-LRB- ( I +$ $ I +3.2 CD I +billion CD I +-RRB- ) I +deficit NN I +in IN O +the DT B +current JJ I +account NN I +reported VBD O +for IN O +August NNP B +. . O + +The DT B +August NNP I +deficit NN I +and CC O +the DT B +# # I +2.2 CD I +billion CD I +gap NN I +registered VBN O +in IN O +July NNP B +are VBP O +topped VBN O +only RB O +by IN O +the DT B +# # I +2.3 CD I +billion CD I +deficit NN I +of IN O +October NNP B +1988 CD I +. . O + +Sanjay NNP B +Joshi NNP I +, , O +European JJ B +economist NN I +at IN O +Baring NNP B +Brothers NNPS I +& CC I +Co. NNP I +, , O +said VBD O +there EX B +is VBZ O +no DT B +sign NN I +that IN O +Britain NNP B +'s POS B +manufacturing NN I +industry NN I +is VBZ O +transforming VBG O +itself PRP B +to TO O +boost VB O +exports NNS B +. . O + +At IN O +the DT B +same JJ I +time NN I +, , O +he PRP B +remains VBZ O +fairly RB O +pessimistic JJ O +about IN O +the DT B +outlook NN I +for IN O +imports NNS B +, , O +given VBN O +continued VBD B +high JJ I +consumer NN I +and CC I +capital NN I +goods NNS I +inflows NNS I +. . O + +He PRP B +reckons VBZ O +the DT B +current JJ I +account NN I +deficit NN I +will MD O +narrow VB O +to TO O +only RB B +# # I +1.8 CD I +billion CD I +in IN O +September NNP B +. . O + +However RB O +, , O +Mr. NNP B +Dillow NNP I +said VBD O +he PRP B +believes VBZ O +that IN O +a DT B +reduction NN I +in IN O +raw JJ B +material NN I +stockbuilding VBG I +by IN O +industry NN B +could MD O +lead VB O +to TO O +a DT B +sharp JJ I +drop NN I +in IN O +imports NNS B +. . O + +Combined VBN O +with IN O +at IN B +least JJS I +some DT I +rebound NN I +in IN O +exports NNS B +after IN O +August NNP B +'s POS B +unexpected JJ I +decline NN I +, , O +the DT B +deficit NN I +could MD O +narrow VB O +to TO O +as RB B +little JJ I +as IN I +# # I +1.3 CD I +billion CD I +. . O + +Mr. NNP B +Briscoe NNP I +, , O +who WP B +also RB O +forecasts VBZ O +a DT B +# # I +1.3 CD I +billion CD I +current JJ I +account NN I +gap NN I +, , O +warns VBZ O +that IN O +even RB O +if IN O +the DT B +trade NN I +figures NNS I +are VBP O +bullish JJ O +for IN O +sterling NN B +, , O +the DT B +currency NN I +wo MD O +n't RB O +advance VB O +much JJ B +because IN O +investors NNS B +will MD O +want VB O +to TO O +see VB O +further JJ B +evidence NN I +of IN O +the DT B +turnaround NN I +before IN O +adjusting VBG O +positions NNS B +. . O + +Nevertheless RB O +, , O +he PRP B +noted VBD O +, , O +`` `` O +No DT B +one PRP I +will MD O +want VB O +to TO O +go VB O +into IN O +the DT B +trade NN I +figures NNS I +without IN O +a DT B +flat JJ I +position NN I +'' '' O +in IN O +the DT B +pound NN I +. . O + +Meanwhile RB O +, , O +overall JJ B +evidence NN I +on IN O +the DT B +economy NN I +remains VBZ O +fairly RB O +clouded VBN O +. . O + +In IN O +his PRP$ B +Mansion NNP I +House NNP I +speech NN I +, , O +Mr. NNP B +Lawson NNP I +warned VBD O +that IN O +a DT B +further JJ I +slowdown NN I +can MD O +be VB O +expected VBN O +as IN O +the DT B +impact NN I +of IN O +the DT B +last JJ I +rise NN I +in IN O +interest NN B +rates NNS I +earlier RBR B +this DT I +month NN I +takes VBZ O +effect NN B +. . O + +U.K. JJ B +base NN I +rates NNS I +are VBP O +at IN O +their PRP$ B +highest JJS I +level NN I +in IN O +eight CD B +years NNS I +. . O + +But CC O +consumer NN B +expenditure NN I +data NNS I +released VBD O +Friday NNP B +do VBP O +n't RB O +suggest VB O +that IN O +the DT B +U.K. NNP I +economy NN I +is VBZ O +slowing VBG O +that DT O +quickly RB O +. . O + +The DT B +figures NNS I +show VBP O +that DT O +spending NN B +rose VBD O +0.1 CD B +% NN I +in IN O +the DT B +third JJ I +quarter NN I +from IN O +the DT B +second JJ I +quarter NN I +and CC O +was VBD O +up IN O +3.8 CD B +% NN I +from IN O +a DT B +year NN I +ago RB O +. . O + +This DT B +compares VBZ O +with IN O +a DT B +1.6 CD I +% NN I +rise NN I +in IN O +the DT B +second NN I +from IN O +the DT B +first JJ I +quarter NN I +and CC O +a DT B +5.4 CD I +% NN I +increase NN I +from IN O +the DT B +second JJ I +quarter NN I +of IN O +1988 CD B +. . O + +Mr. NNP B +Dillow NNP I +said VBD O +the DT B +data NNS I +show VBP O +the DT B +economy NN I +`` `` O +is VBZ O +still RB O +quite RB O +strong JJ O +, , O +'' '' O +but CC O +suggestions NNS B +that IN O +much NN B +of IN O +the DT B +spending NN I +went VBD O +on IN O +services NNS B +rather RB O +than IN O +consumer NN B +goods NNS I +should MD O +reduce VB O +fears NNS B +of IN O +more JJR B +import NN I +rises NNS I +. . O + +Certainly RB O +, , O +the DT B +chancellor NN I +has VBZ O +made VBN O +it PRP B +clear JJ O +that IN O +he PRP B +is VBZ O +prepared VBN O +to TO O +increase VB O +interest NN B +rates NNS I +again RB O +if IN O +necessary JJ O +to TO O +both DT O +ensure VB O +that IN O +a DT B +substantial JJ I +slowdown NN I +does VBZ O +take VB O +place NN B +and CC O +that DT O +sterling NN B +does VBZ O +n't RB O +decline VB O +further JJ O +. . O + +Thursday NNP B +, , O +he PRP B +reminded VBD O +his PRP$ B +audience NN I +that IN O +the DT B +government NN I +`` `` O +can MD O +not RB O +allow VB O +the DT B +necessary JJ I +rigor NN I +of IN O +monetary JJ B +policy NN I +to TO O +be VB O +undermined VBN O +by IN O +exchange NN B +rate NN I +weakness NN I +. . O +'' '' O + +Analysts NNS B +agree VBP O +there EX B +is VBZ O +little JJ B +holding NN O +sterling NN B +firm NN O +at IN O +the DT B +moment NN I +other JJ O +than IN O +Mr. NNP B +Lawson NNP I +'s POS B +promise NN I +that IN O +rates NNS B +will MD O +be VB O +pushed VBN O +higher JJR O +if IN O +necessary JJ O +. . O + +And CC O +, , O +they PRP B +warn VBP O +, , O +any DT B +further JJ I +drop NN I +in IN O +the DT B +government NN I +'s POS B +popularity NN I +could MD O +swiftly RB O +make VB O +this DT B +promise NN I +sound NN O +hollow JJ O +. . O + +Sterling NNP B +was VBD O +already RB O +showing VBG O +some DT B +signs NNS I +of IN O +a DT B +lack NN I +of IN O +confidence NN B +in IN O +Mr. NNP B +Lawson NNP I +'s POS B +promise NN I +Friday NNP B +. . O + +In IN O +European JJ B +trading NN I +it PRP B +declined VBD O +to TO O +$ $ B +1.5890 CD I +and CC O +2.9495 CD B +marks NNS I +from IN O +$ $ B +1.5940 CD I +and CC O +2.9429 CD B +marks NNS I +late JJ B +Thursday NNP I +. . O + +Economists NNS B +suggested VBD O +that IN O +if IN O +the DT B +pound NN I +falls VBZ O +much JJ B +below IN O +2.90 CD B +marks NNS I +, , O +the DT B +government NN I +will MD O +be VB O +forced VBN O +to TO O +increase VB O +rates NNS B +to TO O +16 CD B +% NN I +, , O +both DT O +to TO O +halt VB O +any DT B +further JJ I +decline NN I +and CC O +ensure VB O +that IN O +the DT B +balance NN I +of IN O +monetary JJ B +policy NN I +remains VBZ O +unchanged JJ O +. . O + +Friday NNP B +'s POS B +Market NNP I +Activity NN I + +The DT B +dollar NN I +posted VBD O +gains NNS B +in IN O +quiet JJ B +trading NN I +as IN O +concerns NNS B +about IN O +equities NNS B +abated VBN O +. . O + +Foreign JJ B +exchange NN I +dealers NNS I +said VBD O +that IN O +the DT B +currency NN I +market NN I +has VBZ O +begun VBN O +to TO O +distance VB O +itself PRP B +from IN O +the DT B +volatile JJ I +stock NN I +exchange NN I +, , O +which WDT B +has VBZ O +preoccupied VBN O +the DT B +market NN I +since IN O +Oct. NNP B +13 CD I +, , O +when WRB O +the DT B +Dow NNP I +Jones NNP I +Industrial NNP I +Average NNP I +plunged VBD O +more JJR B +than IN I +190 CD I +points NNS I +. . O + +Currency NN B +analysts NNS I +predict VBP O +that IN O +in IN O +the DT B +coming VBG I +week NN I +the DT B +foreign JJ I +exchange NN I +market NN I +will MD O +shift VB O +its PRP$ B +focus NN I +back RB O +to TO O +economic JJ B +fundamentals NNS I +, , O +keeping VBG O +a DT B +close NN I +eye NN I +out IN O +for IN O +any DT B +signs NNS I +of IN O +monetary JJ B +easing NN I +by IN O +U.S. NNP B +Federal NNP I +Reserve NNP I +. . O + +Late RB O +in IN O +the DT B +New NNP I +York NNP I +trading NN I +day NN I +, , O +the DT B +dollar NN I +was VBD O +quoted VBN O +at IN O +1.8578 CD B +marks NNS I +, , O +up IN O +from IN O +1.8470 CD B +marks NNS I +late JJ B +Thursday NNP I +in IN O +New NNP B +York NNP I +. . O + +The DT B +U.S. NNP I +currency NN I +was VBD O +also RB O +changing VBG O +hands NNS B +at IN O +142.43 CD B +yen NN I +, , O +up IN O +from IN O +141.70 CD B +yen NN I +in IN O +New NNP B +York NNP I +late JJ B +Thursday NNP I +. . O + +In IN O +Tokyo NNP B +on IN O +Monday NNP B +, , O +the DT B +U.S. NNP I +currency NN I +opened VBD O +for IN O +trading NN B +at IN O +141.95 CD B +yen NN I +, , O +up IN O +from IN O +Friday NNP B +'s POS B +Tokyo NNP I +close NN I +of IN O +141.35 CD B +yen NN I +. . O + +On IN O +the DT B +Commodity NNP I +Exchange NNP I +in IN O +New NNP B +York NNP I +, , O +gold NN B +for IN O +current JJ B +delivery NN I +settled VBD O +at IN O +$ $ B +367.30 CD I +an DT B +ounce NN I +, , O +up IN O +20 CD B +cents NNS I +. . O + +Estimated VBN B +volume NN I +was VBD O +a DT B +light NN I +2.4 CD I +million CD I +ounces NNS I +. . O + +In IN O +early JJ B +trading NN I +in IN O +Hong NNP B +Kong NNP I +Monday NNP B +, , O +gold NN B +was VBD O +quoted VBN O +at IN O +$ $ B +366.50 CD I +an DT B +ounce NN I +. . O + +East NNP B +Rock NNP I +Partners NNP I +Limited NNP I +Partnership NNP I +said VBD O +it PRP B +proposed VBD O +to TO O +acquire VB O +A.P. NNP B +Green NNP I +Industries NNP I +Inc. NNP I +for IN O +$ $ B +40 CD I +a DT B +share NN I +. . O + +In IN O +an DT B +Oct. NNP I +19 CD I +letter NN I +to TO O +A.P. NNP B +Green NNP I +'s POS B +board NN I +, , O +East NNP B +Rock NNP I +said VBD O +the DT B +offer NN I +is VBZ O +subject NN O +to TO O +the DT B +signing NN I +of IN O +a DT B +merger NN I +agreement NN I +by IN O +no DT O +later RB O +than IN O +Oct. NNP B +31 CD I +. . O + +The DT B +letter NN I +, , O +attached VBN O +to TO O +a DT B +filing NN I +with IN O +the DT B +Securities NNP I +and CC I +Exchange NNP I +Commission NNP I +, , O +said VBD O +the DT B +approval NN I +is VBZ O +also RB O +contingent JJ O +upon IN O +obtaining VBG O +satisfactory JJ B +financing NN I +. . O + +An DT B +A.P. NNP I +Green NNP I +official NN I +declined VBD O +to TO O +comment VB O +on IN O +the DT B +filing NN I +. . O + +The DT B +$ $ I +40-a-share JJ I +proposal NN I +values VBZ O +the DT B +company NN I +at IN O +about RB B +$ $ I +106.6 CD I +million CD I +. . O + +A.P. NNP B +Green NNP I +currently RB O +has VBZ O +2,664,098 CD B +shares NNS I +outstanding JJ O +. . O + +Its PRP$ B +stock NN I +closed VBD O +at IN O +$ $ B +38 CD I +, , O +up IN O +$ $ B +1.875 CD I +, , O +in IN O +national JJ B +over-the-counter JJ I +trading NN I +. . O + +The DT B +company NN I +is VBZ O +a DT B +Mexico NNP I +, , I +Mo. NNP I +, , I +maker NN I +of IN O +refractory JJ B +products NNS I +. . O + +East NNP B +Rock NNP I +also RB O +said VBD O +in IN O +the DT B +filing NN I +that IN O +it PRP B +boosted VBD O +its PRP$ B +stake NN I +in IN O +A.P. NNP B +Green NNP I +to TO O +8.7 CD B +% NN I +. . O + +It PRP B +now RB O +holds VBZ O +233,000 CD B +A.P. NNP I +Green NNP I +common JJ I +shares NNS I +, , O +including VBG O +30,000 CD B +shares NNS I +bought VBD O +last JJ B +Thursday NNP I +for IN O +$ $ B +35.50 CD I +to TO I +$ $ I +36.50 CD I +a DT B +share NN I +. . O + +New NNP B +York-based JJ I +John NNP I +Kuhns NNP I +and CC I +Robert NNP I +MacDonald NNP I +control NN O +East NNP B +Rock NNP I +Partners NNP I +Inc. NNP I +, , O +the DT B +sole JJ I +general JJ I +partner NN I +of IN O +East NNP B +Rock NNP I +Partners NNP I +L.P NNP I +. . O + +The DT B +sole JJ I +limited JJ I +partner NN I +of IN O +the DT B +partnership NN I +is VBZ O +Westwood NNP B +Brick NNP I +Lime NNP I +Inc. NNP I +, , O +an DT B +indirect JJ I +subsidiary NN I +of IN O +Westwood NNP B +Group NNP I +Inc NNP I +. . O + +Both DT O +Westwood NNP B +Brick NNP I +and CC O +Westwood NNP B +Group NNP I +are VBP O +based VBN O +in IN O +Boston NNP B +. . O + +Freight NN B +rates NNS I +, , O +declining VBG O +for IN O +most RBS B +of IN O +the DT B +decade NN I +because IN O +of IN O +competition NN B +spurred VBN O +by IN O +deregulation NN B +, , O +are VBP O +bottoming VBG O +out IN O +, , O +turning VBG O +upward RB O +and CC O +threatening VBG O +to TO O +fuel VB O +inflation NN B +. . O + +Trucking NNP B +, , I +shipping VBG I +and CC I +air-freight NN I +companies NNS I +have VBP O +announced VBN O +rate NN B +increases NNS I +, , O +scheduled VBN O +for IN O +this DT B +fall NN I +or CC O +early JJ B +next JJ I +year NN I +, , O +reflecting VBG O +higher JJR B +costs NNS I +and CC O +tightened VBD B +demand NN I +for IN O +freight NN B +transport NN I +. . O + +Major JJ B +shippers NNS I +say VBP O +they PRP B +expect VBP O +freight NN B +rates NNS I +to TO O +rise VB O +at IN O +least JJS O +as RB O +fast RB O +as IN O +inflation NN B +and CC O +maybe RB O +faster RBR O +in IN O +the DT B +next JJ I +few JJ I +years NNS I +. . O + +That DT B +'s VBZ O +a DT B +big JJ I +change NN I +from IN O +recent JJ B +years NNS I +when WRB O +freight NN B +haulage NN I +was VBD O +a DT B +bright JJ I +spot NN I +for IN O +U.S. NNP B +productivity NN I +, , O +helping VBG O +to TO O +restrain VB O +inflation NN B +and CC O +make VB O +U.S. NNP B +industry NN I +more RBR O +competitive JJ O +abroad RB O +. . O + +`` `` O +Demand NN B +has VBZ O +caught VBN O +up IN O +with IN O +the DT B +supply NN I +of IN O +certain JJ B +types NNS I +of IN O +freight NN B +transportation NN I +, , O +and CC O +rates NNS B +are VBP O +starting VBG O +to TO O +move VB O +up IN O +'' '' O +at IN O +a DT B +rate NN I +`` `` O +close RB O +to TO O +or CC O +slightly RB O +more JJR O +than IN O +the DT B +inflation NN I +rate NN I +, , O +'' '' O +said VBD O +Clifford NNP B +Sayre NNP I +, , O +director NN B +of IN O +logistics NNS B +at IN O +Du NNP B +Pont NNP I +Co NNP I +. . O + +Shippers NNS B +surveyed VBN O +recently RB O +by IN O +Ohio NNP B +State NNP I +University NNP I +said VBD O +they PRP B +expect VBP O +their PRP$ B +freight-transport JJ I +, , I +storage NN I +and CC I +distribution NN I +costs NNS I +to TO O +rise VB O +about IN B +4 CD I +% NN I +this DT B +year NN I +. . O + +Only RB B +10 CD I +% NN I +of IN O +the DT B +250 CD I +shippers NNS I +polled VBN O +expected VBN O +their PRP$ B +freight-transport JJ I +costs NNS I +to TO O +decrease VB O +, , O +compared VBN O +with IN O +30 CD B +% NN I +who WP B +had VBD O +looked VBN O +to TO O +freight VB B +transport NN I +to TO O +reduce VB O +costs NNS B +in IN O +past JJ B +years NNS I +. . O + +`` `` O +This DT B +is VBZ O +the DT B +first JJ I +year NN I +since IN O +transportation NN B +deregulation NN I +in IN O +1980 CD B +that IN O +we PRP B +have VBP O +had VBN O +such JJ B +a DT I +dramatic JJ I +and CC I +broad-based JJ I +upturn NN I +in IN O +perceived VBN B +transportation NN I +rates NNS I +, , O +'' '' O +said VBD O +Bernard NNP B +LaLonde NNP I +, , O +a DT B +transportation NN I +logistics NNS I +professor NN I +at IN O +Ohio NNP B +State NNP I +in IN O +Columbus NNP B +. . O + +The DT B +deregulation NN I +of IN O +railroads NNS B +and CC I +trucking NN I +companies NNS I +that WDT B +began VBD O +in IN O +1980 CD B +enabled VBD O +shippers NNS B +to TO O +bargain VB O +for IN O +transportation NN B +. . O + +Carriers NNP B +could MD O +use VB O +their PRP$ B +equipment NN I +more RBR O +efficiently RB O +, , O +leading VBG O +to TO O +overcapacity NN B +they PRP B +were VBD O +eager JJ O +to TO O +fill VB O +. . O + +Shippers NNS B +cut VBP O +about RB B +$ $ I +35 CD I +billion CD I +from IN O +their PRP$ B +annual JJ I +, , I +inter-city JJ I +truck NN I +and CC I +rail NN I +costs NNS I +, , O +to TO O +about RB B +$ $ I +150 CD I +billion CD I +, , O +or CC O +about IN B +6.4 CD I +% NN I +of IN O +gross JJ B +national JJ I +product NN I +, , O +down RB O +from IN O +8 CD B +% NN I +of IN O +GNP NNP B +in IN O +1981 CD B +. . O + +But CC O +with IN O +much NN B +of IN O +the DT B +inefficiency NN I +squeezed VBN O +out IN O +of IN O +the DT B +freight-transport JJ I +system NN I +, , O +rising VBG B +costs NNS I +are VBP O +likely JJ O +to TO O +be VB O +reflected VBN O +directly RB O +in IN O +higher JJR B +freight NN I +rates NNS I +. . O + +`` `` O +Shippers NNS B +are VBP O +saying VBG O +` `` O +the DT B +party NN I +'s POS O +over IN O +, , O +' '' O +'' '' O +said VBD O +Mr. NNP B +LaLonde NNP I +. . O + +`` `` O +Shippers NNS B +wo MD O +n't RB O +be VB O +able JJ O +to TO O +look VB O +for IN O +transportation-cost JJ B +savings NNS I +as IN O +they PRP B +have VBP O +for IN O +the DT B +last JJ I +eight CD I +or CC I +nine CD I +years NNS I +. . O + +Transport NN B +rates NNS I +wo MD O +n't RB O +be VB O +an DT B +opportunity NN I +for IN O +offsetting VBG O +cost NN B +increases NNS I +in IN O +other JJ B +segments NNS I +of IN O +the DT B +economy NN I +. . O +'' '' O + +Robert NNP B +Delaney NNP I +, , O +a DT B +consultant NN I +at IN O +Arthur NNP B +D. NNP I +Little NNP I +Inc. NNP I +, , O +Cambridge NNP B +, , O +Mass. NNP B +, , O +said VBD O +`` `` O +We PRP B +'ve VBP O +gotten VBN O +all PDT B +the DT I +benefits NNS I +of IN O +deregulation NN B +in IN O +freight-cost JJ B +reductions NNS I +. . O + +Now RB O +we PRP B +are VBP O +starting VBG O +to TO O +see VB O +real JJ B +freight-rate JJ I +increases NNS I +as IN O +carriers NNS B +replace VBP O +equipment NN B +, , O +pay VB O +higher JJR B +fuel NN I +costs NNS I +and CC O +pay VB O +more JJR B +for IN O +labor NN B +. . O + +You PRP B +'ll MD O +see VB O +carriers NNS B +try VB O +to TO O +recoup VB O +some DT B +of IN O +the DT B +price NN I +cutting VBG I +that WDT B +occurred VBD O +previously RB O +. . O +'' '' O + +Not RB B +everyone NN I +believes VBZ O +that IN O +the DT B +good JJ I +times NNS I +are VBP O +over IN O +for IN O +shippers NNS B +. . O + +`` `` O +There EX B +'s VBZ O +still RB O +a DT B +lot NN I +of IN O +pressure NN B +on IN O +rates NNS B +in IN O +both DT B +rail NN I +and CC I +truck NN I +, , O +'' '' O +said VBD O +Gerard NNP B +McCullough NNP I +, , O +lecturer NN B +in IN O +transportation NN B +at IN O +Massachusetts NNP B +Institute NNP I +of IN O +Technology NNP B +. . O + +Less-than-truckload JJ B +companies NNS I +, , O +which WDT B +carry VBP O +the DT B +freight NN I +of IN O +several JJ B +shippers NNS I +in IN O +each DT B +truck NN I +trailer NN I +, , O +discounted VBD O +away RB O +a DT B +4.7 CD I +% NN I +rate NN I +increase NN I +implemented VBD O +last JJ B +April NNP I +. . O + +The DT B +carriers NNS I +were VBD O +competing VBG O +fiercely RB O +for IN O +market NN B +share NN I +. . O + +Railroad-rate JJ B +increases NNS I +are VBP O +likely JJ O +to TO O +be VB O +restrained VBN O +by IN O +weakening VBG B +rail-traffic JJ I +levels NNS I +and CC O +keen JJ B +competition NN I +for IN O +freight NN B +from IN O +trucks NNS B +. . O + +An DT B +official NN I +at IN O +Consolidated NNP B +Freightways NNP I +Inc. NNP I +, , O +a DT B +Menlo NNP I +Park NNP I +, , I +Calif. NNP I +, , I +less-than-truckload JJ I +carrier NN I +, , O +said VBD O +rate NN B +discounting NN I +in IN O +that DT B +industry NN I +has VBZ O +begun VBN O +to TO O +`` `` O +stabilize VB O +. . O +'' '' O + +Consolidated NNP B +Freightways NNP I +plans VBZ O +to TO O +raise VB O +its PRP$ B +rates NNS I +5.3 CD B +% NN I +late JJ B +this DT I +year NN I +or CC O +early JJ B +next JJ I +year NN I +, , O +and CC O +at IN B +least JJS I +two CD I +competitors NNS I +have VBP O +announced VBN O +similar JJ B +increases NNS I +. . O + diff --git a/example/chunking/exec.sh b/example/chunking/exec.sh new file mode 100755 index 0000000..153e34e --- /dev/null +++ b/example/chunking/exec.sh @@ -0,0 +1,11 @@ +#!/bin/sh +../../crf_learn -c 4.0 template train.data model +../../crf_test -m model test.data + +../../crf_learn -a MIRA template train.data model +../../crf_test -m model test.data + +#../../crf_learn -a CRF-L1 template train.data model +#../../crf_test -m model test.data + +rm -f model diff --git a/example/chunking/template b/example/chunking/template new file mode 100644 index 0000000..8523d52 --- /dev/null +++ b/example/chunking/template @@ -0,0 +1,25 @@ +# Unigram +U00:%x[-2,0] +U01:%x[-1,0] +U02:%x[0,0] +U03:%x[1,0] +U04:%x[2,0] +U05:%x[-1,0]/%x[0,0] +U06:%x[0,0]/%x[1,0] + +U10:%x[-2,1] +U11:%x[-1,1] +U12:%x[0,1] +U13:%x[1,1] +U14:%x[2,1] +U15:%x[-2,1]/%x[-1,1] +U16:%x[-1,1]/%x[0,1] +U17:%x[0,1]/%x[1,1] +U18:%x[1,1]/%x[2,1] + +U20:%x[-2,1]/%x[-1,1]/%x[0,1] +U21:%x[-1,1]/%x[0,1]/%x[1,1] +U22:%x[0,1]/%x[1,1]/%x[2,1] + +# Bigram +B diff --git a/example/chunking/test.data b/example/chunking/test.data new file mode 100644 index 0000000..cd605c5 --- /dev/null +++ b/example/chunking/test.data @@ -0,0 +1,19995 @@ +Rockwell NNP B-NP +International NNP I-NP +Corp. NNP I-NP +'s POS B-NP +Tulsa NNP I-NP +unit NN I-NP +said VBD B-VP +it PRP B-NP +signed VBD B-VP +a DT B-NP +tentative JJ I-NP +agreement NN I-NP +extending VBG B-VP +its PRP$ B-NP +contract NN I-NP +with IN B-PP +Boeing NNP B-NP +Co. NNP I-NP +to TO B-VP +provide VB I-VP +structural JJ B-NP +parts NNS I-NP +for IN B-PP +Boeing NNP B-NP +'s POS B-NP +747 CD I-NP +jetliners NNS I-NP +. . O + +Rockwell NNP B-NP +said VBD B-VP +the DT B-NP +agreement NN I-NP +calls VBZ B-VP +for IN B-SBAR +it PRP B-NP +to TO B-VP +supply VB I-VP +200 CD B-NP +additional JJ I-NP +so-called JJ I-NP +shipsets NNS I-NP +for IN B-PP +the DT B-NP +planes NNS I-NP +. . O + +These DT B-NP +include VBP B-VP +, , O +among IN B-PP +other JJ B-NP +parts NNS I-NP +, , O +each DT B-NP +jetliner NN I-NP +'s POS B-NP +two CD I-NP +major JJ I-NP +bulkheads NNS I-NP +, , O +a DT B-NP +pressure NN I-NP +floor NN I-NP +, , O +torque NN B-NP +box NN I-NP +, , O +fixed VBN B-NP +leading VBG I-NP +edges NNS I-NP +for IN B-PP +the DT B-NP +wings NNS I-NP +and CC O +an DT B-NP +aft JJ I-NP +keel NN I-NP +beam NN I-NP +. . O + +Under IN B-PP +the DT B-NP +existing VBG I-NP +contract NN I-NP +, , O +Rockwell NNP B-NP +said VBD B-VP +, , O +it PRP B-NP +has VBZ B-VP +already RB I-VP +delivered VBN I-VP +793 CD B-NP +of IN B-PP +the DT B-NP +shipsets NNS I-NP +to TO B-PP +Boeing NNP B-NP +. . O + +Rockwell NNP B-NP +, , O +based VBN B-VP +in IN B-PP +El NNP B-NP +Segundo NNP I-NP +, , O +Calif. NNP B-NP +, , O +is VBZ B-VP +an DT B-NP +aerospace NN I-NP +, , I-NP +electronics NNS I-NP +, , I-NP +automotive JJ I-NP +and CC I-NP +graphics NNS I-NP +concern VBP I-NP +. . O + +Frank NNP B-NP +Carlucci NNP I-NP +III NNP I-NP +was VBD B-VP +named VBN I-VP +to TO B-PP +this DT B-NP +telecommunications NNS I-NP +company NN I-NP +'s POS B-NP +board NN I-NP +, , O +filling VBG B-VP +the DT B-NP +vacancy NN I-NP +created VBN B-VP +by IN B-PP +the DT B-NP +death NN I-NP +of IN B-PP +William NNP B-NP +Sobey NNP I-NP +last JJ B-NP +May NNP I-NP +. . O + +Mr. NNP B-NP +Carlucci NNP I-NP +, , O +59 CD B-NP +years NNS I-NP +old JJ B-ADJP +, , O +served VBN B-VP +as IN B-PP +defense NN B-NP +secretary NN I-NP +in IN B-PP +the DT B-NP +Reagan NNP I-NP +administration NN I-NP +. . O + +In IN B-PP +January NNP B-NP +, , O +he PRP B-NP +accepted VBD B-VP +the DT B-NP +position NN I-NP +of IN B-PP +vice NN B-NP +chairman NN I-NP +of IN B-PP +Carlyle NNP B-NP +Group NNP I-NP +, , O +a DT B-NP +merchant NN I-NP +banking NN I-NP +concern NN I-NP +. . O + +SHEARSON NNP B-NP +LEHMAN NNP I-NP +HUTTON NNP I-NP +Inc NNP I-NP +. . O + +Thomas NNP B-NP +E. NNP I-NP +Meador NNP I-NP +, , O +42 CD B-NP +years NNS I-NP +old JJ B-ADJP +, , O +was VBD B-VP +named VBN I-VP +president NN B-NP +and CC O +chief JJ B-NP +operating VBG I-NP +officer NN I-NP +of IN B-PP +Balcor NNP B-NP +Co. NNP I-NP +, , O +a DT B-NP +Skokie NNP I-NP +, , I-NP +Ill. NNP I-NP +, , I-NP +subsidiary NN I-NP +of IN B-PP +this DT B-NP +New NNP I-NP +York NNP I-NP +investment NN I-NP +banking NN I-NP +firm NN I-NP +. . O + +Balcor NNP B-NP +, , O +which WDT B-NP +has VBZ B-VP +interests NNS B-NP +in IN B-PP +real JJ B-NP +estate NN I-NP +, , O +said VBD B-VP +the DT B-NP +position NN I-NP +is VBZ B-VP +newly RB I-VP +created VBN I-VP +. . O + +Mr. NNP B-NP +Meador NNP I-NP +had VBD B-VP +been VBN I-VP +executive JJ B-NP +vice NN I-NP +president NN I-NP +of IN B-PP +Balcor NNP B-NP +. . O + +In IN B-PP +addition NN B-NP +to TO B-PP +his PRP$ B-NP +previous JJ I-NP +real-estate NN I-NP +investment NN I-NP +and CC I-NP +asset-management NN I-NP +duties NNS I-NP +, , O +Mr. NNP B-NP +Meador NNP I-NP +takes VBZ B-VP +responsibility NN B-NP +for IN B-PP +development NN B-NP +and CC O +property NN B-NP +management NN I-NP +. . O + +Those DT B-NP +duties NNS I-NP +had VBD B-VP +been VBN I-VP +held VBN I-VP +by IN B-PP +Van NNP B-NP +Pell NNP I-NP +, , O +44 CD B-NP +, , O +who WP B-NP +resigned VBD B-VP +as IN B-PP +an DT B-NP +executive JJ I-NP +vice NN I-NP +president NN I-NP +. . O + +Shearson NNP B-NP +is VBZ B-VP +about IN B-ADJP +60%-held JJ I-ADJP +by IN B-PP +American NNP B-NP +Express NNP I-NP +Co NNP I-NP +. . O + +Great NNP B-NP +American NNP I-NP +Bank NNP I-NP +, , O +citing VBG B-VP +depressed JJ B-NP +Arizona NNP I-NP +real JJ I-NP +estate NN I-NP +prices NNS I-NP +, , O +posted VBD B-VP +a DT B-NP +third-quarter JJ I-NP +loss NN I-NP +of IN B-PP +$ $ B-NP +59.4 CD I-NP +million CD I-NP +, , O +or CC O +$ $ B-NP +2.48 CD I-NP +a DT B-NP +share NN I-NP +. . O + +A DT B-NP +year NN I-NP +earlier RBR B-ADVP +, , O +the DT B-NP +savings NNS I-NP +bank VBP I-NP +had VBD B-VP +earnings NNS B-NP +of IN B-PP +$ $ B-NP +8.1 CD I-NP +million CD I-NP +, , O +or CC O +33 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +. . O + +For IN B-PP +the DT B-NP +nine CD I-NP +months NNS I-NP +, , O +it PRP B-NP +had VBD B-VP +a DT B-NP +loss NN I-NP +of IN B-PP +$ $ B-NP +58.3 CD I-NP +million CD I-NP +, , O +or CC O +$ $ B-NP +2.44 CD I-NP +a DT B-NP +share NN I-NP +, , O +after IN B-PP +earnings NNS B-NP +of IN B-PP +$ $ B-NP +29.5 CD I-NP +million CD I-NP +, , O +or CC O +$ $ B-NP +1.20 CD I-NP +a DT B-NP +share NN I-NP +, , O +in IN B-PP +the DT B-NP +1988 CD I-NP +period NN I-NP +. . O + +Great NNP B-NP +American NNP I-NP +said VBD B-VP +it PRP B-NP +increased VBD B-VP +its PRP$ B-NP +loan-loss NN I-NP +reserves NNS I-NP +by IN B-PP +$ $ B-NP +93 CD I-NP +million CD I-NP +after IN B-PP +reviewing VBG B-VP +its PRP$ B-NP +loan NN I-NP +portfolio NN I-NP +, , O +raising VBG B-VP +its PRP$ B-NP +total JJ I-NP +loan NN I-NP +and CC I-NP +real JJ I-NP +estate NN I-NP +reserves NNS I-NP +to TO B-PP +$ $ B-NP +217 CD I-NP +million CD I-NP +. . O + +Before IN B-PP +the DT B-NP +loan-loss NN I-NP +addition NN I-NP +, , O +it PRP B-NP +said VBD B-VP +, , O +it PRP B-NP +had VBD B-VP +operating VBG B-NP +profit NN I-NP +of IN B-PP +$ $ B-NP +10 CD I-NP +million CD I-NP +for IN B-PP +the DT B-NP +quarter NN I-NP +. . O + +The DT B-NP +move NN I-NP +followed VBD B-VP +a DT B-NP +round NN I-NP +of IN B-PP +similar JJ B-NP +increases NNS I-NP +by IN B-PP +other JJ B-NP +lenders NNS I-NP +against IN B-PP +Arizona NNP B-NP +real JJ I-NP +estate NN I-NP +loans NNS I-NP +, , O +reflecting VBG B-VP +a DT B-NP +continuing VBG I-NP +decline NN I-NP +in IN B-PP +that DT B-NP +market NN I-NP +. . O + +In IN B-PP +addition NN B-NP +to TO B-PP +the DT B-NP +increased VBN I-NP +reserve NN I-NP +, , O +the DT B-NP +savings NNS I-NP +bank VBP I-NP +took VBD B-VP +a DT B-NP +special JJ I-NP +charge NN I-NP +of IN B-PP +$ $ B-NP +5 NN I-NP +million CD I-NP +representing VBG B-VP +general JJ B-NP +and CC I-NP +administrative JJ I-NP +expenses NNS I-NP +from IN B-PP +staff NN B-NP +reductions NNS I-NP +and CC O +other JJ B-NP +matters NNS I-NP +, , O +and CC O +it PRP B-NP +posted VBD B-VP +a DT B-NP +$ $ I-NP +7.6 CD I-NP +million CD I-NP +reduction NN I-NP +in IN B-PP +expected VBN B-NP +mortgage NN I-NP +servicing NN I-NP +fees NNS I-NP +, , O +reflecting VBG B-VP +the DT B-NP +fact NN I-NP +that IN B-SBAR +more JJR B-NP +borrowers NNS I-NP +are VBP B-VP +prepaying VBG I-VP +their PRP$ B-NP +mortgages NNS I-NP +. . O + +Arbitragers NNS B-NP +were VBD B-VP +n't RB O +the DT B-NP +only RB I-NP +big JJ I-NP +losers NNS I-NP +in IN B-PP +the DT B-NP +collapse NN I-NP +of IN B-PP +UAL NNP B-NP +Corp. NNP I-NP +stock NN I-NP +. . O + +Look VB B-VP +at IN B-PP +what WP B-NP +happened VBD B-VP +to TO B-PP +UAL NNP B-NP +'s POS B-NP +chairman NN I-NP +, , O +Stephen NNP B-NP +M. NNP I-NP +Wolf NNP I-NP +, , O +and CC O +its PRP$ B-NP +chief JJ I-NP +financial JJ I-NP +officer NN I-NP +, , O +John NNP B-NP +C. NNP I-NP +Pope NNP I-NP +. . O + +On IN B-PP +a DT B-NP +day NN I-NP +some DT B-NP +United NNP I-NP +Airlines NNPS I-NP +employees NNS I-NP +wanted VBD B-VP +Mr. NNP B-NP +Wolf NNP I-NP +fired VBD B-VP +and CC O +takeover NN B-NP +stock NN I-NP +speculators NNS I-NP +wanted VBD B-VP +his PRP$ B-NP +scalp NN I-NP +, , O +Messrs. NNP B-NP +Wolf NNP I-NP +and CC I-NP +Pope NNP I-NP +saw VBD B-VP +their PRP$ B-NP +prospective JJ I-NP +personal JJ I-NP +fortunes NNS I-NP +continue VBP B-VP +to TO I-VP +plummet VB I-VP +as IN B-SBAR +shares NNS B-NP +of IN B-PP +UAL NNP B-NP +, , O +United NNP B-NP +'s POS B-NP +parent NN I-NP +company NN I-NP +, , O +dived VBD B-VP +$ $ B-NP +24.875 CD I-NP +on IN B-PP +the DT B-NP +Big NNP I-NP +Board NNP I-NP +to TO B-VP +close VB I-VP +at IN B-PP +$ $ B-NP +198 CD I-NP +. . O + +Including VBG O +Monday NNP B-NP +'s POS B-NP +plunge NN I-NP +, , O +that WDT B-NP +has VBZ B-VP +given VBN I-VP +the DT B-NP +two CD I-NP +executives NNS I-NP +paper NN B-NP +losses NNS I-NP +of IN B-PP +$ $ B-NP +49.5 CD I-NP +million CD I-NP +, , O +based VBN B-VP +on IN B-PP +what WP B-NP +they PRP B-NP +would MD B-VP +have VB I-VP +realized VBN I-VP +had VBN O +the DT B-NP +pilots NNS I-NP +and CC I-NP +management-led JJ I-NP +buy-out NN I-NP +of IN B-PP +UAL NNP B-NP +gone VBN B-VP +through IN B-ADVP +at IN B-PP +$ $ B-NP +300 CD I-NP +a DT B-NP +share NN I-NP +. . O + +When WRB B-ADVP +bank NN B-NP +financing NN I-NP +for IN B-PP +the DT B-NP +buy-out NN I-NP +collapsed VBD B-VP +last JJ B-NP +week NN I-NP +, , O +so RB B-ADVP +did VBD O +UAL NNP B-NP +'s POS B-NP +stock NN I-NP +. . O + +Even RB B-ADVP +if IN B-SBAR +the DT B-NP +banks NNS I-NP +resurrect VBP B-VP +a DT B-NP +financing NN I-NP +package NN I-NP +at IN B-PP +$ $ B-NP +250 CD I-NP +a DT B-NP +share NN I-NP +, , O +the DT B-NP +two CD I-NP +executives NNS I-NP +would MD B-VP +still RB I-VP +get VB I-VP +about RB B-NP +$ $ I-NP +25 CD I-NP +million CD I-NP +less JJR B-NP +than IN B-SBAR +they PRP B-NP +stood VBD B-VP +to TO I-VP +gain VB I-VP +in IN B-PP +the DT B-NP +initial JJ I-NP +transaction NN I-NP +. . O + +Mr. NNP B-NP +Wolf NNP I-NP +owns VBZ B-VP +75,000 CD B-NP +UAL NNP I-NP +shares NNS I-NP +and CC O +has VBZ B-VP +options NNS B-NP +to TO B-VP +buy VB I-VP +another DT B-NP +250,000 CD I-NP +at IN B-PP +$ $ B-NP +83.3125 CD I-NP +each DT B-NP +. . O + +In IN B-PP +the DT B-NP +$ $ I-NP +300-a-share JJ I-NP +buyout NN I-NP +, , O +that WDT B-NP +totaled VBD B-VP +about RB B-NP +$ $ I-NP +76.7 CD I-NP +million CD I-NP +. . O + +By IN B-PP +yesterday NN B-NP +'s POS B-NP +close NN I-NP +of IN B-PP +trading NN B-NP +, , O +it PRP B-NP +was VBD B-VP +good JJ B-ADJP +for IN B-PP +a DT B-NP +paltry JJ I-NP +$ $ I-NP +43.5 CD I-NP +million CD I-NP +. . O + +Of IN B-PP +course NN B-NP +, , O +Mr. NNP B-NP +Wolf NNP I-NP +, , O +48 CD B-NP +years NNS I-NP +old JJ B-ADJP +, , O +has VBZ B-VP +some DT B-NP +savings NNS I-NP +. . O + +He PRP B-NP +left VBD B-VP +his PRP$ B-NP +last JJ I-NP +two CD I-NP +jobs NNS I-NP +at IN B-PP +Republic NNP B-NP +Airlines NNPS I-NP +and CC O +Flying NNP B-NP +Tiger NNP I-NP +with IN B-PP +combined VBN B-NP +stock-option NN I-NP +gains NNS I-NP +of IN B-PP +about RB B-NP +$ $ I-NP +22 CD I-NP +million CD I-NP +, , O +and CC O +UAL NNP B-NP +gave VBD B-VP +him PRP B-NP +a DT B-NP +$ $ I-NP +15 CD I-NP +million CD I-NP +bonus NN I-NP +when WRB B-ADVP +it PRP B-NP +hired VBD B-VP +him PRP B-NP +. . O + +His PRP$ B-NP +1988 CD I-NP +salary NN I-NP +was VBD B-VP +$ $ B-NP +575,000 CD I-NP +, , O +with IN B-PP +a DT B-NP +$ $ I-NP +575,000 CD I-NP +bonus NN I-NP +. . O + +The DT B-NP +40-year JJ I-NP +old JJ I-NP +Mr. NNP I-NP +Pope NNP I-NP +has VBZ B-VP +n't RB I-VP +changed VBN I-VP +jobs NNS B-NP +enough RB B-ADVP +-- : O +at IN B-PP +least JJS B-ADJP +the DT B-NP +right NN I-NP +ones NNS I-NP +-- : O +to TO B-VP +stash VB I-VP +away RB B-ADVP +that DT B-NP +kind NN I-NP +of IN B-PP +money NN B-NP +. . O + +United NNP B-NP +paid VBD B-VP +him PRP B-NP +a DT B-NP +$ $ I-NP +375,000 CD I-NP +bonus NN I-NP +to TO B-VP +lure VB I-VP +him PRP B-NP +away RB B-PP +from IN B-PP +American NNP B-NP +Airlines NNPS I-NP +, , O +and CC O +he PRP B-NP +was VBD B-VP +paid VBN I-VP +a DT B-NP +salary NN I-NP +of IN B-PP +$ $ B-NP +342,122 CD I-NP +last JJ B-NP +year NN I-NP +with IN B-PP +a DT B-NP +$ $ I-NP +280,000 CD I-NP +bonus NN I-NP +. . O + +Mr. NNP B-NP +Pope NNP I-NP +owns VBZ B-VP +10,000 CD B-NP +UAL NNP I-NP +shares NNS I-NP +and CC O +has VBZ B-VP +options NNS B-NP +to TO B-VP +buy VB I-VP +another DT B-NP +150,000 CD I-NP +at IN B-PP +$ $ B-NP +69 CD I-NP +each DT B-NP +. . O + +That DT B-NP +came VBD B-VP +to TO B-PP +a DT B-NP +combined VBN I-NP +$ $ I-NP +37.7 CD I-NP +million CD I-NP +under IN B-PP +the DT B-NP +$ $ I-NP +300-a-share JJ I-NP +buy-out NN I-NP +, , O +but CC O +just RB B-NP +$ $ I-NP +21.3 CD I-NP +million CD I-NP +at IN B-PP +yesterday NN B-NP +'s POS B-NP +close NN I-NP +. . O + +Of IN B-PP +the DT B-NP +combined VBN I-NP +$ $ I-NP +114.4 CD I-NP +million CD I-NP +the DT B-NP +two CD I-NP +men NNS I-NP +were VBD B-VP +scheduled VBN I-VP +to TO I-VP +reap VB I-VP +under IN B-PP +the DT B-NP +buy-out NN I-NP +, , O +they PRP B-NP +agreed VBD B-VP +to TO I-VP +invest VB I-VP +in IN B-PP +the DT B-NP +buy-out NN I-NP +just RB B-NP +$ $ I-NP +15 CD I-NP +million CD I-NP +, , O +angering VBG B-VP +many NN B-NP +of IN B-PP +the DT B-NP +thousands NNS I-NP +of IN B-PP +workers NNS B-NP +asked VBD B-VP +to TO B-VP +make VB I-VP +pay NN B-NP +concessions NNS I-NP +so RB B-SBAR +the DT B-NP +buy-out NN I-NP +would MD B-VP +be VB I-VP +a DT B-NP +success NN I-NP +. . O + +United NNP B-NP +'s POS B-NP +directors NNS I-NP +voted VBD B-VP +themselves PRP B-NP +, , O +and CC O +their PRP$ B-NP +spouses NNS I-NP +, , O +lifetime NN B-NP +access NN I-NP +to TO B-PP +the DT B-NP +Friendly NNP I-NP +Skies NNPS I-NP +-- : O +free JJ B-NP +first-class JJ I-NP +travel NN I-NP +, , O +and CC O +$ $ B-NP +20,000 CD I-NP +a DT B-NP +year NN I-NP +for IN B-PP +life NN B-NP +as IN B-ADVP +well RB I-ADVP +. . O + +Conceivably RB B-ADVP +, , O +in IN B-PP +a DT B-NP +scaled-back JJ I-NP +buy-out NN I-NP +, , O +they PRP B-NP +could MD B-VP +be VB I-VP +bumped VBN I-VP +back RB B-ADVP +to TO B-PP +coach NN B-NP +seats NNS I-NP +for IN B-PP +life NN B-NP +. . O + +Thomas NNP B-NP +H. NNP I-NP +Johnson NNP I-NP +, , O +president NN B-NP +of IN B-PP +the DT B-NP +Coatedboard NNP I-NP +division NN I-NP +of IN B-PP +Mead NNP B-NP +Corp. NNP I-NP +, , O +was VBD B-VP +named VBN I-VP +president NN B-NP +of IN B-PP +Manville NNP B-NP +Forest NNP I-NP +Products NNP I-NP +Corp. NNP I-NP +, , O +a DT B-NP +Manville NNP I-NP +unit NN I-NP +, , O +and CC O +senior JJ B-NP +vice NN I-NP +president NN I-NP +of IN B-PP +Manville NNP B-NP +Corp NNP I-NP +. . O + +Mr. NNP B-NP +Johnson NNP I-NP +succeeds VBZ B-VP +Harry NNP B-NP +W. NNP I-NP +Sherman NNP I-NP +, , O +who WP B-NP +resigned VBD B-VP +to TO B-VP +pursue VB I-VP +other JJ B-NP +interests NNS I-NP +, , O +in IN B-PP +both DT B-NP +positions NNS I-NP +. . O + +Manville NNP B-NP +is VBZ B-VP +a DT B-NP +building NN I-NP +and CC I-NP +forest NN I-NP +products NNS I-NP +concern VBP I-NP +. . O + +US PRP B-NP +Facilities NNP I-NP +Corp. NNP I-NP +said VBD B-VP +Robert NNP B-NP +J. NNP I-NP +Percival NNP I-NP +agreed VBD B-VP +to TO I-VP +step VB I-VP +down RB B-ADVP +as IN B-PP +vice NN B-NP +chairman NN I-NP +of IN B-PP +the DT B-NP +insurance NN I-NP +holding VBG I-NP +company NN I-NP +. . O + +`` `` O +There EX B-NP +was VBD B-VP +a DT B-NP +difference NN I-NP +of IN B-PP +opinion NN B-NP +as IN B-PP +to TO B-PP +the DT B-NP +future NN I-NP +direction NN I-NP +of IN B-PP +the DT B-NP +company NN I-NP +, , O +'' '' O +a DT B-NP +spokeswoman NN I-NP +said VBD B-VP +. . O + +Mr. NNP B-NP +Percival NNP I-NP +declined VBD B-VP +to TO I-VP +comment VB I-VP +. . O + +In IN B-PP +a DT B-NP +statement NN I-NP +, , O +US PRP B-NP +Facilities NNPS I-NP +said VBD B-VP +Mr. NNP B-NP +Percival NNP I-NP +'s POS B-NP +employment NN I-NP +contract NN I-NP +calls VBZ B-VP +for IN B-SBAR +him PRP B-NP +to TO B-VP +act VB I-VP +as IN B-PP +a DT B-NP +consultant NN I-NP +to TO B-PP +the DT B-NP +company NN I-NP +for IN B-PP +two CD B-NP +years NNS I-NP +. . O + +He PRP B-NP +will MD B-VP +also RB I-VP +remain VB I-VP +a DT B-NP +director NN I-NP +, , O +US PRP B-NP +Facilities NNPS I-NP +said VBD B-VP +, , O +but CC O +wo MD B-VP +n't RB I-VP +serve VB I-VP +on IN B-PP +any DT B-NP +board NN I-NP +committees NNS I-NP +. . O + +Mr. NNP B-NP +Percival NNP I-NP +will MD B-VP +be VB I-VP +succeeded VBN I-VP +on IN B-PP +an DT B-NP +interim JJ I-NP +basis NN I-NP +by IN B-PP +George NNP B-NP +Kadonada NNP I-NP +, , O +US PRP B-NP +Facilities NNPS I-NP +chairman NN I-NP +and CC I-NP +president NN I-NP +. . O + +In IN B-PP +the DT B-NP +same JJ I-NP +statement NN I-NP +, , O +US PRP B-NP +Facilities NNPS I-NP +also RB B-ADVP +said VBD B-VP +it PRP B-NP +had VBD B-VP +bought VBN I-VP +back RB B-ADVP +112,000 CD B-NP +of IN B-PP +its PRP$ B-NP +common JJ I-NP +shares NNS I-NP +in IN B-PP +a DT B-NP +private JJ I-NP +transaction NN I-NP +. . O + +Terms NNS B-NP +were VBD B-VP +n't RB I-VP +disclosed VBN I-VP +. . O + +The DT B-NP +buy-back NN I-NP +represents VBZ B-VP +about IN B-NP +3 CD I-NP +% NN I-NP +of IN B-PP +the DT B-NP +company NN I-NP +'s POS B-NP +shares NNS I-NP +, , O +based VBN B-VP +on IN B-PP +the DT B-NP +3.7 CD I-NP +million CD I-NP +shares NNS I-NP +outstanding JJ B-ADJP +as IN B-PP +of IN B-PP +Sept. NNP B-NP +30 CD I-NP +. . O + +In IN B-PP +national JJ B-NP +over-the-counter JJ I-NP +trading NN I-NP +yesterday NN B-NP +, , O +US PRP B-NP +Facilities NNPS I-NP +closed VBD B-VP +at IN B-PP +$ $ B-NP +3.625 CD I-NP +, , O +unchanged JJ B-ADJP +. . O + +Three CD B-NP +leading VBG I-NP +drug NN I-NP +companies NNS I-NP +reported VBD B-VP +robust JJ B-NP +third-quarter JJ I-NP +earnings NNS I-NP +, , O +bolstered VBN B-VP +by IN B-PP +strong JJ B-NP +sales NNS I-NP +of IN B-PP +newer JJR B-NP +, , I-NP +big-selling JJ I-NP +prescriptions NNS I-NP +drugs NNS I-NP +that WDT B-NP +provide VBP B-VP +hefty JJ B-NP +profit NN I-NP +margins NNS I-NP +. . O + +Merck NNP B-NP +& CC I-NP +Co. NNP I-NP +reported VBD B-VP +a DT B-NP +25 CD I-NP +% NN I-NP +increase NN I-NP +in IN B-PP +earnings NNS B-NP +; : O +Warner-Lambert NNP B-NP +Co. NNP I-NP +'s POS B-NP +profit NN I-NP +rose VBD B-VP +22 CD B-NP +% NN I-NP +and CC O +Eli NNP B-NP +Lilly NNP I-NP +& CC I-NP +Co. NNP I-NP +'s POS B-NP +net JJ I-NP +income NN I-NP +rose VBD B-VP +24 CD B-NP +% NN I-NP +. . O + +The DT B-NP +results NNS I-NP +were VBD B-VP +in IN B-PP +line NN B-NP +with IN B-PP +analysts NNS B-NP +' POS B-NP +expectations NNS I-NP +. . O + +Merck NNP B-NP +& CC I-NP +Co NNP I-NP +. . O + +Merck NNP B-NP +, , O +Rahway NNP B-NP +, , O +N.J. NNP B-NP +, , O +continued VBD B-VP +to TO I-VP +lead VB I-VP +the DT B-NP +industry NN I-NP +with IN B-PP +a DT B-NP +strong JJ I-NP +sales NNS I-NP +performance NN I-NP +in IN B-PP +the DT B-NP +human NN I-NP +and CC I-NP +animal NN I-NP +health-products NNS I-NP +segment VBP I-NP +. . O + +A DT B-NP +stronger JJR I-NP +U.S. NNP I-NP +dollar NN I-NP +reduced VBD B-VP +third-quarter JJ B-NP +and CC I-NP +first-nine-month JJ I-NP +sales NNS I-NP +growth NN I-NP +2 CD B-NP +% NN I-NP +and CC I-NP +3 CD I-NP +% NN I-NP +, , O +respectively RB B-ADVP +. . O + +International JJ B-NP +sales NNS I-NP +accounted VBD B-VP +for IN B-PP +47 CD B-NP +% NN I-NP +of IN B-PP +total JJ B-NP +company NN I-NP +sales NNS I-NP +for IN B-PP +the DT B-NP +nine CD I-NP +months NNS I-NP +, , O +compared VBN B-PP +with IN B-PP +50 CD B-NP +% NN I-NP +a DT B-NP +year NN I-NP +earlier RBR B-ADVP +. . O + +Sales NNS B-NP +for IN B-PP +the DT B-NP +quarter NN I-NP +rose VBD B-VP +to TO B-PP +$ $ B-NP +1.63 CD I-NP +billion CD I-NP +from IN B-PP +$ $ B-NP +1.47 CD I-NP +billion CD I-NP +. . O + +Mevacor NNP B-NP +, , O +Merck NNP B-NP +'s POS B-NP +new JJ I-NP +cholesterol-lowering JJ I-NP +drug NN I-NP +, , O +had VBD B-VP +higher JJR B-NP +sales NNS I-NP +than IN B-SBAR +any DT B-NP +other JJ I-NP +prescription NN I-NP +medicine NN I-NP +has VBZ B-VP +ever RB I-VP +achieved VBN I-VP +in IN B-PP +the DT B-NP +U.S. NNP I-NP +in IN B-PP +the DT B-NP +year NN I-NP +following VBG B-PP +introduction NN B-NP +, , O +the DT B-NP +company NN I-NP +said VBD B-VP +. . O + +The DT B-NP +drug NN I-NP +was VBD B-VP +introduced VBN I-VP +in IN B-PP +West NNP B-NP +Germany NNP I-NP +this DT B-NP +year NN I-NP +. . O + +Intense JJ B-NP +competition NN I-NP +, , O +however RB B-ADVP +, , O +led VBN B-VP +to TO B-PP +unit NN B-NP +sales NNS I-NP +declines NNS I-NP +for IN B-PP +a DT B-NP +group NN I-NP +of IN B-PP +Merck NNP B-NP +'s POS B-NP +established VBN I-NP +human NN I-NP +and CC I-NP +animal-health NN I-NP +products NNS I-NP +, , O +including VBG B-PP +Aldomet NNP B-NP +and CC I-NP +Indocin NNP I-NP +. . O + +In IN B-PP +New NNP B-NP +York NNP I-NP +Stock NNP I-NP +Exchange NNP I-NP +composite JJ I-NP +trading NN I-NP +yesterday NN B-NP +, , O +Merck NNP B-NP +shares NNS I-NP +closed VBD B-VP +at IN B-PP +$ $ B-NP +75.25 CD I-NP +, , O +up IN B-ADVP +50 CD B-NP +cents NNS I-NP +. . O + +Warner-Lambert NNP B-NP +Co NNP I-NP +. . O + +Warner-Lambert NNP B-NP +, , O +Morris NNP B-NP +Plains NNP I-NP +, , O +N.J. NNP B-NP +, , O +reported VBD B-VP +sales NNS B-NP +that WDT B-NP +were VBD B-VP +a DT B-NP +record NN I-NP +for IN B-PP +any DT B-NP +quarter NN I-NP +and CC O +the DT B-NP +eighth JJ I-NP +quarter NN I-NP +in IN B-PP +a DT B-NP +row NN I-NP +of IN B-PP +20 CD B-NP +% NN I-NP +or CC I-NP +more RBR I-NP +per-share JJ I-NP +earnings NNS I-NP +growth NN I-NP +. . O + +Spurred VBN B-VP +by IN B-PP +growth NN B-NP +in IN B-PP +world-wide JJ B-NP +sales NNS I-NP +of IN B-PP +the DT B-NP +company NN I-NP +'s POS B-NP +prescription NN I-NP +drugs NNS I-NP +, , O +Warner-Lambert NNP B-NP +said VBD B-VP +1989 CD B-NP +will MD B-VP +be VB I-VP +the DT B-NP +best JJS I-NP +year NN I-NP +in IN B-PP +its PRP$ B-NP +history NN I-NP +, , O +with IN B-SBAR +per-share JJ B-NP +earnings NNS I-NP +expected VBN B-VP +to TO I-VP +increase VB I-VP +more JJR B-NP +than IN I-NP +20 CD I-NP +% NN I-NP +to TO B-PP +about RB B-NP +$ $ I-NP +6.10 CD I-NP +. . O + +Sales NNS B-NP +for IN B-PP +the DT B-NP +quarter NN I-NP +rose VBD B-VP +to TO B-PP +$ $ B-NP +1.11 CD I-NP +billion CD I-NP +from IN B-PP +$ $ B-NP +1.03 CD I-NP +billion CD I-NP +. . O + +Prescription-drug NN B-NP +world-wide JJ I-NP +sales NNS I-NP +rose VBD B-VP +9 CD B-NP +% NN I-NP +in IN B-PP +the DT B-NP +quarter NN I-NP +to TO B-PP +$ $ B-NP +340 CD I-NP +million CD I-NP +; : O +U.S. NNP B-NP +sales NNS I-NP +rose VBD B-VP +15 CD B-NP +% NN I-NP +. . O + +The DT B-NP +segment NN I-NP +'s POS B-NP +growth NN I-NP +was VBD B-VP +led VBN I-VP +by IN B-PP +sales NNS B-NP +of IN B-PP +the DT B-NP +cardiovascular JJ I-NP +drugs NNS I-NP +Lopid NNP B-NP +, , O +a DT B-NP +lipid NN I-NP +regulator NN I-NP +, , O +and CC O +Dilzem NNP B-NP +, , O +a DT B-NP +calcium NN I-NP +channel NN I-NP +blocker NN I-NP +. . O + +World-wide JJ B-NP +sales NNS I-NP +of IN B-PP +Warner-Lambert NNP B-NP +'s POS B-NP +non-prescription JJ I-NP +health-care NN I-NP +products NNS I-NP +, , O +such JJ B-PP +as IN I-PP +Halls NNP B-NP +cough NN I-NP +tablets NNS I-NP +, , O +Rolaids NNP B-NP +antacid NN I-NP +, , O +and CC O +Lubriderm NNP B-NP +skin NN I-NP +lotion NN I-NP +, , O +increased VBN B-VP +3 CD B-NP +% NN I-NP +to TO B-PP +$ $ B-NP +362 CD I-NP +million CD I-NP +in IN B-PP +the DT B-NP +third JJ I-NP +quarter NN I-NP +; : O +U.S. NNP B-NP +sales NNS I-NP +rose VBD B-VP +5 NN B-NP +% NN I-NP +. . O + +Confectionery JJ B-NP +products NNS I-NP +sales NNS I-NP +also RB B-ADVP +had VBD B-VP +strong JJ B-NP +growth NN I-NP +in IN B-PP +the DT B-NP +quarter NN I-NP +. . O + +World-wide JJ B-NP +sales NNS I-NP +of IN B-PP +Trident NNP B-NP +gum NN I-NP +, , O +Certs NNP B-NP +breath NN I-NP +mints NNS I-NP +, , O +and CC O +Clorets NNP B-NP +gum NN I-NP +and CC I-NP +breath NN I-NP +mints NNS I-NP +, , O +increased VBN B-VP +12 CD B-NP +% NN I-NP +to TO B-PP +$ $ B-NP +277 CD I-NP +million CD I-NP +. . O + +Warner-Lambert NNP B-NP +shares NNS I-NP +closed VBD B-VP +at IN B-PP +$ $ B-NP +109.50 CD I-NP +a DT B-NP +share NN I-NP +, , O +up IN B-ADVP +$ $ B-NP +1.50 CD I-NP +, , O +in IN B-PP +Big NNP B-NP +Board NNP I-NP +composite JJ I-NP +trading NN I-NP +yesterday NN B-NP +. . O + +Eli NNP B-NP +Lilly NNP I-NP +& CC I-NP +Co NNP I-NP +. . O + +Lilly NNP B-NP +attributed VBD B-VP +record NN B-NP +third-quarter JJ I-NP +and CC I-NP +nine-month JJ I-NP +results NNS I-NP +to TO B-PP +world-wide JJ B-NP +gains NNS I-NP +for IN B-PP +pharmaceuticals NNS B-NP +, , O +medical JJ B-NP +instruments NNS I-NP +and CC O +plant-science NN B-NP +products NNS I-NP +despite IN B-PP +poor JJ B-NP +exchange NN I-NP +rates NNS I-NP +for IN B-PP +the DT B-NP +dollar NN I-NP +that WDT B-NP +slowed VBD B-VP +sales NNS B-NP +abroad RB B-ADVP +. . O + +Earnings NNS B-NP +continued VBD B-VP +to TO I-VP +pace VB I-VP +sales NNS B-NP +because IN B-PP +of IN I-PP +a DT B-NP +lower JJR I-NP +tax NN I-NP +rate NN I-NP +, , O +profit NN B-NP +from IN B-PP +the DT B-NP +renegotiation NN I-NP +of IN B-PP +the DT B-NP +debt NN I-NP +instrument NN I-NP +received VBD B-VP +from IN B-PP +Faberge NNP B-NP +Inc. NNP I-NP +in IN B-PP +connection NN B-NP +with IN B-PP +Lilly NNP B-NP +'s POS B-NP +sale NN I-NP +of IN B-PP +Elizabeth NNP B-NP +Arden NNP I-NP +Inc. NNP I-NP +in IN B-PP +1987 CD B-NP +, , O +and CC O +net JJ B-NP +proceeds NNS I-NP +from IN B-PP +the DT B-NP +settlement NN I-NP +of IN B-PP +patent NN B-NP +litigation NN I-NP +at IN B-PP +Lilly NNP B-NP +'s POS B-NP +Hybritech NNP I-NP +Inc. NNP I-NP +unit NN I-NP +. . O + +Third-quarter JJ B-NP +sales NNS I-NP +of IN B-PP +the DT B-NP +Indianapolis NNP I-NP +, , I-NP +Ind. NNP I-NP +, , I-NP +company NN I-NP +rose VBD B-VP +11 CD B-NP +% NN I-NP +to TO B-PP +$ $ B-NP +1.045 CD I-NP +billion CD I-NP +from IN B-PP +$ $ B-NP +940.6 CD I-NP +million CD I-NP +. . O + +Nine-month JJ B-NP +sales NNS I-NP +grew VBD B-VP +12 CD B-NP +% NN I-NP +to TO B-PP +$ $ B-NP +3.39 CD I-NP +billion CD I-NP +from IN B-PP +$ $ B-NP +3.03 CD I-NP +billion CD I-NP +a DT B-NP +year NN I-NP +earlier RBR B-ADVP +. . O + +Sales NNS B-NP +of IN B-PP +Prozac NNP B-NP +, , O +an DT B-NP +anti-depressant NN I-NP +, , O +led VBN B-VP +drug-sales NNS B-NP +increases NNS I-NP +. . O + +Higher JJR B-NP +sales NNS I-NP +of IN B-PP +pesticides NNS B-NP +and CC O +other JJ B-NP +plant-science NN I-NP +products NNS I-NP +more JJR B-VP +than IN I-VP +offset VB I-VP +a DT B-NP +slight JJ I-NP +decline NN I-NP +in IN B-PP +the DT B-NP +sales NNS I-NP +of IN B-PP +animal-health NN B-NP +products NNS I-NP +to TO B-VP +fuel VB I-VP +the DT B-NP +increase NN I-NP +in IN B-PP +world-wide JJ B-NP +agricultural JJ I-NP +product NN I-NP +sales NNS I-NP +, , O +Lilly NNP B-NP +said VBD B-VP +. . O + +Advanced NNP B-NP +Cardiovascular NNP I-NP +Systems NNP I-NP +Inc. NNP I-NP +and CC O +Cardiac NNP B-NP +Pacemakers NNPS I-NP +Inc. NNP I-NP +units NNS I-NP +led VBD B-VP +growth NN B-NP +in IN B-PP +the DT B-NP +medical-instrument JJ I-NP +systems NNS I-NP +division NN I-NP +. . O + +Lilly NNP B-NP +shares NNS I-NP +closed VBD B-VP +yesterday NN B-NP +in IN B-PP +composite JJ B-NP +trading NN I-NP +on IN B-PP +the DT B-NP +Big NNP I-NP +Board NNP I-NP +at IN B-PP +$ $ B-NP +62.25 CD I-NP +, , O +down RB B-ADVP +12.5 CD B-NP +cents NNS I-NP +. . O + +Reuben NNP B-NP +Mark NNP I-NP +, , O +chairman NN B-NP +of IN B-PP +Colgate-Palmolive NNP B-NP +Co. NNP I-NP +, , O +said VBD B-VP +he PRP B-NP +is VBZ B-VP +`` `` B-ADJP +comfortable JJ I-ADJP +'' '' O +with IN B-PP +analysts NNS B-NP +' POS B-NP +estimates NNS I-NP +that IN B-SBAR +third-quarter JJ B-NP +earnings NNS I-NP +rose VBD B-VP +to TO B-PP +between IN B-NP +95 CD I-NP +cents NNS I-NP +and CC I-NP +$ $ I-NP +1.05 CD I-NP +a DT B-NP +share NN I-NP +. . O + +That DT B-NP +compares VBZ B-VP +with IN B-PP +per-share JJ B-NP +earnings NNS I-NP +from IN B-PP +continuing VBG B-NP +operations NNS I-NP +of IN B-PP +69 CD B-NP +cents NNS I-NP +the DT B-NP +year NN I-NP +earlier RBR B-ADVP +; : O +including VBG B-PP +discontinued VBN B-NP +operations NNS I-NP +, , O +per-share NN B-NP +was VBD B-VP +88 CD B-NP +cents NNS I-NP +a DT B-NP +year NN I-NP +ago RB B-ADVP +. . O + +The DT B-NP +per-share JJ I-NP +estimates NNS I-NP +mean VBP B-VP +the DT B-NP +consumer-products NNS I-NP +company NN I-NP +'s POS B-NP +net JJ I-NP +income NN I-NP +, , O +increased VBN B-VP +to TO B-PP +between IN B-NP +$ $ I-NP +69.5 CD I-NP +million CD I-NP +and CC I-NP +$ $ I-NP +76 CD I-NP +million CD I-NP +, , O +from IN B-PP +$ $ B-NP +47.1 CD I-NP +million CD I-NP +the DT B-NP +year-before JJ I-NP +period NN I-NP +. . O + +Analysts NNS B-NP +estimate VBP B-VP +Colgate NNP B-NP +'s POS B-NP +world-wide JJ I-NP +third-quarter JJ I-NP +sales NNS I-NP +rose VBD B-VP +about IN B-NP +8 CD I-NP +% NN I-NP +to TO B-PP +$ $ B-NP +1.29 CD I-NP +billion CD I-NP +. . O + +Mr. NNP B-NP +Mark NNP I-NP +attributed VBD B-VP +the DT B-NP +earnings NNS I-NP +growth NN I-NP +to TO B-PP +strong JJ B-NP +sales NNS I-NP +in IN B-PP +Latin NNP B-NP +America NNP I-NP +, , O +Asia NNP B-NP +and CC O +Europe NNP B-NP +. . O + +Results NNS B-NP +were VBD B-VP +also RB I-VP +bolstered VBN I-VP +by IN B-PP +`` `` B-NP +a DT I-NP +very RB I-NP +meaningful JJ I-NP +'' '' I-NP +increase NN I-NP +in IN B-PP +operating VBG B-NP +profit NN I-NP +by IN B-PP +Colgate NNP B-NP +'s POS B-NP +U.S. NNP I-NP +business NN I-NP +, , O +Mr. NNP B-NP +Mark NNP I-NP +said VBD B-VP +. . O + +Operating NN B-NP +profit NN I-NP +at IN B-PP +Colgate NNP B-NP +'s POS B-NP +U.S. NNP I-NP +household NN I-NP +products NNS I-NP +and CC I-NP +personal-care JJ I-NP +businesses NNS I-NP +jumped VBD B-VP +25 CD B-NP +% NN I-NP +in IN B-PP +the DT B-NP +quarter NN I-NP +, , O +Mr. NNP B-NP +Mark NNP I-NP +added VBD B-VP +. . O + +He PRP B-NP +said VBD B-VP +the DT B-NP +improvement NN I-NP +was VBD B-VP +a DT B-NP +result NN I-NP +of IN B-PP +cost NN B-NP +savings NNS I-NP +achieved VBN B-VP +by IN B-PP +consolidating VBG B-VP +manufacturing NN B-NP +operations NNS B-NP +, , O +blending VBG B-VP +two CD B-NP +sales NNS I-NP +organizations NNS I-NP +and CC O +focusing VBG B-VP +more RBR B-ADVP +carefully RB I-ADVP +the DT B-NP +company NN I-NP +'s POS B-NP +promotional JJ I-NP +activities NNS I-NP +. . O + +The DT B-NP +estimated VBN I-NP +improvement NN I-NP +in IN B-PP +Colgate NNP B-NP +'s POS B-NP +U.S. NNP I-NP +operations NNS I-NP +took VBD B-VP +some DT B-NP +analysts NNS I-NP +by IN B-PP +surprise NN B-NP +. . O + +Colgate NNP B-NP +'s POS B-NP +household NN I-NP +products NNS I-NP +business NN I-NP +, , O +which WDT B-NP +includes VBZ B-VP +such JJ B-NP +brands NNS I-NP +as IN B-PP +Fab NNP B-NP +laundry NN I-NP +detergent NN I-NP +and CC O +Ajax NNP B-NP +cleanser NN I-NP +, , O +has VBZ B-VP +been VBN I-VP +a DT B-NP +weak JJ I-NP +performer NN I-NP +. . O + +Analysts NNS B-NP +estimate VBP B-VP +Colgate NNP B-NP +'s POS B-NP +sales NNS I-NP +of IN B-PP +household NN B-NP +products NNS I-NP +in IN B-PP +the DT B-NP +U.S. NNP I-NP +were VBD B-VP +flat JJ B-ADJP +for IN B-PP +the DT B-NP +quarter NN I-NP +, , O +and CC O +they PRP B-NP +estimated VBD B-VP +operating VBG B-NP +margins NNS I-NP +at IN B-PP +only RB B-NP +1 CD I-NP +% NN I-NP +to TO I-NP +3 CD I-NP +% NN I-NP +. . O + +`` `` O +If IN B-SBAR +you PRP B-NP +could MD B-VP +say VB I-VP +their PRP$ B-NP +business NN I-NP +in IN B-PP +the DT B-NP +U.S. NNP I-NP +was VBD B-VP +mediocre JJ B-ADJP +, , O +but CC O +great JJ B-ADJP +everywhere RB B-ADVP +else RB I-ADVP +, , O +that WDT B-NP +would MD B-VP +be VB I-VP +fine JJ B-ADJP +, , O +'' '' O +says VBZ B-VP +Bonita NNP B-NP +Austin NNP I-NP +, , O +an DT B-NP +analyst NN I-NP +with IN B-PP +Wertheim NNP B-NP +Schroder NNP I-NP +& CC I-NP +Co NNP I-NP +. . O + +`` `` O +But CC O +it PRP B-NP +'s VBZ B-VP +not RB O +mediocre JJ B-ADJP +, , O +it PRP B-NP +'s VBZ B-VP +a DT B-NP +real JJ I-NP +problem NN I-NP +. . O +'' '' O + +Mr. NNP B-NP +Mark NNP I-NP +conceded VBD B-VP +that IN O +Colgate NNP B-NP +'s POS B-NP +domestic JJ I-NP +business NN I-NP +, , O +apart RB B-ADVP +from IN B-PP +its PRP$ O +highly RB O +profitable JJ O +Hill NNP B-NP +'s POS B-NP +Pet NNP I-NP +Products NNPS I-NP +unit NN I-NP +, , O +has VBZ B-VP +lagged VBN I-VP +. . O + +`` `` O +We PRP B-NP +'ve VBP B-VP +done VBN I-VP +a DT B-NP +lot NN I-NP +to TO B-VP +improve VB I-VP +-LCB- ( B-NP +U.S. NNP I-NP +. . I-NP +-RCB- ) I-NP +results NNS I-NP +, , O +and CC O +a DT B-NP +lot NN I-NP +more JJR I-NP +will MD B-VP +be VB I-VP +done VBN I-VP +, , O +'' '' O +Mr. NNP B-NP +Mark NNP I-NP +said VBD B-VP +. . O + +`` `` O +Improving VBG B-VP +profitability NN B-NP +of IN B-PP +U.S. NNP B-NP +operations NNS I-NP +is VBZ B-VP +an DT B-NP +extremely RB I-NP +high JJ I-NP +priority NN I-NP +in IN B-PP +the DT B-NP +company NN I-NP +. . O +'' '' O + +To TO B-VP +focus VB I-VP +on IN B-PP +its PRP$ B-NP +global JJ I-NP +consumer-products NNS I-NP +business NN I-NP +, , O +Colgate NNP B-NP +sold VBD B-VP +its PRP$ B-NP +Kendall NNP I-NP +health-care NN I-NP +business NN I-NP +in IN B-PP +1988 CD B-NP +. . O + +H. NNP B-NP +Anthony NNP I-NP +Ittleson NNP I-NP +was VBD B-VP +elected VBN I-VP +a DT B-NP +director NN I-NP +of IN B-PP +this DT B-NP +company NN I-NP +, , O +which WDT B-NP +primarily RB B-ADVP +has VBZ B-VP +interests NNS B-NP +in IN B-PP +radio NN B-NP +and CC I-NP +television NN I-NP +stations NNS I-NP +, , O +increasing VBG B-VP +the DT B-NP +number NN I-NP +of IN B-PP +seats NNS B-NP +to TO B-PP +five CD B-NP +. . O + +Osborn NNP B-NP +also RB B-ADVP +operates VBZ B-VP +Muzak NNP B-NP +franchises NNS I-NP +, , O +entertainment NN B-NP +properties NNS I-NP +and CC O +small JJ B-NP +cable-television NN I-NP +systems NNS I-NP +. . O + +Mr. NNP B-NP +Ittleson NNP I-NP +is VBZ B-VP +executive NN B-NP +, , O +special JJ B-NP +projects NNS I-NP +, , O +at IN B-PP +CIT NNP B-NP +Group NNP I-NP +Holdings NNP I-NP +Inc. NNP I-NP +, , O +which WDT B-NP +is VBZ B-VP +controlled VBN I-VP +by IN B-PP +Manufacturers NNP B-NP +Hanover NNP I-NP +Corp NNP I-NP +. . O + +The DT B-NP +Boston NNP I-NP +Globe NNP I-NP +says VBZ B-VP +its PRP$ B-NP +newly RB I-NP +redesigned VBN I-NP +pages NNS I-NP +have VBP B-VP +a DT B-NP +`` `` I-NP +crisper NN I-NP +'' '' I-NP +look VB I-NP +with IN B-PP +revamped VBN B-NP +fixtures NNS I-NP +aimed VBN B-VP +at IN B-PP +making VBG B-VP +the DT B-NP +paper NN I-NP +`` `` O +more RBR B-ADJP +consistent JJ I-ADJP +'' '' O +and CC O +`` `` O +easier JJR B-ADJP +to TO B-VP +read VB I-VP +. . O +'' '' O + +Maybe RB B-ADVP +so RB I-ADVP +-- : O +if IN B-SBAR +you PRP B-NP +can MD B-VP +find VB I-VP +where WRB B-ADVP +your PRP$ B-NP +favorite JJ I-NP +writer NN I-NP +went VBD B-VP +. . O + +Beantown NNP B-NP +scribes NNS I-NP +, , O +who WP B-NP +spare VB B-VP +no DT B-NP +invective NN I-NP +when WRB B-ADVP +taking VBG B-VP +on IN B-PRT +local JJ B-NP +luminaries NNS I-NP +such JJ B-PP +as IN I-PP +Michael NNP B-NP +`` `` I-NP +Pee NNP I-NP +Wee NNP I-NP +'' '' I-NP +Dukakis NNP I-NP +, , O +or CC O +New NNP B-NP +England NNP I-NP +Patriots NNPS I-NP +Coach NNP I-NP +Raymond NNP I-NP +`` `` I-NP +Rev. NNP I-NP +Ray NNP I-NP +'' '' I-NP +Berry NNP I-NP +, , O +yesterday NN B-NP +poured VBD B-VP +ridicule NN B-NP +on IN B-PP +new JJ B-NP +drawings NNS I-NP +of IN B-PP +Globe NNP B-NP +columnists NNS I-NP +that WDT B-NP +replaced VBD B-VP +old JJ B-NP +photos NNS I-NP +in IN B-PP +the DT B-NP +revamped VBN I-NP +pages NNS I-NP +this DT B-NP +week NN I-NP +. . O + +By IN B-PP +late JJ B-NP +last JJ I-NP +night NN I-NP +, , O +Globe NNP B-NP +Managing NNP I-NP +Editor NNP I-NP +Thomas NNP B-NP +Mulvoy NNP I-NP +, , O +bending VBG B-VP +to TO B-PP +the DT B-NP +will MD I-NP +of IN B-PP +his PRP$ B-NP +troops NNS I-NP +, , O +scrapped VBD B-VP +the DT B-NP +new JJ I-NP +drawings NNS I-NP +. . O + +For IN B-PP +a DT B-NP +few JJ I-NP +days NNS I-NP +at IN B-PP +least JJS B-ADJP +, , O +he PRP B-NP +says VBZ B-VP +, , O +no DT B-NP +pictures NNS I-NP +or CC I-NP +drawings NNS I-NP +of IN B-PP +any DT B-NP +kind NN I-NP +will MD B-VP +adorn VB I-VP +the DT B-NP +columns NNS I-NP +. . O + +Trouble NN B-NP +was VBD B-VP +, , O +nobody NN B-NP +thought VBD B-VP +they PRP B-NP +looked VBD B-VP +right NN B-ADJP +. . O + +Globe NNP B-NP +columnist NN I-NP +Mike NNP I-NP +Barnicle NNP I-NP +-- : O +in IN B-PP +the DT B-NP +second JJ I-NP +attack NN I-NP +on IN B-PP +his PRP$ B-NP +employer NN I-NP +in IN B-PP +as IN B-NP +many JJ I-NP +weeks NNS I-NP +-- : O +averred VBD B-VP +that IN B-SBAR +his PRP$ B-NP +shadowy JJ I-NP +countenance NN I-NP +was VBD B-VP +so RB B-ADJP +bad JJ I-ADJP +, , O +it PRP B-NP +looked VBD B-VP +`` `` O +like IN B-PP +a DT B-NP +face NN I-NP +you PRP B-NP +'d MD B-VP +find VB I-VP +on IN B-PP +a DT B-NP +bottle NN I-NP +of IN B-PP +miracle NN B-NP +elixir NN I-NP +that WDT B-NP +promises VBZ B-VP +to TO I-VP +do VB I-VP +away RB B-ADVP +with IN B-PP +diarrhea NN B-NP +in IN B-PP +our PRP$ B-NP +lifetime NN I-NP +. . O +'' '' O + +Mr. NNP B-NP +Barnicle NNP I-NP +reminded VBD B-VP +readers NNS B-NP +that IN B-SBAR +he PRP B-NP +still RB B-ADVP +has VBZ B-VP +n't RB I-VP +forgiven VBN I-VP +Globe NNP B-NP +management NN I-NP +for IN B-PP +questioning VBG B-VP +a DT B-NP +$ $ I-NP +20 CD I-NP +expense NN I-NP +chit NN I-NP +he PRP B-NP +submitted VBD B-VP +for IN B-PP +parking VBG B-VP +his PRP$ B-NP +car NN I-NP +while IN B-SBAR +chasing VBG B-VP +a DT B-NP +story NN I-NP +. . O + +`` `` O +I PRP B-NP +thought VBD B-VP +-LCB- ( O +the DT B-NP +drawing VBG I-NP +-RCB- ) O +a DT B-NP +cross NN I-NP +between IN B-PP +someone NN B-NP +you PRP B-NP +'d MD B-VP +spot VB I-VP +whipping VBG I-VP +open JJ I-VP +his PRP$ B-NP +trench NN I-NP +coat NN I-NP +... : O +or CC O +a DT B-NP +guy NN I-NP +who WP B-NP +boasted VBD B-VP +he PRP B-NP +'d MD B-VP +been VBN I-VP +Charles NNP B-NP +Manson NNP I-NP +'s POS B-NP +roommate NN I-NP +for IN B-PP +the DT B-NP +last JJ I-NP +19 CD I-NP +years NNS I-NP +, , O +'' '' O +he PRP B-NP +said VBD B-VP +. . O + +Mr. NNP B-NP +Barnicle NNP I-NP +was VBD B-VP +hardly RB B-ADJP +kinder JJR I-ADJP +to TO B-PP +the DT B-NP +renderings NNS I-NP +of IN B-PP +colleagues NNS B-NP +Michael NNP B-NP +Madden NNP I-NP +-LRB- ( O +`` `` O +appears VBZ B-VP +to TO I-VP +be VB I-VP +a DT B-NP +pervert NN I-NP +'' '' O +-RRB- ) O +, , O +Will MD B-NP +McDonough NNP I-NP +-LRB- ( O +`` `` O +looks VBZ B-VP +as IN B-SBAR +if IN I-SBAR +he PRP B-NP +drove VBD B-VP +for IN B-PP +Abe NNP B-NP +Lincoln NNP I-NP +'' '' O +-RRB- ) O +or CC O +Bella NNP B-NP +English NNP I-NP +, , O +whose WP$ B-NP +`` `` I-NP +little JJ I-NP +girl NN I-NP +now RB B-ADVP +screams VBZ B-VP +hysterically RB B-ADVP +every DT B-NP +time NN I-NP +she PRP B-NP +sees VBZ B-VP +a DT B-NP +newspaper NN I-NP +. . O +'' '' O + +Lynn NNP B-NP +Staley NNP I-NP +, , O +the DT B-NP +Globe NNP I-NP +'s POS B-NP +assistant NN I-NP +managing VBG I-NP +editor NN I-NP +for IN B-PP +design NN B-NP +, , O +acknowledges VBZ B-VP +that IN B-SBAR +the DT B-NP +visages NNS I-NP +were VBD B-VP +`` `` O +on IN B-PP +the DT B-NP +low JJ I-NP +end NN I-NP +of IN B-PP +the DT B-NP +likeness NN I-NP +spectrum NN I-NP +. . O +'' '' O + +Rival NNP B-NP +Boston NNP I-NP +Herald NNP I-NP +columnist NN I-NP +Howie NNP I-NP +Carr NNP I-NP +, , O +who WP B-NP +usually RB B-ADVP +rails VBZ B-VP +at IN B-PP +Statehouse NN B-NP +`` `` I-NP +hacks NNS I-NP +'' '' I-NP +and CC I-NP +nepotism NN I-NP +, , O +argued VBD B-VP +that IN B-SBAR +the DT B-NP +new JJ I-NP +drawings NNS I-NP +were VBD B-VP +designed VBN I-VP +to TO B-VP +hide VB I-VP +Mr. NNP B-NP +Madden NNP I-NP +'s POS B-NP +`` `` O +rapidly RB B-ADJP +growing VBG I-ADJP +forehead NN B-NP +'' '' O +and CC O +the DT B-NP +facial JJ I-NP +defects NNS I-NP +of IN B-PP +`` `` B-NP +chinless JJ I-NP +'' '' I-NP +Dan NNP I-NP +Shaughnessy NNP I-NP +, , O +a DT B-NP +Globe NNP I-NP +sports NNS I-NP +columnist NN I-NP +. . O + +`` `` O +But CC O +think VBP B-VP +of IN B-PP +the DT B-NP +money NN I-NP +you PRP B-NP +, , O +the DT B-NP +reader NN I-NP +, , O +will MD B-VP +save VB I-VP +on IN B-PP +Halloween NNP B-NP +, , O +'' '' O +said VBD B-VP +Mr. NNP B-NP +Barnicle NNP I-NP +. . O + +`` `` O +Instead RB B-PP +of IN I-PP +buying VBG B-VP +masks NNS B-NP +for IN B-PP +your PRP$ B-NP +kids NNS I-NP +, , O +just RB B-ADVP +cut VB B-VP +out RP B-PRT +the IN B-NP +columnists NNS I-NP +' POS B-NP +pictures NNS I-NP +... : O +. . O + +Deeply RB B-ADJP +ingrained JJ I-ADJP +in IN B-PP +both DT O +the DT B-NP +book NN I-NP +review NN I-NP +`` `` O +Kissing VBG B-VP +Nature NNP B-NP +Good-bye UH B-NP +'' '' O +by IN B-PP +Stephen NNP B-NP +MacDonald NNP I-NP +-LRB- ( O +Leisure NNP B-NP +& CC I-NP +Arts NNP I-NP +, , O +Sept. NNP B-NP +27 CD I-NP +-RRB- ) O +and CC O +the DT B-NP +books NNS I-NP +reviewed VBN B-VP +is VBZ B-VP +the DT B-NP +assumption NN I-NP +that IN B-SBAR +global JJ B-NP +warming NN I-NP +is VBZ B-VP +entirely RB B-ADVP +a DT B-NP +result NN I-NP +of IN B-PP +human JJ B-NP +activity NN I-NP +. . O + +Is VBZ O +such JJ B-NP +a DT I-NP +view NN I-NP +justified VBN B-VP +? . O + +In IN B-PP +the DT B-NP +absence NN I-NP +of IN B-PP +humans NNS B-NP +, , O +would MD O +the DT B-NP +Earth NNP I-NP +enjoy VB B-VP +a DT B-NP +constant JJ I-NP +climate NN I-NP +over IN B-PP +the DT B-NP +long JJ I-NP +term NN I-NP +? . O + +Clearly RB B-ADVP +not RB I-ADVP +. . O + +About IN B-NP +20,000 CD I-NP +years NNS I-NP +ago RB B-ADVP +the DT B-NP +last JJ I-NP +ice NN I-NP +age NN I-NP +ended VBD B-VP +. . O + +Enormous JJ B-NP +ice NN I-NP +sheets NNS I-NP +retreated VBD B-VP +from IN B-PP +the DT B-NP +face NN I-NP +of IN B-PP +North NNP B-NP +America NNP I-NP +, , O +northern JJ B-NP +Europe NNP I-NP +and CC O +Asia NNP B-NP +. . O + +This DT B-NP +global JJ I-NP +warming NN I-NP +must MD B-VP +have VB I-VP +been VBN I-VP +entirely RB B-ADJP +natural JJ I-ADJP +-- : O +nobody NN B-NP +would MD B-VP +blame VB I-VP +it PRP B-NP +on IN B-PP +a DT B-NP +few JJ I-NP +hundred CD I-NP +thousand CD I-NP +hunter-gatherers NNS I-NP +hunting NN B-VP +mammoths NNS B-NP +and CC O +scratching VBG B-VP +around IN O +in IN B-PP +caves NNS B-NP +. . O + +Furthermore RB B-ADVP +, , O +no DT B-NP +bell NN I-NP +has VBZ B-VP +yet RB I-VP +rung VBN I-VP +to TO I-VP +announce VB I-VP +the DT B-NP +end NN I-NP +of IN B-PP +this DT B-NP +immense JJ I-NP +episode NN I-NP +of IN B-PP +natural JJ B-NP +global JJ I-NP +warming NN I-NP +. . O + +It PRP B-NP +is VBZ B-VP +probably RB I-VP +continuing VBG I-VP +and CC O +may MD B-VP +well RB I-VP +account VB I-VP +for IN B-PP +most RBS B-NP +of IN B-PP +, , O +or CC O +all DT B-NP +of IN B-PP +, , O +present-day JJ B-NP +global JJ I-NP +warming NN I-NP +. . O + +I PRP B-NP +bow VBP B-VP +to TO B-PP +no DT B-NP +one CD I-NP +in IN B-PP +my PRP$ B-NP +regard NN I-NP +for IN B-PP +our PRP$ B-NP +terrestrial JJ I-NP +heritage NN I-NP +, , O +but CC O +if IN B-SBAR +we PRP B-NP +are VBP B-VP +serious JJ B-ADJP +about IN B-PP +global JJ B-NP +warming NN I-NP +we PRP B-NP +must MD B-VP +look VB I-VP +at IN B-PP +the DT B-NP +big JJ I-NP +picture NN I-NP +and CC O +not RB B-VP +allow VB I-VP +the DT B-NP +Dominant NNP I-NP +Culture NNP I-NP +to TO B-VP +lock VB I-VP +us PRP B-NP +into IN B-PP +the DT B-NP +capitalist-exploiters-greedy-American-consumers-global JJ I-NP +- : I-NP +warming NN I-NP +scenario NN I-NP +as IN B-PP +the DT B-NP +sole JJ I-NP +model NN I-NP +for IN B-PP +discussion NN B-NP +. . O + +Jocelyn NNP B-NP +Tomkin NNP I-NP +Astronomy NNP B-NP +Department NNP I-NP +University NNP B-NP +of IN B-PP + +The DT B-NP +Internal NNP I-NP +Revenue NNP I-NP +Service NNP I-NP +plans VBZ B-VP +to TO I-VP +restructure VB I-VP +itself PRP B-NP +more JJR B-ADVP +like IN B-PP +a DT B-NP +private JJ I-NP +corporation NN I-NP +. . O + +In IN B-PP +addition NN B-NP +, , O +the DT B-NP +tax-collecting JJ I-NP +agency NN I-NP +says VBZ B-VP +that IN B-SBAR +it PRP B-NP +will MD B-VP +take VB I-VP +the DT B-NP +unusual JJ I-NP +step NN I-NP +of IN B-PP +looking VBG B-VP +to TO B-PP +the DT B-NP +private JJ I-NP +sector NN I-NP +to TO B-VP +fill VB I-VP +two CD B-NP +new JJ I-NP +high-level JJ I-NP +positions NNS I-NP +to TO B-VP +guide VB I-VP +the DT B-NP +120,000-employee JJ I-NP +agency NN I-NP +: : O +a DT B-NP +comptroller NN I-NP +to TO B-VP +oversee VB I-VP +daily JJ B-NP +finances NNS I-NP +and CC O +a DT B-NP +chief JJ I-NP +information NN I-NP +officer NN I-NP +to TO B-VP +update VB I-VP +the DT B-NP +information NN I-NP +system NN I-NP +, , O +which WDT B-NP +includes VBZ B-VP +probably RB B-NP +the DT I-NP +largest JJS I-NP +computer NN I-NP +data NNS I-NP +base VBP I-NP +in IN B-PP +the DT B-NP +world NN I-NP +. . O + +The DT B-NP +IRS NNP I-NP +also RB B-ADVP +said VBD B-VP +that IN B-SBAR +it PRP B-NP +would MD B-VP +create VB I-VP +the DT B-NP +position NN I-NP +of IN B-PP +chief JJ B-NP +financial JJ I-NP +officer NN I-NP +, , O +who WP B-NP +will MD B-VP +be VB I-VP +hired VBN I-VP +from IN B-PP +within IN B-PP +the DT B-NP +agency NN I-NP +. . O + +IRS NNP B-NP +Commissioner NNP I-NP +Fred NNP I-NP +T. NNP I-NP +Goldberg NNP I-NP +said VBD B-VP +the DT B-NP +changes NNS I-NP +are VBP B-VP +intended VBN I-VP +to TO I-VP +bring VB I-VP +`` `` O +accountability NN B-NP +'' '' O +to TO B-PP +the DT B-NP +agency NN I-NP +, , O +which WDT B-NP +has VBZ B-VP +an DT B-NP +annual JJ I-NP +budget NN I-NP +of IN B-PP +more JJR B-NP +than IN I-NP +$ $ I-NP +5 NN I-NP +billion CD I-NP +and CC O +collects VBZ B-VP +about RB B-NP +$ $ I-NP +1 CD I-NP +trillion CD I-NP +a DT B-NP +year NN I-NP +. . O + +`` `` O +My PRP$ B-NP +assessment NN I-NP +and CC O +everyone NN B-NP +'s POS B-NP +assessment NN I-NP +is VBZ B-VP +that IN B-SBAR +we PRP B-NP +do VBP B-VP +not RB I-VP +have VB I-VP +the DT B-NP +kinds NNS I-NP +of IN B-PP +information NN B-NP +that WDT B-NP +let VBP B-VP +us PRP B-NP +responsibly RB B-VP +and CC I-VP +effectively RB I-VP +formulate VB I-VP +and CC I-VP +execute VB I-VP +our PRP$ B-NP +budget NN I-NP +, , O +'' '' O +Mr. NNP B-NP +Goldberg NNP I-NP +said VBD B-VP +. . O + +`` `` O +And CC O +we PRP B-NP +do VBP B-VP +n't RB I-VP +have VB I-VP +internal JJ B-NP +controls NNS I-NP +and CC I-NP +discipline NN I-NP +that IN B-NP +we PRP B-NP +need VBP B-VP +to TO I-VP +have VB I-VP +to TO B-VP +spend VB I-VP +$ $ B-NP +5 NN I-NP +billion CD I-NP +properly RB B-ADVP +. . O +'' '' O + +Mr. NNP B-NP +Goldberg NNP I-NP +, , O +who WP B-NP +took VBD B-VP +over IN B-PRT +as IN B-PP +head NN B-NP +of IN B-PP +the DT B-NP +IRS NNP I-NP +in IN B-PP +July NNP B-NP +, , O +has VBZ B-VP +been VBN I-VP +disturbed VBN I-VP +by IN B-PP +what WP B-NP +he PRP B-NP +considers VBZ B-VP +the DT B-NP +inefficiency NN I-NP +, , I-NP +waste NN I-NP +and CC I-NP +lack NN I-NP +of IN B-PP +coordination NN B-NP +among IN B-PP +the DT B-NP +branches NNS I-NP +of IN B-PP +the DT B-NP +vast JJ I-NP +federal JJ I-NP +agency NN I-NP +. . O + +The DT B-NP +IRS NNP I-NP +operates VBZ B-VP +on IN B-PP +a DT B-NP +computer NN I-NP +system NN I-NP +designed VBN B-VP +in IN B-PP +1961 CD B-NP +, , O +which WDT B-NP +it PRP B-NP +has VBZ B-VP +been VBN I-VP +trying VBG I-VP +to TO I-VP +modernize VB I-VP +for IN B-PP +years NNS B-NP +. . O + +And CC O +the DT B-NP +agency NN I-NP +, , O +which WDT B-NP +operated VBD B-VP +throughout IN B-PP +fiscal JJ B-NP +1989 CD I-NP +with IN B-PP +a DT B-NP +$ $ I-NP +360 CD I-NP +million CD I-NP +budget NN I-NP +shortfall NN I-NP +, , O +has VBZ B-VP +been VBN I-VP +under IN B-PP +a DT B-NP +hiring VBG I-NP +freeze NN I-NP +since IN B-PP +last JJ B-NP +fall NN I-NP +. . O + +The DT B-NP +new JJ I-NP +commissioner NN I-NP +says VBZ B-VP +that IN B-SBAR +closer JJR B-NP +scrutiny NN I-NP +of IN B-PP +how WRB B-ADVP +the DT B-NP +agency NN I-NP +uses VBZ B-VP +its PRP$ B-NP +resources NNS I-NP +will MD B-VP +go VB I-VP +a DT B-NP +long JJ I-NP +way NN I-NP +toward IN B-PP +enhancing VBG B-VP +its PRP$ B-NP +ability NN I-NP +to TO B-VP +collect VB I-VP +more JJR B-NP +tax NN I-NP +revenue NN I-NP +. . O + +`` `` O +I PRP B-NP +think VBP B-VP +that IN B-SBAR +you PRP B-NP +will MD B-VP +see VB I-VP +a DT B-NP +significant JJ I-NP +improvement NN I-NP +in IN B-PP +the DT B-NP +budget NN I-NP +formulation NN I-NP +and CC I-NP +execution NN I-NP +process NN I-NP +which WDT B-NP +, , O +in IN B-PP +turn NN B-NP +, , O +I PRP B-NP +believe VBP B-VP +will MD B-VP +result VB I-VP +in IN B-PP +a DT B-NP +significant JJ I-NP +increase NN I-NP +in IN B-PP +revenue NN B-NP +, , O +'' '' O +he PRP B-NP +said VBD B-VP +. . O + +The DT B-NP +IRS NNP I-NP +hopes VBZ B-VP +to TO I-VP +fill VB I-VP +the DT B-NP +new JJ I-NP +positions NNS I-NP +soon RB B-ADVP +. . O + +Customarily RB B-ADVP +, , O +it PRP B-NP +would MD B-VP +appoint VB I-VP +career NN B-NP +civil JJ I-NP +servants NNS I-NP +from IN B-PP +within IN B-NP +the DT B-NP +agency NN I-NP +, , O +but CC O +Mr. NNP B-NP +Goldberg NNP I-NP +said VBD B-VP +he PRP B-NP +plans VBZ B-VP +to TO I-VP +`` `` I-VP +scour VBP I-VP +the DT B-NP +world NN I-NP +'' '' O +for IN B-PP +the DT B-NP +chief JJ I-NP +information NN I-NP +officer NN I-NP +and CC O +the DT B-NP +comptroller NN I-NP +. . O + +Although IN B-SBAR +the DT B-NP +jobs NNS I-NP +will MD B-VP +probably RB I-VP +pay VB I-VP +between IN B-NP +$ $ I-NP +70,000 CD I-NP +and CC I-NP +$ $ I-NP +80,000 CD I-NP +a DT B-NP +year NN I-NP +, , O +IRS NNP B-NP +officials NNS I-NP +are VBP B-VP +confident JJ B-ADJP +that IN B-SBAR +they PRP B-NP +can MD B-VP +attract VB I-VP +top-notch JJ B-NP +candidates NNS I-NP +from IN B-PP +the DT B-NP +private JJ I-NP +sector NN I-NP +. . O + +`` `` O +You PRP B-NP +'re VBP B-VP +telling VBG I-VP +someone NN B-NP +they PRP B-NP +can MD B-VP +spend VB I-VP +the DT B-NP +next JJ I-NP +three CD I-NP +or CC I-NP +four CD I-NP +or CC I-NP +five CD I-NP +or CC I-NP +six CD I-NP +years NNS I-NP +of IN B-PP +their PRP$ B-NP +life NN I-NP +bringing VBG B-VP +about IN B-PRT +the DT B-NP +most RBS I-NP +difficult JJ I-NP +and CC I-NP +costly JJ I-NP +modernization NN I-NP +of IN B-PP +an DT B-NP +information NN I-NP +system NN I-NP +on IN B-PP +the DT B-NP +civil JJ I-NP +side NN I-NP +ever RB B-NP +, , O +'' '' O +Mr. NNP B-NP +Goldberg NNP I-NP +said VBD B-VP +. . O + +`` `` O +On IN B-PP +the DT B-NP +comptroller NN I-NP +side NN I-NP +, , O +you PRP B-NP +'re VBP B-VP +developing VBG I-VP +and CC O +making VBG B-VP +work NN B-VP +financial JJ B-NP +controls NNS I-NP +governing VBG B-VP +a DT B-NP +$ $ I-NP +6 CD I-NP +billion CD I-NP +budget NN I-NP +. . O + +When WRB B-ADVP +Maj. NNP B-NP +Moises NNP I-NP +Giroldi NNP I-NP +, , O +the DT B-NP +leader NN I-NP +of IN B-PP +the DT B-NP +abortive JJ I-NP +coup NN I-NP +in IN B-PP +Panama NNP B-NP +, , O +was VBD B-VP +buried VBN I-VP +, , O +his PRP$ B-NP +body NN I-NP +bore VBD B-VP +several JJ B-NP +gunshot NN I-NP +wounds NNS I-NP +, , O +a DT B-NP +cracked VBN I-NP +skull NN I-NP +and CC O +broken VBN B-NP +legs NNS I-NP +and CC I-NP +ribs NNS I-NP +. . O + +They PRP B-NP +were VBD B-VP +the DT B-NP +signature NN I-NP +of IN B-PP +his PRP$ B-NP +adversary NN I-NP +, , O +Panamanian JJ B-NP +leader NN I-NP +Manuel NNP I-NP +Antonio NNP I-NP +Noriega NNP I-NP +. . O + +The DT B-NP +rebel NN I-NP +officer NN I-NP +'s POS B-NP +slow JJ I-NP +and CC I-NP +painful JJ I-NP +death NN I-NP +, , O +at IN B-PP +the DT B-NP +headquarters NN I-NP +of IN B-PP +Panama NNP B-NP +'s POS B-NP +Battalion-2000 NN I-NP +squad NN I-NP +, , O +was VBD B-VP +personally RB I-VP +supervised VBN I-VP +by IN B-PP +Gen. NNP B-NP +Noriega NNP I-NP +, , O +says VBZ B-VP +a DT B-NP +U.S. NNP I-NP +official NN I-NP +with IN B-PP +access NN B-NP +to TO B-PP +intelligence NN B-NP +reports NNS I-NP +. . O + +Leaping VBG B-VP +into IN B-PP +rages VBZ B-NP +, , O +sinking VBG B-VP +into IN B-PP +bouts NNS B-NP +of IN B-PP +drunkenness NN B-NP +and CC I-NP +mistrust NN I-NP +, , O +Mr. NNP B-NP +Noriega NNP I-NP +has VBZ B-VP +put VBN I-VP +to TO B-PP +death NN B-NP +some DT B-NP +70 CD I-NP +of IN B-PP +his PRP$ B-NP +troops NNS I-NP +involved VBN B-VP +in IN B-PP +the DT B-NP +coup NN I-NP +, , O +according VBG B-PP +to TO B-PP +U.S. NNP B-NP +officials NNS I-NP +monitoring NN B-VP +crematoriums NNS B-NP +and CC O +funeral NN B-NP +parlors NNS I-NP +in IN B-PP +Panama NNP B-NP +City NNP I-NP +. . O + +He PRP B-NP +is VBZ B-VP +now RB I-VP +changing VBG I-VP +the DT B-NP +place NN I-NP +he PRP B-NP +sleeps VBZ B-VP +every DT B-NP +night NN I-NP +, , O +sometimes RB B-NP +more JJR I-NP +than IN I-NP +once RB I-NP +a DT B-NP +night NN I-NP +. . O + +His PRP$ B-NP +meals NNS I-NP +are VBP B-VP +most RBS I-VP +often RB I-VP +prepared VBN I-VP +by IN B-PP +women NNS B-NP +he PRP B-NP +trusts VBZ B-VP +-- : O +his PRP$ B-NP +full-time JJ I-NP +mistress NN I-NP +, , O +Vicky NNP B-NP +Amado NNP I-NP +, , O +and CC O +her PRP$ B-NP +mother NN I-NP +, , O +Norma NNP B-NP +. . O + +And CC O +he PRP B-NP +is VBZ B-VP +collecting VBG I-VP +the DT B-NP +names NNS I-NP +of IN B-PP +those DT B-NP +who WP B-NP +telephoned VBD B-VP +the DT B-NP +coup-makers NNS I-NP +to TO B-VP +congratulate VB I-VP +them PRP B-NP +during IN B-PP +their PRP$ B-NP +brief JJ I-NP +time NN I-NP +in IN B-PP +control NN B-NP +of IN B-PP +his PRP$ B-NP +headquarters NN I-NP +. . O + +More JJR B-NP +enemies NNS I-NP +to TO B-VP +be VB I-VP +dealt VBN I-VP +with RB B-PP +. . O + +In IN B-PP +the DT B-NP +two CD I-NP +weeks NNS I-NP +since IN B-PP +the DT B-NP +rebellion NN I-NP +, , O +which WDT B-NP +the DT B-NP +U.S. NNP I-NP +hesitantly RB B-VP +backed VBD I-VP +, , O +Mr. NNP B-NP +Noriega NNP I-NP +has VBZ B-VP +been VBN I-VP +at IN B-PP +his PRP$ B-NP +most RBS I-NP +brutal JJ I-NP +- : O +and CC O +efficient JJ O +- : O +in IN B-PP +maintaining VBG B-VP +power NN B-NP +. . O + +Yet RB B-ADVP +, , O +while IN B-SBAR +the DT B-NP +failed VBN I-NP +coup NN I-NP +is VBZ B-VP +a DT B-NP +major JJ I-NP +U.S. NNP I-NP +foreign JJ I-NP +policy NN I-NP +embarrassment NN I-NP +, , O +it PRP B-NP +is VBZ B-VP +merely RB B-NP +the DT I-NP +latest JJS I-NP +chapter NN I-NP +in IN B-PP +a DT B-NP +byzantine JJ I-NP +relationship NN I-NP +between IN B-PP +Mr. NNP B-NP +Noriega NNP I-NP +and CC O +Washington NNP B-NP +that IN B-NP +stretches NNS B-VP +back RB B-ADVP +three CD B-NP +decades NNS I-NP +. . O + +America NNP B-NP +'s POS B-NP +war NN I-NP +on IN B-PP +the DT B-NP +dictator NN I-NP +over IN B-PP +the DT B-NP +past JJ I-NP +two CD I-NP +years NNS I-NP +, , O +following VBG B-PP +his PRP$ B-NP +indictment NN I-NP +on IN B-PP +drug NN B-NP +charges NNS I-NP +in IN B-PP +February NNP B-NP +1988 CD I-NP +, , O +is VBZ B-VP +the DT B-NP +legacy NN I-NP +of IN B-PP +that DT B-NP +relationship NN I-NP +. . O + +Before IN B-SBAR +American JJ B-NP +foreign JJ I-NP +policy NN I-NP +set VBN B-VP +out IN B-PRT +to TO B-VP +destroy VB I-VP +Noriega NNP B-NP +, , O +it PRP B-NP +helped VBD B-VP +create VB I-VP +him PRP B-NP +out IN B-PP +of IN B-PP +the DT B-NP +crucible NN I-NP +of IN B-PP +Panama NNP B-NP +'s POS B-NP +long JJ I-NP +history NN I-NP +of IN B-PP +conspirators NNS B-NP +and CC I-NP +pirates NNS I-NP +. . O + +For IN B-PP +most RBS B-NP +of IN I-NP +the DT I-NP +past JJ I-NP +30 CD I-NP +years NNS I-NP +, , O +the DT B-NP +marriage NN I-NP +was VBD B-VP +one CD B-NP +of IN B-PP +convenience NN B-NP +. . O + +In IN B-PP +1960 CD B-NP +, , O +for IN B-PP +example NN B-NP +, , O +when WRB B-ADVP +Mr. NNP B-NP +Noriega NNP I-NP +was VBD B-VP +both DT O +a DT B-NP +cadet NN I-NP +at IN B-PP +an DT B-NP +elite NN I-NP +military JJ I-NP +academy NN I-NP +in IN B-PP +Peru NNP B-NP +and CC O +a DT B-NP +spy-in-training NN I-NP +for IN B-PP +the DT B-NP +U.S. NNP I-NP +Defense NNP I-NP +Intelligence NNP I-NP +Agency NNP I-NP +, , O +he PRP B-NP +was VBD B-VP +detained VBN I-VP +by IN B-PP +Lima NNP B-NP +authorities NNS I-NP +for IN B-PP +allegedly RB B-ADVP +raping VBG B-VP +and CC O +savagely RB B-VP +beating VBG I-VP +a DT B-NP +prostitute NN I-NP +, , O +according VBG B-PP +to TO B-PP +a DT B-NP +U.S. NNP I-NP +Embassy NNP I-NP +cable NN I-NP +from IN B-PP +that DT B-NP +period NN I-NP +. . O + +The DT B-NP +woman NN I-NP +had VBD B-VP +nearly RB I-VP +died VBN I-VP +. . O + +But CC O +U.S. NNP B-NP +intelligence NN I-NP +, , O +rather RB B-SBAR +than IN I-SBAR +rein NN B-VP +in IN B-ADVP +or CC O +cut NN B-VP +loose JJ B-ADJP +its PRP$ B-NP +new JJ I-NP +spy NN I-NP +, , O +merely RB B-ADVP +filed VBN B-VP +the DT B-NP +report NN I-NP +away RB B-ADVP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +tips NNS I-NP +on IN B-PP +emerging VBG B-NP +leftists NNS I-NP +at IN B-PP +his PRP$ B-NP +school NN I-NP +were VBD B-VP +deemed VBN I-VP +more RBR B-ADJP +important JJ I-ADJP +to TO B-PP +U.S. NNP B-NP +interests NNS I-NP +. . O + +From IN B-PP +that DT B-NP +point NN I-NP +on IN I-NP +, , O +the DT B-NP +U.S. NNP I-NP +would MD B-VP +make VB I-VP +a DT B-NP +practice NN I-NP +of IN B-PP +overlooking VBG B-VP +the DT B-NP +Panamanian NNP I-NP +'s POS B-NP +misadventures NNS I-NP +. . O + +The DT B-NP +U.S. NNP I-NP +has VBZ B-VP +befriended VBN I-VP +and CC O +later RB B-VP +turned VBD I-VP +against IN B-PP +many JJ B-NP +dictators NNS I-NP +, , O +but CC O +none NN B-NP +quite RB B-ADJP +so RB I-ADJP +resourceful JJ I-ADJP +. . O + +The DT B-NP +55-year-old NNP I-NP +Mr. NNP I-NP +Noriega NNP I-NP +is VBZ B-VP +n't RB O +as RB B-ADJP +smooth JJ I-ADJP +as IN B-PP +the DT B-NP +shah NN I-NP +of IN B-PP +Iran NNP B-NP +, , O +as RB B-ADJP +well-born JJ I-ADJP +as IN B-PP +Nicaragua NNP B-NP +'s POS B-NP +Anastasio NNP I-NP +Somoza NNP I-NP +, , O +as RB B-ADJP +imperial JJ I-ADJP +as IN B-PP +Ferdinand NNP B-NP +Marcos NNP I-NP +of IN B-PP +the DT B-NP +Philippines NNP I-NP +or CC O +as RB B-ADJP +bloody JJ I-ADJP +as IN B-PP +Haiti NNP B-NP +'s POS B-NP +Baby NNP I-NP +Doc NNP I-NP +Duvalier NNP I-NP +. . O + +Yet RB O +he PRP B-NP +has VBZ B-VP +proved VBN I-VP +more RBR B-ADJP +resilient JJ I-ADJP +than IN B-PP +any DT B-NP +of IN B-PP +them PRP B-NP +. . O + +And CC O +out IN B-ADVP +of IN B-PP +necessity NN B-NP +: : O +The DT B-NP +U.S. NNP I-NP +can MD B-VP +make VB I-VP +mistakes NNS B-NP +and CC O +still JJ B-ADVP +hope NN B-VP +to TO I-VP +remove VB I-VP +him PRP B-NP +from IN B-PP +power NN B-NP +, , O +but CC O +a DT B-NP +single JJ I-NP +error NN I-NP +on IN B-PP +his PRP$ B-NP +part NN I-NP +could MD B-VP +cost VB I-VP +him PRP B-NP +his PRP$ B-NP +life NN I-NP +. . O + +`` `` O +The DT B-NP +U.S. NNP I-NP +underestimated VBD B-VP +Noriega NNP B-NP +all DT B-ADVP +along IN I-ADVP +, , O +'' '' O +says VBZ B-VP +Ambler NNP B-NP +Moss NNP I-NP +, , O +a DT B-NP +former JJ I-NP +Ambassador NNP I-NP +to TO B-PP +Panama NNP B-NP +. . O + +`` `` O +He PRP B-NP +has VBZ B-VP +mastered VBN I-VP +the DT B-NP +art NN I-NP +of IN B-PP +survival NN B-NP +. . O +'' '' O + +In IN B-PP +keeping VBG B-VP +with IN B-PP +America NNP B-NP +'s POS B-NP +long JJ I-NP +history NN I-NP +of IN B-PP +propping VBG B-VP +up IN B-PRT +Mr. NNP B-NP +Noriega NNP I-NP +, , O +recent JJ B-NP +U.S. NNP I-NP +actions NNS I-NP +have VBP B-VP +extended VBN I-VP +rather RB B-CONJP +than IN I-CONJP +shortened VBN B-VP +his PRP$ B-NP +survival NN I-NP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +might MD B-VP +have VB I-VP +fallen VBN I-VP +of IN B-PP +his PRP$ B-NP +own JJ I-NP +weight NN I-NP +in IN B-PP +1988 CD B-NP +because IN B-PP +of IN I-PP +Panama NNP B-NP +'s POS B-NP +dire JJ I-NP +economic JJ I-NP +situation NN I-NP +, , O +says VBZ B-VP +Mr. NNP B-NP +Moss NNP I-NP +, , O +but CC O +increasing VBG B-NP +external JJ I-NP +pressure NN I-NP +has VBZ B-VP +only RB I-VP +given VBN I-VP +him PRP B-NP +additional JJ B-NP +excuses NNS I-NP +for IN B-PP +repression NN B-NP +, , O +and CC O +a DT B-NP +scapegoat NN I-NP +for IN B-PP +his PRP$ B-NP +own JJ I-NP +mismanagement NN I-NP +. . O + +`` `` O +If IN B-SBAR +the DT B-NP +U.S. NNP I-NP +had VBD B-VP +sat VBN I-VP +back RB B-ADVP +and CC O +done VBN B-VP +nothing NN B-NP +, , O +he PRP B-NP +might MD B-VP +not RB I-VP +have VB I-VP +made VBN I-VP +it PRP B-NP +through IN B-PP +1988 CD B-NP +, , O +'' '' O +Mr. NNP B-NP +Moss NNP I-NP +contends VBZ B-VP +. . O + +Perhaps RB B-ADJP +most RBS I-ADJP +important JJ I-ADJP +, , O +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +allies NNS I-NP +have VBP B-VP +intervened VBN I-VP +to TO I-VP +encourage VB I-VP +-- : O +in IN B-PP +some DT B-NP +cases NNS I-NP +, , O +to TO B-VP +demand VB I-VP +-- : O +that IN B-SBAR +the DT B-NP +dictator NN I-NP +maintain VB B-VP +his PRP$ B-NP +grip NN I-NP +of IN B-PP +the DT B-NP +throne NN I-NP +. . O + +One CD B-NP +Colombian JJ I-NP +drug NN I-NP +boss NN I-NP +, , O +upon IN B-SBAR +hearing NN B-VP +in IN B-PP +1987 CD B-NP +that IN B-SBAR +Gen. NNP B-NP +Noriega NNP I-NP +was VBD B-VP +negotiating VBG I-VP +with IN B-PP +the DT B-NP +U.S. NNP I-NP +to TO B-VP +abandon VB I-VP +his PRP$ B-NP +command NN I-NP +for IN B-PP +a DT B-NP +comfortable JJ I-NP +exile NN I-NP +, , O +sent VBD B-VP +him PRP B-NP +a DT B-NP +hand-sized JJ I-NP +mahogany NN I-NP +coffin NN I-NP +engraved VBN B-VP +with IN B-PP +his PRP$ B-NP +name NN I-NP +. . O + +`` `` O +He PRP B-NP +is VBZ B-VP +cornered VBN B-ADJP +, , O +'' '' O +says VBZ B-VP +the DT B-NP +Rev. NNP I-NP +Fernando NNP I-NP +Guardia NNP I-NP +, , O +who WP B-NP +has VBZ B-VP +led VBN I-VP +Catholic NNP B-NP +Church NNP I-NP +opposition NN I-NP +against IN B-PP +Noriega NNP B-NP +. . O + +`` `` O +The DT B-NP +Americans NNPS I-NP +have VBP B-VP +left VBN I-VP +him PRP B-NP +without IN B-PP +a DT B-NP +way NN I-NP +out RB I-NP +. . O + +It PRP B-NP +is VBZ B-VP +easy JJ B-ADJP +to TO B-VP +fight VB I-VP +when WRB B-ADVP +you PRP B-NP +do VBP B-VP +n't RB I-VP +have VB I-VP +any DT B-NP +other JJ I-NP +option NN I-NP +. . O +'' '' O + +His PRP$ B-NP +chief JJ I-NP +advantage NN I-NP +in IN B-PP +the DT B-NP +fight NN I-NP +: : O +his PRP$ B-NP +intimate JJ I-NP +knowledge NN I-NP +of IN B-PP +American JJ B-NP +ways NNS I-NP +and CC I-NP +weaknesses NNS I-NP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +often RB B-ADVP +tells VBZ B-VP +friends NNS B-NP +that WDT B-SBAR +patience NN B-NP +is VBZ B-VP +the DT B-NP +best JJS I-NP +weapon NN I-NP +against IN B-PP +the DT B-NP +gringos NNS I-NP +, , O +who WP B-NP +have VBP B-VP +a DT B-NP +short JJ I-NP +attention NN I-NP +span NN I-NP +and CC O +little JJ B-NP +stomach NN I-NP +for IN B-PP +lasting VBG B-NP +confrontation NN I-NP +. . O + +The DT B-NP +U.S. NNP I-NP +discovered VBD B-VP +the DT B-NP +young JJ I-NP +Tony NNP I-NP +Noriega NNP I-NP +in IN B-PP +late JJ B-NP +1959 CD I-NP +, , O +when WRB B-ADVP +he PRP B-NP +was VBD B-VP +in IN B-PP +his PRP$ B-NP +second JJ I-NP +year NN I-NP +at IN B-PP +the DT B-NP +Chorrillos NNP I-NP +Military NNP I-NP +Academy NNP I-NP +in IN B-PP +Lima NNP B-NP +, , O +according VBG B-PP +to TO B-PP +former JJ B-NP +U.S. NNP I-NP +intelligence NN I-NP +officials NNS I-NP +. . O + +The DT B-NP +contact NN I-NP +occurred VBD B-VP +through IN B-PP +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +half-brother NN I-NP +, , O +a DT B-NP +Panamanian JJ I-NP +diplomat NN I-NP +based VBN B-VP +in IN B-PP +Peru NNP B-NP +named VBD B-VP +Luis NNP B-NP +Carlos NNP I-NP +Noriega NNP I-NP +Hurtado NNP I-NP +. . O + +Luis NNP B-NP +Carlos NNP I-NP +, , O +knowing VBG B-VP +that IN B-SBAR +helping VBG B-VP +the DT B-NP +Americans NNPS I-NP +could MD B-VP +advance VB I-VP +the DT B-NP +career NN I-NP +of IN B-PP +any DT B-NP +Panamanian JJ I-NP +officer NN I-NP +, , O +relayed VBD B-VP +Tony NNP B-NP +'s POS B-NP +reports NNS I-NP +on IN B-PP +the DT B-NP +leftist JJ I-NP +tendencies NNS I-NP +he PRP B-NP +observed VBD B-VP +among IN B-PP +his PRP$ B-NP +fellow NN I-NP +students NNS I-NP +and CC B-PP +, , O +more RBR B-ADVP +important JJ I-ADVP +, , O +among IN B-PP +his PRP$ B-NP +officers NNS I-NP +and CC I-NP +instructors NNS I-NP +. . O + +A DT B-NP +spy NN I-NP +was VBD B-VP +born VBN I-VP +. . O + +It PRP B-NP +was VBD B-VP +a DT B-NP +heady JJ I-NP +experience NN I-NP +for IN B-PP +the DT B-NP +pockmarked JJ I-NP +and CC I-NP +slightly RB I-NP +built VBN I-NP +Mr. NNP I-NP +Noriega NNP I-NP +, , O +who WP B-NP +was VBD B-VP +known VBN I-VP +to TO B-PP +his PRP$ B-NP +friends NNS I-NP +as IN B-PP +Cara NNP B-NP +la FW I-NP +Pina NNP I-NP +-- : O +pineapple NN B-NP +face NN I-NP +. . O + +Born VBN B-VP +the DT B-NP +illegitimate JJ I-NP +son NN I-NP +of IN B-PP +his PRP$ B-NP +father NN I-NP +'s POS B-NP +maid NN I-NP +, , O +he PRP B-NP +was VBD B-VP +raised VBN I-VP +on IN B-PP +the DT B-NP +mean NN I-NP +streets NNS I-NP +of IN B-PP +the DT B-NP +central JJ I-NP +market NN I-NP +district NN I-NP +of IN B-PP +Panama NNP B-NP +City NNP I-NP +. . O + +Tony NNP B-NP +was VBD B-VP +four CD B-NP +years NNS I-NP +older JJR B-ADJP +than IN B-PP +most RBS B-NP +of IN B-PP +his PRP$ B-NP +fellow NN I-NP +cadets NNS I-NP +, , O +and CC O +gained VBD B-VP +admission NN B-NP +to TO B-PP +the DT B-NP +academy NN I-NP +because IN B-SBAR +his PRP$ B-NP +brother NN I-NP +had VBD B-VP +falsified VBN I-VP +his PRP$ B-NP +birth NN I-NP +certificate NN I-NP +. . O + +He PRP B-NP +considered VBD B-VP +himself PRP B-NP +intellectually RB B-ADJP +superior JJ I-ADJP +to TO B-PP +his PRP$ B-NP +Peruvian JJ I-NP +peers NNS I-NP +, , O +many NN B-NP +of IN B-PP +whom WP B-NP +were VBD B-VP +wayward JJ B-NP +sons NNS I-NP +sent VBN B-VP +by IN B-PP +their PRP$ B-NP +well-off JJ I-NP +families NNS I-NP +to TO B-PP +the DT B-NP +highly RB I-NP +disciplined VBN I-NP +, , I-NP +French-modeled JJ I-NP +academy NN I-NP +as IN B-PP +a DT B-NP +sort NN I-NP +of IN B-PP +reform NN B-NP +school NN I-NP +. . O + +In IN B-PP +his PRP$ B-NP +peaked VBD I-NP +military JJ I-NP +cap NN I-NP +and CC I-NP +neatly RB I-NP +pressed VBN I-NP +, , I-NP +French-made JJ I-NP +uniform NN I-NP +, , O +Noriega NNP B-NP +felt VBD B-VP +more RBR B-ADJP +respected VBN I-ADJP +and CC I-ADJP +powerful JJ I-ADJP +than IN B-PP +ever RB B-NP +in IN B-PP +his PRP$ B-NP +underprivileged JJ I-NP +life NN I-NP +, , O +friends NNS B-NP +from IN B-PP +the DT B-NP +period NN I-NP +say VBP B-VP +. . O + +`` `` O +He PRP B-NP +had VBD B-VP +an DT B-NP +elegant JJ I-NP +uniform NN I-NP +with IN B-PP +gold NN B-NP +buttons NNS I-NP +in IN B-PP +a DT B-NP +country NN I-NP +where WRB B-ADVP +there EX B-NP +was VBD B-VP +a DT B-NP +cult NN I-NP +of IN B-PP +militarism NN B-NP +, , O +where WRB B-ADVP +officers NNS B-NP +were VBD B-VP +the DT B-NP +elite NN I-NP +with IN B-PP +special JJ B-NP +privileges NNS I-NP +, , O +'' '' O +recalls VBZ B-VP +Darien NNP B-NP +Ayala NNP I-NP +, , O +a DT B-NP +fellow NN I-NP +student NN I-NP +in IN B-PP +Peru NNP B-NP +and CC O +a DT B-NP +lifelong JJ I-NP +friend NN I-NP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +relationship NN I-NP +to TO B-PP +American JJ B-NP +intelligence NN I-NP +agencies NNS I-NP +became VBD B-VP +contractual JJ B-ADJP +in IN B-PP +either DT B-NP +1966 CD I-NP +or CC I-NP +1967 CD I-NP +, , O +intelligence NN B-NP +officials NNS I-NP +say VBP B-VP +. . O + +His PRP$ B-NP +commanding NN I-NP +officer NN I-NP +at IN B-PP +the DT B-NP +Chiriqui NNP I-NP +Province NNP I-NP +garrison NN I-NP +, , O +Major NNP B-NP +Omar NNP I-NP +Torrijos NNP I-NP +, , O +gave VBD B-VP +him PRP B-NP +an DT B-NP +intriguing JJ I-NP +assignment NN I-NP +: : O +Mr. NNP B-NP +Noriega NNP I-NP +would MD B-VP +organize VB I-VP +the DT B-NP +province NN I-NP +'s POS B-NP +first JJ I-NP +intelligence NN I-NP +service NN I-NP +. . O + +The DT B-NP +spy NN I-NP +network NN I-NP +would MD B-VP +serve VB I-VP +two CD B-NP +clients NNS I-NP +: : O +the DT B-NP +Panamanian JJ I-NP +government NN I-NP +, , O +by IN B-PP +monitoring VBG B-VP +political JJ B-NP +opponents NNS I-NP +in IN B-PP +the DT B-NP +region NN I-NP +, , O +and CC O +the DT B-NP +U.S. NNP I-NP +, , O +by IN B-PP +tracking VBG B-VP +the DT B-NP +growing VBG I-NP +Communist NNP I-NP +influence NN I-NP +in IN B-PP +the DT B-NP +unions NNS I-NP +organized VBN B-VP +at IN B-PP +United NNP B-NP +Fruit NNP I-NP +Co. NNP I-NP +'s POS B-NP +banana NN I-NP +plantations NNS I-NP +in IN B-PP +Bocas NNP B-NP +del NNP I-NP +Toros NNP I-NP +and CC O +Puerto NNP B-NP +Armuelles NNP I-NP +. . O + +United NNP B-NP +Fruit NNP I-NP +was VBD B-VP +one CD B-NP +of IN B-PP +the DT B-NP +two CD I-NP +largest JJS I-NP +contributors NNS I-NP +to TO B-PP +Panama NNP B-NP +'s POS B-NP +national JJ I-NP +income NN I-NP +. . O + +Satisfying VBG B-VP +its PRP$ B-NP +interests NNS I-NP +was VBD B-VP +a DT B-NP +priority NN I-NP +for IN B-PP +any DT B-NP +Panamanian JJ I-NP +leader NN I-NP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +initial JJ I-NP +retainer NN I-NP +was VBD B-VP +only RB B-NP +$ $ I-NP +50 CD I-NP +to TO I-NP +$ $ I-NP +100 CD I-NP +a DT B-NP +month NN I-NP +, , O +plus CC O +occasional JJ B-NP +gifts NNS I-NP +of IN B-PP +liquor NN B-NP +or CC I-NP +groceries NNS I-NP +from IN B-PP +the DT B-NP +American NNP I-NP +PX NNP I-NP +, , O +a DT B-NP +former JJ I-NP +intelligence NN I-NP +official NN I-NP +says NNS B-VP +. . O + +It PRP B-NP +was VBD B-VP +modest JJ B-NP +pay NN I-NP +by IN B-PP +American JJ B-NP +standards NNS I-NP +, , O +but CC O +a DT B-NP +healthy JJ I-NP +boost NN I-NP +to TO B-PP +his PRP$ B-NP +small JJ I-NP +military JJ I-NP +salary NN I-NP +, , O +which WDT B-NP +fellow NN B-NP +officers NNS I-NP +remember VBP B-VP +as IN B-PP +having VBG B-VP +been VBN I-VP +$ $ B-NP +300 CD I-NP +to TO I-NP +$ $ I-NP +400 CD I-NP +monthly JJ B-ADVP +. . O + +`` `` O +He PRP B-NP +did VBD B-VP +it PRP B-NP +very RB B-ADVP +well RB I-ADVP +, , O +'' '' O +recalls VBZ B-VP +Boris NNP B-NP +Martinez NNP I-NP +, , O +a DT B-NP +former JJ I-NP +Panamanian JJ I-NP +colonel NN I-NP +who WP B-NP +managed VBD B-VP +Mr. NNP B-NP +Noriega NNP I-NP +and CC O +his PRP$ B-NP +operation NN I-NP +. . O + +`` `` O +He PRP B-NP +started VBD B-VP +building VBG I-VP +the DT B-NP +files NNS I-NP +that WDT B-NP +helped VBD B-VP +him PRP B-NP +gain VBP B-VP +power NN B-NP +. . O +'' '' O + +A DT B-NP +National NNP I-NP +Guard NNP I-NP +job NN I-NP +assumed VBN B-VP +by IN B-PP +Capt. NNP B-NP +Noriega NNP I-NP +in IN B-PP +1964 CD B-NP +-- : O +as IN B-PP +chief NN B-NP +of IN B-PP +the DT B-NP +transit NN I-NP +police NN I-NP +in IN B-PP +David NNP B-NP +City NNP I-NP +, , O +capital NN B-NP +of IN B-PP +the DT B-NP +Chiriqui NNP I-NP +Province NNP I-NP +-- : O +was VBD B-VP +tailor-made JJ B-ADJP +for IN B-PP +an DT B-NP +aspiring JJ I-NP +super-spy NN I-NP +. . O + +By IN B-PP +pressuring VBG B-VP +taxi NN B-NP +and CC I-NP +bus NN I-NP +drivers NNS I-NP +who WP B-NP +needed VBD B-VP +licenses NNS B-NP +, , O +he PRP B-NP +gained VBD B-VP +a DT B-NP +ready JJ I-NP +cache NN I-NP +of IN B-PP +information NN B-NP +. . O + +He PRP B-NP +knew VBD B-VP +which WDT B-NP +local JJ I-NP +luminaries NNS I-NP +had VBD B-VP +been VBN I-VP +caught VBN I-VP +driving VBG B-VP +drunk JJ B-ADVP +, , O +which WDT B-NP +had VBD B-VP +been VBN I-VP +found VBN I-VP +with IN B-PP +their PRP$ B-NP +mistresses NNS I-NP +. . O + +This DT B-NP +proved VBD B-VP +particularly RB B-ADJP +valuable JJ I-ADJP +to TO B-PP +the DT B-NP +Panamanian JJ I-NP +government NN I-NP +in IN B-PP +1967 CD B-NP +, , O +when WRB B-ADVP +union NN B-NP +leaders NNS I-NP +were VBD B-VP +planning VBG I-VP +a DT B-NP +May NNP I-NP +Day NNP I-NP +march NN I-NP +that IN B-NP +the DT B-NP +government NN I-NP +feared VBD B-VP +could MD B-VP +turn VB I-VP +violent JJ B-ADJP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +had VBD B-VP +learned VBN I-VP +that IN B-SBAR +a DT B-NP +local JJ I-NP +union NN I-NP +leader NN I-NP +was VBD B-VP +sleeping VBG I-VP +with IN B-PP +the DT B-NP +wife NN I-NP +of IN B-PP +his PRP$ B-NP +deputy NN I-NP +. . O + +So RB O +he PRP B-NP +splashed VBD B-VP +the DT B-NP +information NN I-NP +on IN B-PP +handbills NNS B-NP +that IN B-NP +he PRP B-NP +distributed VBD B-VP +throughout IN B-PP +the DT B-NP +banana-exporting JJ I-NP +city NN I-NP +of IN B-PP +Puerto NNP B-NP +Armuelles NNP I-NP +, , O +which WDT B-NP +was VBD B-VP +ruled VBN I-VP +by IN B-PP +United NNP B-NP +Fruit NNP I-NP +Co NNP I-NP +. . O + +The DT B-NP +campaign NN I-NP +so RB B-VP +divided VBD I-VP +union NN B-NP +leaders NNS I-NP +that IN B-SBAR +the DT B-NP +government NN I-NP +found VBD B-VP +them PRP B-NP +far RB B-ADJP +easier JJR I-ADJP +to TO B-VP +control VB I-VP +. . O + +`` `` O +It PRP B-NP +was VBD B-VP +like IN B-PP +a DT B-NP +play NN I-NP +on IN B-PP +Broadway NNP B-NP +, , O +'' '' O +recalls VBZ B-VP +Mr. NNP B-NP +Martinez NNP I-NP +. . O + +`` `` O +Noriega NNP B-NP +managed VBD B-VP +the DT B-NP +whole JJ I-NP +thing NN I-NP +. . O + +He PRP B-NP +was VBD B-VP +superb JJ B-ADJP +. . O + +Noriega NNP B-NP +was VBD B-VP +an DT B-NP +expert NN I-NP +at IN B-PP +bribing VBG B-VP +and CC I-VP +blackmailing VBG I-VP +people NNS B-NP +. . O +'' '' O + +During IN B-PP +his PRP$ B-NP +years NNS I-NP +in IN B-PP +Chiriqui NNP B-NP +, , O +however RB B-ADVP +, , O +Mr. NNP B-NP +Noriega NNP I-NP +also RB B-ADVP +revealed VBD B-VP +himself PRP B-NP +as IN B-PP +an DT B-NP +officer NN I-NP +as RB B-ADJP +perverse JJ I-ADJP +as IN B-SBAR +he PRP B-NP +was VBD B-VP +ingenious JJ B-ADJP +. . O + +Rodrigo NNP B-NP +Miranda NNP I-NP +, , O +a DT B-NP +local JJ I-NP +lawyer NN I-NP +and CC I-NP +human-rights JJ I-NP +monitor NN I-NP +, , O +recalls VBZ B-VP +an DT B-NP +intoxicated JJ I-NP +Noriega NNP I-NP +visiting VBG B-VP +prisoners NNS B-NP +in IN B-PP +their PRP$ B-NP +cells NNS I-NP +at IN B-PP +the DT B-NP +5th NNP I-NP +Zone NNP I-NP +Garrison NNP I-NP +headquarters NN I-NP +in IN B-PP +David NNP B-NP +, , O +where WRB B-ADVP +he PRP B-NP +had VBD B-VP +his PRP$ B-NP +offices NNS I-NP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +would MD B-VP +order VB I-VP +them PRP B-NP +all DT B-ADVP +to TO B-VP +take VB I-VP +off IN O +their PRP$ B-NP +clothes NNS I-NP +and CC O +run VB B-VP +around IN B-PP +the DT B-NP +courtyard NN I-NP +naked JJ B-ADVP +, , O +laughing VBG B-VP +at IN B-PP +them PRP B-NP +and CC O +then RB B-ADVP +retreating VBG B-VP +to TO B-PP +his PRP$ B-NP +office NN I-NP +. . O + +`` `` O +People NNS B-NP +started VBD B-VP +wondering VBG I-VP +if IN B-SBAR +something NN B-NP +was VBD B-VP +wrong JJ B-ADJP +with IN B-PP +him PRP B-NP +, , O +'' '' O +Mr. NNP B-NP +Miranda NNP I-NP +recalls VBZ B-VP +. . O + +But CC O +through IN B-PP +this DT B-NP +period NN I-NP +, , O +so RB B-ADVP +far RB I-ADVP +as IN B-SBAR +the DT B-NP +U.S. NNP I-NP +military NN I-NP +was VBD B-VP +concerned VBN I-VP +, , O +Mr. NNP B-NP +Noriega NNP I-NP +was VBD B-VP +a DT B-NP +model NN I-NP +recruit NN I-NP +. . O + +He PRP B-NP +signed VBD B-VP +up IN B-PRT +for IN B-PP +intelligence NN B-NP +and CC I-NP +counter-intelligence JJ I-NP +training NN I-NP +under IN B-PP +American JJ B-NP +officers NNS I-NP +at IN B-PP +Fort NNP B-NP +Gulick NNP I-NP +in IN B-PP +Panama NNP B-NP +in IN B-PP +July NNP B-NP +1967 CD I-NP +, , O +according VBG B-PP +to TO B-PP +a DT B-NP +copy NN I-NP +of IN B-PP +a DT B-NP +1983 CD I-NP +resume NN I-NP +with IN B-PP +details NNS B-NP +Mr. NNP B-NP +Noriega NNP I-NP +has VBZ B-VP +since IN I-VP +classified VBN I-VP +as IN B-PP +secret NN B-ADJP +. . O + +He PRP B-NP +flew VBD B-VP +to TO B-PP +Fort NNP B-NP +Bragg NNP I-NP +, , O +N.C. NNP B-NP +, , O +in IN B-PP +September NNP B-NP +of IN B-PP +that DT B-NP +year NN I-NP +for IN B-PP +a DT B-NP +course NN I-NP +in IN B-PP +psychological JJ B-NP +operations NNS I-NP +, , O +returning VBG B-VP +to TO B-PP +the DT B-NP +School NNP I-NP +of IN B-PP +the DT B-NP +Americas NNP I-NP +in IN B-PP +Panama NNP B-NP +for IN B-PP +a DT B-NP +two-month JJ I-NP +course NN I-NP +called VBN B-VP +`` `` O +military JJ B-NP +intelligence NN I-NP +for IN B-PP +officers NNS B-NP +. . O +'' '' O + +Some DT B-NP +American JJ I-NP +officers NNS I-NP +interpreted VBD B-VP +his PRP$ B-NP +eagerness NN I-NP +and CC I-NP +studiousness NN I-NP +as IN B-PP +a DT B-NP +sign NN I-NP +of IN B-PP +loyalty NN B-NP +, , O +but CC O +they PRP B-NP +did VBD B-VP +so RB B-ADVP +falsely RB B-ADVP +. . O + +He PRP B-NP +rose VBD B-VP +to TO B-PP +chief NN B-NP +of IN B-PP +intelligence NN B-NP +in IN B-PP +Panama NNP B-NP +'s POS B-NP +socalled JJ I-NP +G-2 NN I-NP +in IN B-PP +1970 CD B-NP +after IN B-PP +providing VBG B-VP +populist JJ B-NP +dictator NN I-NP +Torrijos NNP B-NP +the DT B-NP +critical JJ I-NP +support NN I-NP +to TO B-VP +defeat VB I-VP +a DT B-NP +coup NN I-NP +attempt NN I-NP +against IN B-PP +him PRP B-NP +a DT B-NP +year NN I-NP +earlier RBR B-ADVP +. . O + +He PRP B-NP +became VBD B-VP +Gen. NNP B-NP +Torrijos NNP I-NP +'s POS B-NP +inseparable JJ I-NP +shadow NN I-NP +, , O +and CC O +the DT B-NP +holder NN I-NP +of IN B-PP +all DT B-NP +Panama NNP I-NP +'s POS B-NP +secrets NNS I-NP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +, , O +by IN B-PP +now RB B-NP +a DT B-NP +lieutenant NN I-NP +colonel NN I-NP +, , O +expanded VBD B-VP +his PRP$ B-NP +contacts NNS I-NP +to TO B-VP +include VB I-VP +the DT B-NP +Cubans NNPS I-NP +-- : O +not RB B-CONJP +to TO O +mention VB O +the DT B-NP +Israelis NNPS I-NP +, , O +the DT B-NP +Taiwanese JJ I-NP +and CC O +any DT B-NP +other JJ I-NP +intelligence NN I-NP +service NN I-NP +that WDT B-NP +came VBD B-VP +knocking VBG I-VP +. . O + +When WRB B-ADVP +U.S. NNP B-NP +diplomats NNS I-NP +complained VBD B-VP +to TO B-PP +the DT B-NP +CIA NNP I-NP +of IN B-PP +Col. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +moonlighting NN I-NP +, , O +intelligence NN B-NP +experts NNS I-NP +always RB B-ADVP +insisted VBD B-VP +that IN O +his PRP$ B-NP +allegiance NN I-NP +was VBD B-VP +first JJ B-ADVP +to TO B-PP +the DT B-NP +Americans NNPS I-NP +. . O + +`` `` O +Early RB B-ADVP +on IN I-ADVP +in IN B-PP +the DT B-NP +State NNP I-NP +Department NNP I-NP +, , O +we PRP B-NP +took VBD B-VP +to TO B-PP +calling VBG B-VP +him PRP B-NP +the DT B-NP +rent-a-colonel NN I-NP +, , O +in IN B-PP +tribute NN B-NP +to TO B-PP +his PRP$ B-NP +ability NN I-NP +to TO B-VP +simultaneously RB I-VP +milk NN I-VP +the DT B-NP +antagonistic JJ I-NP +intelligence NN I-NP +services NNS I-NP +of IN B-PP +Cuba NNP B-NP +and CC O +the DT B-NP +United NNP I-NP +States NNPS I-NP +, , O +'' '' O +recalls VBZ B-VP +Francis NNP B-NP +J. NNP I-NP +McNeil NNP I-NP +, , O +who WP B-NP +, , O +as IN B-PP +deputy NN B-NP +assistant NN I-NP +secretary NN I-NP +of IN B-PP +state NN B-NP +for IN B-PP +inter-American JJ B-NP +affairs NNS I-NP +, , O +first JJ B-ADVP +ran VBD B-VP +across IN B-PP +reports NNS B-NP +about IN B-PP +Mr. NNP B-NP +Noriega NNP I-NP +in IN B-PP +1977 CD B-NP +. . O + +`` `` O +Some DT B-NP +of IN B-PP +us PRP B-NP +wondered VBD B-VP +how WRB B-ADVP +our PRP$ B-NP +intelligence NN I-NP +people NNS I-NP +could MD B-VP +put VB I-VP +so RB B-NP +much JJ I-NP +stock NN I-NP +in IN B-PP +his PRP$ B-NP +information NN I-NP +when WRB B-ADVP +he PRP B-NP +was VBD B-VP +just RB B-ADJP +as IN I-ADJP +close RB I-ADJP +to TO B-PP +the DT B-NP +Cubans NNPS I-NP +. . O +'' '' O + +Even RB B-ADVP +at IN B-PP +this DT B-NP +early JJ I-NP +stage NN I-NP +, , O +drugs NNS B-NP +caused VBD B-VP +additional JJ B-NP +concerns NNS I-NP +. . O + +During IN B-PP +the DT B-NP +Nixon NNP I-NP +administration NN I-NP +, , O +the DT B-NP +Drug NNP I-NP +Enforcement NNP I-NP +Administration NNP I-NP +became VBD B-VP +dismayed VBN I-VP +at IN B-PP +the DT B-NP +extent NN I-NP +of IN B-PP +the DT B-NP +G-2 NN I-NP +'s POS B-NP +connections NNS I-NP +to TO B-PP +arrested VBN B-NP +drug NN I-NP +traffickers NNS I-NP +. . O + +One CD B-NP +DEA NNP I-NP +agent NN I-NP +drew VBD B-VP +up IN B-PRT +a DT B-NP +list NN I-NP +of IN B-PP +five CD B-NP +options NNS I-NP +for IN B-PP +dealing VBG B-VP +with IN B-PP +Col. NNP B-NP +Noriega NNP I-NP +, , O +one CD B-NP +of IN B-PP +which WDT B-NP +was VBD B-VP +assassination NN B-NP +. . O + +The DT B-NP +head NN I-NP +of IN B-PP +the DT B-NP +DEA NNP I-NP +at IN B-PP +the DT B-NP +time NN I-NP +, , O +John NNP B-NP +Ingersoll NNP I-NP +, , O +scotched VBD B-VP +the DT B-NP +assassination NN I-NP +plan NN I-NP +. . O + +But CC O +he PRP B-NP +did VBD B-VP +fly VB I-VP +to TO B-PP +Panama NNP B-NP +to TO B-VP +scold VB I-VP +dictator NN B-NP +Torrijos NNP I-NP +on IN B-PP +the DT B-NP +drug NN I-NP +ties NNS I-NP +of IN B-PP +Panamanian JJ B-NP +officials NNS I-NP +, , O +including VBG B-PP +Mr. NNP B-NP +Noriega NNP I-NP +. . O + +Mr. NNP B-NP +Ingersoll NNP I-NP +later RB B-ADVP +recalled VBD B-VP +that IN B-SBAR +Gen. NNP B-NP +Torrijos NNP I-NP +seemed VBD B-VP +afraid JJ B-ADJP +to TO B-VP +act VB I-VP +on IN B-PP +the DT B-NP +concerns NNS I-NP +of IN B-PP +the DT B-NP +U.S. NNP I-NP +. . O + +`` `` O +Everybody NN B-NP +was VBD B-VP +afraid JJ B-ADJP +of IN B-PP +him PRP B-NP +, , O +'' '' O +Mr. NNP B-NP +Ingersoll NNP I-NP +says VBZ B-VP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +became VBD B-VP +an DT B-NP +even RB I-NP +greater JJR I-NP +threat NN I-NP +in IN B-PP +1976 CD B-NP +, , O +when WRB B-ADVP +U.S. NNP B-NP +intelligence NN I-NP +services NNS I-NP +discovered VBN B-VP +that IN B-SBAR +he PRP B-NP +had VBD B-VP +been VBN I-VP +buying VBG I-VP +recordings NNS B-NP +of IN B-PP +electronically RB B-NP +monitored VBN I-NP +conversations NNS I-NP +from IN B-PP +three CD B-NP +sergeants NNS I-NP +working VBG B-VP +for IN B-PP +the DT B-NP +U.S. NNP I-NP +Army NNP I-NP +'s POS B-NP +470th NNP I-NP +Military NNP I-NP +Intelligence NNP I-NP +Group NNP I-NP +. . O + +The DT B-NP +tapes NNS I-NP +included VBD B-VP +wiretaps NNS B-NP +of IN B-PP +Gen. NNP B-NP +Torrijos NNP I-NP +'s POS B-NP +own JJ I-NP +phone NN I-NP +, , O +according VBG B-PP +to TO B-PP +American JJ B-NP +intelligence NN I-NP +officials NNS I-NP +. . O + +`` `` O +We PRP B-NP +caught VBD B-VP +him PRP B-NP +with IN B-PP +his PRP$ B-NP +hands NNS I-NP +on IN B-PP +our PRP$ B-NP +cookie NN I-NP +jar NN I-NP +, , O +'' '' O +says VBZ B-VP +former JJ B-NP +CIA NNP I-NP +Director NNP I-NP +Stansfield NNP I-NP +Turner NNP I-NP +. . O + +For IN B-PP +the DT B-NP +first JJ I-NP +time NN I-NP +, , O +the DT B-NP +U.S. NNP I-NP +considered VBD B-VP +cutting VBG I-VP +Mr. NNP B-NP +Noriega NNP I-NP +from IN B-PP +its PRP$ B-NP +intelligence NN I-NP +payroll NN I-NP +-- : O +and CC O +the DT B-NP +deliberations NNS I-NP +were VBD B-VP +intense JJ B-ADJP +, , O +Mr. NNP B-NP +Turner NNP I-NP +says VBZ B-VP +. . O + +`` `` O +In IN B-PP +the DT B-NP +world NN I-NP +of IN B-PP +intelligence NN B-NP +, , O +if IN B-SBAR +you PRP B-NP +want VBP B-VP +to TO I-VP +get VB I-VP +information NN B-NP +, , O +you PRP B-NP +get VBP B-VP +it PRP B-NP +from IN B-PP +seedy JJ B-NP +characters NNS I-NP +. . O + +The DT B-NP +question NN I-NP +is VBZ B-VP +how WRB B-ADVP +much JJ I-ADVP +you PRP B-NP +get VBP B-VP +tied VBN I-VP +in IN B-PRT +with IN B-PP +seedy JJ B-NP +characters NNS I-NP +so IN B-SBAR +they PRP B-NP +can MD B-VP +extort VB I-VP +you PRP B-NP +. . O +'' '' O + +Intelligence NN B-NP +officials NNS I-NP +to TO B-PP +this DT B-NP +day NN I-NP +worry NN B-VP +whether IN B-SBAR +Mr. NNP B-NP +Noriega NNP I-NP +sold VBD B-VP +sensitive JJ B-NP +information NN I-NP +on IN B-PP +the DT B-NP +recordings NNS I-NP +to TO B-PP +the DT B-NP +Cubans NNPS I-NP +or CC O +others NNS B-NP +. . O + +Mr. NNP B-NP +Turner NNP I-NP +was VBD B-VP +troubled JJ I-VP +enough RB B-ADVP +to TO B-VP +cancel VB I-VP +the DT B-NP +U.S. NNP I-NP +contract NN I-NP +with IN B-PP +the DT B-NP +rent-a-colonel NN I-NP +at IN B-PP +the DT B-NP +beginning NN I-NP +of IN B-PP +the DT B-NP +Carter NNP I-NP +administration NN I-NP +. . O + +The DT B-NP +U.S. NNP I-NP +soon RB B-ADVP +found VBD B-VP +new JJ B-NP +cause NN I-NP +for IN B-PP +concern NN B-NP +: : O +gun-running JJ B-NP +. . O + +Prosecutors NNS B-NP +in IN B-PP +Southern NNP B-NP +Florida NNP I-NP +indicted VBD B-VP +five CD B-NP +Panamanians NNS I-NP +on IN B-PP +charges NNS B-NP +of IN B-PP +illegally RB B-VP +running VBG I-VP +arms NNS B-NP +to TO B-PP +Sandinista NNP B-NP +rebels NNS I-NP +trying VBG B-VP +to TO I-VP +overthrow VB I-VP +the DT B-NP +Nicaraguan JJ I-NP +government NN I-NP +of IN B-PP +Mr. NNP B-NP +Somoza NNP I-NP +. . O + +They PRP B-NP +included VBD B-VP +one CD B-NP +of IN B-PP +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +closest JJS I-NP +friends NNS I-NP +and CC I-NP +business NN I-NP +partners NNS I-NP +, , O +Carlos NNP B-NP +Wittgreen NNP I-NP +. . O + +And CC O +the DT B-NP +investigators NNS I-NP +were VBD B-VP +quickly RB I-VP +closing VBG I-VP +in IN B-PRT +on IN B-PP +Mr. NNP B-NP +Noriega NNP I-NP +himself PRP B-NP +. . O + +At IN B-PP +the DT B-NP +time NN I-NP +, , O +though RB B-ADVP +, , O +in IN B-PP +1979 CD B-NP +, , O +the DT B-NP +U.S. NNP I-NP +was VBD B-VP +once RB I-VP +again RB I-VP +flirting VBG I-VP +with IN B-PP +its PRP$ B-NP +longtime JJ I-NP +Latin NNP I-NP +American JJ I-NP +spy NN I-NP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +made VBD B-VP +plans NNS B-NP +to TO B-VP +fly VB I-VP +to TO B-PP +Washington NNP B-NP +for IN B-PP +a DT B-NP +meeting NN I-NP +with IN B-PP +his PRP$ B-NP +counterpart NN I-NP +at IN B-PP +the DT B-NP +Pentagon NNP I-NP +. . O + +Dade NNP B-NP +County NNP I-NP +and CC I-NP +federal JJ I-NP +authorities NNS I-NP +, , O +learning VBG B-VP +that IN B-SBAR +he PRP B-NP +intended VBD B-VP +to TO I-VP +fly VB I-VP +through IN B-PP +Miami NNP B-NP +, , O +made VBN B-VP +plans NNS B-NP +to TO B-VP +arrest VB I-VP +him PRP B-NP +on IN B-PP +the DT B-NP +gun-running JJ I-NP +charges NNS I-NP +as RB B-ADVP +soon RB I-ADVP +as IN B-SBAR +he PRP B-NP +hit VBD B-VP +U.S. NNP B-NP +soil NN I-NP +. . O + +It PRP B-NP +was VBD B-VP +a DT B-NP +Friday NNP I-NP +in IN B-PP +June NNP B-NP +. . O + +The DT B-NP +Pentagon NNP I-NP +foiled VBD B-VP +the DT B-NP +plan NN I-NP +. . O + +According VBG B-PP +to TO B-PP +military JJ B-NP +officers NNS I-NP +at IN B-PP +the DT B-NP +time NN I-NP +, , O +word NN B-NP +was VBD B-VP +passed VBN I-VP +to TO B-PP +Mr. NNP B-NP +Noriega NNP I-NP +by IN B-PP +his PRP$ B-NP +American JJ I-NP +hosts NNS I-NP +that IN B-SBAR +the DT B-NP +police NN I-NP +would MD B-VP +be VB I-VP +waiting VBG I-VP +. . O + +On IN B-PP +Monday NNP B-NP +, , O +U.S. NNP B-NP +officials NNS I-NP +received VBD B-VP +a DT B-NP +routine NN I-NP +, , I-NP +unclassified JJ I-NP +message NN I-NP +from IN B-PP +the DT B-NP +military JJ I-NP +group NN I-NP +commander NN I-NP +in IN B-PP +Panama NNP B-NP +. . O + +`` `` O +Due JJ B-PP +to TO I-PP +health NN B-NP +reasons NNS I-NP +, , O +Lt. NNP B-NP +Col. NNP I-NP +Noriega NNP I-NP +has VBZ B-VP +elected VBN I-VP +to TO I-VP +postpone VB I-VP +his PRP$ B-NP +visit NN I-NP +to TO B-PP +Washington NNP B-NP +, , O +'' '' O +it PRP B-NP +read VBP B-VP +. . O + +Prosecutors NNS B-NP +in IN B-PP +Miami NNP B-NP +received VBD B-VP +yet RB B-NP +another DT I-NP +setback NN I-NP +. . O + +Their PRP$ B-NP +original JJ I-NP +indictment NN I-NP +against IN B-PP +Mr. NNP B-NP +Wittgreen NNP I-NP +, , O +the DT B-NP +friend NN I-NP +of IN B-PP +Mr. NNP B-NP +Noriega NNP I-NP +, , O +and CC O +the DT B-NP +other JJ I-NP +four CD I-NP +was VBD B-VP +dismissed VBN I-VP +on IN B-PP +a DT B-NP +technicality NN I-NP +. . O + +But CC O +now RB B-ADVP +, , O +along IN B-ADVP +with IN B-PP +reindicting VBG B-VP +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +pal NN I-NP +, , O +they PRP B-NP +intended VBD B-VP +to TO I-VP +charge VB I-VP +Mr. NNP B-NP +Noriega NNP I-NP +himself PRP B-NP +, , O +on IN B-PP +allegations NNS B-NP +that IN B-SBAR +he PRP B-NP +was VBD B-VP +involved VBN I-VP +in IN B-PP +the DT B-NP +illegal JJ I-NP +trading NN I-NP +of IN B-PP +some DT B-NP +$ $ I-NP +2 CD I-NP +million CD I-NP +in IN B-PP +arms NNS B-NP +. . O + +In IN B-PP +January NNP B-NP +1980 CD I-NP +, , O +Jerome NNP B-NP +Sanford NNP I-NP +, , O +as IN B-PP +assistant NN B-NP +U.S. NNP I-NP +attorney NN I-NP +, , O +was VBD B-VP +summoned VBN I-VP +to TO B-PP +a DT B-NP +meeting NN I-NP +with IN B-PP +a DT B-NP +Federal NNP I-NP +Bureau NNP I-NP +of IN B-PP +Investigation NNP B-NP +agent NN B-NP +assigned VBN B-VP +to TO B-PP +the DT B-NP +Bureau NNP I-NP +of IN B-PP +Alcohol NN B-NP +, , I-NP +Tobacco NNP I-NP +and CC I-NP +Firearms NNP I-NP +in IN B-PP +Miami NNP B-NP +. . O + +Panamanian JJ B-NP +dictator NN I-NP +Torrijos NNP B-NP +, , O +he PRP B-NP +was VBD B-VP +told VBN I-VP +, , O +had VBD B-VP +granted VBN I-VP +the DT B-NP +shah NN I-NP +of IN B-PP +Iran NNP B-NP +asylum NN B-NP +in IN B-PP +Panama NNP B-NP +as IN B-PP +a DT B-NP +favor NN I-NP +to TO B-PP +Washington NNP B-NP +. . O + +Mr. NNP B-NP +Sanford NNP I-NP +was VBD B-VP +told VBN I-VP +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +friend NN I-NP +, , O +Mr. NNP B-NP +Wittgreen NNP I-NP +, , O +would MD B-VP +be VB I-VP +handling VBG I-VP +the DT B-NP +shah NN I-NP +'s POS B-NP +security NN I-NP +. . O + +It PRP B-NP +would MD B-VP +n't RB I-VP +be VB I-VP +a DT B-NP +good JJ I-NP +idea NN I-NP +to TO O +indict VB B-VP +him PRP B-NP +-- : O +much RB B-ADVP +less JJR I-ADVP +Mr. NNP B-NP +Noriega NNP I-NP +, , O +the DT B-NP +prosecutor NN I-NP +was VBD B-VP +told VBN I-VP +. . O + +After IN B-PP +prodding VBG B-NP +from IN B-PP +Mr. NNP B-NP +Sanford NNP I-NP +, , O +U.S. NNP B-NP +Attorney NNP I-NP +Jack NNP I-NP +Eskenazi NNP I-NP +pleaded VBD B-VP +with IN B-PP +Justice NNP B-NP +Department NNP I-NP +officials NNS I-NP +in IN B-PP +Washington NNP B-NP +to TO B-VP +let VB I-VP +the DT B-NP +indictment NN I-NP +proceed VB B-VP +. . O + +`` `` O +Unfortunately RB B-ADVP +, , O +'' '' O +Mr. NNP B-NP +Eskenazi NNP I-NP +wrote VBD B-VP +in IN B-PP +a DT B-NP +letter NN I-NP +, , O +`` `` O +those DT B-NP +of IN B-PP +us PRP B-NP +in IN B-PP +law NN B-NP +enforcement NN I-NP +in IN B-PP +Miami NNP B-NP +find NN B-VP +ourselves PRP B-NP +frequently RB B-VP +attempting VBG I-VP +to TO I-VP +enforce VB I-VP +the DT B-NP +laws NNS I-NP +of IN B-PP +the DT B-NP +United NNP I-NP +States NNPS I-NP +but CC O +simultaneously RB B-VP +being VBG I-VP +caught VBN I-VP +between IN B-PP +foreign JJ B-NP +policy NN I-NP +considerations NNS I-NP +over IN B-PP +which WDT B-NP +we PRP B-NP +have VBP B-VP +no DT B-NP +control NN I-NP +. . O +'' '' O + +The DT B-NP +letter NN I-NP +, , O +along IN B-ADVP +with IN B-PP +a DT B-NP +detailed VBN I-NP +prosecution NN I-NP +memo NN I-NP +, , O +sat VBD B-VP +on IN B-PP +the DT B-NP +desks NNS I-NP +of IN B-PP +Justice NNP B-NP +officials NNS I-NP +for IN B-PP +months NNS B-NP +before IN B-SBAR +the DT B-NP +case NN I-NP +died VBD B-VP +a DT B-NP +quiet JJ I-NP +death NN I-NP +. . O + +`` `` O +I PRP B-NP +think VBP B-VP +if IN B-SBAR +we PRP B-NP +had VBD B-VP +been VBN I-VP +allowed VBN I-VP +to TO I-VP +go VB I-VP +ahead RB B-ADVP +then RB B-ADVP +we PRP B-NP +would MD B-VP +n't RB I-VP +have VB I-VP +the DT B-NP +problems NNS I-NP +we PRP B-NP +have VBP B-VP +now RB B-ADVP +, , O +'' '' O +Mr. NNP B-NP +Sanford NNP I-NP +says VBZ B-VP +. . O + +`` `` O +If IN B-SBAR +he PRP B-NP +had VBD B-VP +been VBN I-VP +found VBN I-VP +guilty JJ B-ADJP +, , O +we PRP B-NP +could MD B-VP +have VB I-VP +stopped VBN I-VP +him PRP B-NP +. . O +'' '' O + +In IN B-PP +August NNP B-NP +1983 CD I-NP +, , O +Mr. NNP B-NP +Noriega NNP I-NP +took VBD B-VP +over IN B-PRT +as IN B-PP +General NNP B-NP +and CC O +de-facto JJ B-NP +dictator NN I-NP +of IN B-PP +Panama NNP B-NP +, , O +having VBG B-VP +maneuvered VBN I-VP +his PRP$ B-NP +way NN I-NP +to TO B-PP +the DT B-NP +top JJ I-NP +only RB B-NP +two CD I-NP +years NNS I-NP +after IN B-PP +the DT B-NP +mysterious JJ I-NP +death NN I-NP +in IN B-PP +a DT B-NP +plane NN I-NP +crash NN I-NP +of IN B-PP +his PRP$ B-NP +old JJ I-NP +boss NN I-NP +Omar NNP I-NP +Torrijos NNP I-NP +. . O + +Soon RB B-ADVP +, , O +the DT B-NP +military NN I-NP +became VBD B-VP +a DT B-NP +veritable JJ I-NP +mafia NN I-NP +controlling VBG B-VP +legal JJ B-NP +and CC I-NP +illegal JJ I-NP +businesses NNS I-NP +. . O + +The DT B-NP +Reagan NNP I-NP +administration NN I-NP +also RB B-ADVP +put VB B-VP +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +G-2 NN I-NP +back RB B-ADVP +on IN B-PP +the DT B-NP +U.S. NNP I-NP +payroll NN I-NP +. . O + +Payments NNS B-NP +averaged VBD B-VP +nearly RB B-NP +$ $ I-NP +200,000 CD I-NP +a DT B-NP +year NN I-NP +from IN B-PP +the DT B-NP +U.S. NNP I-NP +Defense NNP I-NP +Intelligence NNP I-NP +Agency NNP I-NP +and CC O +the DT B-NP +CIA NNP I-NP +. . O + +Although IN B-SBAR +working VBG B-VP +for IN B-PP +U.S. NNP B-NP +intelligence NN I-NP +, , O +Mr. NNP B-NP +Noriega NNP I-NP +was VBD B-VP +hardly RB I-VP +helping VBG I-VP +the DT B-NP +U.S. NNP I-NP +exclusively RB B-ADVP +. . O + +During IN B-PP +the DT B-NP +Reagan NNP I-NP +years NNS I-NP +he PRP B-NP +expanded VBD B-VP +his PRP$ B-NP +business NN I-NP +and CC I-NP +intelligence NN I-NP +contacts NNS I-NP +with IN B-PP +the DT B-NP +Cubans NNPS I-NP +and CC O +the DT B-NP +Sandinistas NNPS I-NP +. . O + +He PRP B-NP +allegedly RB B-ADVP +entered VBD B-VP +into IN B-PP +Panama NNP B-NP +'s POS B-NP +first JJ I-NP +formal JJ I-NP +business NN I-NP +arrangement NN I-NP +with IN B-PP +Colombian JJ B-NP +drug NN I-NP +bosses NNS I-NP +, , O +according VBG B-PP +to TO B-PP +Floyd NNP B-NP +Carlton NNP I-NP +, , O +a DT B-NP +pilot NN I-NP +who WP B-NP +once RB B-ADVP +worked VBD B-VP +for IN B-PP +Mr. NNP B-NP +Noriega NNP I-NP +and CC O +who WP B-NP +testified VBD B-VP +before IN B-PP +the DT B-NP +U.S. NNP I-NP +grand JJ I-NP +jury NN I-NP +in IN B-PP +Miami NNP B-NP +that WDT B-NP +would MD B-VP +ultimately RB I-VP +indict VB I-VP +the DT B-NP +Panamanian JJ I-NP +on IN B-PP +drug NN B-NP +charges NNS I-NP +. . O + +But CC O +Mr. NNP B-NP +Noriega NNP I-NP +was VBD B-VP +convinced VBN I-VP +the DT B-NP +Reagan NNP I-NP +White NNP I-NP +House NNP I-NP +would MD B-VP +n't RB I-VP +act VB I-VP +against IN B-PP +him PRP B-NP +, , O +recalls VBZ B-VP +his PRP$ B-NP +close NN I-NP +ally NN I-NP +Jose NNP B-NP +Blandon NNP I-NP +, , O +because IN B-SBAR +he PRP B-NP +had VBD B-VP +an DT B-NP +insurance NN I-NP +policy NN I-NP +: : O +his PRP$ B-NP +involvement NN I-NP +with IN B-PP +the DT B-NP +Contra NNP I-NP +rebels NNS I-NP +in IN B-PP +Nicaragua NNP B-NP +. . O + +Mr. NNP B-NP +Blandon NNP I-NP +says VBZ B-VP +the DT B-NP +general JJ I-NP +allowed VBN B-VP +the DT B-NP +Contras NNPS I-NP +to TO B-VP +set VB I-VP +up IN B-PRT +a DT B-NP +secret JJ I-NP +training NN I-NP +center NN I-NP +in IN B-PP +Panama NNP B-NP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +also RB B-ADVP +conveyed VBD B-VP +intelligence NN B-NP +from IN B-PP +his PRP$ B-NP +spy NN I-NP +operation NN I-NP +inside IN B-PP +the DT B-NP +Nicaraguan JJ I-NP +capital NN I-NP +of IN B-PP +Managua NNP B-NP +. . O + +And CC O +on IN B-PP +at IN B-NP +least JJS I-NP +one CD I-NP +occasion NN I-NP +, , O +in IN B-PP +the DT B-NP +spring NN I-NP +of IN B-PP +1985 CD B-NP +, , O +he PRP B-NP +helped VBD B-VP +arrange VB I-VP +a DT B-NP +sabotage NN I-NP +attack NN I-NP +on IN B-PP +a DT B-NP +Sandinista NNP I-NP +arsenal NN I-NP +in IN B-PP +Nicaragua NNP B-NP +. . O + +Although IN B-SBAR +, , O +his PRP$ B-NP +help NN I-NP +for IN B-PP +the DT B-NP +Contra NNP I-NP +cause NN I-NP +was VBD B-VP +limited JJ I-VP +, , O +it PRP B-NP +was VBD B-VP +enough RB B-ADJP +to TO B-VP +win VB I-VP +him PRP B-NP +important JJ B-NP +protectors NNS I-NP +in IN B-PP +the DT B-NP +Reagan NNP I-NP +administration NN I-NP +, , O +says VBZ B-VP +Sen. NNP B-NP +Patrick NNP I-NP +Leahy NNP I-NP +, , O +a DT B-NP +Vermont NNP I-NP +Democrat NNP I-NP +who WP B-NP +then RB B-ADVP +served VBN B-VP +on IN B-PP +the DT B-NP +Senate NNP I-NP +Intelligence NNP I-NP +Committee NNP I-NP +. . O + +`` `` O +Noriega NNP B-NP +played VBD B-VP +U.S. NNP B-NP +intelligence NN I-NP +agencies NNS I-NP +and CC O +the DT B-NP +U.S. NNP I-NP +government NN I-NP +like IN B-PP +a DT B-NP +violin NN I-NP +, , O +'' '' O +he PRP B-NP +says VBZ B-VP +. . O + +An DT B-NP +incident NN I-NP +in IN B-PP +1984 CD B-NP +suggested VBD B-VP +one CD B-NP +additional JJ I-NP +means NNS I-NP +by IN B-PP +which WDT B-NP +Mr. NNP B-NP +Noriega NNP I-NP +might MD B-VP +have VB I-VP +maintained VBN I-VP +such JJ B-NP +influence NN I-NP +with IN B-PP +Washington NNP B-NP +-- : O +by IN B-PP +compromising VBG B-VP +U.S. NNP B-NP +officials NNS I-NP +. . O + +Curtin NNP B-NP +Windsor NNP I-NP +, , O +then RB B-ADVP +the DT B-NP +ambassador NN I-NP +to TO B-PP +Costa NNP B-NP +Rica NNP I-NP +, , O +recalls VBZ B-VP +being VBG I-VP +invited VBN I-VP +to TO B-PP +Panama NNP B-NP +by IN B-PP +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +brother NN I-NP +Luis NNP B-NP +Carlos NNP I-NP +for IN B-PP +a DT B-NP +weekend NN I-NP +of IN B-PP +deep JJ B-NP +sea NN I-NP +fishing NN I-NP +and CC O +`` `` O +quiet JJ B-NP +, , I-NP +serious JJ I-NP +conversation NN I-NP +'' '' O +on IN B-PP +the DT B-NP +Aswara NNP I-NP +Peninsula NNP I-NP +. . O + +Mr. NNP B-NP +Windsor NNP I-NP +notified VBD B-VP +Everett NNP B-NP +E. NNP I-NP +Briggs NNP I-NP +, , O +the DT B-NP +U.S. NNP I-NP +ambassador NN I-NP +to TO B-PP +Panama NNP B-NP +, , O +of IN B-PP +the DT B-NP +invitation NN I-NP +. . O + +`` `` O +Briggs NNP B-NP +screamed VBD B-VP +, , O +'' '' O +Mr. NNP B-NP +Windsor NNP I-NP +recalls VBZ B-VP +. . O + +He PRP B-NP +says VBZ B-VP +Mr. NNP B-NP +Briggs NNP I-NP +told VBD B-VP +him PRP B-NP +he PRP B-NP +was VBD B-VP +being VBG I-VP +set VBN I-VP +up IN B-PRT +for IN B-PP +a DT B-NP +`` `` I-NP +honey NN I-NP +trap NN I-NP +, , O +'' '' O +in IN B-PP +which WDT B-NP +Mr. NNP B-NP +Noriega NNP I-NP +would MD B-VP +try VB I-VP +to TO I-VP +involve VB I-VP +him PRP B-NP +in IN B-PP +an DT B-NP +orgy NN I-NP +and CC O +then JJ B-VP +record NN I-VP +the DT B-NP +event NN I-NP +`` `` O +with IN B-PP +sound NN B-NP +and CC I-NP +video NN I-NP +. . O +'' '' O + +Mr. NNP B-NP +Briggs NNP I-NP +, , O +on IN B-PP +vacation NN B-NP +after IN B-PP +resigning VBG B-VP +his PRP$ B-NP +position NN I-NP +at IN B-PP +the DT B-NP +National NNP I-NP +Security NNP I-NP +Council NNP I-NP +, , O +could MD B-VP +n't RB I-VP +be VB I-VP +reached VBN I-VP +for IN B-PP +comment NN B-NP +. . O + +As IN B-SBAR +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +political JJ I-NP +troubles NNS I-NP +grew VBD B-VP +, , O +so RB B-ADVP +did VBD O +his PRP$ B-NP +offers NNS I-NP +of IN B-PP +assistance NN B-NP +to TO B-PP +the DT B-NP +Contras NNPS I-NP +, , O +an DT B-NP +apparent JJ I-NP +attempt NN I-NP +to TO B-VP +curry VB I-VP +more JJR B-NP +favor NN I-NP +in IN B-PP +Washington NNP B-NP +. . O + +For IN B-PP +instance NN B-NP +, , O +he PRP B-NP +helped VBD B-VP +steal VB I-VP +the DT B-NP +May NNP I-NP +1984 CD I-NP +Panamanian JJ I-NP +elections NNS I-NP +for IN B-PP +the DT B-NP +ruling NN I-NP +party NN I-NP +. . O + +But CC O +just RB B-NP +one CD I-NP +month NN I-NP +later RB B-ADVP +, , O +he PRP B-NP +also RB B-ADVP +contributed VBD B-VP +$ $ B-NP +100,000 CD I-NP +to TO B-PP +a DT B-NP +Contra NNP I-NP +leader NN I-NP +, , O +according VBG B-PP +to TO B-PP +documents NNS B-NP +released VBN B-VP +for IN B-PP +Oliver NNP B-NP +North NNP I-NP +'s POS B-NP +criminal JJ I-NP +trial NN I-NP +in IN B-PP +Washington NNP B-NP +, , O +D.C NNP B-NP +. . O + +Yet RB B-ADVP +, , O +his PRP$ B-NP +political JJ I-NP +setbacks NNS I-NP +mounted VBN B-VP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +was VBD B-VP +accused VBN I-VP +of IN B-PP +ordering VBG B-VP +in IN B-PP +1985 CD B-NP +the DT B-NP +beheading NN I-NP +of IN B-PP +Hugo NNP B-NP +Spadafora NNP I-NP +, , O +his PRP$ B-NP +most RBS I-NP +outspoken JJ I-NP +political JJ I-NP +opponent NN I-NP +and CC O +the DT B-NP +first JJ I-NP +man NN I-NP +to TO B-VP +publicly RB I-VP +finger NN I-VP +Mr. NNP B-NP +Noriega NNP I-NP +on IN B-PP +drug NN B-NP +trafficking NN I-NP +charges NNS I-NP +. . O + +He PRP B-NP +then RB B-ADVP +ousted VBD B-VP +President NNP B-NP +Nicholas NNP I-NP +Ardito NNP I-NP +Barletta NNP I-NP +, , O +a DT B-NP +former JJ I-NP +World NNP I-NP +Bank NNP I-NP +official NN I-NP +with IN B-PP +close NN B-NP +ties NNS I-NP +to TO B-PP +the DT B-NP +U.S. NNP I-NP +, , O +after IN B-SBAR +Mr. NNP B-NP +Barletta NNP I-NP +tried VBD B-VP +to TO I-VP +create VB I-VP +a DT B-NP +commission NN I-NP +to TO B-VP +investigate VB I-VP +the DT B-NP +murder NN I-NP +. . O + +And CC O +, , O +all PDT B-NP +the DT I-NP +while NN I-NP +, , O +Panama NNP B-NP +'s POS B-NP +debt NN I-NP +problems NNS I-NP +continued VBD B-VP +to TO I-VP +grow VB I-VP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +was VBD B-VP +growing VBG I-VP +desperate JJ B-ADJP +. . O + +In IN B-PP +late JJ B-NP +1986 CD I-NP +, , O +he PRP B-NP +made VBD B-VP +an DT B-NP +offer NN I-NP +he PRP B-NP +thought VBD B-VP +the DT B-NP +U.S. NNP I-NP +could MD B-VP +n't RB I-VP +refuse VB I-VP +. . O + +As IN B-SBAR +recounted VBN B-VP +in IN B-PP +a DT B-NP +stipulation NN I-NP +that WDT B-NP +summarized VBD B-VP +government NN B-NP +documents NNS I-NP +released VBN B-VP +for IN B-PP +the DT B-NP +North NNP I-NP +trial NN I-NP +, , O +Mr. NNP B-NP +Noriega NNP I-NP +offered VBD B-VP +to TO I-VP +assassinate VB I-VP +the DT B-NP +Sandinista NNP I-NP +leadership NN I-NP +in IN B-PP +exchange NN B-NP +`` `` O +for IN B-PP +a DT B-NP +promise NN I-NP +to TO B-VP +help VB I-VP +clean JJ I-VP +up IN B-PRT +Noriega NNP B-NP +'s POS B-NP +image NN I-NP +and CC O +a DT B-NP +commitment NN I-NP +to TO B-VP +lift VB I-VP +the DT B-NP +-LCB- ( I-NP +U.S. NNP I-NP +. . I-NP +-RCB- ) I-NP +ban NN I-NP +on IN B-PP +military JJ B-NP +sales NNS I-NP +to TO B-PP +the DT B-NP +Panamanian NNP I-NP +Defense NNP I-NP +Forces NNPS I-NP +. . O +'' '' O + +`` `` O +North NNP B-NP +, , O +'' '' O +the DT B-NP +document NN I-NP +went VBD B-VP +on IN B-ADVP +, , O +referring VBG B-VP +to TO B-PP +Oliver NNP B-NP +North NNP I-NP +, , O +`` `` O +has VBZ B-VP +told VBN I-VP +Noriega NNP B-NP +'s POS B-NP +representative NN I-NP +that IN B-SBAR +U.S. NNP B-NP +law NN I-NP +forbade VBD B-VP +such JJ B-NP +actions NNS I-NP +. . O + +The DT B-NP +representative NN I-NP +responded VBD B-VP +that IN B-SBAR +Noriega NNP B-NP +had VBD B-VP +numerous JJ B-NP +assets NNS I-NP +in IN B-PP +place NN B-NP +in IN B-PP +Nicaragua NNP B-NP +and CC O +could MD B-VP +accomplish VB I-VP +many JJ B-NP +essential JJ I-NP +things NNS I-NP +, , O +just RB B-ADVP +as IN B-SBAR +Noriega NNP B-NP +had VBD B-VP +helped VBN I-VP +-LCB- ( O +the DT B-NP +U.S. NNP I-NP +. . O +-RCB- ) O +the DT B-NP +previous JJ I-NP +year NN I-NP +in IN B-PP +blowing VBG B-VP +up IN B-PRT +a DT B-NP +Sandinista NNP I-NP +arsenal NN I-NP +. . O +'' '' O + +Col. NNP B-NP +North NNP I-NP +conveyed VBD B-VP +the DT B-NP +request NN I-NP +to TO B-PP +his PRP$ B-NP +superiors NNS I-NP +and CC B-PP +to TO B-PP +Assistant NNP O +Secretary NNP O +of IN B-PP +State NNP B-NP +Elliot NNP B-NP +Abrams NNP I-NP +, , O +who WP B-NP +relayed VBD B-VP +it PRP B-NP +to TO B-PP +Secretary NNP O +of IN B-PP +State NNP B-NP +George NNP B-NP +Shultz NNP I-NP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +proposal NN I-NP +was VBD B-VP +turned VBN I-VP +down RB B-PRT +. . O + +And CC O +Mr. NNP B-NP +Shultz NNP I-NP +curtly RB B-VP +told VBD I-VP +Mr. NNP B-NP +Abrams NNP I-NP +that IN B-SBAR +the DT B-NP +general NN I-NP +should MD B-VP +be VB I-VP +told VBN I-VP +that IN B-SBAR +only RB B-NP +he PRP I-NP +could MD B-VP +repair VB I-VP +his PRP$ B-NP +tarnished VBN I-NP +image NN I-NP +. . O + +The DT B-NP +end NN I-NP +of IN B-PP +the DT B-NP +marriage NN I-NP +was VBD B-VP +at IN B-PP +hand NN B-NP +. . O + +Within IN B-PP +weeks NNS B-NP +the DT B-NP +unfolding VBG I-NP +Iran-Contra NNP I-NP +scandal NN I-NP +took VBD B-VP +away RB B-ADVP +Mr. NNP B-NP +Noriega NNP I-NP +'s POS B-NP +insurance NN I-NP +policy NN I-NP +. . O + +The DT B-NP +death NN I-NP +of IN B-PP +CIA NNP B-NP +Director NNP I-NP +William NNP B-NP +Casey NNP I-NP +and CC O +resignation NN B-NP +of IN B-PP +Oliver NNP B-NP +North NNP I-NP +allowed VBD B-VP +anti-Noriega JJ B-NP +political JJ I-NP +forces NNS I-NP +to TO B-VP +gain VB I-VP +influence NN B-NP +. . O + +Public JJ B-NP +protests NNS I-NP +against IN B-PP +him PRP B-NP +were VBD B-VP +triggered VBN I-VP +in IN B-PP +June NNP B-NP +1987 CD I-NP +due JJ B-PP +to TO I-PP +charges NNS B-NP +by IN B-PP +Diaz NNP B-NP +Herrera NNP I-NP +, , O +his PRP$ B-NP +former JJ I-NP +chief NN I-NP +of IN B-PP +staff NN B-NP +, , O +that IN B-SBAR +Mr. NNP B-NP +Noriega NNP I-NP +had VBD B-VP +stolen VBN I-VP +the DT B-NP +1984 CD I-NP +election NN I-NP +and CC O +had VBD B-VP +ordered VBN I-VP +the DT B-NP +killing NN I-NP +of IN B-PP +Messrs. NNP B-NP +Spadafora NNP I-NP +and CC I-NP +Torrijos NNP I-NP +. . O + +Few NNP B-NP +American JJ I-NP +officials NNS I-NP +were VBD B-VP +willing JJ I-VP +any RB I-VP +longer RB I-VP +to TO I-VP +defend VB I-VP +him PRP B-NP +. . O + +Lawyers NNS B-NP +in IN B-PP +Miami NNP B-NP +-- : O +this DT B-NP +time NN I-NP +working VBG B-VP +virtually RB B-ADVP +without IN B-PP +impediment NN B-NP +-- : O +prepared VBN B-VP +to TO I-VP +have VB I-VP +him PRP B-NP +indicted VBN B-VP +on IN B-PP +drug NN B-NP +charges NNS I-NP +in IN B-PP +February NNP B-NP +1988 CD I-NP +. . O + +During IN B-PP +negotiations NNS B-NP +with IN B-PP +American JJ B-NP +officials NNS I-NP +in IN B-PP +May NNP B-NP +1988 CD I-NP +over IN B-PP +proposals NNS B-NP +to TO B-VP +drop VB I-VP +the DT B-NP +U.S. NNP I-NP +indictments NNS I-NP +in IN B-PP +exchange NN B-NP +for IN B-PP +his PRP$ B-NP +resignation NN I-NP +, , O +Mr. NNP B-NP +Noriega NNP I-NP +often RB B-ADVP +asked VBD B-VP +almost RB B-ADVP +plaintively RB I-ADVP +how WRB B-ADVP +the DT B-NP +Americans NNPS I-NP +, , O +whom WP B-NP +he PRP B-NP +had VBD B-VP +helped VBN I-VP +for IN B-PP +so RB B-NP +many JJ I-NP +years NNS I-NP +, , O +could MD B-VP +turn VB I-VP +against IN B-PP +him PRP B-NP +. . O + +Now RB B-ADVP +, , O +neither DT B-NP +side NN I-NP +-- : O +the DT B-NP +U.S. NNP I-NP +nor CC O +Mr. NNP B-NP +Noriega NNP I-NP +-- : O +has VBZ B-VP +an DT B-NP +easy JJ I-NP +out RB I-NP +. . O + +President NNP B-NP +Bush NNP I-NP +has VBZ B-VP +sworn VBN I-VP +to TO I-VP +bring VB I-VP +him PRP B-NP +to TO B-PP +justice NN B-NP +. . O + +Mr. NNP B-NP +Noriega NNP I-NP +believes VBZ B-VP +he PRP B-NP +has VBZ B-VP +n't RB O +any DT B-NP +alternative NN I-NP +but CC O +to TO B-VP +continue VB I-VP +clutching VBG I-VP +to TO B-PP +power VB B-NP +. . O + +It PRP B-NP +is VBZ B-VP +a DT B-NP +knock-out JJ I-NP +battle NN I-NP +-- : O +perhaps RB O +to TO B-PP +the DT B-NP +death NN I-NP +. . O + +In IN B-PP +the DT B-NP +end NN I-NP +, , O +is VBZ O +Mr. NNP B-NP +Noriega NNP I-NP +the DT B-NP +political JJ I-NP +equivalent NN I-NP +of IN B-PP +Frankenstein NNP B-NP +'s POS B-NP +monster NN I-NP +, , O +created VBN B-VP +by IN B-PP +a DT B-NP +well-intentioned JJ I-NP +but CC I-NP +misguided JJ I-NP +foreign JJ I-NP +power NN I-NP +? . O + +Not RB B-ADVP +quite RB I-ADVP +, , O +Sen. NNP B-NP +Leahy NNP I-NP +contends VBZ B-VP +. . O + +`` `` O +For IN B-PP +short-term JJ B-NP +gains NNS I-NP +, , O +people NNS B-NP +were VBD B-VP +willing JJ B-ADJP +to TO B-VP +put VB I-VP +up IN B-PRT +with IN B-PP +him PRP B-NP +. . O + +That DT B-NP +allowed VBN B-VP +him PRP B-NP +to TO B-VP +get VB I-VP +stronger JJR B-ADJP +and CC I-ADJP +stronger JJR I-ADJP +, , O +'' '' O +he PRP B-NP +says VBZ B-VP +. . O + +`` `` O +I PRP B-NP +do VBP B-VP +n't RB I-VP +think VB I-VP +we PRP B-NP +created VBD B-VP +him PRP B-NP +as RB B-ADVP +much JJ I-ADVP +as IN B-SBAR +we PRP B-NP +fed VBD B-VP +him PRP B-NP +, , O +nurtured VBD B-VP +him PRP B-NP +and CC O +let VB B-VP +him PRP B-NP +grow VB B-VP +up VB O +to TO B-VP +be VB I-VP +big JJ B-ADJP +and CC I-ADJP +strong JJ I-ADJP +. . O + +UPJOHN NNP B-NP +Co. NNP I-NP +reported VBD B-VP +that IN B-SBAR +third-quarter JJ B-NP +net JJ I-NP +income NN I-NP +rose VBD B-VP +to TO B-PP +$ $ B-NP +96 CD I-NP +million CD I-NP +, , O +or CC O +52 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +, , O +from IN O +$ $ B-NP +89.6 CD I-NP +million CD I-NP +, , B-PP +or CC I-PP +49 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +, , O +a DT B-NP +year NN I-NP +earlier RBR B-ADVP +. . O + +Yesterday NN B-NP +'s POS B-NP +edition NN I-NP +provided VBD B-VP +analysts NNS B-NP +' POS B-NP +estimates NNS I-NP +for IN B-PP +the DT B-NP +company NN I-NP +when WRB B-ADVP +actual JJ B-NP +earnings NNS I-NP +were VBD B-VP +available JJ B-ADJP +. . O + +Industrial JJ B-NP +production NN I-NP +declined VBD B-VP +0.1 CD B-NP +% NN I-NP +in IN B-PP +September NNP B-NP +, , O +reinforcing VBG B-VP +other JJ B-NP +signs NNS I-NP +that IN B-SBAR +the DT B-NP +manufacturing NN I-NP +sector NN I-NP +continues VBZ B-VP +its PRP$ B-NP +slowing NN I-NP +trend NN I-NP +. . O + +The DT B-NP +Federal NNP I-NP +Reserve NNP I-NP +Board NNP I-NP +said VBD B-VP +output NN B-NP +of IN B-PP +the DT B-NP +nation NN I-NP +'s POS B-NP +factories NNS I-NP +, , I-NP +mines NNS I-NP +and CC I-NP +utilities NNS I-NP +expanded VBN B-VP +at IN B-PP +an DT B-NP +annual JJ I-NP +rate NN I-NP +of IN B-PP +1.3 CD B-NP +% NN I-NP +in IN B-PP +the DT B-NP +third JJ I-NP +quarter NN I-NP +, , O +substantially RB B-ADJP +slower JJR I-ADJP +than IN B-PP +the DT B-NP +3.3 CD I-NP +% NN I-NP +annual JJ I-NP +rate NN I-NP +in IN B-PP +the DT B-NP +second JJ I-NP +quarter NN I-NP +. . O + +`` `` O +Capital NNP B-NP +spending NN I-NP +and CC I-NP +exports NNS I-NP +, , O +which WDT B-NP +have VBP B-VP +been VBN I-VP +the DT B-NP +driving VBG I-NP +force NN I-NP +in IN B-PP +this DT B-NP +expansion NN I-NP +, , O +are VBP B-VP +showing VBG I-VP +clear JJ B-NP +signs NNS I-NP +of IN B-PP +having VBG B-VP +the DT B-NP +steam NN I-NP +taken VBN B-VP +out IN B-ADVP +of IN B-PP +them PRP B-NP +, , O +'' '' O +said VBD B-VP +Robert NNP B-NP +Dederick NNP I-NP +, , O +economist NN B-NP +for IN B-PP +Northern NNP B-NP +Trust NNP I-NP +Co. NNP I-NP +in IN B-PP +Chicago NNP B-NP +. . O + +The DT B-NP +new JJ I-NP +reports NNS I-NP +of IN B-PP +sluggishness NN B-NP +, , O +which WDT B-NP +were VBD B-VP +foreshadowed VBN I-VP +by IN B-PP +an DT B-NP +earlier RBR I-NP +Labor NNP I-NP +Department NNP I-NP +report NN I-NP +that IN B-SBAR +manufacturing NN B-NP +payrolls NNS I-NP +dropped VBN B-VP +by IN B-PP +105,000 CD B-NP +in IN B-PP +September NNP B-NP +, , O +give VB B-VP +the DT B-NP +Fed NNP I-NP +another DT B-NP +reason NN I-NP +to TO B-VP +further VB I-VP +ease VB I-VP +its PRP$ B-NP +grip NN I-NP +on IN B-PP +credit NN B-NP +and CC O +lower JJR B-VP +interest NN B-NP +rates NNS I-NP +. . O + +`` `` O +They PRP B-NP +need VBP B-VP +to TO I-VP +do VB I-VP +something NN B-NP +about IN B-PP +this DT B-NP +, , O +'' '' O +said VBD B-VP +Maury NNP B-NP +Harris NNP I-NP +, , O +economist NN B-NP +at IN B-PP +PaineWebber NNP B-NP +Group NNP I-NP +Inc NNP I-NP +. . O + +The DT B-NP +Fed NNP I-NP +also RB B-ADVP +said VBD B-VP +U.S. NNP B-NP +industry NN I-NP +operated VBN B-VP +at IN B-PP +83.6 CD B-NP +% NN I-NP +of IN B-PP +capacity NN B-NP +last JJ B-NP +month NN I-NP +, , O +down RB B-ADVP +from IN B-PP +83.8 CD B-NP +% NN I-NP +in IN B-PP +August NNP B-NP +. . O + +Measures NNS B-NP +of IN B-PP +manufacturing NN B-NP +activity NN I-NP +fell VBD B-VP +more JJR B-ADVP +than IN B-PP +the DT B-NP +overall JJ I-NP +measures NNS I-NP +. . O + +Factory NN B-NP +output NN I-NP +dropped VBD B-VP +0.2 CD B-NP +% NN I-NP +, , O +its PRP$ B-NP +first JJ I-NP +decline NN I-NP +since IN B-PP +February NNP B-NP +, , O +after IN B-SBAR +having VBG B-VP +been VBN I-VP +unchanged JJ B-ADJP +in IN B-PP +October NNP B-NP +. . O + +Factories NNS B-NP +operated VBN B-VP +at IN B-PP +83.7 CD B-NP +% NN I-NP +of IN B-PP +capacity NN B-NP +, , O +the DT B-NP +lowest JJS I-NP +rate NN I-NP +in IN B-PP +more JJR B-NP +than IN I-NP +a DT I-NP +year NN I-NP +and CC O +down RB B-ADVP +from IN B-PP +84.1 CD B-NP +% NN I-NP +in IN B-PP +September NNP B-NP +. . O + +The DT B-NP +declines NNS I-NP +mainly RB B-ADVP +reflected VBD B-VP +widespread JJ B-NP +weakness NN I-NP +in IN B-PP +durable JJ B-NP +goods NNS I-NP +, , O +those DT B-NP +intended VBN B-VP +to TO I-VP +last VB I-VP +more JJR B-NP +than IN I-NP +three CD I-NP +years NNS I-NP +. . O + +The DT B-NP +biggest JJS I-NP +drop NN I-NP +was VBD B-VP +recorded VBN I-VP +by IN B-PP +primary JJ B-NP +metals NNS I-NP +producers NNS I-NP +, , O +a DT B-NP +category NN I-NP +that WDT B-NP +includes VBZ B-VP +the DT B-NP +steel NN I-NP +industry NN I-NP +. . O + +Output NN B-NP +of IN B-PP +business NN B-NP +equipment NN I-NP +was VBD B-VP +unchanged JJ B-ADJP +in IN B-PP +September NNP B-NP +. . O + +Production NN B-NP +of IN B-PP +factory NN B-NP +equipment NN I-NP +, , O +one CD B-NP +indication NN I-NP +of IN B-PP +the DT B-NP +strength NN I-NP +of IN B-PP +manufacturers NNS B-NP +' POS B-NP +investment NN I-NP +spending NN I-NP +, , O +fell VBD B-VP +0.3 CD B-NP +% NN I-NP +. . O + +Some DT B-NP +economists NNS I-NP +expect VBP B-VP +further JJ B-NP +declines NNS I-NP +in IN B-PP +investment NN B-NP +spending NN I-NP +. . O + +`` `` O +Whenever WRB B-ADVP +corporate JJ B-NP +profits NNS I-NP +are VBP B-VP +weak JJ B-ADJP +that WDT B-NP +means VBZ B-VP +capital NN B-NP +spending NN I-NP +is VBZ B-VP +going VBG I-VP +to TO I-VP +soften VB I-VP +subsequently RB B-ADVP +, , O +'' '' O +Mr. NNP B-NP +Harris NNP I-NP +said VBD B-VP +. . O + +`` `` O +You PRP B-NP +have VBP B-VP +n't RB I-VP +seen VBN I-VP +the DT B-NP +full JJ I-NP +effect NN I-NP +of IN B-PP +that DT B-NP +yet RB B-ADVP +. . O +'' '' O + +A DT B-NP +decline NN I-NP +in IN B-PP +truck NN B-NP +production NN I-NP +more JJR B-VP +than IN I-VP +offset VB I-VP +a DT B-NP +sharp JJ I-NP +rise NN I-NP +in IN B-PP +auto NN B-NP +assemblies NNS I-NP +, , O +the DT B-NP +Fed NNP I-NP +noted VBD B-VP +. . O + +Analysts NNS B-NP +do VBP B-VP +n't RB I-VP +expect VB I-VP +the DT B-NP +September NNP I-NP +surge NN I-NP +in IN B-PP +auto NN B-NP +production NN I-NP +to TO B-VP +be VB I-VP +repeated VBN I-VP +in IN B-PP +the DT B-NP +coming VBG I-NP +months NNS I-NP +. . O + +Here RB B-NP +is VBZ B-VP +a DT B-NP +summary NN I-NP +of IN B-PP +the DT B-NP +Federal NNP I-NP +Reserve NNP I-NP +Board NNP I-NP +'s POS B-NP +report NN I-NP +on IN B-PP +industrial JJ B-NP +production NN I-NP +in IN B-PP +September NNP B-NP +. . O + +The DT B-NP +figures NNS I-NP +are VBP B-VP +seasonally RB I-VP +adjusted VBN I-VP +. . O + +142.3 CD B-NP +% NN I-NP +of IN B-PP +the DT B-NP +1977 CD I-NP +average JJ I-NP +. . O + +Robin NNP B-NP +Honiss NNP I-NP +, , O +president NN B-NP +and CC O +chief JJ B-NP +executive JJ I-NP +officer NN I-NP +of IN B-PP +this DT B-NP +bank NN I-NP +holding VBG I-NP +company NN I-NP +, , O +was VBD B-VP +elected VBN I-VP +to TO B-PP +the DT B-NP +additional JJ I-NP +posts NNS I-NP +of IN B-PP +chairman NN B-NP +, , O +president NN B-NP +and CC O +chief JJ B-NP +executive NN I-NP +of IN B-PP +the DT B-NP +company NN I-NP +'s POS B-NP +New NNP I-NP +England NNP I-NP +Savings NNP I-NP +Bank NNP I-NP +subsidiary NN I-NP +. . O + +William NNP B-NP +R. NNP I-NP +Attridge NNP I-NP +resigned VBD B-VP +those DT B-NP +posts NNS I-NP +, , O +as RB B-CONJP +well RB I-CONJP +as IN I-CONJP +a DT B-NP +seat NN I-NP +on IN B-PP +NESB NNP B-NP +'s POS B-NP +board NN I-NP +. . O + +NESB NNP B-NP +is VBZ B-VP +also RB B-ADVP +the DT B-NP +parent NN I-NP +of IN B-PP +Omnibank NNP B-NP +. . O + +Lung-cancer NN B-NP +mortality NN I-NP +rates NNS I-NP +for IN B-PP +people NNS B-NP +under IN B-PP +45 CD B-NP +years NNS I-NP +of IN B-PP +age NN B-NP +have VBP B-VP +begun VBN I-VP +to TO I-VP +decline VB I-VP +, , O +federal JJ B-NP +researchers NNS I-NP +report VBP B-VP +. . O + +The DT B-NP +drop NN I-NP +is VBZ B-VP +particularly RB B-ADJP +large JJ I-ADJP +for IN B-PP +white JJ B-NP +males NNS I-NP +, , O +although IN B-SBAR +black JJ B-NP +males NNS I-NP +and CC O +white JJ B-NP +and CC I-NP +black JJ I-NP +women NNS I-NP +also RB B-ADVP +show VBP B-VP +lower JJR B-NP +mortality NN I-NP +rates NNS I-NP +. . O + +A DT B-NP +report NN I-NP +in IN B-PP +this DT B-NP +week NN I-NP +'s POS B-NP +issue NN I-NP +of IN B-PP +the DT B-NP +Journal NNP I-NP +of IN B-PP +the DT B-NP +National NNP I-NP +Cancer NNP I-NP +Institute NNP I-NP +also RB B-ADVP +projects VBZ B-VP +that IN B-SBAR +overall JJ B-NP +U.S. NNP I-NP +mortality NN I-NP +rates NNS I-NP +from IN B-PP +lung NN B-NP +cancer NN I-NP +, , O +the DT B-NP +leading VBG I-NP +cause NN I-NP +of IN B-PP +cancer NN B-NP +death NN I-NP +, , O +should MD B-VP +begin VB I-VP +to TO I-VP +drop VB I-VP +in IN B-PP +several JJ B-NP +years NNS I-NP +if IN B-SBAR +cigarette NN B-NP +smoking NN I-NP +continues VBZ B-VP +to TO I-VP +abate VB I-VP +. . O + +The DT B-NP +report NN I-NP +, , O +which WDT B-NP +comes VBZ B-VP +25 CD B-NP +years NNS I-NP +after IN B-SBAR +the DT B-NP +U.S. NNP I-NP +Surgeon NNP I-NP +General NNP I-NP +issued VBD B-VP +a DT B-NP +report NN I-NP +warning NN B-VP +against IN B-PP +the DT B-NP +dangers NNS I-NP +of IN B-PP +smoking NN B-NP +, , O +is VBZ B-VP +the DT B-NP +strongest JJS I-NP +indication NN I-NP +to TO B-PP +date VB B-NP +that IN B-SBAR +the DT B-NP +reduction NN I-NP +in IN B-PP +smoking NN B-NP +is VBZ B-VP +leading VBG I-VP +to TO B-PP +lower JJR B-NP +death NN I-NP +rates NNS I-NP +from IN B-PP +lung NN B-NP +cancer NN I-NP +. . O + +`` `` O +What WP B-NP +this DT B-NP +is VBZ B-VP +saying VBG I-VP +is VBZ B-VP +that IN B-SBAR +the DT B-NP +surgeon NN I-NP +general NN I-NP +'s POS B-NP +message NN I-NP +is VBZ B-VP +having VBG I-VP +an DT B-NP +impact NN I-NP +, , O +'' '' O +said VBD B-VP +Melvyn NNP B-NP +Tockman NNP I-NP +, , O +an DT B-NP +epidemiologist NN I-NP +at IN B-PP +the DT B-NP +Johns NNP I-NP +Hopkins NNP I-NP +School NNP I-NP +of IN B-PP +Hygiene NNP B-NP +and CC O +Public NNP B-NP +Health NNP I-NP +in IN B-PP +Baltimore NNP B-NP +. . O + +The DT B-NP +National NNP I-NP +Cancer NNP I-NP +Institute NNP I-NP +report NN I-NP +compares VBZ B-VP +mortality NN B-NP +rates NNS I-NP +of IN B-PP +two CD B-NP +groups NNS I-NP +of IN B-PP +people NNS B-NP +between IN B-PP +the DT B-NP +ages NNS I-NP +of IN B-PP +35 CD B-NP +and CC I-NP +44 CD I-NP +a DT B-NP +decade NN I-NP +apart RB B-ADJP +. . O + +The DT B-NP +death NN I-NP +rate NN I-NP +from IN B-PP +lung NN B-NP +cancer NN I-NP +of IN B-PP +white JJ B-NP +males NNS I-NP +aged VBN B-VP +35 CD B-NP +to TO B-PP +44 CD B-NP +in IN B-PP +the DT B-NP +mid-1970s NNS I-NP +was VBD B-VP +13.4 CD B-NP +per IN B-PP +100,000 CD B-NP +, , O +but CC O +the DT B-NP +mortality NN I-NP +rate NN I-NP +of IN B-PP +the DT B-NP +same JJ I-NP +age NN I-NP +group NN I-NP +in IN B-PP +the DT B-NP +mid-1980s NNS I-NP +was VBD B-VP +9.6 CD B-NP +, , O +a DT B-NP +decline NN I-NP +of IN B-PP +28.7 CD B-NP +% NN I-NP +. . O + +Measured VBN B-VP +the DT B-NP +same JJ I-NP +way NN I-NP +, , O +the DT B-NP +decline NN I-NP +for IN B-PP +black JJ B-NP +males NNS I-NP +was VBD B-VP +14.2 CD B-NP +% NN I-NP +. . O + +The DT B-NP +drop NN I-NP +in IN B-PP +mortality NN B-NP +rates NNS I-NP +for IN B-PP +women NNS B-NP +was VBD B-VP +less RBR B-ADJP +steep JJ I-ADJP +-- : O +8.9 CD B-NP +% NN I-NP +for IN B-PP +blacks NNS B-NP +and CC O +5.3 CD B-NP +% NN I-NP +for IN B-PP +whites NNS B-NP +. . O + +The DT B-NP +study NN I-NP +, , O +by IN B-PP +Susan NNP B-NP +Devesa NNP I-NP +, , O +William NNP B-NP +Blot NNP I-NP +and CC O +Joseph NNP B-NP +Fraumeni NNP I-NP +of IN B-PP +the DT B-NP +institute NN I-NP +'s POS B-NP +staff NN I-NP +, , O +also RB B-ADVP +shows VBZ B-VP +that IN B-SBAR +the DT B-NP +incidence NN I-NP +of IN B-PP +lung NN B-NP +cancer NN I-NP +as RB B-CONJP +well RB I-CONJP +as IN I-CONJP +the DT B-NP +death NN I-NP +rate NN I-NP +declined VBD B-VP +over IN B-PP +the DT B-NP +decade NN I-NP +for IN B-PP +all DT B-NP +groups NNS I-NP +in IN B-PP +the DT B-NP +35-44 JJ I-NP +age NN I-NP +bracket NN I-NP +, , O +except IN B-PP +black JJ B-NP +men NNS I-NP +. . O + +Although IN B-SBAR +lung-cancer NN B-NP +mortality NN I-NP +rates NNS I-NP +are VBP B-VP +increasing VBG I-VP +for IN B-PP +the DT B-NP +nation NN I-NP +as IN B-PP +a DT B-NP +whole NN I-NP +, , O +the DT B-NP +report NN I-NP +projects VBZ B-VP +that IN B-SBAR +death NN B-NP +rates NNS I-NP +will MD B-VP +begin VB I-VP +to TO I-VP +decline VB I-VP +in IN B-PP +the DT B-NP +1990s CD I-NP +for IN B-PP +men NNS B-NP +and CC O +after IN B-PP +the DT B-NP +year NN I-NP +2000 CD I-NP +for IN B-PP +women NNS B-NP +. . O + +Lung-cancer NN B-NP +mortality NN I-NP +rates NNS I-NP +increase VBP B-VP +with IN B-PP +age NN B-NP +and CC O +are VBP B-VP +continuing VBG I-VP +to TO I-VP +rise VB I-VP +for IN B-PP +all DT B-NP +age NN I-NP +groups NNS I-NP +over IN B-PP +55 NN B-NP +, , O +with IN B-PP +sharp JJ B-NP +increases NNS I-NP +for IN B-PP +everybody NN B-NP +but CC O +white JJ B-NP +men NNS I-NP +. . O + +But CC O +Dr. NNP B-NP +Fraumeni NNP I-NP +, , O +one CD B-NP +of IN B-PP +the DT B-NP +authors NNS I-NP +of IN B-PP +the DT B-NP +report NN I-NP +, , O +said VBD B-VP +`` `` O +the DT B-NP +declining VBG I-NP +rates NNS I-NP +we PRP B-NP +'re VBP B-VP +seeing VBG I-VP +for IN B-PP +younger JJR B-NP +people NNS I-NP +we PRP B-NP +believe VBP B-VP +may MD I-VP +be VB I-VP +a DT B-NP +harbinger NN I-NP +of IN B-PP +declining VBG B-NP +mortality NN I-NP +in IN B-PP +the DT B-NP +future NN I-NP +. . O +'' '' O + +However RB B-ADVP +, , O +he PRP B-NP +stressed VBD B-VP +that IN B-SBAR +the DT B-NP +improvement NN I-NP +depends VBZ B-VP +on IN B-PP +a DT B-NP +continued VBN I-NP +reduction NN I-NP +in IN B-PP +smoking NN B-NP +. . O + +`` `` O +Even RB B-ADVP +though IN B-SBAR +these DT B-NP +favorable JJ I-NP +trends NNS I-NP +in IN B-PP +lung-cancer NN B-NP +mortality NN I-NP +affect NN B-VP +all DT B-NP +sex NN I-NP +and CC I-NP +race NN I-NP +groups NNS I-NP +, , O +they PRP B-NP +ca MD B-VP +n't RB I-VP +be VB I-VP +taken VBN I-VP +for IN B-PP +granted VBN B-ADJP +, , O +'' '' O +the DT B-NP +report NN I-NP +says NNS B-VP +. . O + +`` `` O +Smoking NNP B-NP +prevention NN I-NP +programs NNS I-NP +should MD B-VP +reach VB I-VP +larger JJR B-NP +segments NNS I-NP +of IN B-PP +the DT B-NP +population NN I-NP +, , O +especially RB B-NP +children NNS I-NP +, , I-NP +adolescents NNS I-NP +and CC I-NP +minorities NNS I-NP +. . O +'' '' O + +An DT B-NP +editorial NN I-NP +in IN B-PP +the DT B-NP +NCI NNP I-NP +Journal NNP I-NP +says VBZ B-VP +the DT B-NP +report NN I-NP +of IN B-PP +declining VBG B-NP +lung-cancer NN I-NP +mortality NN I-NP +`` `` O +among IN B-PP +young JJ B-NP +men NNS I-NP +and CC I-NP +women NNS I-NP +in IN B-PP +the DT B-NP +U.S. NNP I-NP +indicates VBZ B-VP +that IN B-SBAR +we PRP B-NP +finally RB B-ADVP +may MD B-VP +be VB I-VP +winning VBG I-VP +the DT B-NP +battle NN I-NP +-- : O +this DT B-NP +even RB B-ADVP +in IN B-PP +a DT B-NP +country NN I-NP +where WRB B-ADVP +the DT B-NP +tobacco NN I-NP +industry NN I-NP +spends VBZ B-VP +over IN B-NP +$ $ I-NP +2 CD I-NP +billion CD I-NP +a DT B-NP +year NN I-NP +for IN B-PP +promotion NN B-NP +of IN B-PP +the DT B-NP +addictive JJ I-NP +habit NN I-NP +of IN B-PP +smoking NN B-NP +. . O +'' '' O + +But CC O +the DT B-NP +editorial NN I-NP +, , O +by IN B-PP +Jan NNP B-NP +Stjernsward NNP I-NP +of IN B-PP +the DT B-NP +World NNP I-NP +Health NNP I-NP +Organization NNP I-NP +, , O +notes VBZ B-VP +that DT B-SBAR +tobacco NN B-NP +consumption NN I-NP +and CC I-NP +lung-cancer NN I-NP +mortality NN I-NP +rates NNS I-NP +are VBP B-VP +rising VBG I-VP +in IN B-PP +developing VBG B-NP +countries NNS I-NP +. . O + +`` `` O +Non-smoking NN B-NP +should MD B-VP +be VB I-VP +established VBN I-VP +as IN B-PP +the DT B-NP +norm NN I-NP +of IN B-PP +social JJ B-NP +behavior NN I-NP +'' '' O +around IN B-PP +the DT B-NP +world NN I-NP +, , O +the DT B-NP +editorial NN I-NP +says VBZ B-VP +, , O +through IN B-PP +the DT B-NP +enactment NN I-NP +of IN B-PP +laws NNS B-NP +that WDT B-NP +limit VBP B-VP +advertising VBG B-NP +, , O +boost VB B-VP +tobacco NN B-NP +prices NNS I-NP +and CC O +promote VB B-VP +anti-smoking JJ B-NP +education NN I-NP +. . O + +Asked VBN B-VP +for IN B-PP +comment NN B-NP +, , O +Walker NNP B-NP +Merryman NNP I-NP +, , O +a DT B-NP +vice NN I-NP +president NN I-NP +of IN B-PP +the DT B-NP +Tobacco NNP I-NP +Institute NNP I-NP +, , O +said VBD B-VP +new JJ B-NP +efforts NNS I-NP +to TO B-VP +restrict VB I-VP +tobacco NN B-NP +advertising NN I-NP +in IN B-PP +the DT B-NP +U.S. NNP I-NP +could MD B-VP +violate VB I-VP +the DT B-NP +First NNP I-NP +Amendment NNP I-NP +protection NN I-NP +of IN B-PP +free JJ B-NP +speech NN I-NP +. . O + +According VBG B-PP +to TO B-PP +the DT B-NP +American NNP I-NP +Cancer NNP I-NP +Society NNP I-NP +, , O +smoking NN B-NP +is VBZ B-VP +responsible JJ B-ADJP +for IN B-PP +85 CD B-NP +% NN I-NP +of IN B-PP +the DT B-NP +lung-cancer NN I-NP +cases NNS I-NP +among IN B-PP +men NNS B-NP +and CC O +75 CD B-NP +% NN I-NP +among IN B-PP +women NNS B-NP +. . O + +The DT B-NP +NCI NNP I-NP +report NN I-NP +attributes VBZ B-VP +the DT B-NP +differences NNS I-NP +in IN B-PP +mortality NN B-NP +rates NNS I-NP +by IN B-PP +race NN B-NP +to TO B-PP +different JJ B-NP +smoking NN I-NP +patterns NNS I-NP +. . O + +A DT B-NP +higher JJR I-NP +proportion NN I-NP +of IN B-PP +black JJ B-NP +men NNS I-NP +smoke VBP B-VP +than IN B-PP +white JJ B-NP +men NNS I-NP +. . O + +While IN B-SBAR +nearly RB B-NP +equal JJ I-NP +percentages NNS I-NP +of IN B-PP +black JJ B-NP +and CC I-NP +white JJ I-NP +women NNS I-NP +currently JJ B-ADVP +smoke NN B-VP +, , O +in IN B-PP +both DT B-NP +sexes NNS I-NP +more JJR B-NP +whites NNS I-NP +have VBP B-VP +given VBN I-VP +up IN B-PRT +smoking NN B-NP +than IN B-PP +blacks NNS B-NP +. . O + +In IN B-PP +comparing VBG B-VP +changes NNS B-NP +in IN B-PP +mortality NN B-NP +rates NNS I-NP +over IN B-PP +the DT B-NP +past JJ I-NP +decade NN I-NP +, , O +the DT B-NP +NCI NNP I-NP +study NN I-NP +looked VBD B-VP +only RB B-ADVP +at IN B-PP +blacks NNS B-NP +and CC I-NP +whites NNS I-NP +. . O + +Asians NNS B-NP +and CC O +native JJ B-NP +Americans NNPS I-NP +were VBD B-VP +n't RB I-VP +studied VBN I-VP +; : O +Hispanics NNPS B-NP +were VBD B-VP +included VBN I-VP +with IN B-PP +whites NNS B-NP +. . O + +Recent JJ B-NP +changes NNS I-NP +in IN B-PP +average JJ B-NP +annual JJ I-NP +age-specific JJ I-NP +lung-cancer NN I-NP +rates NNS I-NP +per IN B-PP +100,000 CD B-NP +population NN I-NP +by IN B-PP +race NN B-NP +and CC I-NP +sex NN I-NP +. . O + +White NNP B-NP +Males NNPS I-NP + +White NNP B-NP +Females NNPS I-NP + +Black NNP B-NP +Males NNPS I-NP + +Black NNP B-NP +Females NNPS I-NP + +Directors NNS B-NP +elected VBD B-VP +R. NNP B-NP +Marvin NNP I-NP +Womack NNP I-NP +, , O +currently JJ B-ADVP +vice NN B-NP +president\/product NN I-NP +supply NN I-NP +, , I-NP +purchasing VBG I-NP +, , O +to TO B-VP +head VB I-VP +the DT B-NP +company NN I-NP +'s POS B-NP +Washington NNP I-NP +, , I-NP +D.C. NNP I-NP +, , I-NP +office NN I-NP +. . O + +As IN B-PP +vice NN B-NP +president\/national-government NN I-NP +relations NNS I-NP +, , O +Mr. NNP B-NP +Womack NNP I-NP +will MD B-VP +work VB I-VP +with IN B-PP +P&G NNP B-NP +'s POS B-NP +top JJ I-NP +management NN I-NP +and CC B-PP +with IN B-PP +the DT B-NP +company NN I-NP +'s POS B-NP +government-relations NNS I-NP +staff VBP I-NP +`` `` O +to TO B-VP +represent VB I-VP +P&G NNP B-NP +'s POS B-NP +interests NNS I-NP +at IN B-PP +the DT B-NP +federal JJ I-NP +level NN I-NP +, , O +'' '' O +said VBD B-VP +John NNP B-NP +G. NNP I-NP +Smale NNP I-NP +, , O +chairman NN B-NP +and CC O +chief JJ B-NP +executive JJ I-NP +officer NN I-NP +. . O + +Mr. NNP B-NP +Smale NNP I-NP +said VBD B-VP +the DT B-NP +appointment NN I-NP +`` `` O +recognizes VBZ B-VP +the DT B-NP +growing VBG I-NP +influence NN I-NP +of IN B-PP +government NN B-NP +on IN B-PP +our PRP$ B-NP +business NN I-NP +. . O +'' '' O + +Mr. NNP B-NP +Womack NNP I-NP +, , O +53 CD B-NP +years NNS I-NP +old JJ B-ADJP +, , O +has VBZ B-VP +been VBN I-VP +with IN B-PP +the DT B-NP +big JJ I-NP +producer NN I-NP +of IN B-PP +household NN B-NP +products NNS I-NP +, , O +food NN B-NP +and CC O +pharmaceuticals NNS B-NP +for IN B-PP +30 CD B-NP +years NNS I-NP +. . O + +Traders NNS B-NP +trying VBG B-VP +to TO I-VP +profit VB I-VP +from IN B-PP +the DT B-NP +recent JJ I-NP +volatility NN I-NP +in IN B-PP +financial JJ B-NP +markets NNS I-NP +invaded VBD B-VP +the DT B-NP +Nasdaq NNP I-NP +over-the-counter JJ I-NP +market NN I-NP +, , O +prompting VBG B-VP +even RB B-NP +more JJR I-NP +swings NNS I-NP +in IN B-PP +stock NN B-NP +prices NNS I-NP +. . O + +After IN B-PP +gaining VBG B-VP +strength NN B-NP +during IN B-PP +a DT B-NP +brief JJ I-NP +run-up NN I-NP +when WRB B-ADVP +trading NN B-NP +began VBD B-VP +, , O +the DT B-NP +Nasdaq NNP I-NP +Composite NNP I-NP +Index NNP I-NP +weakened VBD B-VP +under IN B-PP +selling VBG B-NP +pressure NN I-NP +. . O + +The DT B-NP +forces NNS I-NP +at IN B-PP +work NN B-NP +included VBD B-VP +computer-guided JJ B-NP +trading NN I-NP +, , O +as RB B-CONJP +well RB I-CONJP +as IN I-CONJP +profit-driven CD B-NP +market NN I-NP +makers NNS I-NP +and CC O +institutional JJ B-NP +investors NNS I-NP +who WP B-NP +had VBD B-VP +bought VBN I-VP +stock NN B-NP +on IN B-PP +the DT B-NP +cheap NN I-NP +during IN B-PP +the DT B-NP +recent JJ I-NP +correction NN I-NP +. . O + +During IN B-PP +the DT B-NP +last JJ I-NP +two CD I-NP +hours NNS I-NP +of IN B-PP +trading NN B-NP +, , O +the DT B-NP +composite JJ I-NP +almost RB B-VP +drew VBD I-VP +even RB B-ADVP +on IN B-PP +the DT B-NP +day NN I-NP +before IN B-PP +slipping VBG B-VP +again RB B-ADVP +. . O + +The DT B-NP +Nasdaq NNP I-NP +Composite NNP I-NP +closed VBD B-VP +down RB B-ADVP +1.05 CD B-NP +, , O +or CC O +0.2 CD B-NP +% NN I-NP +, , O +to TO B-PP +459.93 CD B-NP +. . O + +The DT B-NP +action NN I-NP +was VBD B-VP +confined VBN I-VP +to TO B-PP +Nasdaq NNP B-NP +'s POS B-NP +biggest JJS B-ADJP +and CC O +most RBS B-ADJP +liquid JJ I-ADJP +stocks NNS B-NP +, , O +traders NNS B-NP +said VBD B-VP +. . O + +The DT B-NP +Nasdaq NNP I-NP +100 CD I-NP +Index NNP I-NP +began VBD B-VP +the DT B-NP +day NN I-NP +at IN B-PP +449.89 CD B-NP +, , O +lost VBD B-VP +2 CD B-NP +% NN I-NP +at IN B-PP +one CD B-NP +point NN I-NP +, , O +and CC O +was VBD B-VP +up IN B-ADVP +0.4 CD B-NP +% NN I-NP +at IN B-PP +another DT B-NP +. . O + +The DT B-NP +barometer NN I-NP +of IN B-PP +the DT B-NP +biggest JJS I-NP +nonfinancial JJ I-NP +stocks NNS I-NP +settled VBD B-VP +at IN B-PP +448.49 CD B-NP +, , O +off IN B-ADVP +1.40 CD B-NP +. . O + +Its PRP$ B-NP +counterpart NN I-NP +, , O +the DT B-NP +Nasdaq NNP I-NP +Financial NNP I-NP +Index NNP I-NP +, , O +was VBD B-VP +weak JJ B-ADJP +for IN B-PP +most RBS B-NP +of IN B-PP +the DT B-NP +day NN I-NP +, , O +sliding VBG B-VP +2.51 CD B-NP +to TO B-PP +453.57 CD B-NP +by IN B-PP +the DT B-NP +end NN I-NP +of IN B-PP +trading NN B-NP +. . O + +The DT B-NP +volatility NN I-NP +was VBD B-VP +dizzying JJ B-ADJP +for IN B-PP +traders NNS B-NP +. . O + +`` `` O +The DT B-NP +market NN I-NP +must MD B-VP +have VB I-VP +turned VBN I-VP +up IN B-ADVP +and CC I-ADVP +down RB I-ADVP +15 CD B-NP +different JJ I-NP +times NNS I-NP +, , O +'' '' O +commented VBD B-VP +Lance NNP B-NP +Zipper NNP I-NP +, , O +head NN B-NP +of IN B-PP +OTC NNP B-NP +trading NN I-NP +at IN B-PP +Kidder NNP B-NP +Peabody NNP I-NP +. . O + +`` `` O +Every DT B-NP +time NN I-NP +you PRP B-NP +thought VBD B-VP +it PRP B-NP +was VBD B-VP +going VBG I-VP +into IN B-PP +a DT B-NP +rally NN I-NP +it PRP B-NP +gave VBD B-VP +up IN B-PRT +, , O +and CC O +every DT B-NP +time NN I-NP +you PRP B-NP +thought VBD B-VP +it PRP B-NP +would MD B-VP +rally VB I-VP +it PRP B-NP +came VBD B-VP +down RB B-ADVP +. . O + +This DT B-NP +is VBZ B-VP +a DT B-NP +tough JJ I-NP +market NN I-NP +. . O +'' '' O + +Mr. NNP B-NP +Zipper NNP I-NP +said VBD B-VP +the DT B-NP +market NN I-NP +is VBZ B-VP +still RB I-VP +settling VBG I-VP +down RB B-PRT +after IN B-PP +the DT B-NP +recent JJ I-NP +correction NN I-NP +. . O + +Most JJS B-NP +of IN B-PP +trading NN B-NP +action NN I-NP +now RB B-ADVP +is VBZ B-VP +from IN B-PP +professional JJ B-NP +traders NNS I-NP +who WP B-NP +are VBP B-VP +trying VBG I-VP +to TO I-VP +take VB I-VP +advantage NN B-NP +of IN B-PP +the DT B-NP +price NN I-NP +swings NNS I-NP +to TO B-VP +turn VB I-VP +a DT B-NP +quick JJ I-NP +profit NN I-NP +, , O +he PRP B-NP +and CC O +other JJ B-NP +traders NNS I-NP +said VBD B-VP +. . O + +`` `` O +Everybody NN B-NP +'s POS B-VP +confused VBN B-ADJP +and CC O +no DT B-NP +one CD I-NP +has VBZ B-VP +an DT B-NP +opinion NN I-NP +that WDT B-NP +lasts VBZ B-VP +longer RB B-ADVP +than IN B-PP +30 CD B-NP +seconds NNS I-NP +, , O +'' '' O +said VBD B-VP +Mr. NNP B-NP +Zipper NNP I-NP +. . O + +`` `` O +A DT B-NP +lot NN I-NP +of IN B-PP +the DT B-NP +professional JJ I-NP +traders NNS I-NP +are VBP B-VP +just RB I-VP +going VBG I-VP +back RB B-ADVP +and CC I-ADVP +forth RB I-ADVP +. . O + +They PRP B-NP +'re VBP B-VP +just RB B-ADJP +as IN I-ADJP +confused VBN I-ADJP +. . O +'' '' O + +William NNP B-NP +Rothe NNP I-NP +, , O +head NN B-NP +of IN B-PP +OTC NNP B-NP +trading NN I-NP +at IN B-PP +Alex NNP B-NP +. . I-NP +Brown NNP I-NP +& CC I-NP +Sons NNP I-NP +, , O +in IN B-PP +Baltimore NNP B-NP +, , O +said VBD B-VP +program NN B-NP +trading NN I-NP +is VBZ B-VP +keeping VBG I-VP +the DT B-NP +markets NNS I-NP +unsettled JJ B-ADJP +. . O + +He PRP B-NP +believes VBZ B-VP +that IN B-SBAR +the DT B-NP +volatile JJ I-NP +conditions NNS I-NP +created VBN B-VP +by IN B-PP +program NN B-NP +trading NN I-NP +has VBZ B-VP +`` `` O +thoroughly RB B-VP +confused VBN I-VP +'' '' O +investors NNS B-NP +about IN B-PP +where WRB B-ADVP +the DT B-NP +market NN I-NP +is VBZ B-VP +headed VBN I-VP +. . O + +Program NN B-NP +trading NN I-NP +is VBZ B-VP +`` `` O +benefiting VBG B-VP +a DT B-NP +few JJ I-NP +to TO B-PP +the DT B-NP +detriment NN I-NP +of IN B-PP +many JJ B-NP +and CC O +I PRP B-NP +wish VBP B-VP +someone NN B-NP +would MD B-VP +do VB I-VP +something NN B-NP +about IN B-PP +it PRP B-NP +, , O +'' '' O +he PRP B-NP +complained VBD B-VP +. . O + +Trading NN B-NP +activity NN I-NP +cooled VBN B-VP +off IN B-PRT +from IN B-PP +Monday NNP B-NP +'s POS B-NP +sizzling JJ I-NP +pace NN I-NP +. . O + +Share NN B-NP +turnover NN I-NP +subsided VBD B-VP +to TO B-PP +161.5 CD B-NP +million CD I-NP +. . O + +Advancing VBG B-NP +and CC I-NP +declining VBG I-NP +issues NNS I-NP +finished VBD B-VP +about IN B-ADJP +even RB I-ADJP +. . O + +Of IN B-PP +the DT B-NP +4,345 CD I-NP +stocks NNS I-NP +that WDT B-NP +changed VBD B-VP +hands NNS B-NP +, , O +1,174 CD B-NP +declined VBD B-VP +and CC O +1,040 CD B-NP +advanced VBD B-VP +. . O + +One CD B-NP +big JJ I-NP +technology NN I-NP +issue NN I-NP +, , O +Novell NNP B-NP +, , O +rode VBD B-VP +the DT B-NP +roller NN I-NP +coaster NN I-NP +. . O + +The DT B-NP +stock NN I-NP +, , O +which WDT B-NP +finished VBD B-VP +Monday NNP B-NP +at IN B-PP +29 CD B-NP +1\/2 CD I-NP +, , O +traded VBD B-VP +as RB B-ADVP +high JJ I-ADVP +as IN B-PP +29 CD B-NP +3\/4 CD I-NP +and CC B-ADVP +as RB B-ADVP +low JJ I-ADVP +as IN B-PP +28 CD B-NP +3\/4 CD I-NP +before IN B-PP +closing VBG B-VP +at IN B-PP +29 CD B-NP +1\/4 CD I-NP +, , O +down RB B-ADVP +1\/4 CD B-NP +. . O + +It PRP B-NP +was VBD B-VP +a DT B-NP +jarring VBG I-NP +day NN I-NP +for IN B-PP +investors NNS B-NP +in IN B-PP +Genetics NNP B-NP +Institute NNP I-NP +. . O + +The DT B-NP +stock NN I-NP +tumbled VBD B-VP +2 CD B-NP +3\/4 CD I-NP +on IN B-PP +news NN B-NP +that IN B-SBAR +it PRP B-NP +might MD B-VP +have VB I-VP +to TO I-VP +take VB I-VP +a DT B-NP +charge NN I-NP +against IN B-PP +earnings NNS B-NP +if IN B-SBAR +it PRP B-NP +ca MD B-VP +n't RB I-VP +successfully RB I-VP +resolve VB I-VP +a DT B-NP +dispute NN I-NP +with IN B-PP +its PRP$ B-NP +European JJ I-NP +licensee NN I-NP +, , O +Boehringer NNP B-NP +Mannheim NNP I-NP +, , O +over IN B-PP +its PRP$ B-NP +anti-anemia NN I-NP +drug NN I-NP +, , O +EPO NNP B-NP +. . O + +The DT B-NP +stock NN I-NP +recovered VBD B-VP +somewhat RB I-VP +to TO I-VP +finish VB I-VP +1 CD B-NP +1\/4 CD I-NP +lower JJR B-ADVP +at IN B-PP +26 CD B-NP +1\/4 CD I-NP +. . O + +In IN B-PP +a DT B-NP +statement NN I-NP +, , O +Genetics NNP B-NP +Institute NNP I-NP +said VBD B-VP +the DT B-NP +dispute NN I-NP +with IN B-PP +Boehringer NNP B-NP +centers NNS B-VP +on IN B-PP +questions NNS B-NP +of IN B-PP +the DT B-NP +usability NN I-NP +of IN B-PP +certain JJ B-NP +batches NNS I-NP +of IN B-PP +EPO NNP B-NP +material NN I-NP +valued VBN B-VP +at IN B-PP +$ $ B-NP +13.6 CD I-NP +million CD I-NP +. . O + +Earlier RBR B-ADVP +this DT B-NP +week NN I-NP +, , O +Genetics NNP B-NP +Institute NNP I-NP +reported VBD B-VP +wider JJR B-NP +losses NNS I-NP +in IN B-PP +its PRP$ B-NP +fiscal JJ I-NP +third JJ I-NP +quarter NN I-NP +ended VBN B-VP +Aug. NNP B-NP +31 CD I-NP +. . O + +Price NNP B-NP +Co. NNP I-NP +jumped VBD B-VP +2 CD B-NP +1\/4 CD I-NP +to TO B-PP +44 CD B-NP +on IN B-PP +1.7 CD B-NP +million CD I-NP +shares NNS I-NP +. . O + +The DT B-NP +wholesaler NN I-NP +of IN B-PP +cash NN B-NP +and CC I-NP +carry VB I-NP +merchandise NN I-NP +reported VBD B-VP +fiscal JJ B-NP +fourthquarter NN I-NP +earnings NNS I-NP +that WDT B-NP +were VBD B-VP +better JJR B-ADJP +than IN B-SBAR +analysts NNS B-NP +had VBD B-VP +expected VBN I-VP +. . O + +The DT B-NP +company NN I-NP +also RB B-ADVP +pleased VBD B-VP +analysts NNS B-NP +by IN B-PP +announcing VBG B-VP +four CD B-NP +new JJ I-NP +store NN I-NP +openings NNS I-NP +planned VBN B-VP +for IN B-PP +fiscal JJ B-NP +1990 CD I-NP +, , O +ending VBG B-VP +next JJ B-NP +August NNP I-NP +. . O + +That DT B-NP +will MD B-VP +bring VB I-VP +the DT B-NP +total NN I-NP +for IN B-PP +the DT B-NP +year NN I-NP +to TO B-PP +10 CD B-NP +, , O +from IN B-PP +five CD B-NP +during IN B-PP +fiscal JJ B-NP +1989 CD I-NP +. . O + +`` `` O +Every DT B-NP +year NN I-NP +we PRP B-NP +'ve VBP B-VP +been VBN I-VP +waiting VBG I-VP +for IN B-PP +stepped-up JJ B-NP +expansion NN I-NP +from IN B-PP +the DT B-NP +company NN I-NP +. . O + +The DT B-NP +news NN I-NP +could MD B-VP +n't RB I-VP +have VB I-VP +been VBN I-VP +better JJR B-ADJP +, , O +'' '' O +said VBD B-VP +Linda NNP B-NP +Kristiansen NNP I-NP +, , O +a DT B-NP +Dean NNP I-NP +Witter NNP I-NP +Reynolds NNP I-NP +analyst NN I-NP +, , O +in IN B-PP +an DT B-NP +interview NN I-NP +. . O + +Intermec NNP B-NP +, , O +a DT B-NP +maker NN I-NP +of IN B-PP +optical JJ B-NP +character-recognition NN I-NP +devices NNS I-NP +, , O +also RB B-ADVP +reported VBD B-VP +higher JJR B-NP +third-quarter JJ I-NP +earnings NNS I-NP +. . O + +Its PRP$ B-NP +shares NNS I-NP +added VBD B-VP +3\/4 CD B-NP +to TO B-PP +30 CD B-NP +3\/4 CD I-NP +. . O + +But CC O +favorable JJ B-NP +earnings NNS I-NP +was VBD B-VP +n't RB O +a DT B-NP +guarantee NN I-NP +that IN B-SBAR +a DT B-NP +stock NN I-NP +'s POS B-NP +price NN I-NP +would MD B-VP +improve VB I-VP +yesterday NN B-NP +. . O + +MCI NNP B-NP +Communications NNPS I-NP +tumbled VBD B-VP +2 CD B-NP +5\/8 CD I-NP +to TO B-PP +42 CD B-NP +3\/8 CD I-NP +on IN B-PP +4.7 CD B-NP +million CD I-NP +shares NNS I-NP +even RB B-ADVP +though IN B-SBAR +the DT B-NP +telecommunications NNS I-NP +giant NN I-NP +reported VBD B-VP +a DT B-NP +63 CD I-NP +% NN I-NP +increase NN I-NP +in IN B-PP +third-quarter JJ B-NP +profit NN I-NP +. . O + +CoreStates NNP B-NP +Financial NNP I-NP +slipped VBD B-VP +3\/8 CD B-NP +to TO B-PP +43 CD B-NP +1\/8 CD I-NP +in IN B-PP +active JJ B-NP +trading NN I-NP +after IN B-PP +reporting VBG B-VP +that IN B-SBAR +third-quarter JJ B-NP +earnings NNS I-NP +improved VBN B-VP +to TO B-PP +$ $ B-NP +1.27 CD I-NP +a DT B-NP +share NN I-NP +from IN B-PP +$ $ B-NP +1.15 CD I-NP +a DT B-NP +share NN I-NP +a DT B-NP +year NN I-NP +earlier RBR B-ADVP +. . O + +However RB B-ADVP +, , O +the DT B-NP +bank NN I-NP +holding VBG I-NP +company NN I-NP +'s POS B-NP +loan-loss NN I-NP +reserves NNS I-NP +rose VBD B-VP +to TO B-PP +$ $ B-NP +177.3 CD I-NP +million CD I-NP +from IN B-PP +$ $ B-NP +154 CD I-NP +million CD I-NP +a DT B-NP +year NN I-NP +earlier RBR B-ADVP +. . O + +A&W NNP B-NP +Brands NNP I-NP +lost VBD B-VP +1\/4 CD B-NP +to TO B-PP +27 CD B-NP +. . O + +But CC O +its PRP$ B-NP +thirdquarter JJ I-NP +earnings NNS I-NP +rose VBD B-VP +to TO B-PP +26 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +from IN B-PP +18 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +last JJ B-NP +year NN I-NP +. . O + +Capital NNP B-NP +Associates NNPS I-NP +dropped VBD B-VP +1 CD B-NP +to TO B-PP +5 VB B-NP +3\/8 CD I-NP +. . O + +The DT B-NP +company NN I-NP +, , O +which WDT B-NP +leases VBZ B-VP +technology NN B-NP +equipment NN I-NP +, , O +reported VBD B-VP +substantially RB B-NP +lower JJR I-NP +net JJ I-NP +income NN I-NP +for IN B-PP +its PRP$ B-NP +fiscal JJ I-NP +first JJ I-NP +quarter NN I-NP +, , O +which WDT B-NP +ended VBN B-VP +Aug. NNP B-NP +31 CD I-NP +. . O + +Robert NNP B-NP +M. NNP I-NP +Jelenic NNP I-NP +, , O +39 CD B-NP +, , O +was VBD B-VP +named VBN I-VP +president NN B-NP +and CC O +chief JJ B-NP +operating VBG I-NP +officer NN I-NP +of IN B-PP +this DT B-NP +closely RB I-NP +held VBN I-NP +publisher NN I-NP +. . O + +The DT B-NP +post NN I-NP +had VBD B-VP +been VBN I-VP +vacant JJ B-ADJP +for IN B-PP +more JJR B-NP +than IN I-NP +a DT I-NP +year NN I-NP +. . O + +Mr. NNP B-NP +Jelenic NNP I-NP +had VBD B-VP +been VBN I-VP +executive JJ B-NP +vice NN I-NP +president NN I-NP +for IN B-PP +operations NNS B-NP +. . O + +In IN B-PP +addition NN B-NP +, , O +Ralph NNP B-NP +Ingersoll NNP I-NP +II NNP I-NP +, , O +43 CD B-NP +, , O +chairman NN B-NP +and CC O +chief JJ B-NP +executive NN I-NP +, , O +said VBD B-VP +he PRP B-NP +would MD B-VP +take VB I-VP +on IN B-PRT +additional JJ B-NP +responsibilities NNS I-NP +as IN B-PP +editor NN B-NP +in IN B-PP +chief NN B-NP +of IN B-PP +the DT B-NP +company NN I-NP +. . O + +John NNP B-NP +Wilpers NNP I-NP +resigned VBD B-VP +as IN B-PP +editor NN B-NP +in IN B-PP +chief NN B-NP +. . O + +Mr. NNP B-NP +Ingersoll NNP I-NP +remains VBZ B-VP +editor NN B-NP +in IN B-PP +chief NN B-NP +of IN B-PP +the DT B-NP +company NN I-NP +'s POS B-NP +recently RB B-ADJP +launched VBN I-ADJP +daily JJ B-NP +, , O +the DT B-NP +St. NNP I-NP +Louis NNP I-NP +Sun NNP I-NP +. . O + +Also RB B-ADVP +, , O +Jean NNP B-NP +B. NNP I-NP +Clifton NNP I-NP +, , O +28 CD B-NP +, , O +was VBD B-VP +named VBN I-VP +executive JJ B-NP +vice NN I-NP +president NN I-NP +, , O +treasurer NN B-NP +and CC O +chief JJ B-NP +financial JJ I-NP +officer NN I-NP +. . O + +Michael NNP B-NP +Applebaum NNP I-NP +resigned VBD B-VP +after IN B-PP +less JJR B-NP +than IN I-NP +a DT I-NP +year NN I-NP +in IN B-PP +the DT B-NP +posts NNS I-NP +. . O + +Ms. NNP B-NP +Clifton NNP I-NP +had VBD B-VP +been VBN I-VP +executive NN B-NP +financial JJ I-NP +assistant NN I-NP +to TO B-PP +the DT B-NP +chairman NN I-NP +. . O + +Certainly RB B-ADVP +conservative JJ B-NP +environmentalists NNS I-NP +can MD B-VP +defend VB I-VP +their PRP$ B-NP +limited JJ I-NP +government NN I-NP +position NN I-NP +by IN B-PP +differentiating VBG B-VP +between IN B-PP +Old NNP B-NP +Environmentalism NNP I-NP +and CC O +New NNP B-NP +Environmentalism NNP I-NP +-LRB- ( O +`` `` O +Journalists NNS B-NP +and CC I-NP +Others NNS I-NP +for IN B-PP +Saving VBG B-VP +the DT B-NP +Planet NNP I-NP +, , O +'' '' O +by IN B-PP +David NNP B-NP +Brooks NNP I-NP +, , O +editorial NN B-NP +page NN I-NP +, , O +Oct. NNP B-NP +5 NN I-NP +-RRB- ) O +. . O + +Old NNP B-NP +Environmentalism NNP I-NP +involved VBD B-VP +microbe NN B-NP +hunters NNS I-NP +and CC O +sanitationists NNS B-NP +. . O + +It PRP B-NP +started VBD B-VP +with IN B-PP +improvements NNS B-NP +in IN B-PP +hygiene NN B-NP +made VBD B-VP +possible JJ B-ADJP +by IN B-PP +affordable JJ B-NP +soap NN I-NP +and CC O +washable JJ B-NP +underwear NN I-NP +during IN B-PP +the DT B-NP +Industrial NNP I-NP +Revolution NNP I-NP +. . O + +Then RB B-ADVP +cast-iron NN B-NP +sewer NN I-NP +pipe NN I-NP +and CC O +the DT B-NP +flush JJ I-NP +toilet NN I-NP +were VBD B-VP +followed VBN I-VP +by IN B-PP +sewage NN B-NP +- : I-NP +and CC I-NP +water-treatment NN I-NP +plants NNS I-NP +toward IN B-PP +the DT B-NP +end NN I-NP +of IN B-PP +the DT B-NP +19th JJ I-NP +century NN I-NP +. . O + +Medicine NNP B-NP +in IN B-PP +the DT B-NP +19th JJ I-NP +century NN I-NP +was VBD B-VP +dedicated VBN I-VP +mostly RB B-ADVP +to TO B-PP +combating VBG B-VP +sepsis NN B-NP +and CC O +diagnostic JJ B-NP +analysis NN I-NP +. . O + +Then RB B-ADVP +the DT B-NP +20th JJ I-NP +century NN I-NP +saw VBD B-VP +the DT B-NP +evolution NN I-NP +of IN B-PP +private-sector JJ B-NP +wonder NN I-NP +drugs NNS I-NP +, , O +which WDT B-NP +promulgated VBD B-VP +medical JJ B-NP +therapy NN I-NP +. . O + +The DT B-NP +process NN I-NP +dramatically RB B-VP +increased VBD I-VP +our PRP$ B-NP +average JJ I-NP +life NN I-NP +expectancy NN I-NP +, , O +eliminated VBN B-VP +much JJ B-NP +pain NN I-NP +and CC O +constantly RB B-VP +improved VBN I-VP +health NN B-NP +and CC I-NP +well-being NN I-NP +. . O + +Most JJS B-NP +public-health JJ I-NP +measures NNS I-NP +were VBD B-VP +handled VBN I-VP +at IN B-PP +the DT B-NP +local JJ I-NP +level NN I-NP +. . O + +New NNP B-NP +Environmentalism NNP I-NP +probably RB B-ADVP +started VBD B-VP +in IN B-PP +1962 CD B-NP +with IN B-PP +the DT B-NP +publication NN I-NP +of IN B-PP +Rachel NNP B-NP +Carson NNP I-NP +'s POS B-NP +book NN I-NP +`` `` O +Silent NNP B-NP +Spring NNP I-NP +. . O +'' '' O + +Shortly RB B-ADVP +thereafter RB I-ADVP +, , O +hysterical JJ B-NP +articles NNS I-NP +began VBD B-VP +to TO I-VP +appear VB I-VP +predicting VBG B-VP +that WDT B-SBAR +advanced VBD B-NP +industrial JJ I-NP +societies NNS I-NP +would MD B-VP +produce VB I-VP +a DT B-NP +blackened VBN I-NP +, , I-NP +uninhabitable JJ I-NP +planet NN I-NP +possibly RB B-ADVP +by IN B-PP +the DT B-NP +turn NN I-NP +of IN B-PP +the DT B-NP +century NN I-NP +. . O + +These DT B-NP +apocalyptic JJ I-NP +predictions NNS I-NP +were VBD B-VP +advanced VBN I-VP +by IN B-PP +such JJ B-NP +stalwarts NNS I-NP +as IN B-PP +Paul NNP B-NP +Ehrlich NNP I-NP +, , O +Barry NNP B-NP +Commoner NNP I-NP +, , O +Rene NNP B-NP +Dubois NNP I-NP +and CC O +George NNP B-NP +Wald NNP I-NP +. . O + +Writing VBG B-VP +in IN B-PP +the DT B-NP +1960s CD I-NP +Ms. NNP B-NP +Carson NNP I-NP +suggested VBD B-VP +that IN B-SBAR +the DT B-NP +human JJ I-NP +race NN I-NP +could MD B-VP +be VB I-VP +eliminated VBN I-VP +in IN B-PP +20 CD B-NP +years NNS I-NP +, , O +and CC O +Mr. NNP B-NP +Wald NNP I-NP +suggested VBD B-VP +that DT O +life NN B-NP +on IN B-PP +earth NN B-NP +might MD B-VP +end VB I-VP +by IN B-PP +1985 CD B-NP +. . O + +Mr. NNP B-NP +Ehrlich NNP I-NP +predicted VBD B-VP +unprecedented JJ B-NP +famine NN I-NP +by IN B-PP +1980 CD B-NP +. . O + +There EX B-NP +were VBD B-VP +many RB B-NP +more JJR I-NP +. . O + +Thousands NNS B-NP +of IN B-PP +chemical NN B-NP +products NNS I-NP +were VBD B-VP +categorized VBN I-VP +as IN B-PP +carcinogenic JJ B-ADJP +, , O +with IN B-PP +recommendations NNS B-NP +that IN B-SBAR +they PRP B-NP +be VBP B-VP +banned VBN I-VP +from IN B-PP +industrial JJ B-NP +use NN I-NP +because IN B-SBAR +they PRP B-NP +produced VBD B-VP +malignant JJ B-NP +tumors NNS I-NP +in IN B-PP +overdosed VBN B-NP +rats NNS I-NP +. . O + +Unknown JJ B-ADJP +before IN B-PP +1960 CD B-NP +were VBD B-VP +the DT B-NP +inconclusive JJ I-NP +effects NNS I-NP +of IN B-PP +acid NN B-NP +rain NN I-NP +, , O +greenhouse NN B-NP +warming NN I-NP +and CC O +ozone NN B-NP +depletion NN I-NP +, , O +all DT B-NP +of IN B-PP +which WDT B-NP +required VBD B-VP +burgeoning VBG B-NP +political JJ I-NP +power NN I-NP +and CC O +gargantuan JJ B-NP +expense NN I-NP +. . O + +Meanwhile RB B-ADVP +, , O +the DT B-NP +New NNP I-NP +Environmentalists NNS I-NP +systematically RB B-VP +opposed VBN I-VP +the DT B-NP +methods NNS I-NP +of IN B-PP +the DT B-NP +Old NNP I-NP +Environmentalists NNS I-NP +. . O + +Local JJ B-NP +pollution NN I-NP +problems NNS I-NP +require VBP B-VP +cheap JJ B-NP +energy NN I-NP +and CC O +capital NN B-NP +for IN B-PP +their PRP$ B-NP +solution NN I-NP +. . O + +But CC O +the DT B-NP +New NNP I-NP +Environmentalists NNS I-NP +oppose VBP B-VP +private JJ B-NP +wealth NN I-NP +creation NN I-NP +-LRB- ( O +which WDT B-NP +, , O +they PRP B-NP +claim VBP B-VP +, , O +depletes VBZ B-VP +natural JJ B-NP +resources NNS I-NP +-RRB- ) O +and CC O +nuclear JJ B-NP +power NN I-NP +-LRB- ( O +even RB B-ADVP +though IN B-SBAR +it PRP B-NP +would MD B-VP +counteract VB I-VP +the DT B-NP +greenhouse NN I-NP +effect NN I-NP +-RRB- ) O +. . O + +They PRP B-NP +are VBP B-VP +in IN B-PP +the DT B-NP +forefront NN I-NP +of IN B-PP +opposing VBG B-VP +the DT B-NP +search NN I-NP +for IN B-PP +new JJ B-NP +landfills NNS I-NP +and CC I-NP +methods NNS I-NP +of IN B-PP +incineration NN B-NP +and CC O +even RB B-ADVP +oppose VB B-VP +new JJ B-NP +methods NNS I-NP +of IN B-PP +research NN B-NP +such JJ B-PP +as IN I-PP +genetic JJ B-NP +engineering NN I-NP +. . O + +New NNP B-NP +Environmentalism NNP I-NP +is VBZ B-VP +an DT B-NP +emotional JJ I-NP +attack NN I-NP +on IN B-PP +proven VBN B-NP +methods NNS I-NP +of IN B-PP +improving VBG B-VP +our PRP$ B-NP +quality NN I-NP +of IN B-PP +life NN B-NP +and CC O +a DT B-NP +bid NN I-NP +for IN B-PP +political JJ B-NP +power NN I-NP +. . O + +Let VB B-VP +'s POS B-NP +rationalize VB B-VP +our PRP$ B-NP +priorities NNS I-NP +by IN B-PP +solving VBG B-VP +pollution NN B-NP +problems NNS I-NP +at IN B-PP +the DT B-NP +local JJ I-NP +level NN I-NP +as IN B-PP +heretofore RB O +. . O + +Harry NNP B-NP +Lee NNP I-NP +Smith NNP I-NP +Alpharetta NNP B-NP +, , O +Ga NNP B-NP +. . O + +Your PRP$ B-NP +story NN I-NP +missed VBD B-VP +some DT B-NP +essential JJ I-NP +points NNS I-NP +of IN B-PP +the DT B-NP +conference NN I-NP +on IN B-PP +`` `` O +The DT B-NP +Global NNP I-NP +Environment NNP I-NP +: : O +Are VBP O +We PRP B-NP +Overreacting VBG B-VP +? . O +'' '' O + +First NNP B-ADVP +and CC I-ADVP +foremost JJ I-ADVP +, , O +the DT B-NP +vignettes NNS I-NP +presented VBN B-VP +by IN B-PP +the DT B-NP +various JJ I-NP +scientists NNS I-NP +represent VBP B-VP +a DT B-NP +general JJ I-NP +consensus NN I-NP +among IN B-PP +specialists NNS B-NP +working VBG B-VP +in IN B-PP +the DT B-NP +respective JJ I-NP +aspects NNS I-NP +of IN B-PP +the DT B-NP +global JJ I-NP +environment NN I-NP +. . O + +Consider VB B-VP +, , O +for IN B-PP +example NN B-NP +, , O +the DT B-NP +greenhouse NN I-NP +effect NN I-NP +and CC O +climate NN B-NP +change NN I-NP +; : O +numerous JJ B-NP +blue-ribbon JJ I-NP +scientific JJ I-NP +committees NNS I-NP +, , O +including VBG B-PP +one CD B-NP +from IN B-PP +the DT B-NP +National NNP I-NP +Academy NNP I-NP +of IN B-PP +Science NNP B-NP +, , O +judge NN B-VP +there EX B-NP +is VBZ B-VP +a DT B-NP +greater JJR I-NP +than IN I-NP +50 CD I-NP +% NN I-NP +probability NN I-NP +of IN B-PP +a DT B-NP +grave JJ I-NP +problem NN I-NP +in IN B-PP +the DT B-NP +offing NN I-NP +. . O + +The DT B-NP +point NN I-NP +was VBD B-VP +to TO B-VP +answer VB I-VP +the DT B-NP +question NN I-NP +in IN B-PP +the DT B-NP +conference NN I-NP +title NN I-NP +, , O +not RB O +to TO B-VP +try VB I-VP +to TO I-VP +create VB I-VP +news NN B-NP +stories NNS I-NP +for IN B-PP +the DT B-NP +event NN I-NP +itself PRP I-NP +. . O + +Nor CC O +was VBD O +it PRP B-NP +intended VBD B-VP +to TO I-VP +dictate VB I-VP +a DT B-NP +set NN I-NP +of IN B-PP +prescriptive JJ B-NP +solutions NNS I-NP +, , O +although IN B-SBAR +various JJ B-NP +points NNS I-NP +were VBD B-VP +raised VBN I-VP +. . O + +Each DT B-NP +speaker NN I-NP +was VBD B-VP +asked VBN I-VP +to TO I-VP +address VB I-VP +a DT B-NP +specific JJ I-NP +topic NN I-NP +, , O +not RB O +deliver VB B-VP +a DT B-NP +point NN I-NP +of IN B-PP +view NN B-NP +. . O + +Each DT B-NP +scientist NN I-NP +independently RB B-VP +concluded VBD I-VP +society NN B-NP +and CC I-NP +government NN I-NP +are VBP B-VP +underreacting VBG I-VP +when WRB B-ADVP +it PRP B-NP +comes VBZ B-VP +to TO B-PP +substantive JJ B-NP +policy NN I-NP +change NN I-NP +. . O + +This DT B-NP +leads VBZ B-VP +to TO B-PP +a DT B-NP +very RB I-NP +special JJ I-NP +sense NN I-NP +of IN B-PP +urgency NN B-NP +. . O + +If IN B-SBAR +the DT B-NP +media NNS I-NP +decide VBP B-VP +to TO I-VP +work VB I-VP +harder JJR B-ADVP +at IN B-PP +educating VBG B-VP +the DT B-NP +public NN I-NP +about IN B-PP +these DT B-NP +complex JJ I-NP +and CC I-NP +technical JJ I-NP +issues NNS I-NP +, , O +that IN B-NP +hardly RB B-ADVP +can MD B-VP +be VB I-VP +termed VBN I-VP +non-objective JJ B-NP +journalism NN I-NP +. . O + +The DT B-NP +environment NN I-NP +can MD B-VP +no RB I-VP +longer RB I-VP +be VB I-VP +a DT B-NP +normal JJ I-NP +issue NN I-NP +, , O +to TO B-VP +be VB I-VP +dealt VBN I-VP +with IN O +on IN B-PP +a DT B-NP +business-as-usual JJ I-NP +basis NN I-NP +with IN B-PP +comfortable JJ B-NP +increments NNS I-NP +of IN B-PP +change NN B-NP +. . O + +We PRP B-NP +have VBP B-VP +literally RB I-VP +altered VBN I-VP +the DT B-NP +chemistry NN I-NP +and CC I-NP +physics NN I-NP +of IN B-PP +our PRP$ B-NP +planet NN I-NP +'s POS B-NP +atmosphere NN I-NP +. . O + +This DT B-NP +portends VBZ B-VP +consequences NNS B-NP +from IN B-PP +what WP B-NP +we PRP B-NP +have VBP B-VP +already RB I-VP +done VBN I-VP +that WDT B-NP +will MD B-VP +be VB I-VP +very RB B-ADJP +destabilizing VBG I-ADJP +to TO B-PP +social JJ B-NP +and CC I-NP +economic JJ I-NP +systems NNS I-NP +. . O + +The DT B-NP +problems NNS I-NP +of IN B-PP +the DT B-NP +environment NN I-NP +are VBP B-VP +so RB B-ADJP +interrelated VBN I-ADJP +, , O +so RB B-ADJP +inextricably RB I-ADJP +entwined VBN I-ADJP +with IN B-PP +our PRP$ B-NP +current JJ I-NP +way NN I-NP +of IN B-PP +life NN B-NP +and CC O +so RB B-ADJP +large JJ I-ADJP +that IN B-SBAR +it PRP B-NP +is VBZ B-VP +unlikely JJ B-ADJP +we PRP B-NP +will MD B-VP +be VB I-VP +able JJ B-ADJP +to TO B-VP +address VB I-VP +them PRP B-NP +effectively RB B-ADVP +unless IN B-SBAR +major JJ B-NP +changes NNS I-NP +are VBP B-VP +made VBN I-VP +in IN B-PP +less JJR B-NP +than IN I-NP +10 CD I-NP +years NNS I-NP +. . O + +The DT B-NP +consensus NN I-NP +from IN B-PP +the DT B-NP +scientific JJ I-NP +community NN I-NP +is VBZ B-VP +that IN B-SBAR +there EX B-NP +is VBZ B-VP +sufficient JJ B-NP +evidence NN I-NP +to TO B-VP +advise VB I-VP +major JJ B-NP +policy NN I-NP +changes NNS I-NP +. . O + +No DT B-INTJ +, , O +we PRP B-NP +are VBP B-VP +not RB I-VP +overreacting VBG I-VP +. . O + +Thomas NNP B-NP +E. NNP I-NP +Lovejoy NNP I-NP +Assistant NNP B-NP +Secretary NNP I-NP +for IN B-PP +External NNP B-NP +Affairs NNP I-NP +Smithsonian NNP B-NP +Institution NNP I-NP + +Coca-Cola NNP B-NP +Enterprises NNPS I-NP +Inc. NNP I-NP +, , O +fulfilling VBG B-VP +its PRP$ B-NP +dismal JJ I-NP +earnings NNS I-NP +forecast NN I-NP +for IN B-PP +1989 CD B-NP +, , O +said VBD B-VP +its PRP$ B-NP +third-quarter JJ I-NP +net JJ I-NP +income NN I-NP +fell VBD B-VP +68 CD B-NP +% NN I-NP +on IN B-PP +flat JJ B-NP +revenue NN I-NP +. . O + +Stung VBN B-VP +by IN B-PP +higher JJR B-NP +marketing NN I-NP +costs NNS I-NP +and CC O +slowing VBG B-NP +volume NN I-NP +growth NN I-NP +, , O +the DT B-NP +giant NN I-NP +Coke NNP I-NP +bottling NN I-NP +operation NN I-NP +said VBD B-VP +net NN B-NP +fell VBD B-VP +to TO B-PP +$ $ B-NP +12.7 CD I-NP +million CD I-NP +, , O +or CC O +six CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +, , O +from IN B-PP +$ $ B-NP +39.9 CD I-NP +million CD I-NP +, , O +or CC O +26 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +, , O +the DT B-NP +year NN I-NP +earlier RBR B-ADVP +. . O + +The DT B-NP +results NNS I-NP +met VBD B-VP +estimates NNS B-NP +of IN B-PP +analysts NNS B-NP +, , O +who WP B-NP +had VBD B-VP +already RB I-VP +slashed VBN I-VP +their PRP$ B-NP +projections NNS I-NP +after IN B-SBAR +the DT B-NP +company NN I-NP +said VBD B-VP +in IN B-PP +late JJ B-NP +August NNP I-NP +that IN B-SBAR +its PRP$ B-NP +1989 CD I-NP +earnings NNS I-NP +could MD B-VP +tumble VB I-VP +as RB B-NP +much JJ I-NP +as IN I-NP +37 CD I-NP +% NN I-NP +. . O + +A DT B-NP +company NN I-NP +spokesman NN I-NP +said VBD B-VP +yesterday NN B-NP +that IN B-SBAR +Coca-Cola NNP B-NP +Enterprises NNPS I-NP +sticks NNS B-VP +by IN B-PP +its PRP$ B-NP +1989 CD I-NP +forecast NN I-NP +. . O + +Third-quarter JJ B-NP +revenue NN I-NP +was VBD B-VP +flat JJ B-ADJP +at IN B-PP +$ $ B-NP +1.02 CD I-NP +billion CD I-NP +. . O + +The DT B-NP +year-ago JJ I-NP +results NNS I-NP +, , O +however RB B-ADVP +, , O +included VBD B-VP +the DT B-NP +operations NNS I-NP +of IN B-PP +a DT B-NP +bottling NN I-NP +business NN I-NP +, , O +which WDT B-NP +was VBD B-VP +sold VBN I-VP +last JJ B-NP +December NNP I-NP +. . O + +Excluding VBG B-VP +that DT B-NP +bottling NN I-NP +business NN I-NP +, , O +Coca-Cola NNP B-NP +Enterprises NNPS I-NP +' POS B-NP +volume NN I-NP +, , O +measured VBN B-VP +by IN B-PP +cases NNS B-NP +of IN B-PP +soda NN B-NP +, , O +rose VBD B-VP +only RB B-NP +1 CD I-NP +% NN I-NP +. . O + +The DT B-NP +volume NN I-NP +is VBZ B-VP +well RB B-ADVP +below IN B-PP +the DT B-NP +industry NN I-NP +'s POS B-NP +4 CD I-NP +% NN I-NP +to TO I-NP +5 VB I-NP +% NN I-NP +growth NN I-NP +rate NN I-NP +of IN B-PP +recent JJ B-NP +years NNS I-NP +, , B-PP +but CC I-PP +in IN B-PP +line NN B-NP +with IN B-PP +other JJ B-NP +soft-drink NN I-NP +companies NNS I-NP +for IN B-PP +the DT B-NP +third JJ I-NP +quarter NN I-NP +. . O + +The DT B-NP +latest JJS I-NP +third-quarter JJ I-NP +volume NN I-NP +also RB B-ADVP +compares VBZ B-VP +with IN B-PP +a DT B-NP +very RB I-NP +strong JJ I-NP +10 CD I-NP +% NN I-NP +growth NN I-NP +in IN B-PP +the DT B-NP +year-ago JJ I-NP +quarter NN I-NP +. . O + +Coca-Cola NNP B-NP +Enterprises NNPS I-NP +blamed VBD B-VP +the DT B-NP +lower JJR I-NP +volume NN I-NP +on IN B-PP +its PRP$ B-NP +soft-drink NN I-NP +prices NNS I-NP +, , O +which WDT B-NP +were VBD B-VP +about IN B-ADJP +3 CD I-ADJP +% NN I-ADJP +higher JJR B-ADJP +in IN B-PP +the DT B-NP +third JJ I-NP +quarter NN I-NP +. . O + +Consumers NNS B-NP +have VBP B-VP +been VBN I-VP +accustomed VBN I-VP +to TO B-PP +buying VBG B-VP +soft-drinks NNS B-NP +at IN B-PP +discounted VBN B-NP +prices NNS I-NP +for IN B-PP +several JJ B-NP +years NNS I-NP +. . O + +Coca-Cola NNP B-NP +Enterprises NNPS I-NP +said VBD B-VP +it PRP B-NP +had VBD B-VP +to TO I-VP +boost VB I-VP +spending NN B-NP +for IN B-PP +trade NN B-NP +and CC I-NP +dealer NN I-NP +incentives NNS I-NP +to TO B-VP +try VB I-VP +to TO I-VP +keep VB I-VP +volumes NNS B-NP +from IN B-PP +slipping VBG B-VP +. . O + +The DT B-NP +company NN I-NP +said VBD B-VP +it PRP B-NP +expects VBZ B-VP +consumers NNS B-NP +will MD B-VP +adjust VB I-VP +to TO B-PP +higher-priced JJ B-NP +soft JJ I-NP +drinks NNS I-NP +. . O + +A DT B-NP +spokesman NN I-NP +attributed VBD B-VP +the DT B-NP +bulk NN I-NP +of IN B-PP +a DT B-NP +14 CD I-NP +% NN I-NP +increase NN I-NP +in IN B-PP +selling VBG B-NP +, , I-NP +administrative JJ I-NP +and CC I-NP +general JJ I-NP +expenses NNS I-NP +-- : O +to TO B-PP +$ $ B-NP +324.9 CD I-NP +million CD I-NP +-- : O +to TO B-PP +marketing NN B-NP +costs NNS I-NP +. . O + +`` `` O +They PRP B-NP +'re VBP B-VP +out IN B-PP +there RB B-NP +promoting VBG B-VP +like IN B-PP +crazy JJ B-ADJP +, , O +trying VBG B-VP +to TO I-VP +get VB I-VP +prices NNS B-NP +up IN B-ADJP +by IN B-PP +promotion NN B-NP +, , O +'' '' O +said VBD B-VP +Roy NNP B-NP +Burry NNP I-NP +, , O +an DT B-NP +analyst NN I-NP +with IN B-PP +Kidder NNP B-NP +, , I-NP +Peabody NNP I-NP +& CC I-NP +Co NNP I-NP +. . O + +For IN B-PP +the DT B-NP +nine CD I-NP +months NNS I-NP +, , O +Coca-Cola NNP B-NP +Enterprises NNPS I-NP +' POS B-NP +net NN I-NP +fell VBD B-VP +31 CD B-NP +% NN I-NP +to TO B-PP +$ $ B-NP +65 CD I-NP +million CD I-NP +, , O +or CC O +39 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +, , O +from IN B-PP +$ $ B-NP +93.8 CD I-NP +million CD I-NP +, , O +or CC O +63 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +. . O + +Revenue NN B-NP +was VBD B-VP +flat JJ B-ADJP +at IN B-PP +about RB B-NP +$ $ I-NP +2.97 CD I-NP +billion CD I-NP +. . O + +Coca-Cola NNP B-NP +Enterprises NNPS I-NP +, , O +which WDT B-NP +is VBZ B-VP +49%-owned JJ B-ADJP +by IN B-PP +Coca-Cola NNP B-NP +Co. NNP I-NP +, , O +also RB B-ADVP +said VBD B-VP +it PRP B-NP +repurchased VBD B-VP +about IN B-NP +1.2 CD I-NP +million CD I-NP +of IN B-PP +its PRP$ B-NP +common JJ I-NP +shares NNS I-NP +during IN B-PP +the DT B-NP +third JJ I-NP +quarter NN I-NP +. . O + +The DT B-NP +buy-back NN I-NP +is VBZ B-VP +part NN B-NP +of IN B-PP +a DT B-NP +25-million-share JJ I-NP +repurchase NN I-NP +plan NN I-NP +, , O +under IN B-PP +which WDT B-NP +Coca-Cola NNP B-NP +Enterprises NNPS I-NP +so RB B-ADVP +far RB I-ADVP +has VBZ B-VP +acquired VBN I-VP +a DT B-NP +total NN I-NP +of IN B-PP +9.7 CD B-NP +million CD I-NP +shares NNS I-NP +. . O + +Separately RB B-ADVP +, , O +Purchase NNP B-NP +, , I-NP +N.Y.-based JJ I-NP +PepsiCo NNP I-NP +Inc. NNP I-NP +, , O +as IN B-SBAR +expected VBN B-VP +, , O +said VBD B-VP +fiscal JJ B-NP +third-quarter JJ I-NP +net NN I-NP +rose VBD B-VP +11 CD B-NP +% NN I-NP +to TO B-PP +$ $ B-NP +269.3 CD I-NP +million CD I-NP +, , O +or CC O +$ $ B-NP +1.02 CD I-NP +a DT B-NP +share NN I-NP +, , O +from IN B-PP +$ $ B-NP +241.6 CD I-NP +million CD I-NP +, , O +or CC O +91 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +. . O + +Sales NNS B-NP +rose VBD B-VP +25 CD B-NP +% NN I-NP +to TO B-PP +$ $ B-NP +3.90 CD I-NP +billion CD I-NP +from IN B-PP +$ $ B-NP +3.13 CD I-NP +billion CD I-NP +. . O + +The DT B-NP +year-ago JJ I-NP +quarter NN I-NP +'s POS B-NP +results NNS I-NP +include VBP B-VP +an DT B-NP +after-tax JJ I-NP +charge NN I-NP +of IN B-PP +$ $ B-NP +5.9 CD I-NP +million CD I-NP +from IN B-PP +the DT B-NP +sale NN I-NP +of IN B-PP +a DT B-NP +winery NN I-NP +in IN B-PP +Spain NNP B-NP +. . O + +In IN B-PP +composite JJ B-NP +trading NN I-NP +on IN B-PP +the DT B-NP +New NNP I-NP +York NNP I-NP +Stock NNP I-NP +Exchange NNP I-NP +, , O +Coca-Cola NNP B-NP +Enterprises NNPS I-NP +closed VBD B-VP +at IN B-PP +$ $ B-NP +16.375 CD I-NP +a DT B-NP +share NN I-NP +, , O +down RB B-ADVP +62.5 CD B-NP +cents NNS I-NP +. . O + +PepsiCo NNP B-NP +closed VBD B-VP +at IN B-PP +$ $ B-NP +58.50 CD I-NP +a DT B-NP +share NN I-NP +, , O +up IN B-ADVP +$ $ B-NP +1.375 CD I-NP +. . O + +L.J. NNP B-NP +Hooker NNP I-NP +Corp. NNP I-NP +is VBZ B-VP +expected VBN I-VP +to TO I-VP +reach VB I-VP +an DT B-NP +agreement NN I-NP +in IN B-PP +principle NN B-NP +this DT B-NP +week NN I-NP +to TO B-VP +sell VB I-VP +Merksamer NNP B-NP +Jewelers NNP I-NP +Inc. NNP I-NP +to TO B-PP +management NN B-NP +, , O +say VBP B-VP +executives NNS B-NP +familiar JJ B-ADJP +with IN B-PP +the DT B-NP +talks NNS I-NP +. . O + +L.J. NNP B-NP +Hooker NNP I-NP +, , O +based VBN B-VP +in IN B-PP +Atlanta NNP B-NP +, , O +filed VBN B-VP +for IN B-PP +Chapter NN B-NP +11 CD I-NP +bankruptcy NN I-NP +protection NN I-NP +earlier RBR B-ADVP +this DT B-NP +year NN I-NP +. . O + +Currently RB B-ADVP +, , O +its PRP$ B-NP +parent NN I-NP +company NN I-NP +, , O +Hooker NNP B-NP +Corp. NNP I-NP +of IN B-PP +Sydney NNP B-NP +, , O +Australia NNP B-NP +, , O +is VBZ B-VP +being VBG I-VP +managed VBN I-VP +by IN B-PP +a DT B-NP +court-appointed JJ I-NP +liquidator NN I-NP +. . O + +It PRP B-NP +is VBZ B-VP +expected VBN I-VP +that IN B-SBAR +GE NNP B-NP +Capital NNP I-NP +Corp. NNP I-NP +, , O +a DT B-NP +financial-services NNS I-NP +subsidiary NN I-NP +of IN B-PP +General NNP B-NP +Electric NNP I-NP +Co. NNP I-NP +, , O +will MD B-VP +provide VB I-VP +much NN B-NP +of IN I-NP +the DT B-NP +funding NN I-NP +for IN B-PP +the DT B-NP +proposed VBN I-NP +leveraged JJ I-NP +buy-out NN I-NP +of IN B-PP +Merksamer NNP B-NP +, , O +based VBN B-VP +in IN B-PP +Sacramento NNP B-NP +, , O +Calif NNP B-NP +. . O + +A DT B-NP +spokesman NN I-NP +for IN B-PP +GE NNP B-NP +Capital NNP I-NP +declined VBD B-VP +to TO I-VP +comment VB I-VP +. . O + +GE NNP B-NP +Capital NNP I-NP +has VBZ B-VP +a DT B-NP +working VBG I-NP +relationship NN I-NP +with IN B-PP +L.J. NNP B-NP +Hooker NNP I-NP +. . O + +It PRP B-NP +is VBZ B-VP +providing VBG I-VP +$ $ B-NP +50 CD I-NP +million CD I-NP +in IN B-PP +emergency NN B-NP +financing NN I-NP +to TO B-PP +the DT B-NP +company NN I-NP +and CC O +has VBZ B-VP +agreed VBN I-VP +to TO I-VP +buy VB I-VP +as RB B-NP +much JJ I-NP +as IN B-PP +$ $ B-NP +75 CD I-NP +million CD I-NP +in IN B-PP +receivables NN B-NP +from IN B-PP +B. NNP B-NP +Altman NNP I-NP +& CC I-NP +Co. NNP I-NP +and CC O +Bonwit NNP B-NP +Teller NNP I-NP +, , O +L.J. NNP B-NP +Hooker NNP I-NP +'s POS B-NP +two CD O +fully RB B-ADJP +owned VBN I-ADJP +department-store NN B-NP +chains NNS I-NP +. . O + +Sam NNP B-NP +Merksamer NNP I-NP +, , O +chief JJ B-NP +executive JJ I-NP +officer NN I-NP +of IN B-PP +the DT B-NP +nationwide JJ I-NP +jewelry NN I-NP +chain NN I-NP +, , O +and CC O +Sanford NNP B-NP +Sigoloff NNP I-NP +, , O +chief JJ B-NP +executive NN I-NP +of IN B-PP +L.J. NNP B-NP +Hooker NNP I-NP +Corp. NNP I-NP +, , O +both DT B-NP +declined VBD B-VP +to TO I-VP +comment VB I-VP +. . O + +Currently RB B-ADVP +, , O +Mr. NNP B-NP +Merksamer NNP I-NP +owns VBZ B-VP +20 CD B-NP +% NN I-NP +of IN B-PP +the DT B-NP +company NN I-NP +; : O +L.J. NNP B-NP +Hooker NNP I-NP +acquired VBD B-VP +its PRP$ B-NP +80 CD I-NP +% NN I-NP +interest NN I-NP +in IN B-PP +the DT B-NP +firm NN I-NP +in IN B-PP +May NNP B-NP +1986 CD I-NP +. . O + +At IN B-PP +the DT B-NP +time NN I-NP +, , O +the DT B-NP +Merksamer NNP I-NP +chain NN I-NP +had VBD B-VP +11 CD B-NP +stores NNS I-NP +in IN B-PP +operation NN B-NP +. . O + +Today NN B-NP +, , O +there EX B-NP +are VBP B-VP +77 CD B-NP +units NNS I-NP +, , O +all DT B-NP +located VBN B-ADJP +in IN B-PP +shopping NN B-NP +malls NNS I-NP +. . O + +In IN B-PP +recent JJ B-NP +weeks NNS I-NP +Mr. NNP B-NP +Merksamer NNP I-NP +has VBZ B-VP +approached VBN I-VP +a DT B-NP +number NN I-NP +of IN B-PP +his PRP$ B-NP +suppliers NNS I-NP +and CC O +asked VBD B-VP +them PRP B-NP +to TO B-VP +provide VB I-VP +letters NNS B-NP +of IN B-PP +intent NN B-NP +saying VBG B-VP +they PRP B-NP +will MD B-VP +continue VB I-VP +shipping VBG I-VP +merchandise NN B-NP +to TO B-PP +the DT B-NP +chain NN I-NP +following VBG B-PP +the DT B-NP +buy-out NN I-NP +, , O +say VBP B-VP +those DT B-NP +familiar NN B-ADJP +with IN B-PP +the DT B-NP +situation NN I-NP +. . O + +This DT B-NP +year NN I-NP +, , O +a DT B-NP +number NN I-NP +of IN B-PP +retail JJ B-NP +leveraged JJ I-NP +buyouts NNS I-NP +have VBP B-VP +failed VBN I-VP +, , O +causing VBG B-VP +jitters NNS B-NP +among IN B-PP +suppliers NNS B-NP +, , O +and CC O +Mr. NNP B-NP +Merksamer NNP I-NP +apparently RB B-ADVP +wanted VBD B-VP +assurances NNS B-NP +that IN B-SBAR +he PRP B-NP +wo MD B-VP +n't RB I-VP +have VB I-VP +delivery NN B-NP +problems NNS I-NP +. . O + +For IN B-PP +the DT B-NP +year NN I-NP +ended VBN B-VP +June NNP B-NP +30 CD I-NP +, , I-NP +1989 CD I-NP +, , O +Merksamer NNP B-NP +Jewelers NNPS I-NP +had VBD B-VP +$ $ B-NP +62 CD I-NP +million CD I-NP +of IN B-PP +revenue NN B-NP +and CC O +operating VBG B-NP +profit NN I-NP +of IN B-PP +$ $ B-NP +2.5 CD I-NP +million CD I-NP +. . O + +The DT B-NP +jewelery NN I-NP +chain NN I-NP +was VBD B-VP +put VBN I-VP +up IN B-ADVP +for IN B-PP +sale NN B-NP +in IN B-PP +June NNP B-NP +. . O + +According VBG B-PP +to TO B-PP +those DT B-NP +familiar NN B-ADJP +with IN B-PP +the DT B-NP +situation NN I-NP +, , O +other JJ B-NP +bidders NNS I-NP +included VBD B-VP +Ratners NNP B-NP +Group NNP I-NP +PLC NNP I-NP +of IN B-PP +London NNP B-NP +and CC O +Kay NNP B-NP +Jewelers NNP I-NP +Inc NNP I-NP +. . O + +First NNP B-NP +Boston NNP I-NP +Corp. NNP I-NP +is VBZ B-VP +advising VBG I-VP +L.J. NNP B-NP +Hooker NNP I-NP +on IN B-PP +the DT B-NP +sale NN I-NP +of IN B-PP +the DT B-NP +Merksamer NNP I-NP +business NN I-NP +. . O + +Merksamer NNP B-NP +was VBD B-VP +the DT B-NP +first JJ I-NP +in IN B-PP +a DT B-NP +series NN I-NP +of IN B-PP +retail JJ B-NP +acquisitions NNS I-NP +made VBN B-VP +by IN B-PP +L.J. NNP B-NP +Hooker NNP I-NP +. . O + +The DT B-NP +company NN I-NP +was VBD B-VP +founded VBN I-VP +in IN B-PP +Sacramento NNP B-NP +in IN B-PP +1929 CD B-NP +by IN B-PP +two CD B-NP +brothers NNS I-NP +, , O +Ralph NNP B-NP +and CC I-NP +Walter NNP I-NP +Merksamer NNP I-NP +, , O +who WP B-NP +operated VBD B-VP +as IN B-PP +DeVon NNP B-NP +'s POS B-NP +Jewelers NNPS I-NP +. . O + +In IN B-PP +1979 CD B-NP +, , O +the DT B-NP +pair NN I-NP +split NN B-VP +the DT B-NP +company NN I-NP +in IN B-PP +half NN B-NP +, , O +with IN B-PP +Walter NNP B-NP +and CC O +his PRP$ B-NP +son NN I-NP +, , O +Sam NNP B-NP +, , O +agreeing VBG B-VP +to TO I-VP +operate VB I-VP +under IN B-PP +the DT B-NP +Merksamer NNP I-NP +Jewelery NNP I-NP +name NN I-NP +. . O + +The DT B-NP +sale NN I-NP +of IN B-PP +Merksamer NNP B-NP +Jewelers NNPS I-NP +is VBZ B-VP +subject NN B-ADJP +to TO B-PP +approval NN B-NP +by IN B-PP +Judge NNP B-NP +Tina NNP I-NP +Brozman NNP I-NP +of IN B-PP +U.S. NNP B-NP +Bankruptcy NNP I-NP +Court NNP I-NP +. . O + +As IN B-SBAR +earlier RBR B-ADVP +reported VBD B-VP +, , O +L.J. NNP B-NP +Hooker NNP I-NP +this DT B-NP +week NN I-NP +received VBD B-VP +a DT B-NP +$ $ I-NP +409 CD I-NP +million CD I-NP +bid NN I-NP +for IN B-PP +its PRP$ B-NP +three CD I-NP +shopping NN I-NP +malls NNS I-NP +, , O +plus CC O +other JJ B-NP +properties NNS I-NP +from IN B-PP +a DT B-NP +consortium NN I-NP +led VBN B-VP +by IN B-PP +Honolulu NNP B-NP +real-estate NN I-NP +investor NN I-NP +Jay NNP I-NP +Shidler NNP I-NP +and CC O +A. NNP B-NP +Boyd NNP I-NP +Simpson NNP I-NP +, , O +an DT B-NP +Atlanta NNP I-NP +developer NN I-NP +and CC O +former JJ B-NP +L.J. NNP I-NP +Hooker NNP I-NP +senior JJ I-NP +executive NN I-NP +. . O + +The DT B-NP +offer NN I-NP +, , O +which WDT B-NP +did VBD B-VP +n't RB I-VP +include VB I-VP +the DT B-NP +Merksamer NNP I-NP +chain NN I-NP +, , O +is VBZ B-VP +being VBG I-VP +reviewed VBN I-VP +by IN B-PP +Mr. NNP B-NP +Sigoloff NNP I-NP +. . O + +Robert NNP B-NP +J. NNP I-NP +Regal NNP I-NP +was VBD B-VP +named VBN I-VP +president NN B-NP +and CC O +chief JJ B-NP +executive JJ I-NP +officer NN I-NP +of IN B-PP +this DT B-NP +company NN I-NP +'s POS B-NP +Universal-Rundle NNP I-NP +Corp. NNP I-NP +unit NN I-NP +. . O + +Mr. NNP B-NP +Regal NNP I-NP +had VBD B-VP +been VBN I-VP +president NN B-NP +and CC O +chief JJ B-NP +executive NN I-NP +of IN B-PP +RBS NNP B-NP +Industries NNP I-NP +Inc NNP I-NP +. . O + +Robert NNP B-NP +H. NNP I-NP +Carlson NNP I-NP +, , O +previous JJ B-NP +president NN I-NP +and CC I-NP +chief JJ I-NP +executive NN I-NP +of IN B-PP +Universal-Rundle NNP B-NP +, , O +will MD B-VP +assume VB I-VP +the DT B-NP +title NN I-NP +of IN B-PP +chairman NN B-NP +of IN B-PP +the DT B-NP +unit NN I-NP +, , O +a DT B-NP +vitreous-china NN I-NP +maker NN I-NP +. . O + +The DT B-NP +days NNS I-NP +may MD B-VP +be VB I-VP +numbered VBN I-VP +for IN B-PP +animated JJ B-NP +shows NNS I-NP +featuring VBG B-VP +Alf NNP B-NP +, , O +the DT B-NP +Karate NNP I-NP +Kid NNP I-NP +and CC O +the DT B-NP +Chipmunks NNPS I-NP +. . O + +NBC NNP B-NP +, , O +a DT B-NP +leader NN I-NP +in IN B-PP +morning NN B-NP +, , I-NP +prime-time JJ I-NP +and CC I-NP +late JJ I-NP +night NN I-NP +programs NNS I-NP +but CC O +an DT B-NP +also-ran NN I-NP +on IN B-PP +Saturday NNP B-NP +mornings NNS I-NP +, , O +when WRB B-ADVP +children NNS B-NP +rule VBP B-VP +the DT B-NP +TV NN I-NP +set VBN I-NP +, , O +is VBZ B-VP +contemplating VBG I-VP +getting VBG I-VP +out IN B-ADVP +of IN B-PP +the DT B-NP +cartoon NN I-NP +business NN I-NP +. . O + +Instead RB B-ADVP +, , O +network NN B-NP +officials NNS I-NP +say VBP B-VP +, , O +it PRP B-NP +may MD B-VP +`` `` I-VP +counterprogram VB I-VP +'' '' O +with IN B-PP +shows VBZ B-NP +for IN B-PP +an DT B-NP +audience NN I-NP +that WDT B-NP +is VBZ B-VP +virtually RB I-VP +ignored VBN I-VP +in IN B-PP +that DT B-NP +time NN I-NP +period NN I-NP +: : O +adults NNS B-NP +. . O + +`` `` O +There EX B-NP +is VBZ B-VP +talk VB B-NP +of IN B-PP +some DT B-NP +revamping VBG I-NP +and CC O +we PRP B-NP +'re VBP B-VP +certainly RB I-VP +heading VBG I-VP +in IN B-PP +the DT B-NP +direction NN I-NP +of IN B-PP +less JJR B-NP +and CC I-NP +less JJR I-NP +animation NN I-NP +, , O +'' '' O +said VBD B-VP +Joseph NNP B-NP +S. NNP I-NP +Cicero NNP I-NP +, , O +vice NN B-NP +president NN I-NP +of IN B-PP +finance NN B-NP +and CC I-NP +administration NN I-NP +for IN B-PP +National NNP B-NP +Broadcasting NNP I-NP +Co. NNP I-NP +, , O +a DT B-NP +unit NN I-NP +of IN B-PP +General NNP B-NP +Electric NNP I-NP +Co NNP I-NP +. . O + +Mr. NNP B-NP +Cicero NNP I-NP +said VBD B-VP +that IN B-SBAR +NBC NNP B-NP +Entertainment NNP I-NP +president NNP I-NP +Brandon NNP I-NP +Tartikoff NNP I-NP +, , O +who WP B-NP +declined VBD B-VP +to TO I-VP +be VB I-VP +interviewed VBN I-VP +, , O +is VBZ B-VP +`` `` O +looking VBG B-VP +at IN B-PP +options NNS B-NP +now RB B-ADVP +and CC O +may MD B-VP +put VB I-VP +some DT B-NP +things NNS I-NP +into IN B-PP +the DT B-NP +schedule NN I-NP +by IN B-PP +mid-season NN B-NP +. . O +'' '' O + +He PRP B-NP +declined VBD B-VP +to TO I-VP +elaborate VB I-VP +. . O + +NBC NNP B-NP +'s POS B-NP +options NNS I-NP +could MD B-VP +range VB I-VP +from IN B-PP +news-oriented JJ B-NP +programming NN I-NP +to TO B-PP +sports NNS B-NP +shows VBZ I-NP +, , O +although IN B-SBAR +the DT B-NP +network NN I-NP +declined VBD B-VP +to TO I-VP +comment VB I-VP +. . O + +One CD B-NP +major JJ I-NP +NBC NNP I-NP +affiliate NN I-NP +, , O +KCRA NNP B-NP +in IN B-PP +Sacramento NNP B-NP +, , O +plans VBZ B-VP +to TO I-VP +cancel VB I-VP +the DT B-NP +NBC NNP I-NP +Saturday NNP I-NP +morning NN I-NP +line-up NN I-NP +as IN B-PP +of IN I-PP +January NNP B-NP +and CC O +replace VB B-VP +it PRP B-NP +with IN B-PP +a DT B-NP +local JJ I-NP +newscast NN I-NP +. . O + +The DT B-NP +one-hour JJ I-NP +program NN I-NP +will MD B-VP +be VB I-VP +repeated VBN I-VP +with IN B-PP +updates NNS B-NP +throughout IN B-PP +Saturday NNP B-NP +mornings NNS I-NP +. . O + +`` `` O +We PRP B-NP +feel VBP B-VP +there EX B-NP +is VBZ B-VP +an DT B-NP +opportunity NN I-NP +for IN B-PP +an DT B-NP +audience NN I-NP +that WDT B-NP +is VBZ B-VP +not RB I-VP +being VBG I-VP +served VBN I-VP +by IN B-PP +any DT B-NP +network NN I-NP +, , O +so IN O +we PRP B-NP +want VBP B-VP +to TO I-VP +take VB I-VP +the DT B-NP +lead NN I-NP +, , O +'' '' O +says VBZ B-VP +KCRA NNP B-NP +'s POS B-NP +general JJ I-NP +manager NN I-NP +, , O +John NNP B-NP +Kueneke NNP I-NP +. . O + +`` `` O +We PRP B-NP +do VBP B-VP +n't RB I-VP +need VB I-VP +cartoons NNS B-NP +anymore RB B-ADVP +. . O + +They PRP B-NP +only RB B-ADVP +accounted VBD B-VP +for IN B-PP +5 NN B-NP +% NN I-NP +, , O +at IN B-ADVP +best JJS I-ADVP +, , O +of IN B-PP +the DT B-NP +station NN I-NP +'s POS B-NP +total JJ I-NP +revenues NNS I-NP +. . O +'' '' O + +An DT B-NP +NBC NNP I-NP +spokesman NN I-NP +says VBZ B-VP +the DT B-NP +network NN I-NP +will MD B-VP +`` `` I-VP +closely RB I-VP +monitor VB I-VP +'' '' O +the DT B-NP +Sacramento NNP I-NP +situation NN I-NP +, , O +and CC O +says VBZ B-VP +it PRP B-NP +is VBZ B-VP +the DT B-NP +only JJ I-NP +station NN I-NP +to TO B-VP +defect VB I-VP +. . O + +Spokesmen NNS B-NP +for IN B-PP +the DT B-NP +television NN I-NP +networks NNS I-NP +of IN B-PP +CBS NNP B-NP +Inc. NNP I-NP +and CC O +Capital NNP B-NP +Cities\/ABC NNP I-NP +Inc. NNP I-NP +, , O +say VBP B-VP +there EX B-NP +are VBP B-VP +no DT B-NP +plans NNS I-NP +to TO B-VP +alter VB I-VP +the DT B-NP +children NNS I-NP +'s POS B-NP +line-up NN I-NP +on IN B-PP +Saturday NNP B-NP +mornings NNS I-NP +. . O + +The DT B-NP +youthful JJ I-NP +audience NN I-NP +for IN B-PP +Saturday NNP B-NP +programming NN I-NP +is VBZ B-VP +no RB B-ADVP +longer RB I-ADVP +dependent JJ B-ADJP +on IN B-PP +the DT B-NP +networks NNS I-NP +. . O + +There EX B-NP +has VBZ B-VP +been VBN I-VP +a DT B-NP +surge NN I-NP +in IN B-PP +syndicated VBN O +children NNS B-NP +'s POS B-NP +shows VBZ I-NP +to TO B-PP +independent JJ B-NP +stations NNS I-NP +, , O +as RB B-CONJP +well RB I-CONJP +as IN I-CONJP +competition NN B-NP +from IN B-PP +videocassettes NNS B-NP +for IN B-PP +kids NNS B-NP +and CC B-PP +from IN B-PP +cable NN B-NP +outlets NNS I-NP +such JJ B-PP +as IN I-PP +Nickelodeon NNP B-NP +and CC O +the DT B-NP +Disney NNP I-NP +Channel NNP I-NP +. . O + +At IN B-PP +the DT B-NP +same JJ I-NP +time NN I-NP +, , O +there EX B-NP +appears VBZ B-VP +to TO I-VP +be VB I-VP +a DT B-NP +market NN I-NP +for IN B-PP +news-oriented JJ B-NP +programming NN I-NP +; : O +Turner NNP B-NP +Broadcasting NNP I-NP +System NNP I-NP +Inc. NNP I-NP +'s POS B-NP +Cable NNP I-NP +News NNP I-NP +Network NNP I-NP +has VBZ B-VP +its PRP$ B-NP +highest JJS I-NP +ratings NNS I-NP +, , O +outside IN B-ADVP +of IN B-PP +prime JJ B-NP +time NN I-NP +, , O +on IN B-PP +Saturday NNP B-NP +mornings NNS I-NP +. . O + +NBC NNP B-NP +has VBZ B-VP +on IN B-PP +previous JJ B-NP +occasions NNS I-NP +considered VBN B-VP +replacing VBG I-VP +cartoons NNS B-NP +with IN B-PP +a DT B-NP +Saturday NNP I-NP +version NN I-NP +of IN B-PP +`` `` O +Today NN B-NP +, , O +'' '' O +which WDT B-NP +is VBZ B-VP +produced VBN I-VP +by IN B-PP +NBC NNP B-NP +News NNP I-NP +. . O + +The DT B-NP +network NN I-NP +'s POS B-NP +own JJ I-NP +production NN I-NP +company NN I-NP +, , O +NBC NNP B-NP +Productions NNPS I-NP +, , O +supplies VBZ B-VP +a DT B-NP +half-hour NN I-NP +family-oriented JJ I-NP +show NN I-NP +titled VBN B-VP +`` `` O +Saved NNP B-VP +By IN O +The DT B-NP +Bell NNP I-NP +. . O +'' '' O + +NBC NNP B-NP +Productions NNPS I-NP +or CC O +NBC NNP B-NP +News NNP I-NP +could MD B-VP +supply VB I-VP +the DT B-NP +network NN I-NP +with IN B-PP +other JJ B-NP +Saturday NNP I-NP +morning NN I-NP +shows VBZ I-NP +, , O +a DT B-NP +move NN I-NP +that WDT B-NP +would MD B-VP +control VB I-VP +costs NNS B-NP +. . O + +Animated JJ B-NP +shows NNS I-NP +, , O +which WDT B-NP +are VBP B-VP +made VBN I-VP +by IN B-PP +outside IN B-NP +production NN I-NP +companies NNS I-NP +, , O +cost NN B-VP +the DT B-NP +network NN I-NP +about RB B-NP +$ $ I-NP +300,000 CD I-NP +per IN B-PP +episode NN B-NP +. . O + +Rohm NNP B-NP +& CC I-NP +Haas NNP I-NP +Co. NNP I-NP +said VBD B-VP +third-quarter JJ B-NP +net JJ I-NP +income NN I-NP +skidded VBD B-VP +35 CD B-NP +% NN I-NP +to TO B-PP +$ $ B-NP +32.6 CD I-NP +million CD I-NP +, , O +or CC O +49 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +. . O + +In IN B-PP +the DT B-NP +year-earlier JJ I-NP +quarter NN I-NP +, , O +the DT B-NP +chemicals NNS I-NP +company NN I-NP +had VBD B-VP +net NN B-NP +of IN B-PP +$ $ B-NP +49.8 CD I-NP +million CD I-NP +, , O +or CC O +75 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +. . O + +Sales NNS B-NP +were VBD B-VP +$ $ B-NP +623 CD I-NP +million CD I-NP +, , O +up IN B-ADVP +0.5 CD B-NP +% NN I-NP +from IN B-PP +$ $ B-NP +619.8 CD I-NP +million CD I-NP +a DT B-NP +year NN I-NP +ago RB B-ADVP +. . O + +Rohm NNP B-NP +& CC I-NP +Haas NNP I-NP +, , O +which WDT B-NP +plans VBZ B-VP +to TO I-VP +start VB I-VP +operating VBG I-VP +seven CD B-NP +new JJ I-NP +production NN I-NP +units NNS I-NP +this DT B-NP +year NN I-NP +, , O +attributed VBD B-VP +the DT B-NP +profit NN I-NP +slide NN I-NP +partly RB B-ADVP +to TO B-PP +higher JJR B-NP +start-up JJ I-NP +expense NN I-NP +. . O + +The DT B-NP +company NN I-NP +also RB B-ADVP +cited VBD B-VP +the DT B-NP +stronger JJR I-NP +dollar NN I-NP +, , O +which WDT B-NP +cuts VBZ B-VP +the DT B-NP +value NN I-NP +of IN B-PP +overseas JJ B-NP +profit NN I-NP +when WRB B-ADVP +it PRP B-NP +is VBZ B-VP +translated VBN I-VP +into IN B-PP +dollars NNS B-NP +. . O + +In IN B-PP +addition NN B-NP +, , O +the DT B-NP +company NN I-NP +said VBD B-VP +, , O +it PRP B-NP +was VBD B-VP +hurt VBN I-VP +by IN B-PP +higher JJR O +than IN B-PP +previous-year JJ B-ADJP +costs NNS B-NP +for IN B-PP +raw JJ B-NP +materials NNS I-NP +, , O +though IN B-SBAR +those DT B-NP +costs NNS I-NP +have VBP B-VP +declined VBN I-VP +since IN B-PP +the DT B-NP +second JJ I-NP +quarter NN I-NP +. . O + +Incrementally RB B-NP +higher JJR I-NP +production NN I-NP +of IN B-PP +those DT B-NP +chemicals NNS I-NP +which WDT B-NP +remain VBP B-VP +in IN B-PP +heavy JJ B-NP +demand NN I-NP +also RB B-ADVP +has VBZ B-VP +forced VBN I-VP +up IN B-ADJP +costs NNS B-NP +, , O +such JJ B-ADVP +as IN B-PP +overtime NN B-NP +pay NN I-NP +. . O + +For IN B-PP +the DT B-NP +nine CD I-NP +months NNS I-NP +, , O +Rohm NNP B-NP +& CC I-NP +Haas NNP I-NP +net NN I-NP +totaled VBD B-VP +$ $ B-NP +155 CD I-NP +million CD I-NP +, , O +or CC O +$ $ B-NP +2.33 CD I-NP +a DT B-NP +share NN I-NP +, , O +down RB B-ADVP +17 CD B-NP +% NN I-NP +from IN B-PP +$ $ B-NP +187.8 CD I-NP +million CD I-NP +, , O +or CC O +$ $ B-NP +2.82 CD I-NP +a DT B-NP +share NN I-NP +, , O +a DT B-NP +year NN I-NP +ago RB B-ADVP +. . O + +Sales NNS B-NP +rose VBD B-VP +5.2 CD B-NP +% NN I-NP +to TO B-PP +$ $ B-NP +2.04 CD I-NP +billion CD I-NP +from IN B-PP +$ $ B-NP +1.94 CD I-NP +billion CD I-NP +the DT B-NP +previous JJ I-NP +year NN I-NP +. . O + +In IN B-PP +New NNP B-NP +York NNP I-NP +Stock NNP I-NP +Exchange NNP I-NP +composite JJ I-NP +trading NN I-NP +, , O +Rohm NNP B-NP +& CC I-NP +Haas NNP I-NP +closed VBD B-VP +at IN B-PP +$ $ B-NP +33 CD I-NP +a DT B-NP +share NN I-NP +, , O +down RB B-ADVP +$ $ B-NP +1.75 CD I-NP +. . O + +Michael NNP B-NP +A. NNP I-NP +Gaskin NNP I-NP +, , O +55 NN B-NP +years NNS I-NP +old JJ B-ADJP +, , O +was VBD B-VP +named VBN I-VP +president NN B-NP +and CC O +chief JJ B-NP +executive JJ I-NP +officer NN I-NP +of IN B-PP +this DT B-NP +manufacturer NN I-NP +of IN B-PP +industrial JJ B-NP +robots NNS I-NP +, , O +succeeding VBG B-VP +Walter NNP B-NP +K. NNP I-NP +Weisel NNP I-NP +. . O + +Mr. NNP B-NP +Weisel NNP I-NP +, , O +49 CD B-NP +, , O +resigned VBD B-VP +as IN B-PP +president NN B-NP +and CC O +chief JJ B-NP +executive NN I-NP +and CC O +will MD B-VP +work VB I-VP +on IN B-PP +special JJ B-NP +projects NNS I-NP +, , O +said VBD B-VP +John NNP B-NP +J. NNP I-NP +Wallace NNP I-NP +, , O +chairman NN B-NP +. . O + +Mr. NNP B-NP +Gaskin NNP I-NP +formerly RB B-VP +was VBD I-VP +president NN B-NP +and CC O +chief JJ B-NP +executive NN I-NP +of IN B-PP +Taylor NNP B-NP +& CC I-NP +Gaskin NNP I-NP +Inc. NNP I-NP +and CC O +was VBD B-VP +a DT B-NP +director NN I-NP +of IN B-PP +Prab NNP B-NP +Robots NNP I-NP +since IN B-PP +1985 CD B-NP +. . O + +Stephen NNP B-NP +N. NNP I-NP +Wertheimer NNP I-NP +was VBD B-VP +named VBN I-VP +managing VBG B-NP +director NN I-NP +and CC O +group NN B-NP +head NN I-NP +of IN B-PP +investment NN B-NP +banking NN I-NP +in IN B-PP +Asia NNP B-NP +, , O +based VBN B-VP +in IN B-PP +Tokyo NNP B-NP +. . O + +Mr. NNP B-NP +Wertheimer NNP I-NP +, , O +38 CD B-NP +years NNS I-NP +old JJ B-ADJP +, , O +had VBD B-VP +been VBN I-VP +a DT B-NP +first JJ I-NP +vice NN I-NP +president NN I-NP +in IN B-PP +the DT B-NP +industrial JJ I-NP +group NN I-NP +in IN B-PP +investment NN B-NP +banking NN I-NP +. . O + +He PRP B-NP +succeeds VBZ B-VP +Everett NNP B-NP +Meyers NNP I-NP +, , O +who WP B-NP +resigned VBD B-VP +in IN B-PP +May NNP B-NP +. . O + +This DT B-NP +is VBZ B-VP +written VBN I-VP +to TO B-VP +correct VB I-VP +a DT B-NP +misquotation NN I-NP +in IN B-PP +your PRP$ B-NP +Oct. NNP I-NP +3 CD I-NP +article NN I-NP +`` `` O +Deaths NNP B-NP +From IN B-PP +Advanced NNP B-NP +Colon NNP I-NP +Cancer NNP I-NP +Can MD B-VP +Be VB I-VP +Reduced NNP I-VP +by IN B-PP +Using VBG B-VP +Two CD B-NP +Drugs NNS I-NP +. . O +'' '' O + +In IN B-PP +this DT B-NP +article NN I-NP +, , O +I PRP B-NP +was VBD B-VP +alleged VBN I-VP +to TO I-VP +have VB I-VP +said VBD I-VP +, , O +`` `` O +Any DT B-NP +patient NN I-NP +with IN B-PP +high-risk JJ B-NP +colon NN I-NP +cancer NN I-NP +is VBZ B-VP +really RB I-VP +getting VBG I-VP +short JJ B-NP +shrift NN I-NP +if IN B-SBAR +he PRP B-NP +'s VBZ B-VP +not RB I-VP +getting VBG I-VP +this DT B-NP +therapy NN I-NP +. . O +'' '' O + +I PRP B-NP +did VBD B-VP +n't RB I-VP +say VB I-VP +this DT B-NP +, , O +and CC O +I PRP B-NP +'m VBP B-VP +totally RB I-VP +opposed VBN I-VP +to TO B-PP +the DT B-NP +philosophy NN I-NP +expressed VBN B-VP +by IN B-PP +the DT B-NP +quote NN I-NP +. . O + +I PRP B-NP +have VBP B-VP +not RB I-VP +offered VBN I-VP +and CC O +will MD B-VP +not RB I-VP +offer VB I-VP +routine JJ B-NP +therapy NN I-NP +with IN B-PP +the DT B-NP +two CD I-NP +drugs NNS I-NP +, , O +levamisole NN B-NP +and CC I-NP +5-fluorouracil JJ I-NP +, , O +to TO B-PP +any DT B-NP +of IN B-PP +my PRP$ B-NP +colon-cancer NN I-NP +patients NNS I-NP +. . O + +With IN B-PP +this DT B-NP +treatment NN I-NP +we PRP B-NP +have VBP B-VP +reduced VBN I-VP +deaths NNS B-NP +in IN B-PP +high-risk JJ B-NP +colon NN I-NP +cancer NN I-NP +by IN B-PP +one-third NN B-NP +-- : O +but CC O +this DT B-NP +leaves VBZ B-VP +the DT B-NP +two-thirds NNS I-NP +who WP B-NP +are VBP B-VP +dying VBG I-VP +of IN B-PP +cancer NN B-NP +. . O + +This DT B-NP +is VBZ B-VP +not RB O +nearly RB B-ADJP +good JJ I-ADJP +enough RB I-ADJP +. . O + +I PRP B-NP +believe VBP B-VP +any DT B-NP +physician NN I-NP +who WP B-NP +truly RB B-ADVP +cares VBZ B-VP +about IN B-PP +cancer NN B-NP +patients NNS I-NP +, , O +both DT B-NP +today NN I-NP +and CC I-NP +tomorrow NN I-NP +, , O +should MD B-VP +offer VB I-VP +the DT B-NP +hope NN I-NP +of IN B-PP +something NN B-NP +better JJR B-ADJP +than IN B-PP +that DT B-NP +. . O + +My PRP$ B-NP +statement NN I-NP +, , O +read VB B-VP +verbatim RB B-ADVP +from IN B-PP +a DT B-NP +printed VBN I-NP +text NN I-NP +available JJ B-ADJP +to TO B-PP +all DT B-NP +reporters NNS I-NP +attending VBG B-VP +the DT B-NP +National NNP I-NP +Cancer NNP I-NP +Institute NNP I-NP +news NN I-NP +conference NN I-NP +, , O +was VBD B-VP +the DT B-NP +following VBG I-NP +: : O +`` `` O +New NNP B-NP +clinical JJ I-NP +trials NNS I-NP +are VBP B-VP +already RB B-ADVP +in IN B-PP +operation NN B-NP +seeking VBG B-VP +to TO I-VP +improve VB I-VP +these DT B-NP +results NNS I-NP +. . O + +These DT B-NP +research NN I-NP +protocols NNS I-NP +offer VBP B-VP +to TO B-PP +the DT B-NP +patient NN I-NP +not RB O +only RB O +the DT B-NP +very RB I-NP +best JJS I-NP +therapy NN I-NP +which WDT B-NP +we PRP B-NP +have VBP B-VP +established VBN I-VP +today NN B-NP +but CC B-NP +also RB I-NP +the DT B-NP +hope NN I-NP +of IN B-PP +something NN B-NP +still RB B-ADJP +better JJR I-ADJP +. . O + +I PRP B-NP +feel VBP B-VP +any DT B-NP +patient NN I-NP +with IN B-PP +high-risk JJ B-NP +cancer NN I-NP +is VBZ B-VP +getting VBG I-VP +short JJ B-NP +shrift NN I-NP +if IN B-SBAR +he PRP B-NP +is VBZ B-VP +not RB I-VP +offered VBN I-VP +this DT B-NP +opportunity NN I-NP +. . O +'' '' O + +We PRP B-NP +have VBP B-VP +very RB B-NP +exciting JJ I-NP +prospects NNS I-NP +for IN B-PP +far RB B-NP +more RBR I-NP +impressive JJ I-NP +advances NNS I-NP +in IN B-PP +the DT B-NP +treatment NN I-NP +of IN B-PP +colon NN B-NP +cancer NN I-NP +during IN B-PP +the DT B-NP +years NNS I-NP +immediately RB B-ADJP +ahead RB I-ADJP +. . O + +This DT B-NP +hope NN I-NP +, , O +however RB B-ADVP +, , O +will MD B-VP +never RB I-VP +be VB I-VP +realized VBN I-VP +if IN B-SBAR +we PRP B-NP +use VBP B-VP +levamisole NN B-NP +and CC I-NP +5-fluorouracil JJ I-NP +as IN B-PP +a DT B-NP +stopping VBG I-NP +point NN I-NP +. . O + +Charles NNP B-NP +G. NNP I-NP +Moertel NNP I-NP +M.D NNP I-NP +. . O +Mayo NNP B-NP +Clinic NNP I-NP +Rochester NNP B-NP +, , O +Minn NNP B-NP +. . O + +The DT B-NP +oil NN I-NP +and CC I-NP +auto NN I-NP +industries NNS I-NP +, , O +united VBN B-VP +in IN B-PP +their PRP$ B-NP +dislike NN I-NP +of IN B-PP +President NNP B-NP +Bush NNP I-NP +'s POS B-NP +proposal NN I-NP +for IN B-PP +cars NNS B-NP +that WDT B-NP +run VBP B-VP +on IN B-PP +alternative NN B-NP +fuels NNS I-NP +, , O +announced VBD B-VP +a DT B-NP +joint JJ I-NP +research NN I-NP +program NN I-NP +that WDT B-NP +could MD B-VP +turn VB I-VP +up IN B-PRT +a DT B-NP +cleaner-burning JJ I-NP +gasoline NN I-NP +. . O + +Officials NNS B-NP +of IN B-PP +the DT B-NP +Big NNP I-NP +Three CD I-NP +auto NN I-NP +makers NNS I-NP +and CC O +14 CD B-NP +petroleum NN I-NP +companies NNS I-NP +said VBD B-VP +they PRP B-NP +are VBP B-VP +setting VBG I-VP +out IN B-PRT +to TO B-VP +find VB I-VP +the DT B-NP +most RBS I-NP +cost-effective JJ I-NP +fuel NN I-NP +for IN B-PP +reducing VBG B-VP +cities NNS B-NP +' POS B-NP +air-pollution NN I-NP +problems NNS I-NP +, , O +with IN B-PP +no DT B-NP +bias NN I-NP +toward IN B-PP +any DT B-NP +fuel NN I-NP +in IN B-PP +particular NN B-NP +. . O + +However RB B-ADVP +, , O +their PRP$ B-NP +search NN I-NP +notably RB B-ADVP +wo MD B-VP +n't RB I-VP +include VB I-VP +natural JJ B-NP +gas NN I-NP +or CC O +pure JJ B-NP +methanol NN I-NP +-- : O +the DT B-NP +two CD I-NP +front-running JJ I-NP +alternative NN I-NP +fuels NNS I-NP +-- : O +in IN B-PP +tests NNS B-NP +to TO B-VP +be VB I-VP +completed VBN I-VP +by IN B-PP +next JJ B-NP +summer NN I-NP +. . O + +Instead RB B-ADVP +, , O +the DT B-NP +tests NNS I-NP +will MD B-VP +focus VB I-VP +heavily RB B-ADVP +on IN B-PP +new JJ B-NP +blends NNS I-NP +of IN B-PP +gasoline NN B-NP +, , O +which WDT B-NP +are VBP B-VP +still RB B-ADVP +undeveloped JJ B-ADJP +but CC O +which WDT B-NP +the DT B-NP +petroleum NN I-NP +industry NN I-NP +has VBZ B-VP +been VBN I-VP +touting VBG I-VP +as IN B-PP +a DT B-NP +solution NN I-NP +for IN B-PP +automobile NN B-NP +pollution NN I-NP +that WDT B-NP +is VBZ B-VP +choking VBG I-VP +urban JJ B-NP +areas NNS I-NP +. . O + +Environmentalists NNS B-NP +criticized VBD B-VP +the DT B-NP +program NN I-NP +as IN B-PP +merely RB B-NP +a DT I-NP +public-relations NNS I-NP +attempt VBP I-NP +to TO B-VP +head VB I-VP +off IN B-PRT +a DT B-NP +White NNP I-NP +House NNP I-NP +proposal NN I-NP +to TO B-VP +require VB I-VP +a DT B-NP +million CD I-NP +cars NNS I-NP +a DT B-NP +year NN I-NP +that WDT B-NP +run VBP B-VP +on IN B-PP +cleaner-burning JJ B-NP +fuels NNS I-NP +by IN B-PP +1997 CD B-NP +. . O + +While IN B-SBAR +major JJ B-NP +oil NN I-NP +companies NNS I-NP +have VBP B-VP +been VBN I-VP +experimenting VBG I-VP +with IN B-PP +cleaner-burning JJ B-NP +gasoline NN I-NP +blends NNS I-NP +for IN B-PP +years NNS B-NP +, , O +only RB B-NP +Atlantic NNP I-NP +Richfield NNP I-NP +Co. NNP I-NP +is VBZ B-VP +now RB I-VP +marketing VBG I-VP +a DT B-NP +lower-emission NN I-NP +gasoline NN I-NP +for IN B-PP +older JJR B-NP +cars NNS I-NP +currently RB B-VP +running VBG I-VP +on IN B-PP +leaded JJ B-NP +fuel NN I-NP +. . O + +The DT B-NP +initial JJ I-NP +$ $ I-NP +11 CD I-NP +million CD I-NP +research NN I-NP +program NN I-NP +will MD B-VP +conduct VB I-VP +the DT B-NP +most RBS I-NP +extensive JJ I-NP +testing NN I-NP +to TO B-PP +date VB B-NP +of IN B-PP +reformulated VBN B-NP +gasolines NNS I-NP +, , O +said VBD B-VP +Joe NNP B-NP +Colucci NNP I-NP +, , O +head NN B-NP +of IN B-PP +fuels NNS B-NP +and CC I-NP +lubricants NNS I-NP +at IN B-PP +General NNP B-NP +Motors NNPS I-NP +Corp. NNP I-NP +research NN I-NP +laboratories NNS I-NP +. . O + +It PRP B-NP +will MD B-VP +compare VB I-VP +21 CD B-NP +different JJ I-NP +blends NNS I-NP +of IN B-PP +gasolines NNS B-NP +with IN B-PP +three CD B-NP +mixtures NNS I-NP +of IN B-PP +up IN B-NP +to TO I-NP +85 CD I-NP +% NN I-NP +methanol NN I-NP +. . O + +A DT B-NP +second JJ I-NP +phase NN I-NP +of IN B-PP +research NN B-NP +, , O +which WDT B-NP +is VBZ B-VP +still RB I-VP +being VBG I-VP +planned VBN I-VP +, , O +will MD B-VP +test VB I-VP +reformulated VBN B-NP +gasolines NNS I-NP +on IN B-PP +newer JJR B-NP +engine NN I-NP +technologies NNS I-NP +now RB B-ADVP +being VBG B-VP +developed VBN I-VP +for IN B-PP +use NN B-NP +in IN B-PP +1992 CD B-NP +or CC I-NP +1993 CD I-NP +cars NNS I-NP +. . O + +There EX B-NP +was VBD B-VP +no DT B-NP +cost NN I-NP +estimate NN I-NP +for IN B-PP +the DT B-NP +second JJ I-NP +phase NN I-NP +. . O + +`` `` O +The DT B-NP +whole JJ I-NP +idea NN I-NP +here RB I-NP +is VBZ B-VP +the DT B-NP +automobile NN I-NP +and CC I-NP +oil NN I-NP +companies NNS I-NP +have VBP B-VP +joint JJ B-NP +customers NNS I-NP +, , O +'' '' O +said VBD B-VP +Keith NNP B-NP +McHenry NNP I-NP +, , O +a DT B-NP +senior JJ I-NP +vice NN I-NP +president NN I-NP +of IN B-PP +technology NN B-NP +at IN B-PP +Amoco NNP B-NP +Corp NNP I-NP +. . O + +`` `` O +And CC O +we PRP B-NP +are VBP B-VP +looking VBG I-VP +for IN B-PP +the DT B-NP +most RBS I-NP +cost-effective JJ I-NP +way NN I-NP +to TO B-VP +clean VB I-VP +up IN B-PRT +the DT B-NP +air NN I-NP +. . O +'' '' O + +But CC O +David NNP B-NP +Hawkins NNP I-NP +, , O +an DT B-NP +environmental JJ I-NP +lawyer NN I-NP +with IN B-PP +the DT B-NP +Natural NNP I-NP +Resources NNP I-NP +Defense NNP I-NP +Council NNP I-NP +, , O +said VBD B-VP +the DT B-NP +research NN I-NP +appears VBZ B-VP +merely RB I-VP +to TO I-VP +be VB I-VP +a DT B-NP +way NN I-NP +to TO B-VP +promote VB I-VP +reformulated VBN B-NP +gasoline NN I-NP +. . O + +Oil NNP B-NP +and CC I-NP +auto NN I-NP +companies NNS I-NP +supported VBD B-VP +a DT B-NP +move NN I-NP +on IN B-PP +Capitol NNP B-NP +Hill NNP I-NP +last JJ B-NP +week NN I-NP +to TO B-VP +gut VB I-VP +Mr. NNP B-NP +Bush NNP I-NP +'s POS B-NP +plans NNS I-NP +to TO B-VP +require VB I-VP +auto NN B-NP +makers NNS I-NP +to TO B-VP +begin VB I-VP +selling VBG I-VP +alternative-fueled JJ B-NP +cars NNS I-NP +by IN B-PP +1995 CD B-NP +. . O + +Instead RB B-ADVP +, , O +a DT B-NP +House NNP I-NP +subcommittee NN I-NP +adopted VBD B-VP +a DT B-NP +clean-fuels NNS I-NP +program VBP I-NP +that WDT B-NP +specifically RB B-ADVP +mentions VBZ B-VP +reformulated VBN B-NP +gasoline NN I-NP +as IN B-PP +an DT B-NP +alternative NN I-NP +. . O + +The DT B-NP +Bush NNP I-NP +administration NN I-NP +has VBZ B-VP +said VBD I-VP +it PRP B-NP +will MD B-VP +try VB I-VP +to TO I-VP +resurrect VB I-VP +its PRP$ B-NP +plan NN I-NP +when WRB B-ADVP +the DT B-NP +House NNP I-NP +Energy NNP I-NP +and CC I-NP +Commerce NNP I-NP +Committee NNP I-NP +takes VBZ B-VP +up IN B-PRT +a DT B-NP +comprehensive JJ I-NP +clean-air JJ I-NP +bill NN I-NP +. . O + +William NNP B-NP +Seidman NNP I-NP +, , O +chairman NN B-NP +of IN B-PP +the DT B-NP +Federal NNP I-NP +Deposit NNP I-NP +Insurance NNP I-NP +Corp. NNP I-NP +, , O +said VBD B-VP +Lincoln NNP B-NP +Savings NNP I-NP +& CC I-NP +Loan NNP I-NP +Association NNP I-NP +should MD B-VP +have VB I-VP +been VBN I-VP +seized VBN I-VP +by IN B-PP +the DT B-NP +government NN I-NP +in IN B-PP +1986 CD B-NP +to TO B-VP +contain VB I-VP +losses NNS B-NP +that IN B-NP +he PRP B-NP +estimated VBD B-VP +will MD B-VP +cost VB I-VP +taxpayers NNS B-NP +as RB B-NP +much JJ I-NP +as IN I-NP +$ $ I-NP +2 CD I-NP +billion CD I-NP +. . O + +Mr. NNP B-NP +Seidman NNP I-NP +, , O +who WP B-NP +has VBZ B-VP +been VBN I-VP +the DT B-NP +nation NN I-NP +'s POS B-NP +top JJ I-NP +bank NN I-NP +regulator NN I-NP +, , O +inherited VBD B-VP +the DT B-NP +problems NNS I-NP +of IN B-PP +Lincoln NNP B-NP +, , O +based VBN B-VP +in IN B-PP +Irvine NNP B-NP +, , O +Calif. NNP B-NP +, , O +after IN B-SBAR +his PRP$ B-NP +regulatory JJ I-NP +role NN I-NP +was VBD B-VP +expanded VBN I-VP +by IN B-PP +the DT B-NP +new JJ I-NP +savings-and-loan JJ I-NP +bailout NN I-NP +law NN I-NP +. . O + +He PRP B-NP +made VBD B-VP +his PRP$ B-NP +comments NNS I-NP +before IN B-PP +House NNP B-NP +Banking NNP I-NP +Committee NNP I-NP +hearings NNS I-NP +to TO B-VP +investigate VB I-VP +what WP B-NP +appears VBZ B-VP +to TO I-VP +be VB I-VP +the DT B-NP +biggest JJS I-NP +thrift NN I-NP +disaster NN I-NP +in IN B-PP +a DT B-NP +scandal-ridden JJ I-NP +industry NN I-NP +. . O + +The DT B-NP +inquiry NN I-NP +also RB B-ADVP +will MD B-VP +cover VB I-VP +the DT B-NP +actions NNS I-NP +of IN B-PP +Charles NNP B-NP +Keating NNP I-NP +Jr. NNP I-NP +, , O +who WP B-NP +is VBZ B-VP +chairman NN B-NP +of IN B-PP +American NNP B-NP +Continental NNP I-NP +Corp. NNP I-NP +, , O +Lincoln NNP B-NP +'s POS B-NP +parent NN I-NP +, , O +and CC O +who WP B-NP +contributed VBD B-VP +heavily RB B-ADVP +to TO B-PP +several JJ B-NP +U.S. NNP I-NP +senators NNS I-NP +. . O + +Mr. NNP B-NP +Seidman NNP I-NP +told VBD B-VP +the DT B-NP +committee NN I-NP +that IN B-SBAR +the DT B-NP +Resolution NNP I-NP +Trust NNP I-NP +Corp. NNP I-NP +, , O +the DT B-NP +agency NN I-NP +created VBN B-VP +to TO B-VP +sell VB I-VP +sick JJ B-NP +thrifts NNS I-NP +, , O +has VBZ B-VP +studied VBN I-VP +Lincoln NNP B-NP +'s POS B-NP +examination NN I-NP +reports NNS I-NP +by IN B-PP +former JJ B-NP +regulators NNS I-NP +dating VBG B-VP +back RB B-ADVP +to TO B-PP +1986 CD B-NP +. . O + +`` `` O +My PRP$ B-NP +staff NN I-NP +indicated VBD B-VP +that WDT B-SBAR +had VBD O +we PRP B-NP +made VBD B-VP +such JJ B-NP +findings NNS I-NP +in IN B-PP +one CD B-NP +of IN B-PP +our PRP$ B-NP +own JJ I-NP +institutions NNS I-NP +, , O +we PRP B-NP +would MD B-VP +have VB I-VP +sought VBN I-VP +an DT B-NP +immediate JJ I-NP +cease-and-desist JJ I-NP +order NN I-NP +to TO B-VP +stop VB I-VP +the DT B-NP +hazardous JJ I-NP +operations NNS I-NP +, , O +'' '' O +Mr. NNP B-NP +Seidman NNP I-NP +said VBD B-VP +. . O + +When WRB B-ADVP +Lincoln NNP B-NP +was VBD B-VP +seized VBN I-VP +by IN B-PP +the DT B-NP +government NN I-NP +, , O +for IN B-PP +example NN B-NP +, , O +15 CD B-NP +% NN I-NP +of IN B-PP +its PRP$ B-NP +loans NNS I-NP +, , O +or CC O +$ $ B-NP +250 CD I-NP +million CD I-NP +, , O +were VBD B-VP +to TO B-PP +borrowers NNS B-NP +who WP B-NP +were VBD B-VP +buying VBG I-VP +real JJ B-NP +estate NN I-NP +from IN B-PP +one CD B-NP +of IN B-PP +American NNP B-NP +Continental NNP I-NP +'s POS B-NP +50 CD I-NP +other JJ I-NP +subsidiaries NNS I-NP +, , O +according VBG B-PP +to TO B-PP +Mr. NNP B-NP +Seidman NNP I-NP +. . O + +But CC O +the DT B-NP +government NN I-NP +did VBD B-VP +n't RB I-VP +step VB I-VP +in IN B-ADVP +until IN B-PP +six CD B-NP +months NNS I-NP +ago RB B-ADVP +, , O +when WRB B-ADVP +thrift NN B-NP +officials NNS I-NP +put VBP B-VP +Lincoln NNP B-NP +into IN B-PP +conservatorship NN B-NP +-- : O +the DT B-NP +day NN I-NP +after IN B-SBAR +American NNP B-NP +Continental NNP I-NP +filed VBD B-VP +for IN B-PP +Chapter NN B-NP +11 CD I-NP +bankruptcy NN I-NP +protection NN I-NP +from IN B-PP +creditors NNS B-NP +. . O + +The DT B-NP +bankruptcy NN I-NP +filing NN I-NP +, , O +the DT B-NP +government NN I-NP +has VBZ B-VP +charged VBN I-VP +in IN B-PP +a DT B-NP +$ $ I-NP +1.1 CD I-NP +billion CD I-NP +civil JJ I-NP +lawsuit NN I-NP +, , O +was VBD B-VP +part NN B-NP +of IN B-PP +a DT B-NP +pattern NN I-NP +to TO B-VP +shift VB I-VP +insured VBN B-NP +deposits NNS I-NP +to TO B-PP +the DT B-NP +parent NN I-NP +company NN I-NP +, , O +which WDT B-NP +used VBD B-VP +the DT B-NP +deposits NNS I-NP +as IN B-PP +a DT B-NP +cache NN I-NP +for IN B-PP +real-estate NN B-NP +deals NNS I-NP +. . O + +The DT B-NP +deposits NNS I-NP +that WDT B-NP +have VBP B-VP +been VBN I-VP +transferred VBN I-VP +to TO B-PP +other JJ B-NP +subsidiaries NNS I-NP +are VBP B-VP +now RB B-ADVP +under IN B-PP +the DT B-NP +jurisdiction NN I-NP +of IN B-PP +the DT B-NP +bankruptcy NN I-NP +court NN I-NP +. . O + +`` `` O +I PRP B-NP +think VBP B-VP +it PRP B-NP +'s VBZ B-VP +fairly RB B-ADJP +clear JJ I-ADJP +-LCB- ( O +Mr. NNP B-NP +Keating NNP I-NP +-RCB- ) O +knew VBD B-VP +, , O +'' '' O +that IN B-SBAR +regulators NNS B-NP +were VBD B-VP +set VBN I-VP +to TO I-VP +seize VB I-VP +Lincoln NNP B-NP +, , O +Mr. NNP B-NP +Seidman NNP I-NP +said VBD B-VP +. . O + +Further JJ B-NP +investigation NN I-NP +, , O +he PRP B-NP +said VBD B-VP +, , O +may MD B-VP +result VB I-VP +in IN B-PP +further JJ B-NP +actions NNS I-NP +against IN B-PP +Lincoln NNP B-NP +'s POS B-NP +executives NNS I-NP +, , O +said VBD B-VP +Mr. NNP B-NP +Seidman NNP I-NP +, , O +`` `` O +including VBG B-PP +fraud NN B-NP +actions NNS I-NP +. . O +'' '' O + +Mr. NNP B-NP +Keating NNP I-NP +, , O +for IN B-PP +his PRP$ B-NP +part NN I-NP +, , O +has VBZ B-VP +filed VBN I-VP +suit NN B-NP +alleging VBG B-VP +that IN B-SBAR +regulators NNS B-NP +unlawfully RB B-VP +seized VBN I-VP +the DT B-NP +thrift NN I-NP +. . O + +Leonard NNP B-NP +Bickwit NNP I-NP +, , O +an DT B-NP +attorney NN I-NP +in IN B-PP +Washington NNP B-NP +for IN B-PP +Mr. NNP B-NP +Keating NNP I-NP +, , O +declined VBD B-VP +to TO I-VP +comment VB I-VP +on IN B-PP +the DT B-NP +hearings NNS I-NP +, , O +except VB B-SBAR +to TO B-VP +say VB I-VP +, , O +`` `` O +We PRP B-NP +will MD B-VP +be VB I-VP +responding VBG I-VP +comprehensively RB B-ADVP +in IN B-PP +several JJ B-NP +forums NNS I-NP +to TO B-PP +each DT B-NP +of IN B-PP +these DT B-NP +allegations NNS I-NP +at IN B-PP +the DT B-NP +appropriate JJ I-NP +time NN I-NP +. . O +'' '' O + +Lincoln NNP B-NP +'s POS B-NP +treatment NN I-NP +by IN B-PP +former JJ B-NP +thrift NN I-NP +regulators NNS I-NP +, , O +in IN B-PP +an DT B-NP +agency NN I-NP +disbanded VBN B-VP +by IN B-PP +the DT B-NP +new JJ I-NP +law NN I-NP +, , O +has VBZ B-VP +proved VBN I-VP +embarrassing JJ B-ADJP +for IN B-PP +five CD B-NP +senators NNS I-NP +who WP B-NP +received VBD B-VP +thousands NNS B-NP +of IN B-PP +dollars NNS B-NP +in IN B-PP +campaign NN B-NP +contributions NNS I-NP +from IN B-PP +Mr. NNP B-NP +Keating NNP I-NP +. . O + +Mr. NNP B-NP +Seidman NNP I-NP +said VBD B-VP +yesterday NN B-NP +, , O +for IN B-PP +example NN B-NP +, , O +that IN B-SBAR +Sen. NNP B-NP +Dennis NNP I-NP +DeConcini NNP I-NP +-LRB- ( O +D. NNP B-NP +, , O +Ariz. NNP B-NP +-RRB- ) O +, , O +who WP B-NP +received VBD B-VP +$ $ B-NP +48,100 CD I-NP +in IN B-PP +contributions NNS B-NP +from IN B-PP +Mr. NNP B-NP +Keating NNP I-NP +, , O +phoned VBD B-VP +Mr. NNP B-NP +Seidman NNP I-NP +to TO B-VP +request VB I-VP +that IN B-SBAR +he PRP B-NP +push VBP B-VP +for IN B-PP +a DT B-NP +sale NN I-NP +of IN B-PP +Lincoln NNP B-NP +before IN B-SBAR +it PRP B-NP +would MD B-VP +be VB I-VP +seized VBN I-VP +. . O + +After IN B-SBAR +the DT B-NP +government NN I-NP +lawsuit NN I-NP +was VBD B-VP +filed VBN I-VP +against IN B-PP +Lincoln NNP B-NP +, , O +Sen. NNP B-NP +DeConcini NNP I-NP +returned VBD B-VP +the DT B-NP +campaign NN I-NP +contributions NNS I-NP +. . O + +The DT B-NP +senator NN I-NP +'s POS B-NP +spokesman NN I-NP +said VBD B-VP +yesterday NN B-NP +that IN B-SBAR +he PRP B-NP +pushed VBD B-VP +for IN B-PP +the DT B-NP +sale NN I-NP +of IN B-PP +Lincoln NNP B-NP +because IN B-SBAR +`` `` O +hundreds NNS B-NP +of IN B-PP +Arizona NNP B-NP +jobs NNS I-NP +-LCB- ( O +at IN B-PP +Lincoln NNP B-NP +-RCB- ) O +were VBD B-VP +on IN B-PP +the DT B-NP +line NN I-NP +. . O +'' '' O + +Senate NNP B-NP +Banking NNP I-NP +Committee NNP I-NP +Chairman NNP I-NP +Donald NNP I-NP +Riegle NNP I-NP +-LRB- ( O +D. NNP B-NP +, , O +Mich NNP B-NP +. . O +-RRB- ) O +has VBZ B-VP +also RB I-VP +returned VBN I-VP +contributions NNS B-NP +he PRP B-NP +received VBD B-VP +from IN B-PP +Mr. NNP B-NP +Keating NNP I-NP +a DT B-NP +year NN I-NP +ago RB B-ADVP +. . O + +Sens. NNP O +John NNP O +Glenn NNP O +-LRB- ( O +D. NNP B-NP +, , O +Ohio NNP B-NP +-RRB- ) O +, , O +John NNP O +McCain NNP O +, , O +-LRB- ( O +R. NNP B-NP +, , O +Ariz. NNP B-NP +-RRB- ) O +and CC B-NP +Alan NNP I-NP +Cranston NNP I-NP +-LRB- ( O +D. NNP B-NP +, , O +Calif. NNP B-NP +-RRB- ) O +also RB B-ADVP +received VBD B-VP +substantial JJ B-NP +contributions NNS I-NP +from IN B-PP +Mr. NNP B-NP +Keating NNP I-NP +and CC O +sought VBD B-VP +to TO I-VP +intervene VB I-VP +on IN B-PP +behalf NN B-NP +of IN B-PP +Lincoln NNP B-NP +. . O + +House NNP B-NP +Banking NNP I-NP +Committee NNP I-NP +Chairman NNP I-NP +Henry NNP I-NP +Gonzalez NNP I-NP +-LRB- ( O +D. NNP B-NP +, , O +Texas NNP B-NP +-RRB- ) O +said VBD B-VP +Sen. NNP B-NP +Cranston NNP I-NP +volunteered VBD B-VP +to TO I-VP +appear VB I-VP +before IN B-PP +the DT B-NP +House NNP I-NP +committee NN I-NP +, , O +if IN B-SBAR +necessary JJ B-ADJP +. . O + +But CC O +a DT B-NP +committee NN I-NP +staff NN I-NP +member NN I-NP +said VBD B-VP +the DT B-NP +panel NN I-NP +is VBZ B-VP +unlikely JJ B-ADJP +to TO B-VP +pursue VB I-VP +closely RB B-ADVP +the DT B-NP +role NN I-NP +of IN B-PP +the DT B-NP +senators NNS I-NP +. . O + +At IN B-PP +the DT B-NP +hearing NN I-NP +, , O +Mr. NNP B-NP +Seidman NNP I-NP +said VBD B-VP +the DT B-NP +RTC NNP I-NP +has VBZ B-VP +already RB I-VP +pumped VBN I-VP +$ $ B-NP +729 CD I-NP +million CD I-NP +into IN B-PP +Lincoln NNP B-NP +for IN B-PP +liquidity NN B-NP +. . O + +He PRP B-NP +also RB B-ADVP +held VBD B-VP +out IN B-PRT +little JJ B-NP +hope NN I-NP +of IN B-PP +restitution NN B-NP +for IN B-PP +purchasers NNS B-NP +of IN B-PP +$ $ B-NP +225 CD I-NP +million CD I-NP +in IN B-PP +American NNP B-NP +Continental NNP I-NP +subordinated VBD I-NP +debt NN I-NP +. . O + +Some DT B-NP +of IN B-PP +those DT B-NP +debtholders NNS I-NP +have VBP B-VP +filed VBN I-VP +a DT B-NP +suit NN I-NP +, , O +saying VBG B-VP +they PRP B-NP +believed VBD B-VP +they PRP B-NP +were VBD B-VP +buying VBG I-VP +government-insured JJ B-NP +certificates NNS I-NP +of IN B-PP +deposit NN B-NP +. . O + +`` `` O +We PRP B-NP +have VBP B-VP +no DT B-NP +plans NNS I-NP +at IN B-PP +this DT B-NP +time NN I-NP +to TO B-VP +pay VB I-VP +off IN B-PRT +those DT B-NP +notes NNS I-NP +, , O +'' '' O +he PRP B-NP +said VBD B-VP +. . O + +Eastern NNP B-NP +Airlines NNPS I-NP +' POS B-NP +creditors NNS I-NP +committee NN I-NP +, , O +unhappy JJ B-ADJP +with IN B-PP +the DT B-NP +carrier NN I-NP +'s POS B-NP +plans NNS I-NP +for IN B-PP +emerging VBG B-VP +from IN B-PP +bankruptcy-law NN B-NP +proceedings NNS I-NP +, , O +asked VBD B-VP +its PRP$ B-NP +own JJ I-NP +experts NNS I-NP +to TO B-VP +devise VB I-VP +alternate JJ B-NP +approaches NNS I-NP +to TO B-PP +a DT B-NP +reorganization NN I-NP +. . O + +Representatives NNS B-NP +of IN B-PP +the DT B-NP +accounting NN I-NP +firm NN I-NP +of IN B-PP +Ernst NNP B-NP +& CC I-NP +Young NNP I-NP +and CC O +the DT B-NP +securities NNS I-NP +firm NN I-NP +of IN B-PP +Goldman NNP B-NP +, , I-NP +Sachs NNP I-NP +& CC I-NP +Co. NNP I-NP +, , O +hired VBN B-VP +by IN B-PP +creditors NNS B-NP +to TO B-VP +consult VB I-VP +on IN B-PP +Eastern NNP B-NP +'s POS B-NP +financial JJ I-NP +plans NNS I-NP +, , O +told VBD B-VP +the DT B-NP +committee NN I-NP +in IN B-PP +a DT B-NP +private JJ I-NP +meeting NN I-NP +yesterday NN B-NP +that IN B-SBAR +Eastern NNP B-NP +'s POS B-NP +latest JJS I-NP +plan NN I-NP +to TO B-VP +emerge VB I-VP +from IN B-PP +bankruptcy-law NN B-NP +protection NN I-NP +is VBZ B-VP +far RB B-ADJP +riskier JJR I-ADJP +than IN B-PP +an DT B-NP +earlier RBR I-NP +one CD I-NP +which WDT B-NP +won VBD B-VP +the DT B-NP +creditors NNS I-NP +' POS B-NP +approval NN I-NP +. . O + +According VBG B-PP +to TO B-PP +one CD B-NP +person NN I-NP +present JJ B-ADJP +at IN B-PP +the DT B-NP +meeting NN I-NP +, , O +Eastern NNP B-NP +'s POS B-NP +new JJ I-NP +plan NN I-NP +is VBZ B-VP +financially RB B-ADJP +`` `` I-ADJP +overly RB I-ADJP +optimistic JJ I-ADJP +. . O +'' '' O + +Asked VBN B-VP +about IN B-PP +the DT B-NP +consultants NNS I-NP +' POS B-NP +reports NNS I-NP +, , O +an DT B-NP +Eastern NNP I-NP +spokeswoman NN I-NP +said VBD B-VP +`` `` O +we PRP B-NP +totally RB B-VP +disagree VBP I-VP +. . O +'' '' O + +She PRP B-NP +said VBD B-VP +they PRP B-NP +have VBP B-VP +`` `` O +oversimplified VBN B-VP +and CC O +made VBD B-VP +some DT B-NP +erroneous JJ I-NP +assumptions NNS I-NP +that WDT B-NP +make VBP B-VP +their PRP$ B-NP +analysis NN I-NP +completely RB B-ADJP +off-base JJ I-ADJP +. . O +'' '' O + +At IN B-PP +a DT B-NP +later JJ I-NP +news NN I-NP +conference NN I-NP +here RB I-NP +, , O +Frank NNP B-NP +Lorenzo NNP I-NP +, , O +chairman NN B-NP +of IN B-PP +Eastern NNP B-NP +'s POS B-NP +parent NN I-NP +Texas NNP I-NP +Air NNP I-NP +Corp. NNP I-NP +, , O +said VBD B-VP +Eastern NNP B-NP +was VBD B-VP +exceeding VBG I-VP +its PRP$ B-NP +goals NNS I-NP +for IN B-PP +getting VBG B-VP +back RB B-ADVP +into IN B-PP +operation NN B-NP +and CC O +predicted VBD B-VP +it PRP B-NP +would MD B-VP +emerge VB I-VP +from IN B-PP +Chapter NN B-NP +11 CD I-NP +protection NN I-NP +from IN B-PP +creditors NNS B-NP +early JJ B-NP +next JJ I-NP +year NN I-NP +, , O +operating VBG B-VP +with IN B-PP +more JJR B-NP +service NN I-NP +than IN B-SBAR +it PRP B-NP +originally RB B-ADVP +had VBD B-VP +scheduled VBN I-VP +. . O + +He PRP B-NP +insisted VBD B-VP +, , O +as IN B-SBAR +he PRP B-NP +has VBZ B-VP +before RB B-ADVP +, , O +that IN B-SBAR +creditors NNS B-NP +would MD B-VP +be VB I-VP +paid VBN I-VP +in IN B-PP +full JJ B-ADJP +under IN B-PP +the DT B-NP +plan NN I-NP +. . O + +Mr. NNP B-NP +Lorenzo NNP I-NP +made VBD B-VP +no DT B-NP +mention NN I-NP +of IN B-PP +creditors NNS B-NP +' POS B-NP +negative JJ I-NP +response NN I-NP +to TO B-PP +his PRP$ B-NP +plan NN I-NP +. . O + +`` `` O +We PRP B-NP +'re VBP B-VP +in IN B-PP +the DT B-NP +process NN I-NP +of IN B-PP +discussing VBG B-VP +an DT B-NP +amended VBN I-NP +plan NN I-NP +with IN B-PP +the DT B-NP +creditors NNS I-NP +and CC O +anticipate VB B-VP +filing NN I-VP +that WDT B-NP +amended VBD I-NP +plan NN I-NP +shortly RB B-ADVP +, , O +'' '' O +Mr. NNP B-NP +Lorenzo NNP I-NP +told VBD B-VP +reporters NNS B-NP +. . O + +`` `` O +We PRP B-NP +'re VBP B-VP +meeting VBG I-VP +and CC I-VP +surpassing VBG I-VP +our PRP$ B-NP +goals NNS I-NP +, , O +'' '' O +he PRP B-NP +added VBD B-VP +. . O + +In IN B-PP +July NNP B-NP +, , O +Eastern NNP B-NP +and CC O +its PRP$ B-NP +creditors NNS I-NP +agreed VBD B-VP +on IN B-PP +a DT B-NP +reorganization NN I-NP +plan NN I-NP +that WDT B-NP +called VBD B-VP +for IN B-SBAR +Eastern NNP B-NP +to TO B-VP +sell VB I-VP +$ $ B-NP +1.8 CD I-NP +billion CD I-NP +in IN B-PP +assets NNS B-NP +and CC O +to TO B-VP +emerge VB I-VP +from IN B-PP +bankruptcy-law NN B-NP +protection NN I-NP +at IN B-PP +two-thirds NNS B-NP +its PRP$ I-NP +former JJ I-NP +size NN I-NP +. . O + +But CC O +after IN B-PP +selling VBG B-VP +off IN B-PRT +pieces NNS B-NP +such JJ B-PP +as IN I-PP +its PRP$ B-NP +East NNP I-NP +Coast NNP I-NP +shuttle NN I-NP +, , O +its PRP$ B-NP +Philadelphia NNP I-NP +hub NN I-NP +and CC O +various JJ B-NP +planes NNS I-NP +, , O +Eastern NNP B-NP +hit VBD B-VP +a DT B-NP +stumbling VBG I-NP +block NN I-NP +. . O + +It PRP B-NP +could MD B-VP +n't RB I-VP +sell VB I-VP +its PRP$ B-NP +South JJ I-NP +American JJ I-NP +routes NNS I-NP +, , O +one CD B-NP +of IN B-PP +the DT B-NP +major JJ I-NP +assets NNS I-NP +marked VBN B-VP +for IN B-PP +disposal NN B-NP +. . O + +Those DT B-NP +routes NNS I-NP +, , O +valued VBN B-VP +by IN B-PP +the DT B-NP +creditors NNS I-NP +' POS B-NP +professionals NNS I-NP +at IN B-PP +about RB B-NP +$ $ I-NP +400 CD I-NP +million CD I-NP +, , O +were VBD B-VP +to TO I-VP +be VB I-VP +sold VBN I-VP +to TO B-PP +AMR NNP B-NP +Corp. NNP I-NP +'s POS B-NP +American NNP I-NP +Airlines NNPS I-NP +. . O + +A DT B-NP +last-minute JJ I-NP +snag NN I-NP +in IN B-PP +negotiations NNS B-NP +with IN B-PP +AMR NNP B-NP +, , O +over IN B-PP +an DT B-NP +unrelated JJ I-NP +lawsuit NN I-NP +between IN B-PP +American NNP B-NP +and CC O +another DT B-NP +Texas NNP I-NP +Air NNP I-NP +unit NN I-NP +, , O +caused VBD B-VP +the DT B-NP +deal NN I-NP +to TO B-VP +collapse VB I-VP +. . O + +Eastern NNP B-NP +ultimately RB B-ADVP +decided VBD B-VP +it PRP B-NP +would MD B-VP +have VB I-VP +to TO I-VP +keep VB I-VP +and CC I-VP +operate VB I-VP +the DT B-NP +routes NNS I-NP +itself PRP B-NP +, , O +which WDT B-NP +would MD B-VP +leave VB I-VP +it PRP B-NP +with IN B-PP +less JJR B-NP +cash NN I-NP +for IN B-PP +its PRP$ B-NP +reorganization NN I-NP +. . O + +It PRP B-NP +also RB B-ADVP +would MD B-VP +leave VB I-VP +Eastern NNP B-NP +a DT B-NP +bigger JJR I-NP +carrier NN I-NP +than IN B-PP +the DT B-NP +scaled-down JJ I-NP +one CD I-NP +proposed VBN B-VP +under IN B-PP +the DT B-NP +initial JJ I-NP +plan NN I-NP +. . O + +Those DT B-NP +changes NNS I-NP +in IN B-PP +its PRP$ B-NP +condition NN I-NP +meant VBD B-VP +the DT B-NP +reorganization NN I-NP +plan NN I-NP +previously RB B-VP +presented VBD I-VP +to TO B-PP +creditors NNS B-NP +would MD B-VP +have VB I-VP +to TO I-VP +be VB I-VP +revamped VBN I-VP +. . O + +Since IN B-PP +then RB B-NP +, , O +Eastern NNP B-NP +has VBZ B-VP +been VBN I-VP +negotiating VBG I-VP +with IN B-PP +creditors NNS B-NP +over IN B-PP +revisions NNS B-NP +, , O +but CC O +the DT B-NP +creditors NNS I-NP +committee NN I-NP +has VBZ B-VP +been VBN I-VP +having VBG I-VP +problems NNS B-NP +with IN B-PP +the DT B-NP +revisions NNS I-NP +. . O + +The DT B-NP +committee NN I-NP +has VBZ B-VP +two CD B-NP +groups NNS I-NP +of IN B-PP +experts NNS B-NP +it PRP B-NP +calls VBZ B-VP +on IN B-PP +to TO B-VP +analyze VB I-VP +Eastern NNP B-NP +'s POS B-NP +plans NNS I-NP +. . O + +Both DT B-NP +said VBD B-VP +the DT B-NP +new JJ I-NP +plan NN I-NP +would MD B-VP +n't RB I-VP +work VB I-VP +. . O + +Ernst NNP B-NP +& CC I-NP +Young NNP I-NP +said VBD B-VP +Eastern NNP B-NP +'s POS B-NP +plans NNS I-NP +will MD B-VP +miss VB I-VP +its PRP$ B-NP +projections NNS I-NP +of IN B-PP +earnings NNS B-NP +before IN B-PP +interest NN B-NP +, , I-NP +tax NN I-NP +and CC I-NP +depreciation NN I-NP +by IN B-PP +$ $ B-NP +100 CD I-NP +million CD I-NP +, , O +and CC O +that IN B-SBAR +Eastern NNP B-NP +'s POS B-NP +plan NN I-NP +presented VBD B-VP +no DT B-NP +comfort NN I-NP +level NN I-NP +, , O +according VBG B-PP +to TO B-PP +a DT B-NP +source NN I-NP +present JJ B-ADJP +at IN B-PP +yesterday NN B-NP +'s POS B-NP +session NN I-NP +. . O + +Experts NNS B-NP +from IN B-PP +Goldman NNP B-NP +Sachs NNP I-NP +estimated VBD B-VP +Eastern NNP B-NP +would MD B-VP +miss VB I-VP +the DT B-NP +same JJ I-NP +mark NN I-NP +by IN B-PP +$ $ B-NP +120 CD I-NP +million CD I-NP +to TO I-NP +$ $ I-NP +135 CD I-NP +million CD I-NP +, , O +the DT B-NP +source NN I-NP +said VBD B-VP +. . O + +The DT B-NP +experts NNS I-NP +said VBD B-VP +they PRP B-NP +expected VBD B-VP +Eastern NNP B-NP +would MD B-VP +have VB I-VP +to TO I-VP +issue VB I-VP +new JJ B-NP +debt NN I-NP +to TO B-VP +cover VB I-VP +its PRP$ B-NP +costs NNS I-NP +, , O +and CC O +that IN B-SBAR +it PRP B-NP +would MD B-VP +generate VB I-VP +far RB B-NP +less JJR I-NP +cash NN I-NP +than IN B-PP +anticipated VBN B-VP +. . O + +Other JJ B-NP +costs NNS I-NP +also RB B-ADVP +would MD B-VP +increase VB I-VP +, , O +including VBG B-PP +maintenance NN B-NP +, , O +because IN B-SBAR +Eastern NNP B-NP +has VBZ B-VP +an DT B-NP +older JJR I-NP +fleet NN I-NP +. . O + +At IN B-PP +the DT B-NP +news NN I-NP +conference NN I-NP +, , O +Mr. NNP B-NP +Lorenzo NNP I-NP +and CC O +Eastern NNP B-NP +President NNP I-NP +Phil NNP I-NP +Bakes NNP I-NP +presented VBD B-VP +a DT B-NP +far RB I-NP +rosier JJR I-NP +assessment NN I-NP +. . O + +Flanked VBN B-VP +by IN B-PP +flight NN B-NP +attendants NNS I-NP +, , O +pilots NNS B-NP +and CC O +gate NN B-NP +agents NNS I-NP +dressed VBN B-VP +in IN B-PP +spiffy JJ B-NP +new JJ I-NP +blue JJ I-NP +uniforms NNS I-NP +, , O +they PRP B-NP +said VBD B-VP +Eastern NNP B-NP +has VBZ B-VP +exceeded VBN I-VP +its PRP$ B-NP +operational JJ I-NP +goals NNS I-NP +and CC O +is VBZ B-VP +filling VBG I-VP +its PRP$ B-NP +seats NNS I-NP +. . O + +Starting VBG B-VP +next JJ B-NP +month NN I-NP +, , O +Eastern NNP B-NP +will MD B-VP +begin VB I-VP +flying VBG I-VP +775 CD B-NP +flights NNS I-NP +daily JJ B-ADVP +instead RB B-PP +of IN I-PP +the DT B-NP +previously RB I-NP +announced VBN I-NP +700 CD I-NP +, , O +they PRP B-NP +said VBD B-VP +. . O + +Mr. NNP B-NP +Bakes NNP I-NP +declined VBD B-VP +to TO I-VP +give VB I-VP +out IN B-ADVP +Eastern NNP B-NP +'s POS B-NP +daily JJ I-NP +losses NNS I-NP +, , O +but CC O +said VBD B-VP +he PRP B-NP +did VBD B-VP +n't RB I-VP +expect VB I-VP +Eastern NNP B-NP +would MD B-VP +have VB I-VP +to TO I-VP +dip VB I-VP +into IN B-PP +the DT B-NP +cash NN I-NP +from IN B-PP +asset NN B-NP +sales NNS I-NP +currently RB B-VP +held VBN I-VP +in IN B-PP +escrow NN B-NP +. . O + +These DT B-NP +accounts NNS I-NP +hold VBP B-VP +several JJ B-NP +hundred CD I-NP +million CD I-NP +dollars NNS I-NP +, , O +primarily RB B-ADVP +from IN B-PP +asset NN B-NP +sales NNS I-NP +. . O + +The DT B-NP +plan NN I-NP +Eastern NNP B-NP +hopes VBZ B-VP +to TO I-VP +pursue VB I-VP +, , O +he PRP B-NP +said VBD B-VP +, , O +calls VBZ B-VP +for IN B-SBAR +Eastern NNP B-NP +to TO B-VP +have VB I-VP +$ $ B-NP +390 CD I-NP +million CD I-NP +in IN B-PP +cash NN B-NP +by IN B-PP +year NN B-NP +'s POS B-NP +end NN I-NP +. . O + +Both DT B-NP +he PRP B-NP +and CC O +Mr. NNP B-NP +Lorenzo NNP I-NP +predicted VBD B-VP +that DT B-NP +plan NN I-NP +might MD B-VP +be VB I-VP +confirmed VBN I-VP +in IN B-PP +January NNP B-NP +. . O + +As IN B-PP +to TO B-PP +negotiations NNS B-NP +with IN B-PP +creditors NNS B-NP +, , O +Mr. NNP B-NP +Lorenzo NNP I-NP +said VBD B-VP +in IN B-PP +remarks NNS B-NP +after IN B-PP +the DT B-NP +conference NN I-NP +`` `` O +we PRP B-NP +'ll MD B-VP +have VB I-VP +to TO I-VP +see VB I-VP +how WRB B-ADVP +they PRP B-NP +-LCB- ( O +talks NNS B-NP +-RCB- ) O +come VB B-VP +along IN B-PRT +. . O +'' '' O + +However RB B-ADVP +, , O +he PRP B-NP +added VBD B-VP +, , O +`` `` O +it PRP B-NP +'s VBZ B-VP +not RB O +a DT B-NP +requirement NN I-NP +that IN B-SBAR +the DT B-NP +plan NN I-NP +be VB B-VP +accepted VBN I-VP +by IN B-PP +creditors NNS B-NP +. . O + +It PRP B-NP +must MD B-VP +be VB I-VP +accepted VBN I-VP +by IN B-PP +the DT B-NP +court NN I-NP +. . O +'' '' O + +Under IN B-PP +bankruptcy NN B-NP +law NN I-NP +, , O +Eastern NNP B-NP +has VBZ B-VP +exclusive JJ B-NP +rights NNS I-NP +for IN B-PP +a DT B-NP +certain JJ I-NP +period NN I-NP +to TO B-VP +develop VB I-VP +its PRP$ B-NP +own JJ I-NP +reorganization NN I-NP +plan NN I-NP +. . O + +That DT B-NP +deadline NN I-NP +has VBZ B-VP +been VBN I-VP +extended VBN I-VP +once RB B-ADVP +and CC O +could MD B-VP +be VB I-VP +extended VBN I-VP +again RB B-ADVP +. . O + +If IN B-SBAR +Eastern NNP B-NP +can MD B-VP +get VB I-VP +creditor NN B-NP +support NN I-NP +, , O +court NN B-NP +confirmation NN I-NP +of IN B-PP +its PRP$ B-NP +plan NN I-NP +could MD B-VP +be VB I-VP +relatively RB B-ADJP +swift JJ I-ADJP +. . O + +But CC O +creditors NNS B-NP +are VBP B-VP +free JJ B-ADJP +to TO B-VP +press VB I-VP +for IN B-PP +court NN B-NP +approval NN I-NP +of IN B-PP +their PRP$ B-NP +own JJ I-NP +plan NN I-NP +, , O +or CC O +the DT B-NP +court NN I-NP +could MD B-VP +ignore VB I-VP +both DT B-NP +sides NNS I-NP +and CC O +draw VB B-VP +its PRP$ B-NP +own JJ I-NP +. . O + +In IN B-PP +any DT B-NP +event NN I-NP +, , O +some DT B-NP +people NNS I-NP +familiar JJ B-ADJP +with IN B-PP +the DT B-NP +case NN I-NP +question NN B-VP +whether IN B-SBAR +the DT B-NP +court NN I-NP +will MD B-VP +act VB I-VP +by IN B-PP +January NNP B-NP +as IN B-SBAR +forecast NN B-VP +by IN B-PP +Mr. NNP B-NP +Lorenzo NNP I-NP +and CC O +Mr. NNP B-NP +Bakes NNP I-NP +. . O + +Eastern NNP B-NP +sought VBD B-VP +bankruptcy-law NN B-NP +protection NN I-NP +a DT B-NP +few JJ I-NP +days NNS I-NP +after IN B-SBAR +a DT B-NP +crippling JJ I-NP +strike NN I-NP +began VBD B-VP +March NNP B-NP +4 CD I-NP +. . O + +Mr. NNP B-NP +Lorenzo NNP I-NP +told VBD B-VP +reporters NNS B-NP +the DT B-NP +reorganization NN I-NP +Eastern NNP B-NP +is VBZ B-VP +pursuing VBG I-VP +would MD B-VP +create VB I-VP +a DT B-NP +carrier NN I-NP +85 CD B-NP +% NN I-NP +to TO I-NP +90 CD I-NP +% NN I-NP +of IN B-PP +the DT B-NP +size NN I-NP +of IN B-PP +the DT B-NP +pre-bankruptcy NN I-NP +Eastern NNP I-NP +. . O + +He PRP B-NP +projected VBD B-VP +it PRP B-NP +would MD B-VP +be VB I-VP +operating VBG I-VP +about IN B-NP +1,000 CD I-NP +flights NNS I-NP +a DT B-NP +day NN I-NP +by IN B-PP +late JJ B-NP +spring NN I-NP +, , O +only RB B-ADJP +slightly RB I-ADJP +fewer JJR I-ADJP +than IN B-PP +the DT B-NP +carrier NN I-NP +'s POS B-NP +old JJ I-NP +volume NN I-NP +of IN B-PP +1,050 CD B-NP +a DT B-NP +day NN I-NP +. . O + +HOPES NNS B-NP +OF IN B-PP +SIMPLIFYING VBG B-VP +the DT B-NP +corporate JJ I-NP +minimum JJ I-NP +tax NN I-NP +before IN B-PP +1990 CD B-NP +are VBP B-VP +weakening VBG I-VP +. . O + +The DT B-NP +method NN I-NP +of IN B-PP +calculating VBG B-VP +the DT B-NP +20 CD I-NP +% NN I-NP +tax NN I-NP +, , O +paid VBN B-VP +if IN B-SBAR +it PRP B-NP +exceeds VBZ B-VP +tax NN B-NP +figured VBD B-VP +the DT B-NP +regular JJ I-NP +way NN I-NP +, , O +is VBZ B-VP +due JJ B-ADJP +for IN B-PP +a DT B-NP +change NN I-NP +in IN B-PP +1990 CD B-NP +, , O +thanks VBZ B-NP +to TO B-PP +1986 CD B-NP +'s POS B-NP +tax NN I-NP +act NN I-NP +. . O + +But CC O +most RBS B-NP +experts NNS I-NP +agree VBP B-VP +that IN B-SBAR +the DT B-NP +concept NN I-NP +that WDT B-NP +is VBZ B-VP +to TO I-VP +be VB I-VP +introduced VBN I-VP +drags VBZ B-VP +in IN B-ADVP +great JJ B-NP +complexity NN I-NP +; : O +they PRP B-NP +have VBP B-VP +been VBN I-VP +trying VBG I-VP +to TO I-VP +head VB I-VP +it PRP B-NP +off IN B-PRT +this DT B-NP +year NN I-NP +. . O + +Ways NNS B-NP +and CC I-NP +Means NNP I-NP +Chairman NNP I-NP +Rostenkowski NNP I-NP +backed VBD B-VP +a DT B-NP +simplification NN I-NP +plan NN I-NP +in IN B-PP +the DT B-NP +pending VBG I-NP +House NNP I-NP +tax NN I-NP +bill NN I-NP +, , O +but CC O +the DT B-NP +plan NN I-NP +turns VBZ B-VP +out IN B-PRT +to TO B-VP +be VB I-VP +a DT B-NP +big JJ I-NP +revenue NN I-NP +loser NN I-NP +. . O + +Now RB B-ADVP +the DT B-NP +Senate NNP I-NP +'s POS B-NP +stripped-down JJ I-NP +bill NN I-NP +omits VBZ B-VP +any DT B-NP +proposal NN I-NP +to TO B-VP +deal VB I-VP +with IN B-PP +the DT B-NP +corporate JJ I-NP +tax NN I-NP +. . O + +Proponents NNS B-NP +of IN B-PP +simplification NN B-NP +fear NN B-VP +that IN B-SBAR +the DT B-NP +chances NNS I-NP +of IN B-PP +getting VBG B-VP +it PRP B-NP +into IN B-PP +the DT B-NP +final JJ I-NP +bill NN I-NP +are VBP B-VP +waning VBG I-VP +. . O + +`` `` O +We PRP B-NP +hear VBP B-VP +it PRP B-NP +has VBZ B-VP +low JJ B-NP +priority NN I-NP +on IN B-PP +the DT B-NP +House NNP I-NP +side NN I-NP +, , O +'' '' O +says VBZ B-VP +Samuel NNP B-NP +Starr NNP I-NP +of IN B-PP +Coopers NNP B-NP +& CC I-NP +Lybrand NNP I-NP +, , I-NP +CPAs NNS I-NP +. . O + +If IN B-SBAR +the DT B-NP +law NN I-NP +is VBZ B-VP +n't RB I-VP +changed VBN I-VP +, , O +he PRP B-NP +says VBZ B-VP +, , O +`` `` O +we PRP B-NP +are VBP B-VP +left VBN I-VP +staring VBG I-VP +at IN B-PP +rules NNS B-NP +that WDT B-NP +are VBP B-VP +almost RB B-ADJP +impossible JJ I-ADJP +to TO B-VP +implement VB I-VP +, , O +because IN B-SBAR +there EX B-NP +are VBP B-VP +so RB B-NP +many JJ I-NP +complex JJ I-NP +depreciation NN I-NP +calculations NNS I-NP +to TO B-VP +do VB I-VP +. . O +'' '' O + +But CC O +Congress NNP B-NP +still RB B-ADVP +could MD B-VP +resolve VB I-VP +the DT B-NP +issue NN I-NP +with IN B-PP +other JJ B-NP +legislation NN I-NP +this DT B-NP +year NN I-NP +or CC O +next JJ B-NP +, , O +Starr NNP B-NP +adds VBZ B-VP +. . O + +HUGO NNP B-NP +'S VBZ B-NP +RAVAGES NNS I-NP +may MD B-VP +be VB I-VP +offset VB I-VP +by IN B-PP +immediate JJ B-NP +claims NNS I-NP +for IN B-PP +tax NN B-NP +refunds NNS I-NP +. . O + +This DT B-NP +law NN I-NP +aids VBZ B-VP +hurricane-wracked JJ B-NP +locales NNS I-NP +named VBN B-VP +by IN B-PP +the DT B-NP +president NN I-NP +as IN B-PP +disaster NN B-NP +areas NNS I-NP +, , O +as RB B-CONJP +well RB I-CONJP +as IN I-CONJP +regions NNS B-NP +so RB B-VP +designated VBN I-VP +after IN B-PP +other JJ B-NP +1989 CD I-NP +disasters NNS I-NP +. . O + +It PRP B-NP +lets VBZ B-VP +victims NNS B-NP +elect VBP B-VP +to TO I-VP +deduct VB I-VP +casualty NN B-NP +losses NNS I-NP +on IN B-PP +either DT O +1989 CD B-NP +or CC O +amended VBN B-NP +1988 CD I-NP +returns NNS B-NP +, , O +whichever WDT B-NP +offers VBZ B-VP +the DT B-NP +larger JJR I-NP +tax NN I-NP +benefit NN I-NP +; : O +they PRP B-NP +have VBP B-VP +until IN B-PP +April NNP B-NP +16 CD I-NP +to TO B-VP +choose VB I-VP +. . O + +Amending VBG B-VP +a DT B-NP +1988 CD I-NP +return NN I-NP +to TO B-VP +claim VB I-VP +a DT B-NP +refund NN I-NP +brings VBZ B-VP +cash NN B-NP +faster RBR B-ADVP +; : O +but CC O +for IN B-PP +personal JJ B-NP +losses NNS I-NP +, , O +there EX B-NP +are VBP B-VP +other JJ B-NP +factors NNS I-NP +to TO B-VP +consider VB I-VP +, , O +notes NNS B-VP +publisher NN B-NP +Prentice NNP I-NP +Hall NNP I-NP +. . O + +A DT B-NP +loss NN I-NP +-- : O +after IN B-PP +insurance NN B-NP +recoveries NNS I-NP +-- : O +is VBZ B-VP +deductible JJ B-ADJP +only RB B-ADVP +to TO B-PP +the DT B-NP +extent NN I-NP +that IN B-SBAR +it PRP B-NP +exceeds VBZ B-VP +$ $ B-NP +100 CD I-NP +and CC O +that IN B-SBAR +the DT B-NP +year NN I-NP +'s POS B-NP +total JJ I-NP +losses NNS I-NP +exceed VBP B-VP +10 CD B-NP +% NN I-NP +of IN B-PP +adjusted VBN B-NP +gross JJ I-NP +income NN I-NP +; : O +victims NNS B-NP +may MD B-VP +pick VB I-VP +the DT B-NP +year NN I-NP +when WRB B-ADVP +income NN B-NP +is VBZ B-VP +lower JJR B-ADJP +and CC O +deductions NNS B-NP +higher JJR B-ADJP +. . O + +In IN B-PP +filing VBG B-VP +an DT O +original JJ O +-LRB- ( O +not RB B-ADJP +amended VBN I-ADJP +-RRB- ) O +return NN B-NP +, , O +a DT B-NP +couple NN I-NP +should MD B-VP +consider VB I-VP +whether IN B-SBAR +damaged VBN B-NP +property NN I-NP +is VBZ B-VP +owned VBN I-VP +jointly RB B-ADVP +or CC I-ADVP +separately RB I-ADVP +and CC O +whether IN B-SBAR +one CD B-NP +spouse NN I-NP +has VBZ B-VP +larger JJR B-NP +income NN I-NP +; : O +that WDT B-NP +may MD B-VP +determine VB I-VP +whether IN B-SBAR +they PRP B-NP +should MD B-VP +file VB I-VP +jointly RB B-ADVP +or CC I-ADVP +separately RB I-ADVP +. . O + +THE DT B-NP +IRS NNP I-NP +DELAYS VBZ B-VP +several JJ B-NP +deadlines NNS I-NP +for IN B-PP +Hugo NNP B-NP +'s POS B-NP +victims NNS I-NP +. . O + +Returns NNS B-NP +for IN B-PP +1988 CD B-NP +from IN B-PP +people NNS B-NP +with IN B-PP +six-month JJ B-NP +filing NN I-NP +extensions NNS I-NP +were VBD B-VP +due JJ B-ADJP +Monday NNP B-NP +, , O +but CC O +the DT B-NP +IRS NNP I-NP +says VBZ B-VP +people NNS B-NP +in IN B-PP +the DT B-NP +disaster NN I-NP +areas NNS I-NP +wo MD B-VP +n't RB I-VP +be VB I-VP +penalized VBN I-VP +for IN B-PP +late JJ B-NP +filing NN I-NP +if IN B-SBAR +their PRP$ B-NP +returns NNS I-NP +are VBP B-VP +marked VBN I-VP +`` `` O +Hugo NNP B-NP +'' '' O +and CC O +postmarked VBN B-VP +by IN B-PP +Jan. NNP B-NP +16 CD I-NP +. . O + +Interest NN B-NP +will MD B-VP +be VB I-VP +imposed VBN I-VP +on IN B-PP +unpaid JJ B-NP +taxes NNS I-NP +, , O +but CC O +late-payment NN B-NP +penalties NNS I-NP +on IN B-PP +the DT B-NP +returns NNS I-NP +will MD B-VP +be VB I-VP +waived VBN I-VP +if IN B-SBAR +the DT B-NP +balance NN I-NP +due JJ B-ADJP +and CC I-ADJP +paid VBN I-ADJP +is VBZ B-VP +10 CD B-NP +% NN I-NP +or CC I-NP +less JJR I-NP +of IN B-PP +the DT B-NP +liability NN I-NP +. . O + +IRS NNP B-NP +Notice NN I-NP +89-136 CD I-NP +describes VBZ B-VP +this DT B-NP +and CC O +other JJ B-NP +deadline NN I-NP +relief NN I-NP +for IN B-PP +Hugo NNP B-NP +'s POS B-NP +victims NNS I-NP +. . O + +Among IN B-PP +the DT B-NP +provisions NNS I-NP +: : O +Fiscal-year JJ B-NP +taxpayers NNS I-NP +with IN B-PP +returns NNS B-NP +due JJ B-ADJP +last JJ B-NP +Monday NNP I-NP +wo MD B-VP +n't RB I-VP +be VB I-VP +penalized VBN I-VP +if IN B-SBAR +they PRP B-NP +file VBP B-VP +-- : O +or CC O +request VB B-VP +an DT B-NP +extension NN I-NP +-- : O +and CC O +pay VB B-VP +tax NN B-NP +due JJ B-ADJP +by IN B-PP +Nov. NNP B-NP +15 CD I-NP +. . O + +Excise-tax JJ B-NP +returns NNS I-NP +due JJ B-ADJP +by IN B-PP +Oct. NNP B-NP +31 CD I-NP +or CC O +Nov. NNP B-NP +30 CD I-NP +may MD B-VP +be VB I-VP +delayed VBN I-VP +to TO B-PP +Jan. NNP B-NP +16 CD I-NP +. . O + +Extensions NNS B-NP +ca MD B-VP +n't RB I-VP +be VB I-VP +granted VBN I-VP +for IN B-PP +filing VBG B-VP +employment-tax JJ B-NP +returns NNS I-NP +due JJ B-ADJP +Oct. NNP B-NP +31 CD I-NP +or CC B-PP +for IN B-PP +depositing VBG B-VP +withheld VBN B-NP +taxes NNS I-NP +, , O +but CC O +late JJ B-NP +penalties NNS I-NP +will MD B-VP +be VB I-VP +abated VBN I-VP +for IN B-PP +deposits NNS B-NP +made VBN B-VP +by IN B-PP +Nov. NNP B-NP +15 CD I-NP +. . O + +The DT B-NP +notice NN I-NP +also RB B-ADVP +grants VBZ B-VP +relief NN B-NP +for IN B-PP +certain JJ B-NP +estate-tax JJ I-NP +returns NNS I-NP +. . O + +ONE-DAY JJ B-NP +JAUNTS NNS I-NP +in IN B-PP +a DT B-NP +chartered JJ I-NP +boat NN I-NP +were VBD B-VP +perks NNS B-NP +for IN B-PP +permanent JJ B-NP +staffers NNS I-NP +of IN B-PP +American NNP B-NP +Business NNP I-NP +Service NNP I-NP +Corp. NNP I-NP +, , O +a DT B-NP +Costa NNP I-NP +Mesa NNP I-NP +, , I-NP +Calif. NNP I-NP +, , I-NP +supplier NN I-NP +of IN B-PP +temporary JJ B-NP +workers NNS I-NP +. . O + +The DT B-NP +IRS NNP I-NP +denied VBD B-VP +cost NN B-NP +deductions NNS I-NP +because IN B-SBAR +few NN B-NP +of IN B-PP +the DT B-NP +temps NNS I-NP +got VBD B-VP +to TO I-VP +go VB I-VP +aboard RB B-ADVP +. . O + +But CC O +the DT B-NP +Tax NNP I-NP +Court NNP I-NP +said VBD B-VP +the DT B-NP +limitations NNS I-NP +were VBD B-VP +reasonable JJ B-ADJP +and CC I-ADJP +realistic JJ I-ADJP +and CC O +allowed VBD B-VP +the DT B-NP +deductions NNS I-NP +. . O + +USED-CAR NN B-NP +BUYERS NNS I-NP +who WP B-NP +try VBP B-VP +to TO I-VP +avoid VB I-VP +sales NNS B-NP +tax VB I-NP +by IN B-PP +understating VBG B-VP +prices NNS B-NP +paid VBN B-VP +in IN B-PP +private JJ B-NP +deals NNS I-NP +are VBP B-VP +the DT B-NP +targets NNS I-NP +of IN B-PP +a DT B-NP +New NNP I-NP +York NNP I-NP +drive NN I-NP +. . O + +Estimating VBG B-VP +that IN B-SBAR +the DT B-NP +state NN I-NP +may MD B-VP +lose VB I-VP +$ $ B-NP +15 CD I-NP +million CD I-NP +a DT B-NP +year NN I-NP +, , O +officials NNS B-NP +announced VBD B-VP +the DT B-NP +filing NN I-NP +of IN B-PP +15 CD B-NP +criminal JJ I-NP +actions NNS I-NP +and CC O +`` `` O +hundreds NNS B-NP +'' '' O +of IN B-PP +civil JJ B-NP +penalties NNS I-NP +. . O + +WHEN WRB B-ADVP +AN DT B-NP +IRA NNP I-NP +OWNER NNP I-NP +dies VBZ B-VP +, , O +the DT B-NP +trustee NN I-NP +of IN B-PP +the DT B-NP +individual JJ I-NP +retirement NN I-NP +account NN I-NP +must MD B-VP +file VB I-VP +forms NNS B-NP +5498 CD I-NP +reporting VBG B-VP +market NN B-NP +values NNS I-NP +relating VBG B-VP +to TO B-PP +the DT B-NP +decedent NN I-NP +and CC O +each DT B-NP +beneficiary NN I-NP +, , O +with IN B-PP +copies NNS B-NP +to TO B-PP +the DT B-NP +executor NN I-NP +and CC I-NP +beneficiaries NNS I-NP +. . O + +IRS NNP B-NP +Revenue NN I-NP +Procedure NN I-NP +89-52 CD I-NP +describes VBZ B-VP +the DT B-NP +reporting VBG I-NP +requirements NNS I-NP +. . O + +BIGGER JJR B-ADJP +THAN IN B-PP +A DT B-NP +BREADBOX NN I-NP +was VBD B-VP +this DT B-NP +cash NN I-NP +hoarder NN I-NP +'s POS B-NP +reputation NN I-NP +for IN B-PP +honesty NN B-NP +. . O + +People NNS B-NP +often RB B-ADVP +cite VBP B-VP +frugality NN B-NP +and CC O +distrust NN B-NP +of IN B-PP +banks NNS B-NP +to TO B-VP +justify VB I-VP +cash NN B-NP +caches NNS I-NP +to TO B-PP +the DT B-NP +IRS NNP I-NP +. . O + +Gregory NNP B-NP +Damonne NNP I-NP +Brown NNP I-NP +of IN B-PP +Fremont NNP B-NP +, , O +Calif. NNP B-NP +, , O +a DT B-NP +hardworking JJ I-NP +, , I-NP +reclusive JJ I-NP +young JJ I-NP +bachelor NN I-NP +, , O +told VBD B-VP +that DT B-NP +story NN I-NP +to TO B-PP +the DT B-NP +Tax NNP I-NP +Court NNP I-NP +. . O + +But CC O +judges NNS B-NP +usually RB B-ADVP +find VBP B-VP +the DT B-NP +real JJ I-NP +aim NN I-NP +is VBZ B-VP +to TO B-VP +escape VB I-VP +tax NN B-NP +on IN B-PP +hidden VBN B-NP +income NN I-NP +; : O +and CC O +the DT B-NP +IRS NNP I-NP +said VBD B-VP +Brown NNP B-NP +must MD B-VP +have VB I-VP +had VBN I-VP +such JJ B-NP +income NN I-NP +-- : O +although IN B-SBAR +it PRP B-NP +uncovered VBD B-VP +no DT B-NP +source NN I-NP +-- : O +because IN B-SBAR +he PRP B-NP +deposited VBD B-VP +$ $ B-NP +124,732 CD I-NP +in IN B-PP +a DT B-NP +bank NN I-NP +account NN I-NP +in IN B-PP +1982-84 CD B-NP +while IN B-SBAR +reporting VBG B-VP +income NN B-NP +of IN B-PP +only RB B-NP +$ $ I-NP +52,012 CD I-NP +. . O + +Brown NNP B-NP +'s POS B-NP +story NN I-NP +: : O + +The DT B-NP +deposits NNS I-NP +came VBD B-VP +from IN B-PP +savings NNS B-NP +kept VBD B-VP +in IN B-PP +a DT B-NP +Tupperware NNP I-NP +breadbox NN I-NP +; : O +he PRP B-NP +saved VBD B-VP +$ $ B-NP +47,000 CD I-NP +in IN B-PP +1974-81 CD B-NP +by IN B-PP +living VBG B-VP +with IN B-PP +family NN B-NP +members NNS I-NP +and CC O +pinching VBG B-VP +pennies NNS B-NP +and CC O +$ $ B-NP +45,000 CD I-NP +of IN B-PP +secret JJ B-NP +gifts NNS I-NP +from IN B-PP +his PRP$ B-NP +remorseful JJ I-NP +father NN I-NP +, , O +who WP B-NP +had VBD B-VP +abandoned VBN I-VP +the DT B-NP +family NN I-NP +in IN B-PP +1955 CD B-NP +. . O + +Brown NNP B-NP +had VBD B-VP +no DT B-NP +proof NN I-NP +; : O +but CC O +testimony NN B-NP +of IN B-PP +his PRP$ B-NP +mother NN I-NP +and CC I-NP +stepmother NN I-NP +about IN B-PP +his PRP$ B-NP +father NN I-NP +and CC O +of IN B-PP +an DT B-NP +ex-employer NN I-NP +about IN B-PP +his PRP$ B-NP +honesty NN I-NP +and CC I-NP +habits NNS I-NP +satisfied VBD B-VP +a DT B-NP +judge NN I-NP +that IN B-SBAR +Brown NNP B-NP +was VBD B-VP +truthful JJ B-ADJP +and CC O +his PRP$ B-NP +tale NN I-NP +of IN B-PP +gifts NNS B-NP +was VBD B-VP +possible JJ B-ADJP +. . O + +The DT B-NP +IRS NNP I-NP +offered VBD B-VP +no DT B-NP +evidence NN I-NP +of IN B-PP +hidden VBN B-NP +sources NNS I-NP +of IN B-PP +taxable JJ B-NP +income NN I-NP +, , O +so RB O +Judge NNP B-NP +Shields NNP I-NP +rejected VBD B-VP +its PRP$ B-NP +claims NNS I-NP +. . O + +BRIEFS NNS B-NP +: : O + +Asked VBN B-VP +how WRB B-ADVP +he PRP B-NP +made VBD B-VP +charitable JJ B-NP +gifts NNS I-NP +of IN B-PP +$ $ B-NP +26,350 CD I-NP +out IN B-ADVP +of IN B-PP +reported VBN B-NP +two-year JJ I-NP +income NN I-NP +of IN B-PP +$ $ B-NP +46,892 CD I-NP +, , O +Thomas NNP B-NP +H. NNP I-NP +McFall NNP I-NP +of IN B-PP +Bryan NNP B-NP +, , O +Texas NNP B-NP +, , O +told VBD B-VP +the DT B-NP +Tax NNP I-NP +Court NNP I-NP +he PRP B-NP +had VBD B-VP +understated VBN I-VP +his PRP$ B-NP +income NN I-NP +. . O + +The DT B-NP +court NN I-NP +rejected VBD B-VP +his PRP$ B-NP +incredible JJ I-NP +claims NNS I-NP +, , O +denied VBD B-VP +his PRP$ B-NP +deductions NNS I-NP +, , O +and CC O +imposed VBD B-VP +a DT B-NP +negligence NN I-NP +penalty NN I-NP +... : O +. . O + +Rep. NNP B-NP +Schaefer NNP I-NP +-LRB- ( O +R. NNP B-NP +, , O +Colo. NNP B-NP +-RRB- ) O +entered VBD B-VP +a DT B-NP +bill NN I-NP +to TO B-VP +exempt VB I-VP +from IN B-PP +tax NN B-NP +rewards NNS B-NP +for IN B-PP +tips NNS B-NP +leading VBG B-VP +to TO B-PP +the DT B-NP +arrest NN I-NP +of IN B-PP +violent JJ B-NP +criminals NNS I-NP +. . O + +Kay NNP B-NP +Peterson NNP I-NP +mounts NNS B-VP +her PRP$ B-NP +bicycle NN I-NP +and CC O +grinds VBZ B-VP +up IN B-PRT +yet RB B-NP +another DT I-NP +steep NN I-NP +, , I-NP +rocky JJ I-NP +path NN I-NP +seemingly RB B-ADJP +suitable JJ I-ADJP +only RB B-ADVP +for IN B-PP +mountain NN B-NP +goats NNS I-NP +. . O + +After IN B-PP +a DT B-NP +tortuous JJ I-NP +climb NN I-NP +, , O +she PRP B-NP +is VBZ B-VP +rewarded VBN I-VP +by IN B-PP +a DT B-NP +picture-postcard NN I-NP +vista NN I-NP +: : O +a DT B-NP +glade NN I-NP +of IN B-PP +golden JJ B-NP +aspens NNS I-NP +under IN B-PP +an DT B-NP +azure JJ I-NP +Indian-summer JJ I-NP +sky NN I-NP +. . O + +This DT B-NP +place NN I-NP +is VBZ B-VP +12 CD B-NP +miles NNS I-NP +into IN B-PP +the DT B-NP +back JJ I-NP +country NN I-NP +-- : O +a DT B-NP +day-long JJ I-NP +trudge NN I-NP +for IN B-PP +a DT B-NP +hiker NN I-NP +, , O +but CC O +reached VBD B-VP +by IN B-PP +Ms. NNP B-NP +Peterson NNP I-NP +and CC O +six CD B-NP +others NNS I-NP +in IN B-PP +a DT B-NP +mere JJ I-NP +two CD I-NP +hours NNS I-NP +of IN B-PP +pedaling VBG B-VP +fat-tired JJ B-NP +mountain NN I-NP +bikes NNS I-NP +. . O + +`` `` O +This DT B-NP +, , O +'' '' O +says VBZ B-VP +Ms. NNP B-NP +Peterson NNP I-NP +, , O +`` `` O +is VBZ B-VP +what WP B-NP +it PRP B-NP +'s VBZ B-VP +all DT O +about IN B-PP +. . O +'' '' O + +Twelve CD B-NP +hundred CD I-NP +miles NNS I-NP +away RB B-ADVP +, , O +rangers NNS B-NP +at IN B-PP +a DT B-NP +Napa NNP I-NP +County NNP I-NP +, , I-NP +Calif. NNP I-NP +, , I-NP +state NN I-NP +park NN I-NP +are VBP B-VP +among IN B-PP +the DT B-NP +many JJ I-NP +who WP B-NP +do VBP B-VP +n't RB I-VP +quite RB I-VP +share VBP I-VP +the DT B-NP +enthusiasm NN I-NP +. . O + +This DT B-NP +summer NN I-NP +, , O +speeding VBG B-NP +bikers NNS I-NP +were VBD B-VP +blamed VBN I-VP +for IN B-PP +an DT B-NP +accident NN I-NP +in IN B-PP +the DT B-NP +Napa NNP I-NP +County NNP I-NP +park NN I-NP +, , O +in IN B-PP +which WDT B-NP +a DT B-NP +horse NN I-NP +-- : O +spooked VBN B-VP +on IN B-PP +a DT B-NP +trail NN I-NP +that WDT B-NP +was VBD B-VP +closed VBN I-VP +to TO B-PP +bikers NNS B-NP +-- : O +broke VBD B-VP +its PRP$ B-NP +leg NN I-NP +. . O + +The DT B-NP +animal NN I-NP +had VBD B-VP +to TO I-VP +be VB I-VP +destroyed VBN I-VP +; : O +the DT B-NP +bikers NNS I-NP +fled VBD B-VP +and CC O +were VBD B-VP +never RB I-VP +found VBN I-VP +. . O + +In IN B-PP +numerous JJ B-NP +parks NNS I-NP +near IN B-PP +San NNP B-NP +Francisco NNP I-NP +, , O +rangers NNS B-NP +have VBP B-VP +been VBN I-VP +forced VBN I-VP +to TO I-VP +close VB I-VP +trails NNS B-NP +, , O +set VBN B-VP +up IN B-PRT +speed NN B-NP +traps NNS I-NP +and CC O +use NN B-VP +radar NN B-NP +guns NNS I-NP +to TO B-VP +curb VB I-VP +fast RB B-NP +and CC I-NP +reckless JJ I-NP +riding NN I-NP +. . O + +They PRP B-NP +have VBP B-VP +even RB I-VP +sent VBN I-VP +helicopters NNS B-NP +in IN B-PP +pursuit NN B-NP +of IN B-PP +bikers NNS B-NP +after IN B-SBAR +hikers NNS B-NP +and CC I-NP +equestrians NNS I-NP +complained VBD B-VP +they PRP B-NP +were VBD B-VP +being VBG I-VP +driven VBN I-VP +from IN B-PP +trails NNS B-NP +. . O + +`` `` O +We PRP B-NP +were VBD B-VP +being VBG I-VP +overrun VBN I-VP +, , O +'' '' O +says VBZ B-VP +Steve NNP B-NP +Fiala NNP I-NP +, , O +trails NNS B-NP +coordinator NN I-NP +of IN B-PP +the DT B-NP +East NNP I-NP +Bay NNP I-NP +Regional NNP I-NP +Park NNP I-NP +District NNP I-NP +. . O + +Two CD B-NP +years NNS I-NP +ago RB B-ADVP +, , O +the DT B-NP +district NN I-NP +decided VBD B-VP +to TO I-VP +limit VB I-VP +the DT B-NP +bikes NNS I-NP +to TO B-PP +fire VB B-NP +roads NNS I-NP +in IN B-PP +its PRP$ B-NP +65,000 CD I-NP +hilly JJ I-NP +acres NNS I-NP +. . O + +From IN B-PP +about IN B-NP +200,000 CD I-NP +six CD B-NP +years NNS I-NP +ago RB B-ADVP +, , O +the DT B-NP +number NN I-NP +of IN B-PP +mountain NN B-NP +bikes NNS I-NP +in IN B-PP +the DT B-NP +U.S. NNP I-NP +is VBZ B-VP +expected VBN I-VP +to TO I-VP +grow VB I-VP +to TO B-PP +10 CD B-NP +million CD I-NP +in IN B-PP +1990 CD B-NP +. . O + +At IN B-NP +least JJS I-NP +half PDT I-NP +that DT I-NP +growth NN I-NP +will MD B-VP +have VB I-VP +come VBN I-VP +in IN B-PP +the DT B-NP +past JJ I-NP +three CD I-NP +years NNS I-NP +alone RB B-ADVP +. . O + +The DT B-NP +controversy NN I-NP +kicked VBD B-VP +up IN B-PRT +by IN B-PP +the DT B-NP +proliferation NN I-NP +of IN B-PP +these DT B-NP +all-terrain JJ I-NP +bicycles NNS I-NP +is VBZ B-VP +one CD B-NP +of IN B-PP +the DT B-NP +most RBS I-NP +divisive JJ I-NP +storms NNS I-NP +to TO B-VP +blow VB I-VP +through IN B-PP +the DT B-NP +national JJ I-NP +conservation NN I-NP +movement NN I-NP +in IN B-PP +recent JJ B-NP +memory NN I-NP +. . O + +Bikers NNS B-NP +-- : O +many NN B-NP +of IN B-PP +them PRP B-NP +ardent JJ B-NP +environmentalists NNS I-NP +-- : O +proclaim VB B-VP +their PRP$ B-NP +sport NN I-NP +an DT B-NP +efficient JJ I-NP +, , I-NP +safe JJ I-NP +, , I-NP +fitness-promoting JJ I-NP +way NN I-NP +to TO B-VP +get VB I-VP +back RB B-ADVP +to TO B-PP +nature NN B-NP +, , O +while IN B-SBAR +asserting VBG B-VP +a DT B-NP +right NN I-NP +, , O +as IN B-PP +taxpayers NNS B-NP +, , O +to TO B-VP +pedal VB I-VP +on IN B-PP +public JJ B-NP +lands NNS I-NP +. . O + +But CC O +the DT B-NP +bikes NNS I-NP +' POS B-NP +burgeoning VBG I-NP +numbers NNS I-NP +, , O +safety NN B-NP +concerns NNS I-NP +and CC O +fear NN B-NP +that IN B-SBAR +they PRP B-NP +damage VBP B-VP +fragile JJ B-NP +landscapes NNS I-NP +have VBP B-VP +prompted VBN I-VP +pleas NNS B-NP +, , O +from IN B-PP +the DT B-NP +Sierras NNPS I-NP +to TO B-PP +the DT B-NP +Eastern NNP I-NP +Seaboard NNP I-NP +, , O +to TO B-VP +ban VB I-VP +them PRP B-NP +from IN B-PP +the DT B-NP +back JJ I-NP +country NN I-NP +. . O + +Key NNP B-ADJP +to TO B-PP +the DT B-NP +issue NN I-NP +is VBZ B-VP +that IN B-SBAR +the DT B-NP +bikes NNS I-NP +, , O +in IN B-PP +skillful JJ B-NP +hands NNS I-NP +, , O +can MD B-VP +go VB I-VP +virtually RB B-ADVP +anywhere RB I-ADVP +, , O +and CC O +in IN B-PP +reckless JJ B-NP +hands NNS I-NP +can MD B-VP +become VB I-VP +vehicles NNS B-NP +of IN B-PP +terror NN B-NP +. . O + +An DT B-NP +adept JJ I-NP +bicyclist NN I-NP +can MD B-VP +leap VB I-VP +from IN B-PP +a DT B-NP +dead JJ I-NP +stop NN I-NP +to TO B-PP +the DT B-NP +top NN I-NP +of IN B-PP +a DT B-NP +picnic NN I-NP +table NN I-NP +without IN B-PP +losing VBG B-VP +balance NN B-NP +. . O + +Such JJ B-NP +skills NNS I-NP +allow VBP B-VP +riders NNS B-NP +to TO B-VP +fly VB I-VP +down RB B-PP +treacherous JJ B-NP +mountain NN I-NP +grades NNS I-NP +at IN B-PP +speeds NNS B-NP +of IN B-PP +up IN B-NP +to TO I-NP +40 CD I-NP +miles NNS I-NP +an DT B-NP +hour NN I-NP +-- : O +a DT B-NP +thrill NN I-NP +for IN B-PP +the DT B-NP +cyclist NN I-NP +but CC O +a DT B-NP +nightmare NN I-NP +for IN B-PP +unsuspecting JJ B-NP +hikers NNS I-NP +or CC I-NP +equestrians NNS I-NP +. . O + +For IN B-PP +harried VBN B-NP +public-land JJ I-NP +managers NNS I-NP +across IN B-PP +the DT B-NP +nation NN I-NP +, , O +the DT B-NP +response NN I-NP +is VBZ B-VP +increasingly RB B-ADVP +to TO B-VP +shut VB I-VP +the DT B-NP +gates NNS I-NP +. . O + +The DT B-NP +state NN I-NP +of IN B-PP +California NNP B-NP +, , O +following VBG B-VP +the DT B-NP +lead NN I-NP +of IN B-PP +some DT B-NP +regional JJ I-NP +parks NNS I-NP +, , O +recently RB B-ADVP +adopted VBN B-VP +regulations NNS B-NP +that WDT B-NP +closed VBD B-VP +nearly RB B-NP +all DT I-NP +hiking VBG I-NP +paths NNS I-NP +in IN B-PP +state NN B-NP +parks NNS I-NP +to TO B-PP +mountain NN B-NP +bicycles NNS I-NP +. . O + +The DT B-NP +move NN I-NP +largely RB B-ADVP +consigns VBZ B-VP +them PRP B-NP +to TO B-PP +roads NNS B-NP +used VBN B-VP +by IN B-PP +motorized JJ B-NP +vehicles NNS I-NP +. . O + +Most JJS B-NP +other JJ I-NP +states NNS I-NP +have VBP B-VP +enacted VBN I-VP +similar JJ B-NP +bans NNS I-NP +. . O + +The DT B-NP +bikes NNS I-NP +are VBP B-VP +unwelcome JJ B-ADJP +on IN B-PP +trails NNS B-NP +in IN B-PP +national JJ B-NP +parks NNS I-NP +. . O + +Even RB B-NP +the DT I-NP +U.S. NNP I-NP +Forest NNP I-NP +Service NNP I-NP +, , O +whose WP$ B-NP +lenient JJ I-NP +`` `` I-NP +multiple-use JJ I-NP +'' '' I-NP +philosophy NN I-NP +permits VBZ B-VP +motorized VBN B-NP +vehicles NNS I-NP +on IN B-PP +thousands NNS B-NP +of IN B-PP +miles NNS B-NP +of IN B-PP +its PRP$ B-NP +trails NNS I-NP +across IN B-PP +the DT B-NP +U.S. NNP I-NP +, , O +has VBZ B-VP +begun VBN I-VP +to TO I-VP +close VB I-VP +some DT B-NP +lands NNS I-NP +to TO B-PP +the DT B-NP +bikes NNS I-NP +, , O +including VBG B-PP +major JJ B-NP +portions NNS I-NP +of IN B-PP +the DT B-NP +popular JJ I-NP +Pacific NNP I-NP +Crest NNP I-NP +Trail NNP I-NP +, , O +which WDT B-NP +stretches VBZ B-VP +from IN B-PP +California NNP B-NP +to TO B-PP +Canada NNP B-NP +. . O + +Often RB B-ADVP +these DT B-NP +closings NNS I-NP +come VBP B-VP +after IN B-PP +vigorous JJ B-NP +anti-bike JJ I-NP +lobbying NN I-NP +by IN B-PP +conservation NN B-NP +organizations NNS I-NP +, , O +the DT B-NP +politically RB I-NP +potent JJ I-NP +Sierra NNP I-NP +Club NNP I-NP +among IN B-PP +them PRP B-NP +. . O + +Sierra NNP B-NP +has VBZ B-VP +been VBN I-VP +instrumental JJ B-ADJP +in IN B-PP +securing VBG B-VP +a DT B-NP +number NN I-NP +of IN B-PP +the DT B-NP +California NNP I-NP +bans NNS I-NP +. . O + +It PRP B-NP +has VBZ B-VP +been VBN I-VP +waging VBG I-VP +an DT B-NP +all-out JJ I-NP +campaign NN I-NP +to TO B-VP +beat VB I-VP +back RB B-ADVP +a DT B-NP +proposal NN I-NP +, , O +pushed VBN B-VP +by IN B-PP +Utah NNP B-NP +bike NN I-NP +groups NNS I-NP +, , O +to TO B-VP +allow VB I-VP +the DT B-NP +cycles NNS I-NP +in IN B-PP +federally RB B-NP +designated VBN I-NP +wilderness NN I-NP +areas NNS I-NP +, , O +where WRB B-ADVP +they PRP B-NP +are VBP B-VP +now RB I-VP +prohibited VBN I-VP +. . O + +Yet RB B-ADVP +Sierra NNP B-NP +'s POS B-NP +hard-line JJ I-NP +stance NN I-NP +has VBZ B-VP +created VBN I-VP +something NN B-NP +of IN B-PP +a DT B-NP +rift NN I-NP +in IN B-PP +the DT B-NP +organization NN I-NP +, , O +which WDT B-NP +estimates VBZ B-VP +that IN B-SBAR +17 CD B-NP +% NN I-NP +of IN B-PP +its PRP$ B-NP +500,000 CD I-NP +members NNS I-NP +own JJ B-VP +mountain NN B-NP +bikes NNS I-NP +. . O + +Pressure NN B-NP +from IN B-PP +these DT B-NP +members NNS I-NP +prompted VBD B-VP +the DT B-NP +club NN I-NP +recently RB B-ADVP +to TO B-VP +soften VB I-VP +its PRP$ B-NP +anti-bike JJ I-NP +rhetoric NN I-NP +; : O +it PRP B-NP +no RB B-ADVP +longer RB I-ADVP +, , O +for IN B-PP +example NN B-NP +, , O +lumps VBZ B-VP +the DT B-NP +bikes NNS I-NP +into IN B-PP +the DT B-NP +same JJ I-NP +category NN I-NP +as IN B-PP +motorcycles NNS B-NP +and CC O +other JJ B-NP +terrain-marring JJ I-NP +off-road JJ I-NP +vehicles NNS I-NP +. . O + +But CC O +the DT B-NP +club NN I-NP +still RB B-ADVP +insists VBZ B-VP +that IN B-SBAR +public JJ B-NP +lands NNS I-NP +ought MD B-VP +to TO I-VP +be VB I-VP +closed VBN I-VP +to TO B-PP +the DT B-NP +bikes NNS I-NP +unless IN B-SBAR +studies NNS B-NP +indicate VBP B-VP +the DT B-NP +bikes NNS I-NP +wo MD B-VP +n't RB I-VP +injure VB I-VP +the DT B-NP +environment NN I-NP +or CC O +other JJ B-NP +users NNS I-NP +. . O + +`` `` O +I PRP B-NP +have VBP B-VP +a DT B-NP +mountain NN I-NP +bike NN I-NP +, , O +yet RB B-ADVP +as IN B-PP +a DT B-NP +hiker NN I-NP +I PRP B-NP +'ve VBP B-VP +been VBN I-VP +run VB I-VP +off IN B-PP +the DT B-NP +road NN I-NP +by IN B-PP +kids NNS B-NP +careening VBG B-VP +down RP O +a DT B-NP +fire NN I-NP +trail NN I-NP +on IN B-PP +them PRP B-NP +, , O +'' '' O +says VBZ B-VP +Gene NNP B-NP +Coan NNP I-NP +, , O +an DT B-NP +official NN I-NP +at IN B-PP +Sierra NNP B-NP +'s POS B-NP +headquarters NN I-NP +in IN B-PP +San NNP B-NP +Francisco NNP I-NP +, , O +echoing VBG B-VP +the DT B-NP +concerns NNS I-NP +of IN B-PP +many JJ B-NP +members NNS I-NP +. . O + +`` `` O +People NNS B-NP +who WP B-NP +feel VBP B-VP +that IN B-SBAR +cyclists NNS B-NP +should MD B-VP +be VB I-VP +banned VBN I-VP +from IN B-PP +an DT B-NP +area NN I-NP +are VBP B-VP +n't RB I-VP +looking VBG I-VP +at IN B-PP +the DT B-NP +whole JJ I-NP +picture NN I-NP +, , O +'' '' O +complains VBZ B-VP +Mark NNP B-NP +Langton NNP I-NP +, , O +associate JJ B-NP +editor NN I-NP +of IN B-PP +Mountain NNP B-NP +and CC I-NP +City NNP I-NP +Biking NNP I-NP +magazine NN I-NP +in IN B-PP +Canoga NNP B-NP +Park NNP I-NP +, , O +Calif NNP B-NP +. . O + +Mr. NNP B-NP +Langton NNP I-NP +is VBZ B-VP +among IN B-PP +the DT B-NP +legions NNS I-NP +of IN B-PP +bikers NNS B-NP +who WP B-NP +got VBD B-VP +their PRP$ B-NP +first JJ I-NP +taste NN I-NP +of IN B-PP +wilderness NN B-NP +as IN B-PP +hikers NNS B-NP +or CC I-NP +backpackers NNS I-NP +. . O + +He PRP B-NP +says VBZ B-VP +fellow NN B-NP +bikers NNS I-NP +show VBP B-VP +the DT B-NP +same JJ I-NP +concern NN I-NP +for IN B-PP +the DT B-NP +land NN I-NP +that IN B-NP +they PRP B-NP +demonstrated VBD B-VP +as IN B-PP +hikers NNS B-NP +; : O +many JJ B-NP +are VBP B-VP +appalled VBN B-ADJP +that IN B-SBAR +the DT B-NP +conservation NN I-NP +community NN I-NP +would MD B-VP +suddenly RB I-VP +consider VB I-VP +them PRP B-NP +the DT B-NP +enemy NN I-NP +. . O + +To TO B-VP +fight VB I-VP +back RB B-PRT +, , O +activists NNS B-NP +such JJ B-PP +as IN I-PP +Mr. NNP B-NP +Langton NNP I-NP +are VBP B-VP +forming VBG I-VP +groups NNS B-NP +to TO B-VP +lobby VB I-VP +land NN B-NP +managers NNS I-NP +over IN B-PP +access NN B-NP +issues NNS I-NP +and CC O +undertake VB B-VP +education NN B-NP +programs NNS I-NP +to TO B-VP +show VB I-VP +that IN B-SBAR +the DT B-NP +bikes NNS I-NP +can MD B-VP +responsibly RB I-VP +share VB I-VP +trails NNS B-NP +. . O + +Mr. NNP B-NP +Langton NNP I-NP +'s POS B-NP +group NN I-NP +, , O +Concerned NNP B-NP +Off-Road NNP I-NP +Bicyclists NNPS I-NP +Association NNP I-NP +, , O +mounted VBN B-VP +petition NN B-NP +drives NNS I-NP +to TO B-VP +help VB I-VP +keep VB I-VP +open JJ B-ADJP +certain JJ B-NP +Santa NNP I-NP +Monica NNP I-NP +Mountain NNP I-NP +trails NNS I-NP +designated VBN B-VP +for IN B-PP +closing VBG B-NP +. . O + +Biking NNP B-NP +groups NNS I-NP +in IN B-PP +Montana NNP B-NP +, , I-NP +Idaho NNP I-NP +, , I-NP +Michigan NNP I-NP +and CC I-NP +Massachusetts NNP I-NP +have VBP B-VP +won VBN I-VP +similar JJ B-NP +concessions NNS I-NP +, , O +says VBZ B-VP +Tim NNP B-NP +Blumenthal NNP I-NP +, , O +mountain NN B-NP +bike NN I-NP +editor NN I-NP +of IN B-PP +Bicycling NNP B-NP +magazine NN I-NP +. . O + +These DT B-NP +groups NNS I-NP +have VBP B-VP +been VBN I-VP +trying VBG I-VP +to TO I-VP +improve VB I-VP +the DT B-NP +mountain NN I-NP +biker NN I-NP +'s POS B-NP +image NN I-NP +; : O +in IN B-PP +the DT B-NP +San NNP I-NP +Francisco-area JJ I-NP +park NN I-NP +district NN I-NP +where WRB B-ADVP +a DT B-NP +ranger NN I-NP +was VBD B-VP +clobbered VBN I-VP +by IN B-PP +a DT B-NP +cyclist NN I-NP +this DT B-NP +summer NN I-NP +bikers NNS B-NP +have VBP B-VP +formed VBN I-VP +a DT B-NP +volunteer NN I-NP +patrol NN I-NP +to TO B-VP +help VB I-VP +rangers NNS B-NP +enforce VB B-VP +regulations NNS B-NP +, , O +and CC O +to TO B-VP +school VB I-VP +riders NNS B-NP +in IN B-PP +proper JJ B-NP +trail NN I-NP +etiquette NN I-NP +. . O + +Even RB B-NP +staunch JJ I-NP +anti-bike JJ I-NP +Sierra NNP I-NP +members NNS I-NP +concede VBP B-VP +that IN B-SBAR +10 CD B-NP +% NN I-NP +of IN B-PP +all DT B-NP +riders NNS I-NP +cause VBP B-VP +most RBS B-NP +of IN B-PP +the DT B-NP +problems NNS I-NP +. . O + +While IN B-SBAR +some DT B-NP +are VBP B-VP +renegade NN B-NP +riders NNS I-NP +who WP B-NP +simply JJ B-ADVP +scorn NN B-VP +regulations NNS B-NP +, , O +much JJ B-NP +bad JJ I-NP +riding NN I-NP +simply RB B-ADVP +reflects VBZ B-VP +ignorance NN B-NP +that WDT B-NP +can MD B-VP +be VB I-VP +corrected VBN I-VP +through IN B-PP +`` `` O +education NN B-NP +and CC O +peer NN B-NP +pressure NN I-NP +, , O +'' '' O +says VBZ B-VP +Jim NNP B-NP +Hasenauer NNP I-NP +, , O +a DT B-NP +director NN I-NP +of IN B-PP +the DT B-NP +International NNP I-NP +Mountain NNP I-NP +Biking NNP I-NP +Association NNP I-NP +. . O + +`` `` O +I PRP B-NP +think VBP B-VP +we PRP B-NP +'re VBP B-VP +making VBG I-VP +progress NN B-NP +. . O +'' '' O + +Few JJ B-NP +would MD B-VP +have VB I-VP +foreseen VBN I-VP +such JJ B-NP +a DT I-NP +furor NN I-NP +when WRB B-ADVP +, , O +a DT B-NP +decade NN I-NP +ago RB B-ADVP +, , O +some DT B-NP +Marin NNP I-NP +County NNP I-NP +bicycle NN I-NP +enthusiasts NNS I-NP +created VBD B-VP +a DT B-NP +hybrid JJ I-NP +bike NN I-NP +using VBG B-VP +fat JJ B-NP +tires NNS I-NP +, , O +lightweight JJ B-NP +metallurgy NN I-NP +and CC O +multi-gear JJ B-NP +technology NN I-NP +. . O + +They PRP B-NP +wanted VBD B-VP +a DT B-NP +machine NN I-NP +that WDT B-NP +would MD B-VP +allow VB I-VP +them PRP B-NP +to TO B-VP +pedal VB I-VP +into IN B-PP +rugged JJ B-NP +terrain NN I-NP +then RB B-ADJP +inaccessible JJ I-ADJP +to TO B-PP +cycles NNS B-NP +. . O + +They PRP B-NP +got VBD B-VP +a DT B-NP +machine NN I-NP +more RBR B-ADJP +responsive JJ I-ADJP +, , O +more RBR B-ADJP +stable JJ I-ADJP +and CC O +in IN B-PP +many JJ B-NP +ways NNS I-NP +easier JJR B-ADJP +to TO B-VP +ride VB I-VP +than IN B-PP +the DT B-NP +thin-tired JJ I-NP +racing NN I-NP +bikes NNS I-NP +that IN B-NP +then RB B-ADVP +were VBD B-VP +the DT B-NP +rage NN I-NP +. . O + +When WRB B-ADVP +the DT B-NP +bikes NNS I-NP +first JJ B-ADVP +entered VBD B-VP +mass NN B-NP +production NN I-NP +in IN B-PP +1981 CD B-NP +, , O +they PRP B-NP +were VBD B-VP +dismissed VBN I-VP +as IN B-PP +a DT B-NP +fad NN I-NP +. . O + +Last JJ B-NP +year NN I-NP +, , O +25 CD B-NP +% NN I-NP +of IN B-PP +the DT B-NP +10 CD I-NP +million CD I-NP +bicycles NNS I-NP +sold VBN B-VP +in IN B-PP +the DT B-NP +U.S. NNP I-NP +were VBD B-VP +mountain NN B-NP +bikes NNS I-NP +. . O + +In IN B-PP +California NNP B-NP +, , O +a DT B-NP +bellwether NN I-NP +market NN I-NP +, , O +they PRP B-NP +accounted VBD B-VP +for IN B-PP +more JJR B-NP +than IN I-NP +80 CD I-NP +% NN I-NP +of IN B-PP +all DT B-NP +bike NN I-NP +sales NNS I-NP +. . O + +The DT B-NP +majority NN I-NP +of IN B-PP +the DT B-NP +bikes NNS I-NP +never RB B-ADVP +even RB B-ADVP +make VB B-VP +it PRP B-NP +into IN B-PP +the DT B-NP +high JJ I-NP +country NN I-NP +. . O + +City NN B-NP +dwellers NNS I-NP +love VBP B-VP +them PRP B-NP +because IN B-SBAR +they PRP B-NP +shift VBP B-VP +smoothly RB B-ADVP +in IN B-PP +traffic NN B-NP +, , O +bounce VB B-VP +easily RB B-ADVP +over IN B-PP +curbs NNS B-NP +and CC O +roll NN B-VP +through IN B-PP +road NN B-NP +glass NN I-NP +with IN B-PP +far RB B-NP +fewer RBR I-NP +flat JJ I-NP +tires NNS I-NP +than IN B-PP +racing VBG B-NP +bikes NNS I-NP +. . O + +Crested NNP B-NP +Butte NNP I-NP +, , O +population NN B-NP +1,200 CD I-NP +, , O +is VBZ B-VP +a DT B-NP +bastion NN I-NP +of IN B-PP +the DT B-NP +sport NN I-NP +. . O + +By IN B-PP +one CD B-NP +estimate NN I-NP +, , O +everyone NN B-NP +here RB I-NP +under IN B-PP +50 CD B-NP +owns VBZ B-VP +at IN B-NP +least JJS I-NP +one CD I-NP +bike NN I-NP +. . O + +The DT B-NP +town NN I-NP +is VBZ B-VP +home NN B-NP +to TO B-PP +the DT B-NP +Mountain NNP I-NP +Bike NNP I-NP +Hall NNP I-NP +of IN B-PP +Fame NNP B-NP +and CC O +it PRP B-NP +hosts VBZ B-VP +the DT B-NP +annual JJ I-NP +Fat NNP I-NP +Tire NNP I-NP +Bike NNP I-NP +Week NNP I-NP +. . O + +This DT B-NP +summer NN I-NP +, , O +the DT B-NP +jamboree NN I-NP +attracted VBN B-VP +more JJR B-NP +visitors NNS I-NP +than IN B-PP +the DT B-NP +busiest JJS I-NP +week NN I-NP +of IN B-PP +the DT B-NP +town NN I-NP +'s POS B-NP +winter NN I-NP +ski NN I-NP +season NN I-NP +. . O + +David NNP B-NP +Lindsey NNP I-NP +, , O +chairman NN B-NP +of IN B-PP +the DT B-NP +Fat NNP I-NP +Tire NNP I-NP +Bike NNP I-NP +celebration NN I-NP +, , O +muses VBZ B-VP +that IN B-SBAR +the DT B-NP +bike NN I-NP +'s POS B-NP +popularity NN I-NP +may MD B-VP +be VB I-VP +a DT B-NP +combination NN I-NP +of IN B-PP +technology NN B-NP +and CC I-NP +nostalgia NN I-NP +. . O + +`` `` O +The DT B-NP +mountain NN I-NP +bike NN I-NP +feels VBZ B-VP +as RB B-ADJP +comfortable JJ I-ADJP +as IN B-PP +the DT B-NP +` `` I-NP +paperboy NN I-NP +' '' I-NP +bike NN I-NP +you PRP B-NP +had VBD B-VP +as IN B-PP +a DT B-NP +kid NN I-NP +, , O +but CC O +it PRP B-NP +can MD B-VP +do VB I-VP +so RB B-NP +much RB I-NP +more JJR I-NP +, , O +'' '' O +he PRP B-NP +says VBZ B-VP +. . O + +The DT B-NP +following VBG I-NP +issues NNS I-NP +were VBD B-VP +recently RB I-VP +filed VBN I-VP +with IN B-PP +the DT B-NP +Securities NNP I-NP +and CC I-NP +Exchange NNP I-NP +Commission NNP I-NP +: : O + +Canada NNP B-NP +'s POS B-NP +Province NNP I-NP +of IN B-PP +Nova NNP B-NP +Scotia NNP I-NP +, , O +shelf NN B-NP +offering NN I-NP +of IN B-PP +up IN B-NP +to TO I-NP +$ $ I-NP +550 CD I-NP +million CD I-NP +of IN B-PP +debentures NNS B-NP +. . O + +Golar NNP B-NP +Gas NNP I-NP +Holding NNP I-NP +Co. NNP I-NP +, , O +a DT B-NP +subsidiary NN I-NP +of IN B-PP +Gotaas-Larsen NNP B-NP +Shipping NNP I-NP +Corp. NNP I-NP +, , O +offering NN B-NP +of IN B-PP +$ $ B-NP +280 CD I-NP +million CD I-NP +first JJ I-NP +preferred JJ I-NP +ship NN I-NP +mortgage NN I-NP +notes NNS I-NP +, , O +via IN B-PP +Merrill NNP B-NP +Lynch NNP I-NP +Capital NNP I-NP +Markets NNPS I-NP +. . O + +H.F. NNP B-NP +Ahmanson NNP I-NP +& CC I-NP +Co. NNP I-NP +, , O +offering NN B-NP +of IN B-PP +four CD B-NP +million CD I-NP +shares NNS I-NP +of IN B-PP +noncumulative JJ B-NP +convertible JJ I-NP +preferred JJ I-NP +stock NN I-NP +, , O +Series NNP B-NP +B. NNP I-NP +, , O +via IN B-PP +Goldman NNP B-NP +, , I-NP +Sachs NNP I-NP +& CC I-NP +Co NNP I-NP +, , O +First NNP B-NP +Boston NNP I-NP +Corp. NNP I-NP +, , O +and CC O +Merrill NNP B-NP +Lynch NNP I-NP +. . O + +Shared NNP B-NP +Technologies NNP I-NP +Inc. NNP I-NP +, , O +offering NN B-NP +of IN B-PP +2.5 CD B-NP +million CD I-NP +common JJ I-NP +shares NNS I-NP +, , O +via IN B-PP +Smetek NNP B-NP +, , I-NP +Van NNP I-NP +Horn NNP I-NP +& CC I-NP +Cormack NNP I-NP +Inc. NNP I-NP +and CC O +Oakes NNP B-NP +, , I-NP +Fitzwilliams NNP I-NP +& CC I-NP +Co NNP I-NP +. . O + +Stock-market NN B-NP +tremors NNS I-NP +again RB B-ADVP +shook VBD B-VP +bond NN B-NP +prices NNS I-NP +, , O +while IN B-SBAR +the DT B-NP +dollar NN I-NP +turned VBD B-VP +in IN B-PRT +a DT B-NP +mixed VBN I-NP +performance NN I-NP +. . O + +Early JJ B-NP +yesterday NN I-NP +, , O +investors NNS B-NP +scrambled VBD B-VP +to TO I-VP +buy VB I-VP +Treasury NNP B-NP +bonds NNS I-NP +for IN B-PP +safety NN B-NP +as IN B-SBAR +stock NN B-NP +prices NNS I-NP +plummeted VBD B-VP +and CC O +fears NNS B-NP +mounted VBN B-VP +of IN B-PP +a DT B-NP +replay NN I-NP +of IN B-PP +Friday NNP B-NP +. . O + +But CC O +stocks NNS B-NP +later RB B-ADVP +recovered VBD B-VP +, , O +erasing VBG B-VP +most RBS B-NP +of IN B-PP +their PRP$ B-NP +early JJ I-NP +declines NNS I-NP +. . O + +That DT B-NP +cut NN B-VP +short VB B-ADJP +the DT B-NP +rally NN I-NP +in IN B-PP +Treasury NNP B-NP +bonds NNS I-NP +and CC O +depressed JJ B-VP +prices NNS B-NP +moderately RB B-ADVP +below IN B-PP +late JJ B-NP +Monday NNP I-NP +'s POS B-NP +levels NNS I-NP +. . O + +The DT B-NP +Dow NNP I-NP +Jones NNP I-NP +Industrial NNP I-NP +Average NNP I-NP +, , O +down RB B-ADVP +more JJR B-NP +than IN I-NP +60.25 CD I-NP +points NNS I-NP +early RB B-ADVP +in IN B-PP +the DT B-NP +day NN I-NP +, , O +finished VBD B-VP +18.65 CD B-NP +points NNS I-NP +lower JJR B-ADVP +at IN B-PP +2638.73 CD B-NP +. . O + +Long-term NNP B-NP +Treasury NNP I-NP +issues NNS I-NP +declined VBD B-VP +about IN B-NP +half PDT I-NP +a DT I-NP +point NN I-NP +, , O +or CC O +$ $ B-NP +5 NN I-NP +for IN B-PP +each DT B-NP +$ $ I-NP +1,000 CD I-NP +face NN I-NP +amount NN I-NP +. . O + +`` `` O +The DT B-NP +stock NN I-NP +market NN I-NP +clearly RB B-ADVP +is VBZ B-VP +leading VBG I-VP +the DT B-NP +bond NN I-NP +markets NNS I-NP +, , O +'' '' O +said VBD B-VP +Jack NNP B-NP +Conlon NNP I-NP +, , O +an DT B-NP +executive JJ I-NP +vice NN I-NP +president NN I-NP +at IN B-PP +Nikko NNP B-NP +Securities NNP I-NP +. . O + +`` `` O +People NNS B-NP +are VBP B-VP +breathing VBG I-VP +a DT B-NP +major JJ I-NP +sigh NN I-NP +of IN B-PP +relief NN B-NP +that IN B-SBAR +the DT B-NP +world NN I-NP +did VBD B-VP +n't RB I-VP +end VB I-VP +Monday NNP B-NP +morning NN I-NP +'' '' O +or CC O +yesterday NN B-NP +. . O + +Gold NNP B-NP +, , O +a DT B-NP +closely RB I-NP +watched VBN I-NP +barometer NN I-NP +of IN B-PP +investor NN B-NP +anxiety NN I-NP +, , O +was VBD B-VP +little RB B-ADJP +changed VBN I-ADJP +. . O + +The DT B-NP +dollar NN I-NP +initially RB B-ADVP +fell VBD B-VP +against IN B-PP +other JJ B-NP +major JJ I-NP +currencies NNS I-NP +on IN B-PP +news NN B-NP +that IN B-SBAR +the DT B-NP +U.S. NNP I-NP +trade NN I-NP +deficit NN I-NP +surged VBD B-VP +in IN B-PP +August NNP B-NP +to TO B-PP +$ $ B-NP +10.77 CD I-NP +billion CD I-NP +. . O + +But CC O +the DT B-NP +dollar NN I-NP +later RB B-ADVP +rebounded VBD B-VP +, , O +finishing VBG B-VP +slightly RB B-ADJP +higher JJR I-ADJP +against IN B-PP +the DT B-NP +yen NN I-NP +although IN B-ADJP +slightly RB B-ADJP +lower JJR I-ADJP +against IN B-PP +the DT B-NP +mark NN I-NP +. . O + +Federal NNP B-NP +Reserve NNP I-NP +officials NNS I-NP +sent VBD B-VP +another DT B-NP +signal NN I-NP +of IN B-PP +their PRP$ B-NP +determination NN I-NP +to TO B-VP +shore VB I-VP +up IN B-PRT +investor NN B-NP +confidence NN I-NP +. . O + +In IN B-PP +an DT B-NP +apparent JJ I-NP +attempt NN I-NP +to TO B-VP +keep VB I-VP +a DT B-NP +lid NN I-NP +on IN B-PP +short-term JJ B-NP +interest NN I-NP +rates NNS I-NP +, , O +the DT B-NP +Fed NNP I-NP +once RB B-ADVP +again RB I-ADVP +pumped VBN B-VP +money NN B-NP +into IN B-PP +the DT B-NP +banking NN I-NP +system NN I-NP +. . O + +But CC O +the DT B-NP +Fed NNP I-NP +move NN I-NP +was VBD B-VP +a DT B-NP +small JJ I-NP +gesture NN I-NP +, , O +traders NNS B-NP +said VBD B-VP +. . O + +Fed JJ B-NP +officials NNS I-NP +appear VBP B-VP +reluctant JJ B-ADJP +to TO B-VP +ease VB I-VP +their PRP$ B-NP +credit NN I-NP +grip NN I-NP +any DT B-ADVP +further JJ I-ADVP +because IN B-SBAR +a DT B-NP +bold JJ I-NP +move NN I-NP +does VBZ B-VP +n't RB I-VP +appear VB I-VP +necessary JJ B-ADJP +, , O +several JJ B-NP +investment NN I-NP +managers NNS I-NP +said VBD B-VP +. . O + +The DT B-NP +Fed NNP I-NP +has VBZ B-VP +allowed VBN I-VP +a DT B-NP +key JJ I-NP +short-term JJ I-NP +interest NN I-NP +rate NN I-NP +to TO B-VP +decline VB I-VP +about IN B-NP +one-quarter NN I-NP +percentage NN I-NP +point NN I-NP +. . O + +The DT B-NP +federal JJ I-NP +funds NNS I-NP +rate NN I-NP +on IN B-PP +overnight JJ B-NP +loans NNS I-NP +between IN B-PP +banks NNS B-NP +has VBZ B-VP +been VBN I-VP +hovering VBG I-VP +around IN B-PP +8 CD B-NP +3\/4 CD I-NP +% NN I-NP +, , O +down RB B-ADVP +from IN B-PP +9 CD B-NP +% NN I-NP +previously RB B-ADVP +. . O + +Although IN B-SBAR +stocks NNS B-NP +have VBP B-VP +led VBN I-VP +bonds NNS B-NP +this DT B-NP +week NN I-NP +, , O +some DT B-NP +traders NNS I-NP +predict VBP B-VP +that DT B-NP +relationship NN I-NP +will MD B-VP +reverse VB I-VP +during IN B-PP +the DT B-NP +next JJ I-NP +few JJ I-NP +weeks NNS I-NP +. . O + +Nikko NNP B-NP +'s POS B-NP +Mr. NNP I-NP +Conlon NNP I-NP +fears VBZ B-VP +a DT B-NP +huge JJ I-NP +wave NN I-NP +of IN B-PP +Treasury NNP B-NP +borrowing NN I-NP +early JJ B-NP +next JJ I-NP +month NN I-NP +will MD B-VP +drive VB I-VP +down RB B-ADVP +Treasury NNP B-NP +bond NN I-NP +prices NNS I-NP +. . O + +That DT B-NP +, , O +coupled VBN B-VP +with IN B-PP +poor JJ B-NP +third-quarter JJ I-NP +corporate-earnings NNS I-NP +comparisons NNS I-NP +, , O +`` `` O +will MD B-VP +make VB I-VP +trouble NN B-NP +for IN B-PP +the DT B-NP +equity NN I-NP +market NN I-NP +for IN B-PP +the DT B-NP +next JJ I-NP +two CD I-NP +to TO I-NP +three CD I-NP +months NNS I-NP +, , O +'' '' O +he PRP B-NP +says VBZ B-VP +. . O + +But CC O +several JJ B-NP +other JJ I-NP +traders NNS I-NP +contend VBP B-VP +investors NNS B-NP +have VBP B-VP +overreacted VBN I-VP +to TO B-PP +junk-bond NN B-NP +jitters NNS I-NP +, , O +and CC O +that IN B-SBAR +stock NN B-NP +prices NNS I-NP +will MD B-VP +continue VB I-VP +to TO I-VP +recover VB I-VP +. . O + +`` `` O +They PRP B-NP +shot NN B-VP +the DT B-NP +whole JJ I-NP +orchestra NN I-NP +just RB B-ADVP +because IN B-SBAR +the DT B-NP +piano NN I-NP +player NN I-NP +hit VBD B-VP +a DT B-NP +bad JJ I-NP +note NN I-NP +, , O +'' '' O +said VBD B-VP +Laszlo NNP B-NP +Birinyi NNP I-NP +, , O +president NN B-NP +of IN B-PP +Birinyi NNP B-NP +Associates NNP I-NP +Inc. NNP I-NP +, , O +referring VBG B-VP +to TO B-PP +the DT B-NP +stock NN I-NP +market NN I-NP +'s POS B-NP +plunge NN I-NP +Friday NNP B-NP +on IN B-PP +news NN B-NP +of IN B-PP +trouble NN B-NP +in IN B-PP +financing VBG B-VP +the DT B-NP +UAL NNP I-NP +Corp NNP I-NP +. . I-NP +buy-out NN I-NP +. . O + +In IN B-PP +major JJ B-NP +market NN I-NP +activity NN I-NP +: : O +Treasury NNP B-NP +bond NN I-NP +prices NNS I-NP +fell VBD B-VP +. . O + +The DT B-NP +yield NN I-NP +on IN B-PP +30-year NNP B-NP +Treasury NNP I-NP +bonds NNS I-NP +climbed VBD B-VP +back RB B-ADVP +above IN B-PP +8 CD B-NP +% NN I-NP +, , O +ending VBG B-VP +the DT B-NP +day NN I-NP +at IN B-PP +8.03 CD B-NP +% NN I-NP +. . O + +The DT B-NP +dollar NN I-NP +was VBD B-VP +mixed VBN B-ADJP +. . O + +Late JJ B-NP +yesterday NN I-NP +in IN B-PP +New NNP B-NP +York NNP I-NP +, , O +the DT B-NP +dollar NN I-NP +rose VBD B-VP +to TO B-PP +142.75 CD B-NP +yen NN I-NP +from IN B-PP +141.80 CD B-NP +yen NN I-NP +Monday NNP B-NP +, , O +but CC O +fell VBD B-VP +to TO B-PP +1.8667 CD B-NP +marks NNS I-NP +from IN B-PP +1.8685 CD B-NP +marks NNS I-NP +. . O + +The DT B-NP +Consumer NNP I-NP +News NNP I-NP +and CC I-NP +Business NNP I-NP +Channel NNP I-NP +cable NN I-NP +network NN I-NP +and CC O +U.S. NNP B-NP +News NNP I-NP +& CC I-NP +World NNP I-NP +Report NNP I-NP +have VBP B-VP +formed VBN I-VP +a DT B-NP +joint JJ I-NP +venture NN I-NP +to TO B-VP +produce VB I-VP +cable NN B-NP +program NN I-NP +versions NNS I-NP +of IN B-PP +special JJ B-NP +issues NNS I-NP +of IN B-PP +the DT B-NP +magazine NN I-NP +. . O + +The DT B-NP +programs NNS I-NP +will MD B-VP +run VB I-VP +on IN B-PP +the DT B-NP +cable NN I-NP +network NN I-NP +the DT B-NP +Sunday NNP I-NP +evening NN I-NP +immediately RB B-ADVP +prior RB B-PP +to TO B-PP +the DT B-NP +release NN I-NP +of IN B-PP +the DT B-NP +special JJ I-NP +issue NN I-NP +of IN B-PP +U.S. NNP B-NP +News NNP I-NP +& CC I-NP +World NNP I-NP +Report NNP I-NP +. . O + +CNBC NNP B-NP +is VBZ B-VP +a DT B-NP +joint JJ I-NP +venture NN I-NP +of IN B-PP +the DT B-NP +National NNP I-NP +Broadcasting NNP I-NP +Co. NNP I-NP +, , O +a DT B-NP +unit NN I-NP +of IN B-PP +General NNP B-NP +Electric NNP I-NP +Co. NNP I-NP +, , O +and CC O +Cablevision NNP B-NP +System NNP I-NP +Corp NNP I-NP +. . O + +Advertisers NNS B-NP +will MD B-VP +be VB I-VP +offered VBN I-VP +an DT B-NP +advertising NN I-NP +package NN I-NP +, , O +which WDT B-NP +for IN B-PP +a DT B-NP +single JJ I-NP +price NN I-NP +, , O +will MD B-VP +include VB I-VP +time NN B-NP +on IN B-PP +the DT B-NP +CNBC NNP I-NP +program NN I-NP +and CC O +ad NN B-NP +pages NNS I-NP +in IN B-PP +the DT B-NP +special JJ I-NP +guides NNS I-NP +. . O + +CNBC NNP B-NP +will MD B-VP +produce VB I-VP +six CD B-NP +, , I-NP +one-hour JJ I-NP +programs NNS I-NP +, , O +beginning VBG B-VP +in IN B-PP +April NNP B-NP +1990 CD I-NP +. . O + +The DT B-NP +first JJ I-NP +program NN I-NP +scheduled VBN B-VP +in IN B-PP +the DT B-NP +joint JJ I-NP +venture NN I-NP +is VBZ B-VP +`` `` O +The DT O +1990 CD O +Homeowner NNP B-NP +'s POS B-NP +Guide NNP I-NP +. . O +'' '' O + +Other JJ B-NP +programs NNS I-NP +and CC I-NP +special JJ I-NP +issues NNS I-NP +will MD B-VP +be VB I-VP +based VBN I-VP +on IN B-PP +themes NNS B-NP +of IN B-PP +health NN B-NP +, , O +jobs NNS B-NP +, , O +personal JJ B-NP +finance NN I-NP +, , O +the DT B-NP +best JJS I-NP +colleges NNS I-NP +, , O +and CC O +investments NNS B-NP +. . O + +The DT B-NP +programs NNS I-NP +will MD B-VP +be VB I-VP +written VBN I-VP +and CC I-VP +produced VBN I-VP +by IN B-PP +CNBC NNP B-NP +, , O +with IN B-SBAR +background NN B-NP +and CC I-NP +research NN I-NP +provided VBN B-VP +by IN B-PP +staff NN B-NP +from IN B-PP +U.S. NNP B-NP +News NNP I-NP +& CC I-NP +World NNP I-NP +Report NNP I-NP +. . O + +Skoal NNP B-NP +Daze NNP I-NP + +I PRP B-NP +'ve VBP B-VP +learned VBD I-VP +the DT B-NP +hard JJ I-NP +way NN I-NP +that IN B-SBAR +too RB B-NP +much JJ I-NP +booze NN I-NP +Takes VBZ B-VP +revenge NN B-NP +the DT B-NP +next JJ I-NP +day NN I-NP +about IN B-PP +nine CD B-NP +; : O +No DT B-NP +wonder NN I-NP +I PRP B-NP +say VBP B-VP +, , O +`` `` O +I PRP B-NP +drink VBP B-VP +to TO B-PP +your PRP$ B-NP +health NN I-NP +'' '' O +-- : O +It PRP B-NP +certainly RB B-ADVP +is VBZ B-VP +n't RB O +to TO B-PP +mine VB B-NP +! . O + +-- : B-NP +George NNP I-NP +O. NNP I-NP +Ludcke NNP I-NP +. . O + +Spaced NNP B-ADJP +Out IN I-ADJP + +Those DT B-NP +supermarket NN I-NP +tabloids NNS I-NP +Make VBP B-VP +me PRP B-NP +feel VBP B-VP +slow JJ B-ADJP +Because IN B-SBAR +I PRP B-NP +still RB B-ADVP +have VBP B-VP +n't RB I-VP +seen VBN I-VP + +-- : B-NP +Bruce NNP I-NP +Kafaroff NNP I-NP +. . O + +Daffynition NN B-NP + +Repression NN B-NP +: : O +emote VB B-NP +control NN I-NP +. . O + +-- : B-NP +Daisy NNP I-NP +Brown NNP I-NP +. . O + +Weyerhaeuser NNP B-NP +Co. NNP I-NP +reported VBD B-VP +a DT B-NP +one-time JJ I-NP +gain NN I-NP +and CC O +strong JJ B-NP +wood-product NN I-NP +sales NNS I-NP +that WDT B-NP +offset VBP B-VP +weakness NN B-NP +in IN B-PP +pulp NN B-NP +and CC I-NP +paper NN I-NP +to TO B-VP +fuel VB I-VP +a DT B-NP +15 CD I-NP +% NN I-NP +jump NN I-NP +in IN B-PP +third-quarter JJ B-NP +net JJ I-NP +income NN I-NP +to TO B-PP +$ $ B-NP +166.8 CD I-NP +million CD I-NP +, , O +or CC O +78 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +. . O + +In IN B-PP +the DT B-NP +1988 CD I-NP +third JJ I-NP +quarter NN I-NP +, , O +the DT B-NP +forest-products NNS I-NP +company NN I-NP +reported VBD B-VP +profit NN B-NP +of IN B-PP +$ $ B-NP +144.9 CD I-NP +million CD I-NP +, , O +or CC O +69 CD B-NP +cents NNS I-NP +a DT B-NP +share NN I-NP +. . O + +Sales NNS B-NP +rose VBD B-VP +9 CD B-NP +% NN I-NP +to TO B-PP +$ $ B-NP +2.57 CD I-NP +billion CD I-NP +from IN B-PP +$ $ B-NP +2.36 CD I-NP +billion CD I-NP +. . O + +For IN B-PP +the DT B-NP +nine CD I-NP +months NNS I-NP +, , O +the DT B-NP +company NN I-NP +posted VBD B-VP +a DT B-NP +14 CD I-NP +% NN I-NP +rise NN I-NP +in IN B-PP +profit NN B-NP +to TO B-PP +$ $ B-NP +469.8 CD I-NP +million CD I-NP +, , O +or CC O +$ $ B-NP +2.21 CD I-NP +a DT B-NP +share NN I-NP +, , O +from IN B-PP +$ $ B-NP +410.3 CD I-NP +million CD I-NP +, , O +or CC O +$ $ B-NP +1.95 CD I-NP +a DT B-NP +share NN I-NP +. . O + +Sales NNS B-NP +rose VBD B-VP +9 CD B-NP +% NN I-NP +to TO B-PP +$ $ B-NP +7.54 CD I-NP +billion CD I-NP +from IN B-PP +$ $ B-NP +6.95 CD I-NP +billion CD I-NP +. . O + +Results NNS B-NP +for IN B-PP +the DT B-NP +1989 CD I-NP +third JJ I-NP +quarter NN I-NP +and CC I-NP +nine CD I-NP +months NNS I-NP +include VBP B-VP +a DT B-NP +pretax JJ I-NP +loss NN I-NP +of IN B-PP +$ $ B-NP +33 CD I-NP +million CD I-NP +from IN B-PP +the DT B-NP +company NN I-NP +'s POS B-NP +business NN I-NP +improvement NN I-NP +and CC I-NP +refocusing NN I-NP +program NN I-NP +, , O +and CC O +a DT B-NP +gain NN I-NP +of IN B-PP +$ $ B-NP +49 CD I-NP +million CD I-NP +on IN B-PP +the DT B-NP +sale NN I-NP +of IN B-PP +a DT B-NP +subsidiary NN I-NP +'s POS B-NP +common JJ I-NP +stock NN I-NP +. . O + +Forest-products NNS B-NP +operations NNS I-NP +strengthened VBN B-VP +in IN B-PP +the DT B-NP +third JJ I-NP +quarter NN I-NP +, , O +while IN B-SBAR +paper NN B-NP +operations NNS I-NP +were VBD B-VP +dogged VBN I-VP +by IN B-PP +higher JJR B-NP +costs NNS I-NP +, , O +soft JJ B-NP +newsprint NN I-NP +exports NNS I-NP +and CC O +a DT B-NP +strong JJ I-NP +Japanese JJ I-NP +yen NN I-NP +. . O + +Some DT B-NP +competing VBG I-NP +forest-products NNS I-NP +firms NNS I-NP +have VBP B-VP +recently RB I-VP +reported VBN I-VP +improved VBN B-NP +results NNS I-NP +due JJ B-ADJP +to TO B-PP +strong JJ B-NP +pulp NN I-NP +and CC I-NP +paper NN I-NP +business NN I-NP +. . O + +Weyerhaeuser NNP B-NP +'s POS B-NP +pulp NN I-NP +and CC I-NP +paper NN I-NP +operations NNS I-NP +were VBD B-VP +up IN B-ADVP +for IN B-PP +the DT B-NP +nine CD I-NP +months NNS I-NP +, , O +but CC O +full-year JJ B-NP +performance NN I-NP +depends VBZ B-VP +on IN B-PP +the DT B-NP +balance NN I-NP +of IN B-PP +operating VBG B-NP +and CC I-NP +maintenance NN I-NP +costs NNS I-NP +, , O +plus CC O +pricing NN B-NP +of IN B-PP +certain JJ B-NP +products NNS I-NP +, , O +the DT B-NP +company NN I-NP +said VBD B-VP +. . O + +Looking VBG B-VP +ahead RB B-ADVP +to TO B-PP +the DT B-NP +fourth JJ I-NP +quarter NN I-NP +, , O +the DT B-NP +company NN I-NP +said VBD B-VP +export NN B-NP +log NN I-NP +and CC I-NP +lumber NN I-NP +markets NNS I-NP +will MD B-VP +be VB I-VP +weak JJ B-ADJP +, , O +while IN B-SBAR +panel NN B-NP +and CC I-NP +plywood NN I-NP +markets NNS I-NP +will MD B-VP +be VB I-VP +stronger JJR B-ADJP +. . O + +Pulp NNP B-NP +and CC I-NP +paper NN I-NP +performance NN I-NP +depends VBZ B-VP +on IN B-PP +cost NN B-NP +and CC I-NP +price NN I-NP +variables NNS I-NP +, , O +the DT B-NP +company NN I-NP +said VBD B-VP +. . O + +Bankers NNP B-NP +Trust NNP I-NP +New NNP I-NP +York NNP I-NP +Corp. NNP I-NP +became VBD B-VP +the DT B-NP +latest JJS I-NP +major JJ I-NP +U.S. NNP I-NP +bank NN I-NP +to TO B-VP +increase VB I-VP +reserves NNS B-NP +for IN B-PP +its PRP$ B-NP +loans NNS I-NP +to TO B-PP +less-developed JJ B-NP +countries NNS I-NP +, , O +making VBG B-VP +a DT B-NP +$ $ I-NP +1.6 CD I-NP +billion CD I-NP +third-quarter JJ I-NP +addition NN I-NP +to TO B-PP +its PRP$ B-NP +provision NN I-NP +. . O + +The DT B-NP +bank NN I-NP +also RB B-ADVP +said VBD B-VP +it PRP B-NP +expects VBZ B-VP +to TO I-VP +report VB I-VP +a DT B-NP +$ $ I-NP +1.42 CD I-NP +billion CD I-NP +loss NN I-NP +for IN B-PP +the DT B-NP +third JJ I-NP +quarter NN I-NP +and CC O +a DT B-NP +loss NN I-NP +for IN B-PP +the DT B-NP +full JJ I-NP +year NN I-NP +. . O + +The DT B-NP +new JJ I-NP +reserves NNS I-NP +bring VBP B-VP +the DT B-NP +company NN I-NP +'s POS B-NP +provision NN I-NP +for IN B-PP +loans NNS B-NP +to TO B-PP +Third NNP B-NP +World NNP I-NP +countries NNS I-NP +to TO B-PP +$ $ B-NP +2.6 CD I-NP +billion CD I-NP +, , O +or CC O +85 CD B-NP +% NN I-NP +of IN B-PP +Bankers NNP B-NP +Trust NNP I-NP +'s POS B-NP +medium NN B-ADJP +and CC I-ADJP +long-term JJ I-ADJP +loans NNS B-NP +to TO B-PP +these DT B-NP +countries NNS I-NP +. . O + +`` `` O +Step NN B-VP +up IN B-ADVP +to TO B-PP +the DT B-NP +plate NN I-NP +and CC O +take VB B-VP +the DT B-NP +big JJ I-NP +swing NN I-NP +. . O + +Get VB B-VP +the DT B-NP +problem NN I-NP +behind IN B-PP +you PRP B-NP +and CC O +do VBP B-VP +n't RB I-VP +look VB I-VP +back RB B-ADVP +, , O +'' '' O +said VBD B-VP +James NNP B-NP +J. NNP I-NP +McDermott NNP I-NP +, , O +analyst NN B-NP +at IN B-PP +Keefe NNP B-NP +, , I-NP +Bruyette NNP I-NP +& CC I-NP +Woods NNP I-NP +, , O +in IN B-PP +approving VBG B-VP +of IN B-PP +the DT B-NP +move NN I-NP +. . O + +Bankers NNP B-NP +Trust NNP I-NP +`` `` O +has VBZ B-VP +had VBN I-VP +the DT B-NP +capacity NN I-NP +to TO B-VP +do VB I-VP +this DT B-NP +for IN B-PP +some DT B-NP +time NN I-NP +, , O +'' '' O +the DT B-NP +analyst NN I-NP +said VBD B-VP +. . O + +He PRP B-NP +expects VBZ B-VP +Citicorp NNP B-NP +to TO B-VP +take VB I-VP +a DT B-NP +similar JJ I-NP +step NN I-NP +this DT B-NP +year NN I-NP +. . O + +Citicorp NN B-NP +yesterday NN B-NP +reported VBD B-VP +a DT B-NP +9 CD I-NP +% NN I-NP +third-quarter JJ I-NP +earnings NNS I-NP +drop NN I-NP +, , O +which WDT B-NP +analysts NNS B-NP +called VBD B-VP +a DT B-ADJP +bit NN I-ADJP +disappointing JJ I-ADJP +, , O +while IN B-SBAR +Manufacturers NNP B-NP +Hanover NNP I-NP +Corp. NNP I-NP +posted VBD B-VP +a DT B-NP +$ $ I-NP +789 CD I-NP +million CD I-NP +loss NN I-NP +for IN B-PP +the DT B-NP +quarter NN I-NP +after IN B-PP +adding VBG B-VP +$ $ B-NP +950 CD I-NP +million CD I-NP +to TO B-PP +its PRP$ B-NP +reserve NN I-NP +for IN B-PP +loans NNS B-NP +to TO B-PP +less-developed JJ B-NP +countries NNS I-NP +. . O + +Three CD B-NP +other JJ I-NP +major JJ I-NP +U.S. NNP I-NP +banks NNS I-NP +posted VBD B-VP +earnings NNS B-NP +increases NNS I-NP +. . O + +Wells NNP B-NP +Fargo NNP I-NP +& CC I-NP +Co. NNP I-NP +of IN B-PP +San NNP B-NP +Francisco NNP I-NP +posted VBD B-VP +a DT B-NP +17 CD I-NP +% NN I-NP +jump NN I-NP +. . O + +PNC NNP B-NP +Financial NNP I-NP +Corp. NNP I-NP +, , O +the DT B-NP +parent NN I-NP +of IN B-PP +Pittsburgh NNP B-NP +National NNP I-NP +Bank NNP I-NP +, , O +reported VBD B-VP +net JJ B-NP +income NN I-NP +climbed VBD B-VP +9.8 CD B-NP +% NN I-NP +, , O +while IN B-SBAR +net JJ B-NP +for IN B-PP +Banc NNP B-NP +One CD I-NP +Corp. NNP I-NP +of IN B-PP +Columbus NNP B-NP +, , O +Ohio NNP B-NP +, , O +grew VBD B-VP +3.8 CD B-NP +% NN I-NP +. . O + diff --git a/example/chunking/train.data b/example/chunking/train.data new file mode 100644 index 0000000..619e982 --- /dev/null +++ b/example/chunking/train.data @@ -0,0 +1,1973 @@ +Confidence NN B-NP +in IN B-PP +the DT B-NP +pound NN I-NP +is VBZ B-VP +widely RB I-VP +expected VBN I-VP +to TO I-VP +take VB I-VP +another DT B-NP +sharp JJ I-NP +dive NN I-NP +if IN B-SBAR +trade NN B-NP +figures NNS I-NP +for IN B-PP +September NNP B-NP +, , O +due JJ B-ADJP +for IN B-PP +release NN B-NP +tomorrow NN B-NP +, , O +fail VB B-VP +to TO I-VP +show VB I-VP +a DT B-NP +substantial JJ I-NP +improvement NN I-NP +from IN B-PP +July NNP B-NP +and CC I-NP +August NNP I-NP +'s POS B-NP +near-record JJ I-NP +deficits NNS I-NP +. . O + +Chancellor NNP O +of IN B-PP +the DT B-NP +Exchequer NNP I-NP +Nigel NNP B-NP +Lawson NNP I-NP +'s POS B-NP +restated VBN I-NP +commitment NN I-NP +to TO B-PP +a DT B-NP +firm NN I-NP +monetary JJ I-NP +policy NN I-NP +has VBZ B-VP +helped VBN I-VP +to TO I-VP +prevent VB I-VP +a DT B-NP +freefall NN I-NP +in IN B-PP +sterling NN B-NP +over IN B-PP +the DT B-NP +past JJ I-NP +week NN I-NP +. . O + +But CC O +analysts NNS B-NP +reckon VBP B-VP +underlying VBG B-NP +support NN I-NP +for IN B-PP +sterling NN B-NP +has VBZ B-VP +been VBN I-VP +eroded VBN I-VP +by IN B-PP +the DT B-NP +chancellor NN I-NP +'s POS B-NP +failure NN I-NP +to TO B-VP +announce VB I-VP +any DT B-NP +new JJ I-NP +policy NN I-NP +measures NNS I-NP +in IN B-PP +his PRP$ B-NP +Mansion NNP I-NP +House NNP I-NP +speech NN I-NP +last JJ B-NP +Thursday NNP I-NP +. . O + +This DT B-NP +has VBZ B-VP +increased VBN I-VP +the DT B-NP +risk NN I-NP +of IN B-PP +the DT B-NP +government NN I-NP +being VBG B-VP +forced VBN I-VP +to TO I-VP +increase VB I-VP +base NN B-NP +rates NNS I-NP +to TO B-PP +16 CD B-NP +% NN I-NP +from IN B-PP +their PRP$ B-NP +current JJ I-NP +15 CD I-NP +% NN I-NP +level NN I-NP +to TO B-VP +defend VB I-VP +the DT B-NP +pound NN I-NP +, , O +economists NNS B-NP +and CC O +foreign JJ B-NP +exchange NN I-NP +market NN I-NP +analysts NNS I-NP +say VBP B-VP +. . O + +`` `` O +The DT B-NP +risks NNS I-NP +for IN B-PP +sterling NN B-NP +of IN B-PP +a DT B-NP +bad JJ I-NP +trade NN I-NP +figure NN I-NP +are VBP B-VP +very RB B-ADVP +heavily RB I-ADVP +on IN B-PP +the DT B-NP +down JJ I-NP +side NN I-NP +, , O +'' '' O +said VBD B-VP +Chris NNP B-NP +Dillow NNP I-NP +, , O +senior JJ B-NP +U.K. NNP I-NP +economist NN I-NP +at IN B-PP +Nomura NNP B-NP +Research NNP I-NP +Institute NNP I-NP +. . O + +`` `` O +If IN B-SBAR +there EX B-NP +is VBZ B-VP +another DT B-NP +bad JJ I-NP +trade NN I-NP +number NN I-NP +, , O +there EX B-NP +could MD B-VP +be VB I-VP +an DT B-NP +awful JJ I-NP +lot NN I-NP +of IN B-PP +pressure NN B-NP +, , O +'' '' O +noted VBD B-VP +Simon NNP B-NP +Briscoe NNP I-NP +, , O +U.K. NNP B-NP +economist NN I-NP +for IN B-PP +Midland NNP B-NP +Montagu NNP I-NP +, , O +a DT B-NP +unit NN I-NP +of IN B-PP +Midland NNP B-NP +Bank NNP I-NP +PLC NNP I-NP +. . O + +Forecasts NNS B-NP +for IN B-PP +the DT B-NP +trade NN I-NP +figures NNS I-NP +range VBP B-VP +widely RB B-ADVP +, , O +but CC O +few JJ B-NP +economists NNS I-NP +expect VBP B-VP +the DT B-NP +data NNS I-NP +to TO B-VP +show VB I-VP +a DT B-NP +very RB I-NP +marked VBN I-NP +improvement NN I-NP +from IN B-PP +the DT O +# # O +2 CD O +billion CD O +-LRB- ( O +$ $ B-ADJP +3.2 CD O +billion CD O +-RRB- ) O +deficit NN B-NP +in IN B-PP +the DT B-NP +current JJ I-NP +account NN I-NP +reported VBD B-VP +for IN B-PP +August NNP B-NP +. . O + +The DT B-NP +August NNP I-NP +deficit NN I-NP +and CC O +the DT B-NP +# # I-NP +2.2 CD I-NP +billion CD I-NP +gap NN I-NP +registered VBN B-VP +in IN B-PP +July NNP B-NP +are VBP B-VP +topped VBN I-VP +only RB B-ADVP +by IN B-PP +the DT B-NP +# # I-NP +2.3 CD I-NP +billion CD I-NP +deficit NN I-NP +of IN B-PP +October NNP B-NP +1988 CD I-NP +. . O + +Sanjay NNP B-NP +Joshi NNP I-NP +, , O +European JJ B-NP +economist NN I-NP +at IN B-PP +Baring NNP B-NP +Brothers NNPS I-NP +& CC I-NP +Co. NNP I-NP +, , O +said VBD B-VP +there EX B-NP +is VBZ B-VP +no DT B-NP +sign NN I-NP +that IN B-SBAR +Britain NNP B-NP +'s POS B-NP +manufacturing NN I-NP +industry NN I-NP +is VBZ B-VP +transforming VBG I-VP +itself PRP B-NP +to TO B-VP +boost VB I-VP +exports NNS B-NP +. . O + +At IN B-PP +the DT B-NP +same JJ I-NP +time NN I-NP +, , O +he PRP B-NP +remains VBZ B-VP +fairly RB B-ADJP +pessimistic JJ I-ADJP +about IN B-PP +the DT B-NP +outlook NN I-NP +for IN B-PP +imports NNS B-NP +, , O +given VBN B-PP +continued VBD B-NP +high JJ I-NP +consumer NN I-NP +and CC I-NP +capital NN I-NP +goods NNS I-NP +inflows NNS I-NP +. . O + +He PRP B-NP +reckons VBZ B-VP +the DT B-NP +current JJ I-NP +account NN I-NP +deficit NN I-NP +will MD B-VP +narrow VB I-VP +to TO B-PP +only RB B-NP +# # I-NP +1.8 CD I-NP +billion CD I-NP +in IN B-PP +September NNP B-NP +. . O + +However RB B-ADVP +, , O +Mr. NNP B-NP +Dillow NNP I-NP +said VBD B-VP +he PRP B-NP +believes VBZ B-VP +that IN B-SBAR +a DT B-NP +reduction NN I-NP +in IN B-PP +raw JJ B-NP +material NN I-NP +stockbuilding VBG I-NP +by IN B-PP +industry NN B-NP +could MD B-VP +lead VB I-VP +to TO B-PP +a DT B-NP +sharp JJ I-NP +drop NN I-NP +in IN B-PP +imports NNS B-NP +. . O + +Combined VBN B-PP +with IN B-PP +at IN B-ADVP +least JJS I-ADVP +some DT B-NP +rebound NN I-NP +in IN B-PP +exports NNS B-NP +after IN B-PP +August NNP B-NP +'s POS B-NP +unexpected JJ I-NP +decline NN I-NP +, , O +the DT B-NP +deficit NN I-NP +could MD B-VP +narrow VB I-VP +to TO B-PP +as RB B-NP +little JJ I-NP +as IN I-NP +# # I-NP +1.3 CD I-NP +billion CD I-NP +. . O + +Mr. NNP B-NP +Briscoe NNP I-NP +, , O +who WP B-NP +also RB B-ADVP +forecasts VBZ B-VP +a DT B-NP +# # I-NP +1.3 CD I-NP +billion CD I-NP +current JJ I-NP +account NN I-NP +gap NN I-NP +, , O +warns VBZ B-VP +that IN B-SBAR +even RB B-SBAR +if IN I-SBAR +the DT B-NP +trade NN I-NP +figures NNS I-NP +are VBP B-VP +bullish JJ B-ADJP +for IN B-PP +sterling NN B-NP +, , O +the DT B-NP +currency NN I-NP +wo MD B-VP +n't RB I-VP +advance VB I-VP +much JJ B-NP +because IN B-SBAR +investors NNS B-NP +will MD B-VP +want VB I-VP +to TO I-VP +see VB I-VP +further JJ B-NP +evidence NN I-NP +of IN B-PP +the DT B-NP +turnaround NN I-NP +before IN B-PP +adjusting VBG B-VP +positions NNS B-NP +. . O + +Nevertheless RB B-ADVP +, , O +he PRP B-NP +noted VBD B-VP +, , O +`` `` O +No DT B-NP +one PRP I-NP +will MD B-VP +want VB I-VP +to TO I-VP +go VB I-VP +into IN B-PP +the DT B-NP +trade NN I-NP +figures NNS I-NP +without IN B-PP +a DT B-NP +flat JJ I-NP +position NN I-NP +'' '' O +in IN B-PP +the DT B-NP +pound NN I-NP +. . O + +Meanwhile RB B-ADVP +, , O +overall JJ B-NP +evidence NN I-NP +on IN B-PP +the DT B-NP +economy NN I-NP +remains VBZ B-VP +fairly RB B-ADJP +clouded VBN I-ADJP +. . O + +In IN B-PP +his PRP$ B-NP +Mansion NNP I-NP +House NNP I-NP +speech NN I-NP +, , O +Mr. NNP B-NP +Lawson NNP I-NP +warned VBD B-VP +that IN B-SBAR +a DT B-NP +further JJ I-NP +slowdown NN I-NP +can MD B-VP +be VB I-VP +expected VBN I-VP +as IN B-SBAR +the DT B-NP +impact NN I-NP +of IN B-PP +the DT B-NP +last JJ I-NP +rise NN I-NP +in IN B-PP +interest NN B-NP +rates NNS I-NP +earlier RBR B-NP +this DT I-NP +month NN I-NP +takes VBZ B-VP +effect NN B-NP +. . O + +U.K. JJ B-NP +base NN I-NP +rates NNS I-NP +are VBP B-VP +at IN B-PP +their PRP$ B-NP +highest JJS I-NP +level NN I-NP +in IN B-PP +eight CD B-NP +years NNS I-NP +. . O + +But CC O +consumer NN B-NP +expenditure NN I-NP +data NNS I-NP +released VBD B-VP +Friday NNP B-NP +do VBP B-VP +n't RB I-VP +suggest VB I-VP +that IN B-SBAR +the DT B-NP +U.K. NNP I-NP +economy NN I-NP +is VBZ B-VP +slowing VBG I-VP +that DT B-ADVP +quickly RB I-ADVP +. . O + +The DT B-NP +figures NNS I-NP +show VBP B-VP +that DT O +spending NN B-NP +rose VBD B-VP +0.1 CD B-NP +% NN I-NP +in IN B-PP +the DT B-NP +third JJ I-NP +quarter NN I-NP +from IN B-PP +the DT B-NP +second JJ I-NP +quarter NN I-NP +and CC O +was VBD B-VP +up IN B-ADVP +3.8 CD B-NP +% NN I-NP +from IN B-PP +a DT B-NP +year NN I-NP +ago RB B-ADVP +. . O + +This DT B-NP +compares VBZ B-VP +with IN B-PP +a DT B-NP +1.6 CD I-NP +% NN I-NP +rise NN I-NP +in IN B-PP +the DT B-NP +second NN I-NP +from IN B-PP +the DT B-NP +first JJ I-NP +quarter NN I-NP +and CC O +a DT B-NP +5.4 CD I-NP +% NN I-NP +increase NN I-NP +from IN B-PP +the DT B-NP +second JJ I-NP +quarter NN I-NP +of IN B-PP +1988 CD B-NP +. . O + +Mr. NNP B-NP +Dillow NNP I-NP +said VBD B-VP +the DT B-NP +data NNS I-NP +show VBP B-VP +the DT B-NP +economy NN I-NP +`` `` O +is VBZ B-VP +still RB B-ADVP +quite RB B-ADJP +strong JJ I-ADJP +, , O +'' '' O +but CC O +suggestions NNS B-NP +that IN B-SBAR +much NN B-NP +of IN B-PP +the DT B-NP +spending NN I-NP +went VBD B-VP +on IN B-PP +services NNS B-NP +rather RB B-PP +than IN I-PP +consumer NN B-NP +goods NNS I-NP +should MD B-VP +reduce VB I-VP +fears NNS B-NP +of IN B-PP +more JJR B-NP +import NN I-NP +rises NNS I-NP +. . O + +Certainly RB B-ADVP +, , O +the DT B-NP +chancellor NN I-NP +has VBZ B-VP +made VBN I-VP +it PRP B-NP +clear JJ B-ADJP +that IN B-SBAR +he PRP B-NP +is VBZ B-VP +prepared VBN I-VP +to TO I-VP +increase VB I-VP +interest NN B-NP +rates NNS I-NP +again RB B-ADVP +if IN B-SBAR +necessary JJ B-ADJP +to TO B-VP +both DT I-VP +ensure VB I-VP +that IN B-SBAR +a DT B-NP +substantial JJ I-NP +slowdown NN I-NP +does VBZ B-VP +take VB I-VP +place NN B-NP +and CC O +that DT O +sterling NN B-NP +does VBZ B-VP +n't RB I-VP +decline VB I-VP +further JJ B-ADVP +. . O + +Thursday NNP B-NP +, , O +he PRP B-NP +reminded VBD B-VP +his PRP$ B-NP +audience NN I-NP +that IN B-SBAR +the DT B-NP +government NN I-NP +`` `` O +can MD B-VP +not RB I-VP +allow VB I-VP +the DT B-NP +necessary JJ I-NP +rigor NN I-NP +of IN B-PP +monetary JJ B-NP +policy NN I-NP +to TO B-VP +be VB I-VP +undermined VBN I-VP +by IN B-PP +exchange NN B-NP +rate NN I-NP +weakness NN I-NP +. . O +'' '' O + +Analysts NNS B-NP +agree VBP B-VP +there EX B-NP +is VBZ B-VP +little JJ B-NP +holding NN B-VP +sterling NN B-NP +firm NN B-ADJP +at IN B-PP +the DT B-NP +moment NN I-NP +other JJ B-ADJP +than IN B-PP +Mr. NNP B-NP +Lawson NNP I-NP +'s POS B-NP +promise NN I-NP +that IN B-SBAR +rates NNS B-NP +will MD B-VP +be VB I-VP +pushed VBN I-VP +higher JJR B-ADJP +if IN B-SBAR +necessary JJ B-ADJP +. . O + +And CC O +, , O +they PRP B-NP +warn VBP B-VP +, , O +any DT B-NP +further JJ I-NP +drop NN I-NP +in IN B-PP +the DT B-NP +government NN I-NP +'s POS B-NP +popularity NN I-NP +could MD B-VP +swiftly RB I-VP +make VB I-VP +this DT B-NP +promise NN I-NP +sound NN B-VP +hollow JJ B-ADJP +. . O + +Sterling NNP B-NP +was VBD B-VP +already RB I-VP +showing VBG I-VP +some DT B-NP +signs NNS I-NP +of IN B-PP +a DT B-NP +lack NN I-NP +of IN B-PP +confidence NN B-NP +in IN B-PP +Mr. NNP B-NP +Lawson NNP I-NP +'s POS B-NP +promise NN I-NP +Friday NNP B-NP +. . O + +In IN B-PP +European JJ B-NP +trading NN I-NP +it PRP B-NP +declined VBD B-VP +to TO B-PP +$ $ B-NP +1.5890 CD I-NP +and CC O +2.9495 CD B-NP +marks NNS I-NP +from IN B-PP +$ $ B-NP +1.5940 CD I-NP +and CC O +2.9429 CD B-NP +marks NNS I-NP +late JJ B-NP +Thursday NNP I-NP +. . O + +Economists NNS B-NP +suggested VBD B-VP +that IN B-SBAR +if IN B-SBAR +the DT B-NP +pound NN I-NP +falls VBZ B-VP +much JJ B-NP +below IN B-PP +2.90 CD B-NP +marks NNS I-NP +, , O +the DT B-NP +government NN I-NP +will MD B-VP +be VB I-VP +forced VBN I-VP +to TO I-VP +increase VB I-VP +rates NNS B-NP +to TO B-PP +16 CD B-NP +% NN I-NP +, , O +both DT B-VP +to TO I-VP +halt VB B-VP +any DT B-NP +further JJ I-NP +decline NN I-NP +and CC O +ensure VB B-VP +that IN B-SBAR +the DT B-NP +balance NN I-NP +of IN B-PP +monetary JJ B-NP +policy NN I-NP +remains VBZ B-VP +unchanged JJ B-ADJP +. . O + +Friday NNP B-NP +'s POS B-NP +Market NNP I-NP +Activity NN I-NP + +The DT B-NP +dollar NN I-NP +posted VBD B-VP +gains NNS B-NP +in IN B-PP +quiet JJ B-NP +trading NN I-NP +as IN B-SBAR +concerns NNS B-NP +about IN B-PP +equities NNS B-NP +abated VBN B-VP +. . O + +Foreign JJ B-NP +exchange NN I-NP +dealers NNS I-NP +said VBD B-VP +that IN B-SBAR +the DT B-NP +currency NN I-NP +market NN I-NP +has VBZ B-VP +begun VBN I-VP +to TO I-VP +distance VB I-VP +itself PRP B-NP +from IN B-PP +the DT B-NP +volatile JJ I-NP +stock NN I-NP +exchange NN I-NP +, , O +which WDT B-NP +has VBZ B-VP +preoccupied VBN I-VP +the DT B-NP +market NN I-NP +since IN B-PP +Oct. NNP B-NP +13 CD I-NP +, , O +when WRB B-ADVP +the DT B-NP +Dow NNP I-NP +Jones NNP I-NP +Industrial NNP I-NP +Average NNP I-NP +plunged VBD B-VP +more JJR B-NP +than IN I-NP +190 CD I-NP +points NNS I-NP +. . O + +Currency NN B-NP +analysts NNS I-NP +predict VBP B-VP +that IN B-SBAR +in IN B-PP +the DT B-NP +coming VBG I-NP +week NN I-NP +the DT B-NP +foreign JJ I-NP +exchange NN I-NP +market NN I-NP +will MD B-VP +shift VB I-VP +its PRP$ B-NP +focus NN I-NP +back RB B-ADVP +to TO B-PP +economic JJ B-NP +fundamentals NNS I-NP +, , O +keeping VBG B-VP +a DT B-NP +close NN I-NP +eye NN I-NP +out IN B-ADVP +for IN B-PP +any DT B-NP +signs NNS I-NP +of IN B-PP +monetary JJ B-NP +easing NN I-NP +by IN B-PP +U.S. NNP B-NP +Federal NNP I-NP +Reserve NNP I-NP +. . O + +Late RB B-ADVP +in IN B-PP +the DT B-NP +New NNP I-NP +York NNP I-NP +trading NN I-NP +day NN I-NP +, , O +the DT B-NP +dollar NN I-NP +was VBD B-VP +quoted VBN I-VP +at IN B-PP +1.8578 CD B-NP +marks NNS I-NP +, , O +up IN B-ADVP +from IN B-PP +1.8470 CD B-NP +marks NNS I-NP +late JJ B-NP +Thursday NNP I-NP +in IN B-PP +New NNP B-NP +York NNP I-NP +. . O + +The DT B-NP +U.S. NNP I-NP +currency NN I-NP +was VBD B-VP +also RB I-VP +changing VBG I-VP +hands NNS B-NP +at IN B-PP +142.43 CD B-NP +yen NN I-NP +, , O +up IN B-ADVP +from IN B-PP +141.70 CD B-NP +yen NN I-NP +in IN B-PP +New NNP B-NP +York NNP I-NP +late JJ B-NP +Thursday NNP I-NP +. . O + +In IN B-PP +Tokyo NNP B-NP +on IN B-PP +Monday NNP B-NP +, , O +the DT B-NP +U.S. NNP I-NP +currency NN I-NP +opened VBD B-VP +for IN B-PP +trading NN B-NP +at IN B-PP +141.95 CD B-NP +yen NN I-NP +, , O +up IN B-ADVP +from IN B-PP +Friday NNP B-NP +'s POS B-NP +Tokyo NNP I-NP +close NN I-NP +of IN B-PP +141.35 CD B-NP +yen NN I-NP +. . O + +On IN B-PP +the DT B-NP +Commodity NNP I-NP +Exchange NNP I-NP +in IN B-PP +New NNP B-NP +York NNP I-NP +, , O +gold NN B-NP +for IN B-PP +current JJ B-NP +delivery NN I-NP +settled VBD B-VP +at IN B-PP +$ $ B-NP +367.30 CD I-NP +an DT B-NP +ounce NN I-NP +, , O +up IN B-ADVP +20 CD B-NP +cents NNS I-NP +. . O + +Estimated VBN B-NP +volume NN I-NP +was VBD B-VP +a DT B-NP +light NN I-NP +2.4 CD I-NP +million CD I-NP +ounces NNS I-NP +. . O + +In IN B-PP +early JJ B-NP +trading NN I-NP +in IN B-PP +Hong NNP B-NP +Kong NNP I-NP +Monday NNP B-NP +, , O +gold NN B-NP +was VBD B-VP +quoted VBN I-VP +at IN B-PP +$ $ B-NP +366.50 CD I-NP +an DT B-NP +ounce NN I-NP +. . O + +East NNP B-NP +Rock NNP I-NP +Partners NNP I-NP +Limited NNP I-NP +Partnership NNP I-NP +said VBD B-VP +it PRP B-NP +proposed VBD B-VP +to TO I-VP +acquire VB I-VP +A.P. NNP B-NP +Green NNP I-NP +Industries NNP I-NP +Inc. NNP I-NP +for IN B-PP +$ $ B-NP +40 CD I-NP +a DT B-NP +share NN I-NP +. . O + +In IN B-PP +an DT B-NP +Oct. NNP I-NP +19 CD I-NP +letter NN I-NP +to TO B-PP +A.P. NNP B-NP +Green NNP I-NP +'s POS B-NP +board NN I-NP +, , O +East NNP B-NP +Rock NNP I-NP +said VBD B-VP +the DT B-NP +offer NN I-NP +is VBZ B-VP +subject NN B-ADJP +to TO B-PP +the DT B-NP +signing NN I-NP +of IN B-PP +a DT B-NP +merger NN I-NP +agreement NN I-NP +by IN B-PP +no DT B-ADVP +later RB I-ADVP +than IN B-PP +Oct. NNP B-NP +31 CD I-NP +. . O + +The DT B-NP +letter NN I-NP +, , O +attached VBN B-VP +to TO B-PP +a DT B-NP +filing NN I-NP +with IN B-PP +the DT B-NP +Securities NNP I-NP +and CC I-NP +Exchange NNP I-NP +Commission NNP I-NP +, , O +said VBD B-VP +the DT B-NP +approval NN I-NP +is VBZ B-VP +also RB B-ADVP +contingent JJ B-ADJP +upon IN B-PP +obtaining VBG B-VP +satisfactory JJ B-NP +financing NN I-NP +. . O + +An DT B-NP +A.P. NNP I-NP +Green NNP I-NP +official NN I-NP +declined VBD B-VP +to TO I-VP +comment VB I-VP +on IN B-PP +the DT B-NP +filing NN I-NP +. . O + +The DT B-NP +$ $ I-NP +40-a-share JJ I-NP +proposal NN I-NP +values VBZ B-VP +the DT B-NP +company NN I-NP +at IN B-PP +about RB B-NP +$ $ I-NP +106.6 CD I-NP +million CD I-NP +. . O + +A.P. NNP B-NP +Green NNP I-NP +currently RB B-ADVP +has VBZ B-VP +2,664,098 CD B-NP +shares NNS I-NP +outstanding JJ B-ADJP +. . O + +Its PRP$ B-NP +stock NN I-NP +closed VBD B-VP +at IN B-PP +$ $ B-NP +38 CD I-NP +, , O +up IN B-ADVP +$ $ B-NP +1.875 CD I-NP +, , O +in IN B-PP +national JJ B-NP +over-the-counter JJ I-NP +trading NN I-NP +. . O + +The DT B-NP +company NN I-NP +is VBZ B-VP +a DT B-NP +Mexico NNP I-NP +, , I-NP +Mo. NNP I-NP +, , I-NP +maker NN I-NP +of IN B-PP +refractory JJ B-NP +products NNS I-NP +. . O + +East NNP B-NP +Rock NNP I-NP +also RB B-ADVP +said VBD B-VP +in IN B-PP +the DT B-NP +filing NN I-NP +that IN B-SBAR +it PRP B-NP +boosted VBD B-VP +its PRP$ B-NP +stake NN I-NP +in IN B-PP +A.P. NNP B-NP +Green NNP I-NP +to TO B-PP +8.7 CD B-NP +% NN I-NP +. . O + +It PRP B-NP +now RB B-ADVP +holds VBZ B-VP +233,000 CD B-NP +A.P. NNP I-NP +Green NNP I-NP +common JJ I-NP +shares NNS I-NP +, , O +including VBG B-PP +30,000 CD B-NP +shares NNS I-NP +bought VBD B-VP +last JJ B-NP +Thursday NNP I-NP +for IN B-PP +$ $ B-NP +35.50 CD I-NP +to TO I-NP +$ $ I-NP +36.50 CD I-NP +a DT B-NP +share NN I-NP +. . O + +New NNP B-NP +York-based JJ I-NP +John NNP I-NP +Kuhns NNP I-NP +and CC I-NP +Robert NNP I-NP +MacDonald NNP I-NP +control NN B-VP +East NNP B-NP +Rock NNP I-NP +Partners NNP I-NP +Inc. NNP I-NP +, , O +the DT B-NP +sole JJ I-NP +general JJ I-NP +partner NN I-NP +of IN B-PP +East NNP B-NP +Rock NNP I-NP +Partners NNP I-NP +L.P NNP I-NP +. . O + +The DT B-NP +sole JJ I-NP +limited JJ I-NP +partner NN I-NP +of IN B-PP +the DT B-NP +partnership NN I-NP +is VBZ B-VP +Westwood NNP B-NP +Brick NNP I-NP +Lime NNP I-NP +Inc. NNP I-NP +, , O +an DT B-NP +indirect JJ I-NP +subsidiary NN I-NP +of IN B-PP +Westwood NNP B-NP +Group NNP I-NP +Inc NNP I-NP +. . O + +Both DT B-NP +Westwood NNP B-NP +Brick NNP I-NP +and CC O +Westwood NNP B-NP +Group NNP I-NP +are VBP B-VP +based VBN I-VP +in IN B-PP +Boston NNP B-NP +. . O + +Freight NN B-NP +rates NNS I-NP +, , O +declining VBG B-VP +for IN B-PP +most RBS B-NP +of IN B-PP +the DT B-NP +decade NN I-NP +because IN B-PP +of IN I-PP +competition NN B-NP +spurred VBN B-VP +by IN B-PP +deregulation NN B-NP +, , O +are VBP B-VP +bottoming VBG I-VP +out IN B-PRT +, , O +turning VBG B-VP +upward RB B-ADVP +and CC O +threatening VBG B-VP +to TO I-VP +fuel VB I-VP +inflation NN B-NP +. . O + +Trucking NNP B-NP +, , I-NP +shipping VBG I-NP +and CC I-NP +air-freight NN I-NP +companies NNS I-NP +have VBP B-VP +announced VBN I-VP +rate NN B-NP +increases NNS I-NP +, , O +scheduled VBN B-VP +for IN B-PP +this DT B-NP +fall NN I-NP +or CC O +early JJ B-NP +next JJ I-NP +year NN I-NP +, , O +reflecting VBG B-VP +higher JJR B-NP +costs NNS I-NP +and CC O +tightened VBD B-NP +demand NN I-NP +for IN B-PP +freight NN B-NP +transport NN I-NP +. . O + +Major JJ B-NP +shippers NNS I-NP +say VBP B-VP +they PRP B-NP +expect VBP B-VP +freight NN B-NP +rates NNS I-NP +to TO B-VP +rise VB I-VP +at IN B-ADVP +least JJS I-ADVP +as RB B-ADVP +fast RB I-ADVP +as IN B-PP +inflation NN B-NP +and CC B-ADVP +maybe RB I-ADVP +faster RBR B-ADVP +in IN B-PP +the DT B-NP +next JJ I-NP +few JJ I-NP +years NNS I-NP +. . O + +That DT B-NP +'s VBZ B-VP +a DT B-NP +big JJ I-NP +change NN I-NP +from IN B-PP +recent JJ B-NP +years NNS I-NP +when WRB B-ADVP +freight NN B-NP +haulage NN I-NP +was VBD B-VP +a DT B-NP +bright JJ I-NP +spot NN I-NP +for IN B-PP +U.S. NNP B-NP +productivity NN I-NP +, , O +helping VBG B-VP +to TO I-VP +restrain VB I-VP +inflation NN B-NP +and CC O +make VB B-VP +U.S. NNP B-NP +industry NN I-NP +more RBR B-ADJP +competitive JJ I-ADJP +abroad RB B-ADVP +. . O + +`` `` O +Demand NN B-NP +has VBZ B-VP +caught VBN I-VP +up IN B-PRT +with IN B-PP +the DT B-NP +supply NN I-NP +of IN B-PP +certain JJ B-NP +types NNS I-NP +of IN B-PP +freight NN B-NP +transportation NN I-NP +, , O +and CC O +rates NNS B-NP +are VBP B-VP +starting VBG I-VP +to TO I-VP +move VB I-VP +up IN B-ADVP +'' '' O +at IN B-PP +a DT B-NP +rate NN I-NP +`` `` O +close RB B-ADJP +to TO B-PP +or CC O +slightly RB B-ADJP +more JJR I-ADJP +than IN B-PP +the DT B-NP +inflation NN I-NP +rate NN I-NP +, , O +'' '' O +said VBD B-VP +Clifford NNP B-NP +Sayre NNP I-NP +, , O +director NN B-NP +of IN B-PP +logistics NNS B-NP +at IN B-PP +Du NNP B-NP +Pont NNP I-NP +Co NNP I-NP +. . O + +Shippers NNS B-NP +surveyed VBN B-VP +recently RB B-ADVP +by IN B-PP +Ohio NNP B-NP +State NNP I-NP +University NNP I-NP +said VBD B-VP +they PRP B-NP +expect VBP B-VP +their PRP$ B-NP +freight-transport JJ I-NP +, , I-NP +storage NN I-NP +and CC I-NP +distribution NN I-NP +costs NNS I-NP +to TO B-VP +rise VB I-VP +about IN B-NP +4 CD I-NP +% NN I-NP +this DT B-NP +year NN I-NP +. . O + +Only RB B-NP +10 CD I-NP +% NN I-NP +of IN B-PP +the DT B-NP +250 CD I-NP +shippers NNS I-NP +polled VBN B-VP +expected VBN B-VP +their PRP$ B-NP +freight-transport JJ I-NP +costs NNS I-NP +to TO B-VP +decrease VB I-VP +, , O +compared VBN B-PP +with IN B-PP +30 CD B-NP +% NN I-NP +who WP B-NP +had VBD B-VP +looked VBN I-VP +to TO B-PP +freight VB B-NP +transport NN I-NP +to TO B-VP +reduce VB I-VP +costs NNS B-NP +in IN B-PP +past JJ B-NP +years NNS I-NP +. . O + +`` `` O +This DT B-NP +is VBZ B-VP +the DT B-NP +first JJ I-NP +year NN I-NP +since IN B-PP +transportation NN B-NP +deregulation NN I-NP +in IN B-PP +1980 CD B-NP +that IN B-ADVP +we PRP B-NP +have VBP B-VP +had VBN I-VP +such JJ B-NP +a DT I-NP +dramatic JJ I-NP +and CC I-NP +broad-based JJ I-NP +upturn NN I-NP +in IN B-PP +perceived VBN B-NP +transportation NN I-NP +rates NNS I-NP +, , O +'' '' O +said VBD B-VP +Bernard NNP B-NP +LaLonde NNP I-NP +, , O +a DT B-NP +transportation NN I-NP +logistics NNS I-NP +professor NN I-NP +at IN B-PP +Ohio NNP B-NP +State NNP I-NP +in IN B-PP +Columbus NNP B-NP +. . O + +The DT B-NP +deregulation NN I-NP +of IN B-PP +railroads NNS B-NP +and CC I-NP +trucking NN I-NP +companies NNS I-NP +that WDT B-NP +began VBD B-VP +in IN B-PP +1980 CD B-NP +enabled VBD B-VP +shippers NNS B-NP +to TO B-VP +bargain VB I-VP +for IN B-PP +transportation NN B-NP +. . O + +Carriers NNP B-NP +could MD B-VP +use VB I-VP +their PRP$ B-NP +equipment NN I-NP +more RBR B-ADVP +efficiently RB I-ADVP +, , O +leading VBG B-VP +to TO B-PP +overcapacity NN B-NP +they PRP B-NP +were VBD B-VP +eager JJ B-ADJP +to TO B-VP +fill VB I-VP +. . O + +Shippers NNS B-NP +cut VBP B-VP +about RB B-NP +$ $ I-NP +35 CD I-NP +billion CD I-NP +from IN B-PP +their PRP$ B-NP +annual JJ I-NP +, , I-NP +inter-city JJ I-NP +truck NN I-NP +and CC I-NP +rail NN I-NP +costs NNS I-NP +, , O +to TO B-PP +about RB B-NP +$ $ I-NP +150 CD I-NP +billion CD I-NP +, , O +or CC O +about IN B-NP +6.4 CD I-NP +% NN I-NP +of IN B-PP +gross JJ B-NP +national JJ I-NP +product NN I-NP +, , O +down RB B-ADVP +from IN B-PP +8 CD B-NP +% NN I-NP +of IN B-PP +GNP NNP B-NP +in IN B-PP +1981 CD B-NP +. . O + +But CC O +with IN B-PP +much NN B-NP +of IN B-PP +the DT B-NP +inefficiency NN I-NP +squeezed VBN B-VP +out IN B-PP +of IN B-PP +the DT B-NP +freight-transport JJ I-NP +system NN I-NP +, , O +rising VBG B-NP +costs NNS I-NP +are VBP B-VP +likely JJ B-ADJP +to TO B-VP +be VB I-VP +reflected VBN I-VP +directly RB B-ADVP +in IN B-PP +higher JJR B-NP +freight NN I-NP +rates NNS I-NP +. . O + +`` `` O +Shippers NNS B-NP +are VBP B-VP +saying VBG I-VP +` `` O +the DT B-NP +party NN I-NP +'s POS B-VP +over IN B-ADJP +, , O +' '' O +'' '' O +said VBD B-VP +Mr. NNP B-NP +LaLonde NNP I-NP +. . O + +`` `` O +Shippers NNS B-NP +wo MD B-VP +n't RB I-VP +be VB I-VP +able JJ B-ADJP +to TO B-VP +look VB I-VP +for IN B-PP +transportation-cost JJ B-NP +savings NNS I-NP +as IN B-SBAR +they PRP B-NP +have VBP B-VP +for IN B-PP +the DT B-NP +last JJ I-NP +eight CD I-NP +or CC I-NP +nine CD I-NP +years NNS I-NP +. . O + +Transport NN B-NP +rates NNS I-NP +wo MD B-VP +n't RB I-VP +be VB I-VP +an DT B-NP +opportunity NN I-NP +for IN B-PP +offsetting VBG B-VP +cost NN B-NP +increases NNS I-NP +in IN B-PP +other JJ B-NP +segments NNS I-NP +of IN B-PP +the DT B-NP +economy NN I-NP +. . O +'' '' O + +Robert NNP B-NP +Delaney NNP I-NP +, , O +a DT B-NP +consultant NN I-NP +at IN B-PP +Arthur NNP B-NP +D. NNP I-NP +Little NNP I-NP +Inc. NNP I-NP +, , O +Cambridge NNP B-NP +, , O +Mass. NNP B-NP +, , O +said VBD B-VP +`` `` O +We PRP B-NP +'ve VBP B-VP +gotten VBN I-VP +all PDT B-NP +the DT I-NP +benefits NNS I-NP +of IN B-PP +deregulation NN B-NP +in IN B-PP +freight-cost JJ B-NP +reductions NNS I-NP +. . O + +Now RB B-ADVP +we PRP B-NP +are VBP B-VP +starting VBG I-VP +to TO I-VP +see VB I-VP +real JJ B-NP +freight-rate JJ I-NP +increases NNS I-NP +as IN B-SBAR +carriers NNS B-NP +replace VBP B-VP +equipment NN B-NP +, , O +pay VB B-VP +higher JJR B-NP +fuel NN I-NP +costs NNS I-NP +and CC O +pay VB B-VP +more JJR B-NP +for IN B-PP +labor NN B-NP +. . O + +You PRP B-NP +'ll MD B-VP +see VB I-VP +carriers NNS B-NP +try VB B-VP +to TO I-VP +recoup VB I-VP +some DT B-NP +of IN B-PP +the DT B-NP +price NN I-NP +cutting VBG I-NP +that WDT B-NP +occurred VBD B-VP +previously RB B-ADVP +. . O +'' '' O + +Not RB B-NP +everyone NN I-NP +believes VBZ B-VP +that IN B-SBAR +the DT B-NP +good JJ I-NP +times NNS I-NP +are VBP B-VP +over IN B-ADJP +for IN B-PP +shippers NNS B-NP +. . O + +`` `` O +There EX B-NP +'s VBZ B-VP +still RB B-ADVP +a DT B-NP +lot NN I-NP +of IN B-PP +pressure NN B-NP +on IN B-PP +rates NNS B-NP +in IN B-PP +both DT B-NP +rail NN I-NP +and CC I-NP +truck NN I-NP +, , O +'' '' O +said VBD B-VP +Gerard NNP B-NP +McCullough NNP I-NP +, , O +lecturer NN B-NP +in IN B-PP +transportation NN B-NP +at IN B-PP +Massachusetts NNP B-NP +Institute NNP I-NP +of IN B-PP +Technology NNP B-NP +. . O + +Less-than-truckload JJ B-NP +companies NNS I-NP +, , O +which WDT B-NP +carry VBP B-VP +the DT B-NP +freight NN I-NP +of IN B-PP +several JJ B-NP +shippers NNS I-NP +in IN B-PP +each DT B-NP +truck NN I-NP +trailer NN I-NP +, , O +discounted VBD B-VP +away RB B-ADVP +a DT B-NP +4.7 CD I-NP +% NN I-NP +rate NN I-NP +increase NN I-NP +implemented VBD B-VP +last JJ B-NP +April NNP I-NP +. . O + +The DT B-NP +carriers NNS I-NP +were VBD B-VP +competing VBG I-VP +fiercely RB B-ADVP +for IN B-PP +market NN B-NP +share NN I-NP +. . O + +Railroad-rate JJ B-NP +increases NNS I-NP +are VBP B-VP +likely JJ B-ADJP +to TO B-VP +be VB I-VP +restrained VBN I-VP +by IN B-PP +weakening VBG B-NP +rail-traffic JJ I-NP +levels NNS I-NP +and CC O +keen JJ B-NP +competition NN I-NP +for IN B-PP +freight NN B-NP +from IN B-PP +trucks NNS B-NP +. . O + +An DT B-NP +official NN I-NP +at IN B-PP +Consolidated NNP B-NP +Freightways NNP I-NP +Inc. NNP I-NP +, , O +a DT B-NP +Menlo NNP I-NP +Park NNP I-NP +, , I-NP +Calif. NNP I-NP +, , I-NP +less-than-truckload JJ I-NP +carrier NN I-NP +, , O +said VBD B-VP +rate NN B-NP +discounting NN I-NP +in IN B-PP +that DT B-NP +industry NN I-NP +has VBZ B-VP +begun VBN I-VP +to TO I-VP +`` `` O +stabilize VB B-VP +. . O +'' '' O + +Consolidated NNP B-NP +Freightways NNP I-NP +plans VBZ B-VP +to TO I-VP +raise VB I-VP +its PRP$ B-NP +rates NNS I-NP +5.3 CD B-NP +% NN I-NP +late JJ B-NP +this DT I-NP +year NN I-NP +or CC O +early JJ B-NP +next JJ I-NP +year NN I-NP +, , O +and CC O +at IN B-NP +least JJS I-NP +two CD I-NP +competitors NNS I-NP +have VBP B-VP +announced VBN I-VP +similar JJ B-NP +increases NNS I-NP +. . O + diff --git a/example/seg/exec.sh b/example/seg/exec.sh new file mode 100755 index 0000000..65251fd --- /dev/null +++ b/example/seg/exec.sh @@ -0,0 +1,7 @@ +#!/bin/sh +../../crf_learn -f 3 -c 4.0 template train.data model +../../crf_test -m model test.data + +../../crf_learn -a MIRA -f 3 template train.data model +../../crf_test -m model test.data +rm -f model diff --git a/example/seg/template b/example/seg/template new file mode 100644 index 0000000..f694823 --- /dev/null +++ b/example/seg/template @@ -0,0 +1,14 @@ +# Unigram +U00:%x[-2,0] +U01:%x[-1,0] +U02:%x[0,0] +U03:%x[1,0] +U04:%x[2,0] +U05:%x[-2,0]/%x[-1,0]/%x[0,0] +U06:%x[-1,0]/%x[0,0]/%x[1,0] +U07:%x[0,0]/%x[1,0]/%x[2,0] +U08:%x[-1,0]/%x[0,0] +U09:%x[0,0]/%x[1,0] + +# Bigram +B diff --git a/example/seg/test.data b/example/seg/test.data new file mode 100644 index 0000000..b8298a5 --- /dev/null +++ b/example/seg/test.data @@ -0,0 +1,1000 @@ +�� h I +�� h I +�� h I +腱� k B +�� h B +�� h I +�� h B +筝� k B +篁� k I +�� h B +�� y B +�� h B +�� h I +�� h I +�� h I +�� h B +�� h I +�� k B +筝� k I +�� h B +�� y B +�� h B +�� h I +莇� k B +莊� k I +�� h B +�� h B +�� h I +�� h I +�� h B +�� h I +�� y B +�� k B +�� h I +�� k B +�� h I +�� h I +綵� k B +�� k I +�� h B +�� k B +�� h I +�� h B +�� h I +�� h B +�� h B +�� h I +�� h B +�� h B +�� h B +�� k B +�� h I +�� h B +�� h B +�� h B +�� h I +�� y B + +�� h B +�� h I +�� h B +�� h I +�� h B +�� k B +�� k I +�� h B +筝� k B +�� h I +�� h B +筝� k B +�� h I +�� h I +�� h B +紊� k B +羆� k I +�� h B +�� h I +�� h B +�� k B +茗� k I +�� h B +�� h B +�� h I +羂� k B +�� k I +�� h I +�� h B +�� h B +�� h I +�� h I +�� h I +�� h B +�� h I +�� y B + +鐚� u B +�� h B +�� h I +�� h I +�� h B +綺� k B +�� k I +鐚� u B +�� k B +篋� k I +�� h B +�� h I +�� h I +茖� k B +�� k I +�� h B +�� h I +�� h I +�� h I +鐚� y B +紊� k B +絖� k I +茗� k B +絽� k I +�� t B +紊� k B +�� k I +罩� k B +�� k I +�� y B +鐚� n B +鐚� n B + +�� y B +鐚� y B +�� k B +篋� k I +�� k B +�� k B +綏� k I +�� k B +鐚� y B + +�� y B +筝� k B +�� k B +�� h B +�� k B +罨� k I +�� y B +�� k B +�� k I +�� k B +綺� k I +�� h B +鐚� y B +紊� k B +�� k I +膠� k B +�� h B +鐚� y B +�� k B +�� k B +絎� k I +紿� k B +�� h B +�� k B +絎� k I +莖� k B +�� k I +�� h B +�� h B +�� h I +�� h B +�� y B +�� h B +�� h I +�� h I +�� k B +腮� k I +�� k B +�� h B +�� y B +筝� k B +綣� k I +�� h B +�� k B +�� k I +�� h B +�� h I +�� h I +�� y B +�� k B +膤� k I +膠� k B +�� k I +篋� k B +�� h B +�� k B +�� k I +筝� k B +�� h B +綣� k B +�� k I +�� k B +絎� k I +�� h B +絲� k I +�� h I +�� y B +膠� k B +�� k I +�� k B +綺� k I +�� h B +�� h I +茗� k B +臀� k I +�� h B +莖� k B +�� k I +�� k B +�� h B +�� k B +�� h I +�� k I +�� h I +�� h B +箴� k B +�� h B +�� h B +�� h I +�� h B +�� h B +�� h I +�� h B +�� y B +�� h B +�� h I +�� h B +�� k B +�� h I +�� h I +�� h B +篋� k B +絎� k I +茯� k B +茯� k I +�� h B +�� h B +�� h I +�� y B + +�� y B +膠� k B +�� k I +�� h B +茖� k B +�� k I +�� h B +綽� k B +�� h I +�� h B +�� h B +�� h B +�� y B +�� k B +羈� k I +�� h B +絎� k B +�� h I +�� h I +�� y B +�� k B +羈� k I +�� h B +�� k B +膓� k I +�� h I +�� y B +�� h B +腟� k B +�� h B +�� h B +臀� k B +�� h B +�� h B +�� h I +膠� k B +�� k I +絽� k B +羂� k I +罔� k B +�� h B +�� k B +�� h I +�� k B +膤� k I +篋� k B +�� h B +茵� k B +�� k I +�� k B +篁� k I +�� h B +綣� k B +�� k I +�� k B +絎� k I +�� h B +�� h B +�� h B +�� h B +�� h B +�� h I +�� h B +�� y B +�� h B +�� h I +�� h I +�� h I +�� k B +羈� k I +�� k B +�� k I +�� h B +�� h I +�� h I +�� k B +�� k B +羂� k I +�� h B +篋� k B +罔� k I +�� h B +莢� k B +�� k I +�� h B +�� k B +�� h I +�� h I +�� h B +�� h B +�� h B +�� h I +�� h B +絲� k I +�� h I +�� h I +茖� k B +�� k I +�� h B +�� h B +�� h B +�� h B +�� h I +�� h B +�� h B +�� h I +�� y B + +�� y B +�� k B +腮� k I +�� k B +�� h B +�� k B +荀� k I +�� h B +羣� k B +�� k I +�� h B +�� h I +�� h B +�� y B +�� h B +�� h I +�� h I +膠� k B +�� k I +�� k B +綺� k I +�� h B +�� h B +�� k B +�� k I +�� k B +筝� k I +�� h B +茖� k B +�� k I +�� h B +羆� k B +�� h I +�� h I +�� k B +�� h B +薤� k B +絨� k I +筝� k B +莢� k I +�� k B +�� h B +�� h B +�� h I +�� h B +�� y B +綵� k B +�� h I +�� h B +�� h B +�� h I +茵� k B +�� k I +�� h B +腟� k B +�� k I +�� h B +�� k B +�� h I +�� y B +紊� k B +�� h I +�� h B +篋� k B +�� k I +�� h B +�� k B +�� h I +�� h B +�� h B +�� h I +�� h I +�� h B +�� h I +�� h B +罩� k B +綵� k I +�� k B +�� h B +�� y B +荐� k B +綽� k I +�� k B +�� k I +�� h B +�� h I +�� k B +茵� k I +�� h B +�� h I +�� h B +�� h B +�� h B +�� h B +�� y B + +�� k B +絎� k I +紿� k B +�� h B +茖� k B +�� k I +�� h B +茯� k B +�� h I +�� h I +�� h B +�� y B +�� k B +�� k I +羈� k B +�� k B +�� k I +�� h B +�� y B +�� k B +�� k I +羚� k I +�� h B +�� h I +�� h I +�� h I +�� h I +�� k B +�� k I +�� y B +�� h B +�� h I +�� h I +膠� k B +�� k I +絽� k B +羂� k I +�� k B +篋� k I +�� h B +�� k B +絎� k I +�� h B +茖� k B +�� k I +�� h B +�� h I +�� h B +�� h I +�� h I +�� k B +茫� k I +�� h B +�� h I +�� h I +�� k B +腴� k I +�� h B +�� h I +�� h B +�� h B +�� h B +�� h I +�� y B +荀� k B +羆� k I +�� h B +�� k B +�� k I +�� h B +�� h B +�� h I +�� y B + +鐚� u B +�� t B +�� t I +�� t I +鐚� u B +絖� k B +�� k I +�� h B +蕋� k B +�� k I +�� h B +�� k B +臀� k I +�� h B +羝� k B +綺� k I +�� y B +�� y I +膠� k B +�� k I + +�� y B +膠� k B +�� k I +�� h B +�� t B +�� t I +�� t I +�� t I +�� t I +�� k B +�� h B +�� h B +�� y B +�� k B +�� k I +篋� k B +篁� k I +�� h B +鐚� n B +鐚� n B +鐚� y B +�� h B +�� t B +�� t I +�� t I +�� t I +�� t I +�� h B +�� t B +�� t I +�� t I +�� t I +�� h B +�� k B +篆� k I +�� h B +�� h B +�� h I +�� y B +�� t B +�� t I +�� t I +篋� k B +篁� k I +�� h B +鐚� n B +鐚� n B +鐚� y B +�� h B +�� t B +�� t I +�� t I +�� t I +�� t I +�� h B +�� t B +�� t I +�� t I +�� t I +篏� k B +�� k I +�� k B +�� h B +�� h I +�� h I +�� h B +�� h I +�� h B +�� h B +�� h I +�� h B +�� h B +�� h I +�� y B + +�� y B +膠� k B +�� k I +�� h B +紊� k B +絖� k I +�� k I +�� h B +鐚� n B +鐚� n B +鐚� y B +鐚� y B +�� k B +絖� k I +鐚� n B +鐚� n B +鐚� y B +�� y B +絅� k B +絖� k I +鐚� n B +鐚� n B +鐚� y B +鐚� y B +�� h B +�� y B +鐚� n B +�� k B +�� k I +�� h B +鐚� n B +綺� k B +�� h B +�� k B +�� h B +蕋� k B +�� h I +�� h B +紊� k B +薑� k I +�� h I +�� y B + +�� h B +�� h I +罸� k B +�� k I +�� h B +�� y B +紊� k B +�� h I +�� h B +綏� k B +�� h B +蕋� k B +�� k I +綛� k B +藹� k I +�� h B +鐚� n B +鐚� n B +罩� k B +�� h B +綣� k B +�� h I +筝� k I +�� h I +�� h B +�� h I +�� y B +膠� k B +�� k I +腓� k B +篌� k I +�� h B +紊� k B +�� h I +�� h I +紊� k B +�� k I +�� h B +�� h B +�� k B +�� k I +�� h B +�� h I +�� y B +鐚� n B +鐚� n B +鐚� n B +鐚� n B +綛� k B +�� h B +�� h I +�� h B +紊� k B +�� h I +�� h I +�� h B +�� h B +�� h B +�� h I +�� y B + +鐚� n B +綛� k B +�� k I +�� h B +篏� k B +�� h I +�� k B +篁� k I +�� h B +�� k B +膠� k I +篁� k B +�� h B +�� h I +紊� k B +�� h I +�� y B + +蕋� k B +�� h I +�� h B +�� h I +�� h B +�� h B +�� h I +�� h I +紊� k B +薑� k I +�� h I +�� h B +�� h I +�� h B +�� h I +�� h I +絖� k B +�� k I +�� h B +�� k B +絖� k I +鐚� n B +鐚� n B +鐚� y B +�� y B +絅� k B +絖� k I +�� h B +�� h B +鐚� n B +鐚� n B +鐚� y B +�� y B + +�� h B +�� h I +�� h I +�� h I +�� k B +�� h B +蕋� k B +�� h I +�� h B +�� h I +絖� k B +�� k I +�� h B +�� k B +篏� k I +�� h B +鐚� n B +鐚� n B +鐚� y B +�� h B +�� y B + +�� y B +筝� k B +�� k I +�� y B +鐚� n B +�� t B +�� k I +�� h B +鐚� n B +綺� k B +�� y B +�� t B +�� t I +�� t I +�� t I +�� t I +�� h B +�� k B +�� h I +紊� k B +絖� k I +�� k I +�� h B +�� k B +�� k I +�� h B +�� y B +鐚� n B +鐚� n B +綛� k B +�� h B +鐚� n B +篋� k B +�� h B +鐚� n B +篋� k B +�� h B +�� h I +�� k B +綛� k I +�� h B +鐚� n B +篋� k B +�� h B +鐚� n B +篋� k B +�� h B +篏� k B +筝� k I +�� y B + +�� t B +�� t I +�� t I +�� t I +�� h B +�� h B +�� k B +�� k B +�� k I +�� h B +鐚� n B +鐚� y B +�� h B +�� h I +鐚� n B +鐚� y B +鐚� n B +鐚� y B +�� h B +羝� k B +�� h I +�� h B +�� y B + +�� k B +�� h B +蕋� k B +�� h I +�� h B +篋� k B +�� k I +�� k I +�� h I +�� h B +�� h B +�� h I +�� h B +�� k B +�� h I +�� h I +�� h B +�� h B +�� h B +�� h B +紊� k B +薑� k I +�� h I +�� h B +�� h I +�� h B +�� h B +�� y B +�� t B +�� t I +�� t I +�� t I +�� h B +篏� k B +�� h I +�� h B +�� h I +�� h B +�� y B +�� t B +�� t I +�� h B +�� h B +�� h I +�� y B +�� h B +�� h I +�� h B +�� h B +�� h I +�� h B +�� y B + +�� y B +腟� k B +荐� k I +�� h B +�� k B +莠� k I +�� h B +�� h B +�� y B +�� t B +�� t I +�� t I +�� t I +�� t I +�� t I +�� t I +�� t I +�� y B +茯� k B +�� h B +�� y B +紊� k B +絖� k I +�� k I +�� h B +蕋� k B +�� k I +�� k B +蕁� k I +�� h B +膈� k B +�� h I +�� h B +荀� k B +�� h I +�� h I +�� h I +�� h B +�� h B +�� k B +�� h I +�� h I +�� h B +�� y B +綵� k B +�� h I +�� h B +絨� k B +�� k I +�� h B +�� t B +�� t I +�� t I +�� t I +�� h B +�� h B +�� h I +�� h B +�� h B +�� y B +�� h B +茘� k B +�� k I +�� h B +薐� k B +�� h I +�� h I +�� h B +�� h B +�� h I +�� y B + diff --git a/example/seg/train.data b/example/seg/train.data new file mode 100644 index 0000000..39a65b7 --- /dev/null +++ b/example/seg/train.data @@ -0,0 +1,1000 @@ +罸� k B +�� k I +�� k I +�� k I +腓� k I +�� k B +�� k I +蕁� k B +�� k I +鐚� n B +羂� k B +�� h B +�� k B +罩� k I +�� y B +�� k B +薤� k I +�� k B +篋� k I +羂� k B +�� y B +罌� k B +罍� k I +綽� k B +紊� k I +羂� k B +�� y B +篋� k B +罐� k I +膣� k B +筝� k I +羂� k B +�� y B +筝� k B +莪� k I +�� k B +筝� k I +羂� k B + +�� y B +鐚� n B +�� k B +篁� k B +�� h B +罸� k B +�� k I +�� k I +�� k I +腓� k I +�� k B +�� k I +蕁� k B +�� k I +�� h B +紮� k B +�� k I +�� h B +�� h B +�� h B +鐚� n B +羂� k B +�� h B +�� k B +罩� k I +�� h B +罨� k B +�� h B +�� k B +�� h I +�� y B + +�� y B +�� k B +薤� k I +�� k B +篋� k I +羂� k B +鐚� y B +�� h B +�� h I +�� h I +�� t B +�� h B +�� h I +�� h I +鐚� y B +紊� k B +�� k I +絽� k B +�� k B +荳� k I +�� y B + +鐚� n B +鐚� n B +鐚� n B +鐚� n B +綛� k B +�� k B +紊� k I +�� k B +絖� k I +�� k I +�� k B +�� y B + +鐚� n B +鐚� n B +綛� k B +�� k B +�� k B +�� k I +�� y B + +鐚� n B +鐚� n B +綛� k B +�� k B +紊� k I +絖� k B +�� k I +�� y B + +鐚� n B +鐚� n B +綛� k B +�� h B +�� h I +�� k B +�� k I +絖� k I +�� k I +腥� k I +�� k I +�� k B +篋� k I +�� k B +�� y B + +�� k B +�� k I +絖� k B +茵� k I +篌� k B +茘� k I +篌� k B +�� k I +�� y B + +�� k B +�� k I +�� h B +�� y B +�� k B +絖� k I +�� h B +�� k B +絖� k I +�� k I +�� y B +�� y B +�� t B +�� t I +�� t I +�� t I +�� t I +�� t I +�� h B +筝� k B +�� k I +�� y B +�� y B + +篆� k B +茯� k I +�� y B +紊� k B +�� k I +�� y B +筝� k B +絎� k I +�� y B + +�� k B +�� k I +�� h B +�� y B +�� k B +�� k I +�� y B +�� h B +�� h I +�� y B + +鐚� n B +鐚� n B +罩� k B +�� y B + +�� y B +罌� k B +罍� k I +綽� k B +紊� k I +羂� k B +鐚� y B +�� h B +�� h I +�� h I +�� h I +�� t B +�� h B +�� h I +�� h I +鐚� y B +篋� k B +�� k I +綺� k B +�� k B +荳� k I +�� y B + +鐚� n B +鐚� n B +綛� k B +篋� k B +紊� k I +�� k B +絖� k I +�� k I +�� k B +�� y B + +紊� k B +�� k I +絽� k I +腴� k I +紊� k I +�� k B +�� k I +�� k I +�� y B +篋� k B +紊� k I +篋� k B +�� k I +�� k I +�� k B +�� k I +�� h B +�� h I +�� h B +腟� k B +�� h B +鐚� n B +鐚� n B +綛� k B +�� k B +腴� k I +羂� k B +�� k I +絖� k B +�� k B +�� k I +蕕� k I +�� k B +�� y B + +鐚� n B +鐚� n B +綛� k B +�� k B +蕁� k B +�� k I +�� y B + +�� k B +�� k I +�� h B +�� y B +�� t B +�� t I +�� t I +�� t I +�� k B +�� k B +罎� k I +荐� k B +�� y B +�� y B +�� k B +�� k I +�� h B +�� k B +�� k I +�� k B +荀� k I +�� y B +�� y B +�� k B +�� k I +�� k B +�� k I +�� h B +�� k B +茵� k I +�� y B +�� h B +�� h I +�� y B + +鐚� n B +鐚� n B +罩� k B +�� y B + +�� y B +篋� k B +罐� k I +膣� k B +筝� k I +羂� k B +鐚� y B +�� h B +�� h I +�� h I +�� h I +�� h I +�� t B +�� h B +�� h I +�� h I +�� h I +�� h I +鐚� y B +篋� k B +�� k I +綺� k B +�� k B +荳� k I +�� y B + +鐚� n B +鐚� n B +綛� k B +�� k B +紊� k I +羈� k B +絖� k I +�� k I +�� k B +�� y B + +�� k B +紊� k I +茗� k B +絽� k I +�� y B +�� k B +�� k I +�� k I +�� h B +腟� k B +�� h B +鐚� n B +鐚� n B +綛� k B +�� k B +�� k I +�� y B + +鐚� n B +鐚� n B +綛� k B +�� k B +篋� k I +絅� k I +絖� k I +紊� k I +絖� k B +�� k I +�� y B +鐚� n B +鐚� n B +綛� k B +�� k B +篁� k I +�� y B + +�� k B +�� k I +�� h B +�� y B +罎� k B +�� k I +罩� k B +箙� k I +�� y B +�� y I +�� h B +�� h I +篋� k B +�� h B +�� k B +�� k I +�� y B +�� y B +�� k B +羃� k I +�� k B +茘� k I +�� h B +�� k B +�� k I +�� y B +�� y B +�� k B +�� k I +�� h B +�� k B +羃� k I +�� y B +�� h B +�� h I +�� y B + +鐚� n B +鐚� n B +罩� k B +�� y B + +�� y B +筝� k B +莪� k I +�� k B +筝� k I +羂� k B +鐚� y B +�� h B +�� h I +�� h I +�� t B +�� h B +�� h I +�� h I +�� h I +鐚� y B +絮� k B +綵� k I +�� k B +�� k B +荳� k I +�� y B + +鐚� n B +鐚� n B +綛� k B +�� k B +紊� k I +�� k B +絖� k I +�� k I +�� k B +�� y B +�� k B +絖� k I +�� k I +紊� k I +�� k B +�� k I +�� k I +�� h B +�� h I +�� h B +腟� k B +�� h B +�� k B +膈� k I +�� k B +羇� k I +�� y B + +鐚� n B +鐚� n B +綛� k B +�� y B +綛� k B +�� h B +罧� k B +�� h I +�� y B +�� h B +�� k B +綏� k I +莖� k I +�� y B +�� h B +�� h I +�� h B +�� y B +膃� k B +�� h B +�� h I +�� h I +�� y B +�� y B +�� h B +�� h I +�� h I +筝� k B +篋� k B +�� h B +�� k B +箙� k I +�� y B +�� y B +緇� k B +薐� k I +臂� k I +�� k B +�� y B +�� y B +綽� k B +�� k I +�� k I +�� h B +�� h B +篏� k B +�� h B +�� y B +�� y B +絅� k B +�� h B +�� h I +�� h I +�� y B +�� h B +�� h I +�� y B + +鐚� n B +鐚� n B +罩� k B +�� y B + +�� y B +篋� k B +篏� k I +絎� k B +薑� k I +�� y B +�� k B +�� k I +�� k B +�� h B +茖� k B +�� k I +�� y B +�� t B +�� t I +�� t I +�� t I +�� t I +�� k B +罔� k I +�� y B +絲� k B +膈� k I +�� h B +�� k B +茘� k I +�� h B + +�� y B +�� y B +�� t B +�� t I +�� t I +�� t I +�� t I +鐚� n B +鐚� n B +�� k B +羃� k B +�� k I +篆� k B +�� k I +�� y B +�� k B +�� k B +�� k I +�� k B +�� k I +�� h B +筝� k B +箙� k B +�� k B +�� y B +綛� k B +篁� k I +�� h B +�� h I +篋� k B +�� y B +綛� k B +篁� k I +�� h B +�� h I +�� h I +�� h I +�� y B +膠� k B +�� k B +綺� k I +�� h B +�� k B +絨� k I +�� k I +�� h B +綵� k B +�� k I +�� h B +茯� k B +�� h I +�� h I +�� h B +�� h I +�� h B +絽� k B +羂� k I +�� h B +�� y B +篋� k B +篏� k I +絎� k B +薑� k I +�� y B +�� h B +茵� k B +�� h I +�� h B +�� h B +�� h B +�� k B +蕁� k I +�� h B +�� y B +�� t B +�� t I +�� t I +�� t I +�� t I +�� k B +罔� k I +�� h B +筝� k B +�� k B +�� h B +�� k B +篆� k I +�� k B +�� k I +�� h B +�� t B +�� t I +�� t I +�� t I +�� t I +�� t I +�� t I +�� h B +�� k B +�� h I +�� y B +絲� k B +膈� k I +�� h B +�� k B +茘� k I +�� h B +�� h I +�� h B +�� h I +�� h B +羆� k B +�� h I +�� h B +�� y B + +�� y B +�� t B +�� t I +�� t I +�� t I +�� t I +�� k I +�� h B +�� t B +�� t I +�� t I +�� t I +�� t I +�� t I +�� h B +�� h B +�� k B +�� k I +�� k B +箴� k I +�� h B +�� k B +茘� k I +�� h B +�� k B +篁� k B +�� h B +莇� k B +�� h I +�� y B +�� t B +�� t I +�� t I +�� t I +�� t B +�� t B +�� t I +�� t I +�� t I +�� t I +�� k B +絎� k I +�� h B +�� y B +�� k B +�� k I +�� k B +�� h B +茖� k B +�� k I +�� h B +�� h B +�� h I +�� h B +�� h I +�� h B +�� y B +�� h B +荐� k B +�� k I +�� y B + +�� t B +�� t I +�� t I +�� t I +�� k B +�� k I +�� k B +絎� k I +�� h B +筝� k B +�� k B +�� k B +�� y B +�� k B +�� k I +膩� k I +�� k I +�� h B +莖� k B +�� k I +�� h B +�� t B +�� t I +�� t I +�� t I +�� h B +�� y B +荵� k B +�� h B +�� k B +筝� k I +�� h B +絎� k B +�� k I +�� h B +羇� k B +�� h I +�� k I +�� h I +�� h B +�� h I +�� k B +腓� k I +�� h B +�� h I +�� h B +�� h I +羈� k B +膣� k I +�� h B +綺� k B +�� h I +�� h I +筝� k B +�� k I +�� y B + +�� k B +�� k B +綛� k B +�� h B +腟� k B +�� h B +�� k B +�� h I +�� h I +�� h B +�� k B +�� h B +篋� k B +篏� k I +絎� k B +薑� k I +�� t B +�� t I +�� t I +�� t I +�� t I +�� t I +�� h B +�� y B +綵� k B +�� k I +�� y B +絨� k B +�� h B +綣� k B +�� h I +�� h B +�� h I +�� h B +羂� k B +�� k I +�� h B +�� y B + +�� y B +�� t B +�� t I +�� t I +�� t I +�� t I +�� t I +�� t I +�� h B +�� k B +�� k I +�� h B +�� h B +�� h I +�� h B +�� h B +�� y B +篋� k B +篏� k I +絎� k B +薑� k I +�� h B +絎� k B +�� k I +�� h B +茴� k B +絎� k I +�� k B +�� h B +菴� k B +莊� k I +茯� k B +�� k I +�� h B +茵� k B +�� h I +�� h B +�� h B +�� h I +�� t B +�� t I +�� t I +�� t I +�� t I +�� k I +�� h B +�� h B +�� h I +�� h I +�� y B +�� k B +�� k I +膩� k I +�� k I +�� y B +緇� k B +�� k I +荵� k I +篋� k I +�� k I +�� y B +�� k B +腥� k I +絎� k B +絎� k I +絮� k B +鐚� y B +鐚� a B +鐚� a I +鐚� a I +鐚� a I +鐚� y B +�� y B + +�� k B +�� y B +綛� k B +篁� k I +�� h B +�� h B +�� h I +�� h I +�� h I +�� h I +�� h B +�� h B +�� k B +篆� k I +荐� k B +�� k I +�� h B +�� k B +茵� k I +�� h B +茖� k B +�� k I +�� k B +蕁� k I +�� h B +�� k B +�� h I +�� k I +�� h I +�� h B +筝� k B +綽� k I +�� t B +�� t I +�� t I +�� h B +�� h B +�� h I +�� h B +�� h B +�� h B +�� h I +�� h B +�� h B +�� h I +�� y B + +�� y B +�� h B +�� h I +�� k B +蕁� k I +�� h B +�� k B +篋� k I +�� k I +筝� k B +�� k B +�� y B +�� t B +�� t I +�� t I +�� t I +�� k B +絎� k I +�� h B +�� k B +�� h I +�� h I +荐� k B +�� k I +篌� k B +荀� k I +�� h B +茯� k B +�� h I +�� y B +茯� k B +�� k I diff --git a/feature.cpp b/feature.cpp new file mode 100644 index 0000000..fbeef68 --- /dev/null +++ b/feature.cpp @@ -0,0 +1,193 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: feature.cpp 1595 2007-02-24 10:18:32Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#include "feature_index.h" +#include "common.h" +#include "node.h" +#include "path.h" +#include "tagger.h" + +namespace CRFPP { +static const char *BOS[4] = { "_B-1", "_B-2", "_B-3", "_B-4"}; +static const char *EOS[4] = { "_B+1", "_B+2", "_B+3", "_B+4"}; + +const char *FeatureIndex::getIndex(const char *&p, + size_t pos, + const TaggerImpl &tagger) const { + if (*p++ !='[') { + return 0; + } + + int col = 0; + int row = 0; + + int neg = 1; + if (*p++ == '-') { + neg = -1; + } else { + --p; + } + + for (; *p; ++p) { + switch (*p) { + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + row = 10 * row +(*p - '0'); + break; + case ',': + ++p; + goto NEXT1; + default: return 0; + } + } + +NEXT1: + + for (; *p; ++p) { + switch (*p) { + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': + col = 10 * col + (*p - '0'); + break; + case ']': goto NEXT2; + default: return 0; + } + } + +NEXT2: + + row *= neg; + + if (row < -4 || row > 4 || + col < 0 || col >= static_cast<int>(tagger.xsize())) { + return 0; + } + + // TODO(taku): very dirty workaround + if (check_max_xsize_) { + max_xsize_ = std::max(max_xsize_, static_cast<unsigned int>(col + 1)); + } + + const int idx = pos + row; + if (idx < 0) { + return BOS[-idx-1]; + } + if (idx >= static_cast<int>(tagger.size())) { + return EOS[idx - tagger.size()]; + } + + return tagger.x(idx, col); +} + +bool FeatureIndex::applyRule(string_buffer *os, + const char *p, + size_t pos, + const TaggerImpl& tagger) const { + os->assign(""); // clear + const char *r; + + for (; *p; p++) { + switch (*p) { + default: + *os << *p; + break; + case '%': + switch (*++p) { + case 'x': + ++p; + r = getIndex(p, pos, tagger); + if (!r) { + return false; + } + *os << r; + break; + default: + return false; + } + break; + } + } + + *os << '\0'; + + return true; +} + +void FeatureIndex::rebuildFeatures(TaggerImpl *tagger) const { + size_t fid = tagger->feature_id(); + const size_t thread_id = tagger->thread_id(); + + Allocator *allocator = tagger->allocator(); + allocator->clear_freelist(thread_id); + FeatureCache *feature_cache = allocator->feature_cache(); + + for (size_t cur = 0; cur < tagger->size(); ++cur) { + const int *f = (*feature_cache)[fid++]; + for (size_t i = 0; i < y_.size(); ++i) { + Node *n = allocator->newNode(thread_id); + n->clear(); + n->x = cur; + n->y = i; + n->fvector = f; + tagger->set_node(n, cur, i); + } + } + + for (size_t cur = 1; cur < tagger->size(); ++cur) { + const int *f = (*feature_cache)[fid++]; + for (size_t j = 0; j < y_.size(); ++j) { + for (size_t i = 0; i < y_.size(); ++i) { + Path *p = allocator->newPath(thread_id); + p->clear(); + p->add(tagger->node(cur - 1, j), + tagger->node(cur, i)); + p->fvector = f; + } + } + } +} + +#define ADD { const int id = getID(os.c_str()); \ + if (id != -1) feature.push_back(id); } while (0) + +bool FeatureIndex::buildFeatures(TaggerImpl *tagger) const { + string_buffer os; + std::vector<int> feature; + + FeatureCache *feature_cache = tagger->allocator()->feature_cache(); + tagger->set_feature_id(feature_cache->size()); + + for (size_t cur = 0; cur < tagger->size(); ++cur) { + for (std::vector<std::string>::const_iterator it + = unigram_templs_.begin(); + it != unigram_templs_.end(); ++it) { + if (!applyRule(&os, it->c_str(), cur, *tagger)) { + return false; + } + ADD; + } + feature_cache->add(feature); + feature.clear(); + } + + for (size_t cur = 1; cur < tagger->size(); ++cur) { + for (std::vector<std::string>::const_iterator + it = bigram_templs_.begin(); + it != bigram_templs_.end(); ++it) { + if (!applyRule(&os, it->c_str(), cur, *tagger)) { + return false; + } + ADD; + } + feature_cache->add(feature); + feature.clear(); + } + + return true; +} +#undef ADD +} diff --git a/feature_cache.cpp b/feature_cache.cpp new file mode 100644 index 0000000..dc0b5fb --- /dev/null +++ b/feature_cache.cpp @@ -0,0 +1,34 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: feature_cache.cpp 1587 2007-02-12 09:00:36Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#include <algorithm> +#include "feature_cache.h" + +namespace CRFPP { + +void FeatureCache::add(const std::vector<int> &f) { + int *p = feature_freelist_.alloc(f.size() + 1); + std::copy(f.begin(), f.end(), p); + p[f.size()] = -1; // sentinel + this->push_back(p); +} + +void FeatureCache::shrink(std::map<int, int> *old2new) { + for (size_t i = 0; i < size(); ++i) { + std::vector<int> newf; + for (int *f = (*this)[i]; *f != -1; ++f) { + std::map<int, int>::iterator it = old2new->find(*f); + if (it != old2new->end()) { + newf.push_back(it->second); + } + } + newf.push_back(-1); + std::copy(newf.begin(), newf.end(), (*this)[i]); + } + return; +} +} diff --git a/feature_cache.h b/feature_cache.h new file mode 100644 index 0000000..84ddfe8 --- /dev/null +++ b/feature_cache.h @@ -0,0 +1,34 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: feature_cache.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_FEATURE_CACHE_H_ +#define CRFPP_FEATURE_CACHE_H_ + +#include <vector> +#include <map> +#include "freelist.h" + +namespace CRFPP { + +class FeatureCache: public std::vector <int *> { + public: + void clear() { + std::vector<int *>::clear(); + feature_freelist_.free(); + } + + void add(const std::vector<int> &); + void shrink(std::map<int, int> *); + + explicit FeatureCache(): feature_freelist_(8192 * 16) {} + virtual ~FeatureCache() {} + + private: + FreeList<int> feature_freelist_; +}; +} +#endif diff --git a/feature_index.cpp b/feature_index.cpp new file mode 100644 index 0000000..4d9043d --- /dev/null +++ b/feature_index.cpp @@ -0,0 +1,515 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: feature_index.cpp 1587 2007-02-12 09:00:36Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#include <iostream> +#include <fstream> +#include <cstring> +#include <set> +#include "common.h" +#include "feature_index.h" + +namespace CRFPP { +namespace { +const char *read_ptr(const char **ptr, size_t size) { + const char *r = *ptr; + *ptr += size; + return r; +} + +template <class T> static inline void read_static(const char **ptr, + T *value) { + const char *r = read_ptr(ptr, sizeof(T)); + memcpy(value, r, sizeof(T)); +} +} // namespace + +char *Allocator::strdup(const char *p) { + const size_t len = std::strlen(p); + char *q = char_freelist_->alloc(len + 1); + std::strcpy(q, p); + return q; +} + +Allocator::Allocator(size_t thread_num) + : thread_num_(thread_num), + feature_cache_(new FeatureCache), + char_freelist_(new FreeList<char>(8192)) { + init(); +} + +Allocator::Allocator() + : thread_num_(1), + feature_cache_(new FeatureCache), + char_freelist_(new FreeList<char>(8192)) { + init(); +} + +Allocator::~Allocator() {} + +Path *Allocator::newPath(size_t thread_id) { + return path_freelist_[thread_id].alloc(); +} + +Node *Allocator::newNode(size_t thread_id) { + return node_freelist_[thread_id].alloc(); +} + +void Allocator::clear() { + feature_cache_->clear(); + char_freelist_->free(); + for (size_t i = 0; i < thread_num_; ++i) { + path_freelist_[i].free(); + node_freelist_[i].free(); + } +} + +void Allocator::clear_freelist(size_t thread_id) { + path_freelist_[thread_id].free(); + node_freelist_[thread_id].free(); +} + +FeatureCache *Allocator::feature_cache() const { + return feature_cache_.get(); +} + +size_t Allocator::thread_num() const { + return thread_num_; +} + +void Allocator::init() { + path_freelist_.reset(new FreeList<Path> [thread_num_]); + node_freelist_.reset(new FreeList<Node> [thread_num_]); + for (size_t i = 0; i < thread_num_; ++i) { + path_freelist_[i].set_size(8192 * 16); + node_freelist_[i].set_size(8192); + } +} + +int DecoderFeatureIndex::getID(const char *key) const { + return da_.exactMatchSearch<Darts::DoubleArray::result_type>(key); +} + +int EncoderFeatureIndex::getID(const char *key) const { + std::map <std::string, std::pair<int, unsigned int> >::iterator + it = dic_.find(key); + if (it == dic_.end()) { + dic_.insert(std::make_pair<std::string, std::pair<int, unsigned int> > + (key, std::make_pair<int, unsigned int>(maxid_, 1))); + const int n = maxid_; + maxid_ += (key[0] == 'U' ? y_.size() : y_.size() * y_.size()); + return n; + } else { + it->second.second++; + return it->second.first; + } + return -1; +} + +bool EncoderFeatureIndex::open(const char *template_filename, + const char *train_filename) { + check_max_xsize_ = true; + return openTemplate(template_filename) && openTagSet(train_filename); +} + +bool EncoderFeatureIndex::openTemplate(const char *filename) { + std::ifstream ifs(WPATH(filename)); + CHECK_FALSE(ifs) << "open failed: " << filename; + + std::string line; + while (std::getline(ifs, line)) { + if (!line[0] || line[0] == '#') { + continue; + } + if (line[0] == 'U') { + unigram_templs_.push_back(line); + } else if (line[0] == 'B') { + bigram_templs_.push_back(line); + } else { + CHECK_FALSE(true) << "unknown type: " << line << " " << filename; + } + } + + return true; +} + +bool EncoderFeatureIndex::openTagSet(const char *filename) { + std::ifstream ifs(WPATH(filename)); + CHECK_FALSE(ifs) << "no such file or directory: " << filename; + + scoped_fixed_array<char, 8192> line; + scoped_fixed_array<char *, 1024> column; + size_t max_size = 0; + std::set<std::string> candset; + + while (ifs.getline(line.get(), line.size())) { + if (line[0] == '\0' || line[0] == ' ' || line[0] == '\t') { + continue; + } + const size_t size = tokenize2(line.get(), "\t ", + column.get(), column.size()); + if (max_size == 0) { + max_size = size; + } + CHECK_FALSE(max_size == size) + << "inconsistent column size: " + << max_size << " " << size << " " << filename; + xsize_ = size - 1; + candset.insert(column[max_size-1]); + } + + y_.clear(); + for (std::set<std::string>::iterator it = candset.begin(); + it != candset.end(); ++it) { + y_.push_back(*it); + } + + ifs.close(); + + return true; +} + +bool DecoderFeatureIndex::open(const char *model_filename) { + CHECK_FALSE(mmap_.open(model_filename)) << mmap_.what(); + + const char *ptr = mmap_.begin(); + unsigned int version_ = 0; + + read_static<unsigned int>(&ptr, &version_); + + CHECK_FALSE(version_ / 100 == version / 100) + << "model version is different: " << version_ + << " vs " << version << " : " << model_filename; + int type = 0; + read_static<int>(&ptr, &type); + read_static<double>(&ptr, &cost_factor_); + read_static<unsigned int>(&ptr, &maxid_); + read_static<unsigned int>(&ptr, &xsize_); + + unsigned int dsize = 0; + read_static<unsigned int>(&ptr, &dsize); + + unsigned int y_str_size; + read_static<unsigned int>(&ptr, &y_str_size); + const char *y_str = read_ptr(&ptr, y_str_size); + size_t pos = 0; + while (pos < y_str_size) { + y_.push_back(y_str + pos); + while (y_str[pos++] != '\0') {} + } + + unsigned int tmpl_str_size; + read_static<unsigned int>(&ptr, &tmpl_str_size); + const char *tmpl_str = read_ptr(&ptr, tmpl_str_size); + pos = 0; + while (pos < tmpl_str_size) { + const char *v = tmpl_str + pos; + if (v[0] == '\0') { + ++pos; + } else if (v[0] == 'U') { + unigram_templs_.push_back(v); + } else if (v[0] == 'B') { + bigram_templs_.push_back(v); + } else { + CHECK_FALSE(true) << "unknown type: " << v; + } + while (tmpl_str[pos++] != '\0') {} + } + + da_.set_array(const_cast<char *>(ptr)); + ptr += dsize; + + alpha_float_ = reinterpret_cast<const float *>(ptr); + ptr += sizeof(alpha_float_[0]) * maxid_; + + CHECK_FALSE(ptr == mmap_.end()) << + "model file is broken: " << model_filename; + + return true; +} + +void EncoderFeatureIndex::shrink(size_t freq, Allocator *allocator) { + if (freq <= 1) { + return; + } + + std::map<int, int> old2new; + int new_maxid = 0; + + for (std::map<std::string, std::pair<int, unsigned int> >::iterator + it = dic_.begin(); it != dic_.end();) { + const std::string &key = it->first; + + if (it->second.second >= freq) { + old2new.insert(std::make_pair<int, int>(it->second.first, new_maxid)); + it->second.first = new_maxid; + new_maxid += (key[0] == 'U' ? y_.size() : y_.size() * y_.size()); + ++it; + } else { + dic_.erase(it++); + } + } + + allocator->feature_cache()->shrink(&old2new); + + maxid_ = new_maxid; +} + +bool EncoderFeatureIndex::convert(const char *text_filename, + const char *binary_filename) { + std::ifstream ifs(WPATH(text_filename)); + + y_.clear(); + dic_.clear(); + unigram_templs_.clear(); + bigram_templs_.clear(); + xsize_ = 0; + maxid_ = 0; + + CHECK_FALSE(ifs) << "open failed: " << text_filename; + + scoped_fixed_array<char, 8192> line; + char *column[8]; + + // read header + while (true) { + CHECK_FALSE(ifs.getline(line.get(), line.size())) + << " format error: " << text_filename; + + if (std::strlen(line.get()) == 0) { + break; + } + + const size_t size = tokenize(line.get(), "\t ", column, 2); + + CHECK_FALSE(size == 2) << "format error: " << text_filename; + + if (std::strcmp(column[0], "xsize:") == 0) { + xsize_ = std::atoi(column[1]); + } + + if (std::strcmp(column[0], "maxid:") == 0) { + maxid_ = std::atoi(column[1]); + } + } + + CHECK_FALSE(maxid_ > 0) << "maxid is not defined: " << text_filename; + + CHECK_FALSE(xsize_ > 0) << "xsize is not defined: " << text_filename; + + while (true) { + CHECK_FALSE(ifs.getline(line.get(), line.size())) + << "format error: " << text_filename; + if (std::strlen(line.get()) == 0) { + break; + } + y_.push_back(line.get()); + } + + while (true) { + CHECK_FALSE(ifs.getline(line.get(), line.size())) + << "format error: " << text_filename; + if (std::strlen(line.get()) == 0) { + break; + } + if (line[0] == 'U') { + unigram_templs_.push_back(line.get()); + } else if (line[0] == 'B') { + bigram_templs_.push_back(line.get()); + } else { + CHECK_FALSE(true) << "unknown type: " << line.get() + << " " << text_filename; + } + } + + while (true) { + CHECK_FALSE(ifs.getline(line.get(), line.size())) + << "format error: " << text_filename; + if (std::strlen(line.get()) == 0) { + break; + } + + const size_t size = tokenize(line.get(), "\t ", column, 2); + CHECK_FALSE(size == 2) << "format error: " << text_filename; + + dic_.insert(std::make_pair<std::string, std::pair<int, unsigned int> > + (column[1], + std::make_pair<int, unsigned int>(std::atoi(column[0]), 1))); + } + + std::vector<double> alpha; + while (ifs.getline(line.get(), line.size())) { + alpha.push_back(std::atof(line.get())); + } + + alpha_ = &alpha[0]; + + CHECK_FALSE(alpha.size() == maxid_) << " file is broken: " << text_filename; + + return save(binary_filename, false); +} + + +bool EncoderFeatureIndex::save(const char *filename, + bool textmodelfile) { + std::vector<char *> key; + std::vector<int> val; + + std::string y_str; + for (size_t i = 0; i < y_.size(); ++i) { + y_str += y_[i]; + y_str += '\0'; + } + + std::string templ_str; + for (size_t i = 0; i < unigram_templs_.size(); ++i) { + templ_str += unigram_templs_[i]; + templ_str += '\0'; + } + + for (size_t i = 0; i < bigram_templs_.size(); ++i) { + templ_str += bigram_templs_[i]; + templ_str += '\0'; + } + + while ((y_str.size() + templ_str.size()) % 4 != 0) { + templ_str += '\0'; + } + + for (std::map<std::string, std::pair<int, unsigned int> >::iterator + it = dic_.begin(); + it != dic_.end(); ++it) { + key.push_back(const_cast<char *>(it->first.c_str())); + val.push_back(it->second.first); + } + + Darts::DoubleArray da; + + CHECK_FALSE(da.build(key.size(), &key[0], 0, &val[0]) == 0) + << "cannot build double-array"; + + std::ofstream bofs; + bofs.open(WPATH(filename), OUTPUT_MODE); + + CHECK_FALSE(bofs) << "open failed: " << filename; + + unsigned int version_ = version; + bofs.write(reinterpret_cast<char *>(&version_), sizeof(unsigned int)); + + int type = 0; + bofs.write(reinterpret_cast<char *>(&type), sizeof(type)); + bofs.write(reinterpret_cast<char *>(&cost_factor_), sizeof(cost_factor_)); + bofs.write(reinterpret_cast<char *>(&maxid_), sizeof(maxid_)); + + if (max_xsize_ > 0) { + xsize_ = std::min(xsize_, max_xsize_); + } + bofs.write(reinterpret_cast<char *>(&xsize_), sizeof(xsize_)); + unsigned int dsize = da.unit_size() * da.size(); + bofs.write(reinterpret_cast<char *>(&dsize), sizeof(dsize)); + unsigned int size = y_str.size(); + bofs.write(reinterpret_cast<char *>(&size), sizeof(size)); + bofs.write(const_cast<char *>(y_str.data()), y_str.size()); + size = templ_str.size(); + bofs.write(reinterpret_cast<char *>(&size), sizeof(size)); + bofs.write(const_cast<char *>(templ_str.data()), templ_str.size()); + bofs.write(reinterpret_cast<const char *>(da.array()), dsize); + + for (size_t i = 0; i < maxid_; ++i) { + float alpha = static_cast<float>(alpha_[i]); + bofs.write(reinterpret_cast<char *>(&alpha), sizeof(alpha)); + } + + bofs.close(); + + if (textmodelfile) { + std::string filename2 = filename; + filename2 += ".txt"; + + std::ofstream tofs(WPATH(filename2.c_str())); + + CHECK_FALSE(tofs) << " no such file or directory: " << filename2; + + // header + tofs << "version: " << version_ << std::endl; + tofs << "cost-factor: " << cost_factor_ << std::endl; + tofs << "maxid: " << maxid_ << std::endl; + tofs << "xsize: " << xsize_ << std::endl; + + tofs << std::endl; + + // y + for (size_t i = 0; i < y_.size(); ++i) { + tofs << y_[i] << std::endl; + } + + tofs << std::endl; + + // template + for (size_t i = 0; i < unigram_templs_.size(); ++i) { + tofs << unigram_templs_[i] << std::endl; + } + + for (size_t i = 0; i < bigram_templs_.size(); ++i) { + tofs << bigram_templs_[i] << std::endl; + } + + tofs << std::endl; + + // dic + for (std::map<std::string, std::pair<int, unsigned int> >::iterator + it = dic_.begin(); + it != dic_.end(); ++it) { + tofs << it->second.first << " " << it->first << std::endl; + } + + tofs << std::endl; + + tofs.setf(std::ios::fixed, std::ios::floatfield); + tofs.precision(16); + + for (size_t i = 0; i < maxid_; ++i) { + tofs << alpha_[i] << std::endl; + } + } + + return true; +} + +void FeatureIndex::calcCost(Node *n) const { + n->cost = 0.0; + +#define ADD_COST(T, A) \ + do { T c = 0; \ + for (const int *f = n->fvector; *f != -1; ++f) { c += (A)[*f + n->y]; } \ + n->cost =cost_factor_ *(T)c; } while (0) + + if (alpha_float_) { + ADD_COST(float, alpha_float_); + } else { + ADD_COST(double, alpha_); + } +#undef ADD_COST +} + +void FeatureIndex::calcCost(Path *p) const { + p->cost = 0.0; + +#define ADD_COST(T, A) \ + { T c = 0.0; \ + for (const int *f = p->fvector; *f != -1; ++f) { \ + c += (A)[*f + p->lnode->y * y_.size() + p->rnode->y]; \ + } \ + p->cost =cost_factor_*(T)c; } + + if (alpha_float_) { + ADD_COST(float, alpha_float_); + } else { + ADD_COST(double, alpha_); + } +} +#undef ADD_COST +} diff --git a/feature_index.h b/feature_index.h new file mode 100644 index 0000000..0b5f910 --- /dev/null +++ b/feature_index.h @@ -0,0 +1,125 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: feature_index.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_FEATURE_INDEX_H_ +#define CRFPP_FEATURE_INDEX_H_ + +#include <vector> +#include <map> +#include <iostream> +#include "common.h" +#include "scoped_ptr.h" +#include "feature_cache.h" +#include "path.h" +#include "node.h" +#include "freelist.h" +#include "mmap.h" +#include "darts.h" + +namespace CRFPP { +class TaggerImpl; + +class Allocator { + public: + explicit Allocator(size_t thread_num); + Allocator(); + virtual ~Allocator(); + + char *strdup(const char *str); + Path *newPath(size_t thread_id); + Node *newNode(size_t thread_id); + void clear(); + void clear_freelist(size_t thread_id); + FeatureCache *feature_cache() const; + size_t thread_num() const; + + private: + void init(); + + size_t thread_num_; + scoped_ptr<FeatureCache> feature_cache_; + scoped_ptr<FreeList<char> > char_freelist_; + scoped_array< FreeList<Path> > path_freelist_; + scoped_array< FreeList<Node> > node_freelist_; +}; + +class FeatureIndex { + public: + static const unsigned int version = MODEL_VERSION; + + size_t size() const { return maxid_; } + size_t xsize() const { return xsize_; } + size_t ysize() const { return y_.size(); } + const char* y(size_t i) const { return y_[i].c_str(); } + void set_alpha(const double *alpha) { alpha_ = alpha; } + const float *alpha_float() { return alpha_float_; } + const double *alpha() const { return alpha_; } + void set_cost_factor(double cost_factor) { cost_factor_ = cost_factor; } + double cost_factor() const { return cost_factor_; } + + void calcCost(Node *node) const; + void calcCost(Path *path) const; + + bool buildFeatures(TaggerImpl *tagger) const; + void rebuildFeatures(TaggerImpl *tagger) const; + + const char* what() { return what_.str(); } + + explicit FeatureIndex(): maxid_(0), alpha_(0), alpha_float_(0), + cost_factor_(1.0), xsize_(0), + check_max_xsize_(false), max_xsize_(0) {} + virtual ~FeatureIndex() {} + + protected: + virtual int getID(const char *str) const = 0; + const char *getIndex(const char *&p, + size_t pos, + const TaggerImpl &tagger) const; + bool applyRule(string_buffer *os, + const char *pattern, + size_t pos, const TaggerImpl &tagger) const; + + mutable unsigned int maxid_; + const double *alpha_; + const float *alpha_float_; + double cost_factor_; + unsigned int xsize_; + bool check_max_xsize_; + mutable unsigned int max_xsize_; + std::vector<std::string> unigram_templs_; + std::vector<std::string> bigram_templs_; + std::vector<std::string> y_; + whatlog what_; +}; + +class EncoderFeatureIndex: public FeatureIndex { + public: + bool open(const char *template_filename, + const char *model_filename); + bool save(const char *filename, bool emit_textmodelfile); + bool convert(const char *text_filename, + const char *binary_filename); + void shrink(size_t freq, Allocator *allocator); + + private: + int getID(const char *str) const; + bool openTemplate(const char *filename); + bool openTagSet(const char *filename); + mutable std::map<std::string, std::pair<int, unsigned int> > dic_; +}; + +class DecoderFeatureIndex: public FeatureIndex { + public: + bool open(const char *model_filename); + + private: + Mmap <char> mmap_; + Darts::DoubleArray da_; + int getID(const char *str) const; +}; +} +#endif diff --git a/freelist.h b/freelist.h new file mode 100644 index 0000000..b97f9fd --- /dev/null +++ b/freelist.h @@ -0,0 +1,72 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: freelist.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_FREELIST_H_ +#define CRFPP_FREELIST_H_ + +#include <vector> +#include <cstring> + +namespace CRFPP { +template <class T> +class Length { + public: + size_t operator()(const T *str) const { return 1; } +}; + +class charLength { + public: + size_t operator()(const char *str) const { return strlen(str) + 1; } +}; + +template <class T, class LengthFunc = Length<T> > +class FreeList { + private: + std::vector <T *> freeList; + size_t pi; + size_t li; + size_t size; + + public: + void free() { li = pi = 0; } + + T* alloc(size_t len = 1) { + if ((pi + len) >= size) { + li++; + pi = 0; + } + if (li == freeList.size()) { + freeList.push_back(new T[size]); + } + T* r = freeList[li] + pi; + pi += len; + return r; + } + + T* dup(T *src, size_t len = 0) { + if (!len) len = LengthFunc () (src); + T *p = alloc(len); + if (src == 0) memset (p, 0, len * sizeof (T)); + else memcpy(p, src, len * sizeof(T)); + return p; + } + + void set_size(size_t n) { size = n; } + + explicit FreeList(size_t _size): pi(0), li(0), size(_size) {} + explicit FreeList(): pi(0), li(0), size(0) {} + + virtual ~FreeList() { + for (li = 0; li < freeList.size(); ++li) { + delete [] freeList[li]; + } + } +}; + +typedef FreeList<char, charLength> StrFreeList; +} +#endif diff --git a/install-sh b/install-sh new file mode 100755 index 0000000..dd97db7 --- /dev/null +++ b/install-sh @@ -0,0 +1,322 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2004-09-10.20 + +# 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. It can only install one file at a time, a restriction +# shared with many OS's install programs. + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" +mkdirprog="${MKDIRPROG-mkdir}" + +chmodcmd="$chmodprog 0755" +chowncmd= +chgrpcmd= +stripcmd= +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src= +dst= +dir_arg= +dstarg= +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: +-c (ignored) +-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. +--help display this help and exit. +--version display version info and exit. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG +" + +while test -n "$1"; do + case $1 in + -c) shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + --help) echo "$usage"; exit 0;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -s) stripcmd=$stripprog + shift + continue;; + + -t) dstarg=$2 + shift + shift + continue;; + + -T) no_target_directory=true + shift + continue;; + + --version) echo "$0 $scriptversion"; exit 0;; + + *) # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + test -n "$dir_arg$dstarg" && break + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dstarg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dstarg" + shift # fnord + fi + shift # arg + dstarg=$arg + done + break;; + esac +done + +if test -z "$1"; 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 + +for src +do + # Protect names starting with `-'. + case $src in + -*) src=./$src ;; + esac + + if test -n "$dir_arg"; then + dst=$src + src= + + if test -d "$dst"; then + mkdircmd=: + chmodcmd= + else + mkdircmd=$mkdirprog + fi + 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 "$dstarg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + + dst=$dstarg + # 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: $dstarg: Is a directory" >&2 + exit 1 + fi + dst=$dst/`basename "$src"` + fi + fi + + # This sed command emulates the dirname command. + dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + + # Make sure that the destination directory exists. + + # Skip lots of stat calls in the usual case. + if test ! -d "$dstdir"; then + defaultIFS=' + ' + IFS="${IFS-$defaultIFS}" + + oIFS=$IFS + # Some sh's can't handle IFS=/ for some reason. + IFS='%' + set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` + IFS=$oIFS + + pathcomp= + + while test $# -ne 0 ; do + pathcomp=$pathcomp$1 + shift + if test ! -d "$pathcomp"; then + $mkdirprog "$pathcomp" + # mkdir can fail with a `File exist' error in case several + # install-sh are creating the directory concurrently. This + # is OK. + test -d "$pathcomp" || exit + fi + pathcomp=$pathcomp/ + done + fi + + if test -n "$dir_arg"; then + $doit $mkdircmd "$dst" \ + && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ + && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ + && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } + + else + dstfile=`basename "$dst"` + + # 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 + trap '(exit $?); exit' 1 2 13 15 + + # Copy the file name to the temp name. + $doit $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 "$dsttmp"; } && + + # Now rename the file to the real destination. + { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 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. + { + if test -f "$dstdir/$dstfile"; then + $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ + || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ + || { + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 + (exit 1); exit + } + else + : + fi + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" + } + } + fi || { (exit 1); exit; } +done + +# The final little trick to "correctly" pass the exit status to the exit trap. +{ + (exit 0); exit +} + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/java/.am b/java/.am new file mode 100644 index 0000000..2c3332e --- /dev/null +++ b/java/.am @@ -0,0 +1,27 @@ +TARGET=MeCab +JAVAC=javac +JAVA=java +JAR=jar +CXX=c++ +INCLUDE=/usr/lib/jvm/java-6-openjdk/include + +PACKAGE=org/chasen/mecab + +LIBS=`mecab-config --libs` +INC=`mecab-config --cflags` -I$(INCLUDE) -I$(INCLUDE)/linux + +all: + $(CXX) -O3 -c -fpic $(TARGET)_wrap.cxx $(INC) + $(CXX) -shared $(TARGET)_wrap.o -o lib$(TARGET).so $(LIBS) + $(JAVAC) $(PACKAGE)/*.java + $(JAVAC) test.java + $(JAR) cfv $(TARGET).jar $(PACKAGE)/*.class + +test: + env LD_LIBRARY_PATH=. $(JAVA) test + +clean: + rm -fr *.jar *.o *.so *.class $(PACKAGE)/*.class + +cleanall: + rm -fr $(TARGET).java *.cxx diff --git a/java/CRFPP_wrap.cxx b/java/CRFPP_wrap.cxx new file mode 100644 index 0000000..5e905c5 --- /dev/null +++ b/java/CRFPP_wrap.cxx @@ -0,0 +1,1564 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGJAVA + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template<typename T> class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); + SwigValueWrapper(const SwigValueWrapper<T>& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template <typename T> T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + + +/* Fix for jlong on some versions of gcc on Windows */ +#if defined(__GNUC__) && !defined(__INTEL_COMPILER) + typedef long long __int64; +#endif + +/* Fix for jlong on 64-bit x86 Solaris */ +#if defined(__x86_64) +# ifdef _LP64 +# undef _LP64 +# endif +#endif + +#include <jni.h> +#include <stdlib.h> +#include <string.h> + + +/* Support for throwing Java exceptions */ +typedef enum { + SWIG_JavaOutOfMemoryError = 1, + SWIG_JavaIOException, + SWIG_JavaRuntimeException, + SWIG_JavaIndexOutOfBoundsException, + SWIG_JavaArithmeticException, + SWIG_JavaIllegalArgumentException, + SWIG_JavaNullPointerException, + SWIG_JavaDirectorPureVirtual, + SWIG_JavaUnknownError +} SWIG_JavaExceptionCodes; + +typedef struct { + SWIG_JavaExceptionCodes code; + const char *java_exception; +} SWIG_JavaExceptions_t; + + +static void SWIGUNUSED SWIG_JavaThrowException(JNIEnv *jenv, SWIG_JavaExceptionCodes code, const char *msg) { + jclass excep; + static const SWIG_JavaExceptions_t java_exceptions[] = { + { SWIG_JavaOutOfMemoryError, "java/lang/OutOfMemoryError" }, + { SWIG_JavaIOException, "java/io/IOException" }, + { SWIG_JavaRuntimeException, "java/lang/RuntimeException" }, + { SWIG_JavaIndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException" }, + { SWIG_JavaArithmeticException, "java/lang/ArithmeticException" }, + { SWIG_JavaIllegalArgumentException, "java/lang/IllegalArgumentException" }, + { SWIG_JavaNullPointerException, "java/lang/NullPointerException" }, + { SWIG_JavaDirectorPureVirtual, "java/lang/RuntimeException" }, + { SWIG_JavaUnknownError, "java/lang/UnknownError" }, + { (SWIG_JavaExceptionCodes)0, "java/lang/UnknownError" } + }; + const SWIG_JavaExceptions_t *except_ptr = java_exceptions; + + while (except_ptr->code != code && except_ptr->code) + except_ptr++; + + jenv->ExceptionClear(); + excep = jenv->FindClass(except_ptr->java_exception); + if (excep) + jenv->ThrowNew(excep, msg); +} + + +/* Contract support */ + +#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else + +/* Errors in SWIG */ +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 +#define SWIG_SystemError -10 +#define SWIG_AttributeError -11 +#define SWIG_MemoryError -12 +#define SWIG_NullReferenceError -13 + + + + +SWIGINTERN void SWIG_JavaException(JNIEnv *jenv, int code, const char *msg) { + SWIG_JavaExceptionCodes exception_code = SWIG_JavaUnknownError; + switch(code) { + case SWIG_MemoryError: + exception_code = SWIG_JavaOutOfMemoryError; + break; + case SWIG_IOError: + exception_code = SWIG_JavaIOException; + break; + case SWIG_SystemError: + case SWIG_RuntimeError: + exception_code = SWIG_JavaRuntimeException; + break; + case SWIG_OverflowError: + case SWIG_IndexError: + exception_code = SWIG_JavaIndexOutOfBoundsException; + break; + case SWIG_DivisionByZero: + exception_code = SWIG_JavaArithmeticException; + break; + case SWIG_SyntaxError: + case SWIG_ValueError: + case SWIG_TypeError: + exception_code = SWIG_JavaIllegalArgumentException; + break; + case SWIG_UnknownError: + default: + exception_code = SWIG_JavaUnknownError; + break; + } + SWIG_JavaThrowException(jenv, exception_code, msg); +} + + +#include <stdexcept> + + +#include "crfpp.h" + + + +void delete_CRFPP_Model (CRFPP::Model *t) { + delete t; + t = 0; +} + +CRFPP::Model* new_CRFPP_Model(const char *arg) { + CRFPP::Model *tagger = CRFPP::createModel(arg); + if (!tagger) throw CRFPP::getLastError(); + return tagger; +} + +void delete_CRFPP_Tagger (CRFPP::Tagger *t) { + delete t; + t = 0; +} + +CRFPP::Tagger* new_CRFPP_Tagger (const char *arg) { + CRFPP::Tagger *tagger = CRFPP::createTagger(arg); + if (!tagger) throw CRFPP::getLastError(); + return tagger; +} + + + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Model_1createTagger(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + CRFPP::Model *arg1 = (CRFPP::Model *) 0 ; + CRFPP::Tagger *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Model **)&jarg1; + { + try { + result = (CRFPP::Tagger *)((CRFPP::Model const *)arg1)->createTagger(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + *(CRFPP::Tagger **)&jresult = result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_Model_1what(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + CRFPP::Model *arg1 = (CRFPP::Model *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Model **)&jarg1; + { + try { + result = (char *)(arg1)->what(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_chasen_crfpp_CRFPPJNI_delete_1Model(JNIEnv *jenv, jclass jcls, jlong jarg1) { + CRFPP::Model *arg1 = (CRFPP::Model *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(CRFPP::Model **)&jarg1; + { + try { + delete arg1; + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return ; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return ; + }; + } + } +} + + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_new_1Model(JNIEnv *jenv, jclass jcls, jstring jarg1) { + jlong jresult = 0 ; + char *arg1 = (char *) 0 ; + CRFPP::Model *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + { + try { + result = (CRFPP::Model *)new_CRFPP_Model((char const *)arg1); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + *(CRFPP::Model **)&jresult = result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1set_1vlevel(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + unsigned int arg2 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (unsigned int)jarg2; + { + try { + (arg1)->set_vlevel(arg2); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return ; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return ; + }; + } + } +} + + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1vlevel(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + unsigned int result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = (unsigned int)((CRFPP::Tagger const *)arg1)->vlevel(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1set_1cost_1factor(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jfloat jarg2) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + float arg2 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (float)jarg2; + { + try { + (arg1)->set_cost_factor(arg2); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return ; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return ; + }; + } + } +} + + +SWIGEXPORT jfloat JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1cost_1factor(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jfloat jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + float result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = (float)((CRFPP::Tagger const *)arg1)->cost_factor(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jfloat)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1set_1nbest(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + { + try { + (arg1)->set_nbest(arg2); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return ; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return ; + }; + } + } +} + + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1nbest(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = ((CRFPP::Tagger const *)arg1)->nbest(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1add(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jboolean jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + { + try { + result = (bool)(arg1)->add((char const *)arg2); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jboolean)result; + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1size(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = ((CRFPP::Tagger const *)arg1)->size(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1xsize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = ((CRFPP::Tagger const *)arg1)->xsize(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1dsize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = ((CRFPP::Tagger const *)arg1)->dsize(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1result(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jlong jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + { + try { + result = ((CRFPP::Tagger const *)arg1)->result(arg2); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1answer(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jlong jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + { + try { + result = ((CRFPP::Tagger const *)arg1)->answer(arg2); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1y(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jlong jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + { + try { + result = ((CRFPP::Tagger const *)arg1)->y(arg2); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1y2(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jstring jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->y2(arg2); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1yname(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jstring jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->yname(arg2); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1x(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jstring jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + arg3 = (size_t)jarg3; + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->x(arg2,arg3); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1ysize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = ((CRFPP::Tagger const *)arg1)->ysize(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1prob_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jdouble jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + double result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + arg3 = (size_t)jarg3; + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(arg2,arg3); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jdouble)result; + return jresult; +} + + +SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1prob_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jdouble jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + double result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(arg2); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jdouble)result; + return jresult; +} + + +SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1prob_1_1SWIG_12(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jdouble jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + double result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jdouble)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1set_1penalty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jdouble jarg4) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + double arg4 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + arg3 = (size_t)jarg3; + arg4 = (double)jarg4; + { + try { + (arg1)->set_penalty(arg2,arg3,arg4); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return ; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return ; + }; + } + } +} + + +SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1penalty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jdouble jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + double result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + arg3 = (size_t)jarg3; + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->penalty(arg2,arg3); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jdouble)result; + return jresult; +} + + +SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1alpha(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jdouble jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + double result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + arg3 = (size_t)jarg3; + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->alpha(arg2,arg3); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jdouble)result; + return jresult; +} + + +SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1beta(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jdouble jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + double result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + arg3 = (size_t)jarg3; + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->beta(arg2,arg3); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jdouble)result; + return jresult; +} + + +SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1emission_1cost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jdouble jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + double result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + arg3 = (size_t)jarg3; + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->emission_cost(arg2,arg3); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jdouble)result; + return jresult; +} + + +SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1next_1transition_1cost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4) { + jdouble jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + double result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + arg3 = (size_t)jarg3; + arg4 = (size_t)jarg4; + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->next_transition_cost(arg2,arg3,arg4); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jdouble)result; + return jresult; +} + + +SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1prev_1transition_1cost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4) { + jdouble jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + double result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + arg3 = (size_t)jarg3; + arg4 = (size_t)jarg4; + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prev_transition_cost(arg2,arg3,arg4); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jdouble)result; + return jresult; +} + + +SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1best_1cost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jdouble jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + double result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = (size_t)jarg2; + arg3 = (size_t)jarg3; + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->best_cost(arg2,arg3); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jdouble)result; + return jresult; +} + + +SWIGEXPORT jdouble JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1Z(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jdouble jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + double result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->Z(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jdouble)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1parse_1_1SWIG_10(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = (bool)(arg1)->parse(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1empty(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = (bool)((CRFPP::Tagger const *)arg1)->empty(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1clear(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = (bool)(arg1)->clear(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jboolean JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1next(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jboolean jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + bool result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = (bool)(arg1)->next(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + jresult = (jboolean)result; + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1parse_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jstring jarg2) { + jstring jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + char *arg2 = (char *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + arg2 = 0; + if (jarg2) { + arg2 = (char *)jenv->GetStringUTFChars(jarg2, 0); + if (!arg2) return 0; + } + { + try { + result = (char *)(arg1)->parse((char const *)arg2); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + if (result) jresult = jenv->NewStringUTF((const char *)result); + if (arg2) jenv->ReleaseStringUTFChars(jarg2, (const char *)arg2); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_Tagger_1what(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jstring jresult = 0 ; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + result = (char *)(arg1)->what(); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +SWIGEXPORT void JNICALL Java_org_chasen_crfpp_CRFPPJNI_delete_1Tagger(JNIEnv *jenv, jclass jcls, jlong jarg1) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + + (void)jenv; + (void)jcls; + arg1 = *(CRFPP::Tagger **)&jarg1; + { + try { + delete arg1; + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return ; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return ; + }; + } + } +} + + +SWIGEXPORT jlong JNICALL Java_org_chasen_crfpp_CRFPPJNI_new_1Tagger(JNIEnv *jenv, jclass jcls, jstring jarg1) { + jlong jresult = 0 ; + char *arg1 = (char *) 0 ; + CRFPP::Tagger *result = 0 ; + + (void)jenv; + (void)jcls; + arg1 = 0; + if (jarg1) { + arg1 = (char *)jenv->GetStringUTFChars(jarg1, 0); + if (!arg1) return 0; + } + { + try { + result = (CRFPP::Tagger *)new_CRFPP_Tagger((char const *)arg1); + } + catch (char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, e); return 0; + }; + } + catch (const char *e) { + { + SWIG_JavaException(jenv, SWIG_RuntimeError, (char*)e); return 0; + }; + } + } + *(CRFPP::Tagger **)&jresult = result; + if (arg1) jenv->ReleaseStringUTFChars(jarg1, (const char *)arg1); + return jresult; +} + + +SWIGEXPORT jstring JNICALL Java_org_chasen_crfpp_CRFPPJNI_VERSION_1get(JNIEnv *jenv, jclass jcls) { + jstring jresult = 0 ; + char *result = 0 ; + + (void)jenv; + (void)jcls; + result = (char *) "0.55"; + if (result) jresult = jenv->NewStringUTF((const char *)result); + return jresult; +} + + +#ifdef __cplusplus +} +#endif + diff --git a/java/Makefile b/java/Makefile new file mode 100644 index 0000000..6b872fe --- /dev/null +++ b/java/Makefile @@ -0,0 +1,27 @@ +TARGET=CRFPP +JAVAC=javac +JAVA=java +JAR=jar +CXX=c++ +INCLUDE=/usr/lib/jvm/java-7-openjdk-amd64/include + +PACKAGE=org/chasen/crfpp + +LIBS=-lcrfpp -lpthread +INC=-I$(INCLUDE) -I$(INCLUDE)/linux + +all: + $(CXX) -O3 -c -fpic $(TARGET)_wrap.cxx $(INC) + $(CXX) -shared $(TARGET)_wrap.o -o lib$(TARGET).so $(LIBS) + $(JAVAC) $(PACKAGE)/*.java + $(JAVAC) test.java + $(JAR) cfv $(TARGET).jar $(PACKAGE)/*.class + +test: + env LD_LIBRARY_PATH=. $(JAVA) test + +clean: + rm -fr *.jar *.o *.so *.class $(PACKAGE)/*.class + +cleanall: + rm -fr $(TARGET).java *.cxx diff --git a/java/README b/java/README new file mode 100644 index 0000000..3d8128e --- /dev/null +++ b/java/README @@ -0,0 +1,7 @@ +CRF++ java module + +$Id: README,v 1.2 2005/12/25 16:55:43 taku-ku Exp $; + + See test.java as sample program. + + % java -classpath CRFPP.jar test -d ../dic diff --git a/java/org/chasen/crfpp/CRFPP.java b/java/org/chasen/crfpp/CRFPP.java new file mode 100644 index 0000000..deab46d --- /dev/null +++ b/java/org/chasen/crfpp/CRFPP.java @@ -0,0 +1,12 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.chasen.crfpp; + +public class CRFPP implements CRFPPConstants { +} diff --git a/java/org/chasen/crfpp/CRFPPConstants.java b/java/org/chasen/crfpp/CRFPPConstants.java new file mode 100644 index 0000000..c5c0cdd --- /dev/null +++ b/java/org/chasen/crfpp/CRFPPConstants.java @@ -0,0 +1,13 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.chasen.crfpp; + +public interface CRFPPConstants { + public final static String VERSION = CRFPPJNI.VERSION_get(); +} diff --git a/java/org/chasen/crfpp/CRFPPJNI.java b/java/org/chasen/crfpp/CRFPPJNI.java new file mode 100644 index 0000000..e164d60 --- /dev/null +++ b/java/org/chasen/crfpp/CRFPPJNI.java @@ -0,0 +1,54 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.chasen.crfpp; + +class CRFPPJNI { + public final static native long Model_createTagger(long jarg1, Model jarg1_); + public final static native String Model_what(long jarg1, Model jarg1_); + public final static native void delete_Model(long jarg1); + public final static native long new_Model(String jarg1); + public final static native void Tagger_set_vlevel(long jarg1, Tagger jarg1_, long jarg2); + public final static native long Tagger_vlevel(long jarg1, Tagger jarg1_); + public final static native void Tagger_set_cost_factor(long jarg1, Tagger jarg1_, float jarg2); + public final static native float Tagger_cost_factor(long jarg1, Tagger jarg1_); + public final static native void Tagger_set_nbest(long jarg1, Tagger jarg1_, long jarg2); + public final static native long Tagger_nbest(long jarg1, Tagger jarg1_); + public final static native boolean Tagger_add(long jarg1, Tagger jarg1_, String jarg2); + public final static native long Tagger_size(long jarg1, Tagger jarg1_); + public final static native long Tagger_xsize(long jarg1, Tagger jarg1_); + public final static native long Tagger_dsize(long jarg1, Tagger jarg1_); + public final static native long Tagger_result(long jarg1, Tagger jarg1_, long jarg2); + public final static native long Tagger_answer(long jarg1, Tagger jarg1_, long jarg2); + public final static native long Tagger_y(long jarg1, Tagger jarg1_, long jarg2); + public final static native String Tagger_y2(long jarg1, Tagger jarg1_, long jarg2); + public final static native String Tagger_yname(long jarg1, Tagger jarg1_, long jarg2); + public final static native String Tagger_x(long jarg1, Tagger jarg1_, long jarg2, long jarg3); + public final static native long Tagger_ysize(long jarg1, Tagger jarg1_); + public final static native double Tagger_prob__SWIG_0(long jarg1, Tagger jarg1_, long jarg2, long jarg3); + public final static native double Tagger_prob__SWIG_1(long jarg1, Tagger jarg1_, long jarg2); + public final static native double Tagger_prob__SWIG_2(long jarg1, Tagger jarg1_); + public final static native void Tagger_set_penalty(long jarg1, Tagger jarg1_, long jarg2, long jarg3, double jarg4); + public final static native double Tagger_penalty(long jarg1, Tagger jarg1_, long jarg2, long jarg3); + public final static native double Tagger_alpha(long jarg1, Tagger jarg1_, long jarg2, long jarg3); + public final static native double Tagger_beta(long jarg1, Tagger jarg1_, long jarg2, long jarg3); + public final static native double Tagger_emission_cost(long jarg1, Tagger jarg1_, long jarg2, long jarg3); + public final static native double Tagger_next_transition_cost(long jarg1, Tagger jarg1_, long jarg2, long jarg3, long jarg4); + public final static native double Tagger_prev_transition_cost(long jarg1, Tagger jarg1_, long jarg2, long jarg3, long jarg4); + public final static native double Tagger_best_cost(long jarg1, Tagger jarg1_, long jarg2, long jarg3); + public final static native double Tagger_Z(long jarg1, Tagger jarg1_); + public final static native boolean Tagger_parse__SWIG_0(long jarg1, Tagger jarg1_); + public final static native boolean Tagger_empty(long jarg1, Tagger jarg1_); + public final static native boolean Tagger_clear(long jarg1, Tagger jarg1_); + public final static native boolean Tagger_next(long jarg1, Tagger jarg1_); + public final static native String Tagger_parse__SWIG_1(long jarg1, Tagger jarg1_, String jarg2); + public final static native String Tagger_what(long jarg1, Tagger jarg1_); + public final static native void delete_Tagger(long jarg1); + public final static native long new_Tagger(String jarg1); + public final static native String VERSION_get(); +} diff --git a/java/org/chasen/crfpp/Model.java b/java/org/chasen/crfpp/Model.java new file mode 100644 index 0000000..8e4f880 --- /dev/null +++ b/java/org/chasen/crfpp/Model.java @@ -0,0 +1,51 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.chasen.crfpp; + +public class Model { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected Model(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(Model obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + CRFPPJNI.delete_Model(swigCPtr); + } + swigCPtr = 0; + } + } + + public Tagger createTagger() { + long cPtr = CRFPPJNI.Model_createTagger(swigCPtr, this); + return (cPtr == 0) ? null : new Tagger(cPtr, false); + } + + public String what() { + return CRFPPJNI.Model_what(swigCPtr, this); + } + + public Model(String arg) { + this(CRFPPJNI.new_Model(arg), true); + } + +} diff --git a/java/org/chasen/crfpp/SWIGTYPE_p_float.java b/java/org/chasen/crfpp/SWIGTYPE_p_float.java new file mode 100644 index 0000000..54a1b14 --- /dev/null +++ b/java/org/chasen/crfpp/SWIGTYPE_p_float.java @@ -0,0 +1,26 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.31 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.chasen.crfpp; + +public class SWIGTYPE_p_float { + private long swigCPtr; + + protected SWIGTYPE_p_float(long cPtr, boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_float() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_float obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/java/org/chasen/crfpp/SWIGTYPE_p_int.java b/java/org/chasen/crfpp/SWIGTYPE_p_int.java new file mode 100644 index 0000000..26d8d3b --- /dev/null +++ b/java/org/chasen/crfpp/SWIGTYPE_p_int.java @@ -0,0 +1,26 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.31 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.chasen.crfpp; + +public class SWIGTYPE_p_int { + private long swigCPtr; + + protected SWIGTYPE_p_int(long cPtr, boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_int() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_int obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/java/org/chasen/crfpp/SWIGTYPE_p_p_char.java b/java/org/chasen/crfpp/SWIGTYPE_p_p_char.java new file mode 100644 index 0000000..61017dc --- /dev/null +++ b/java/org/chasen/crfpp/SWIGTYPE_p_p_char.java @@ -0,0 +1,26 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.chasen.crfpp; + +public class SWIGTYPE_p_p_char { + private long swigCPtr; + + protected SWIGTYPE_p_p_char(long cPtr, boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_p_char() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_p_char obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/java/org/chasen/crfpp/Tagger.java b/java/org/chasen/crfpp/Tagger.java new file mode 100644 index 0000000..7dfa264 --- /dev/null +++ b/java/org/chasen/crfpp/Tagger.java @@ -0,0 +1,182 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.chasen.crfpp; + +public class Tagger { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected Tagger(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(Tagger obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + CRFPPJNI.delete_Tagger(swigCPtr); + } + swigCPtr = 0; + } + } + + public void set_vlevel(long vlevel) { + CRFPPJNI.Tagger_set_vlevel(swigCPtr, this, vlevel); + } + + public long vlevel() { + return CRFPPJNI.Tagger_vlevel(swigCPtr, this); + } + + public void set_cost_factor(float cost_factor) { + CRFPPJNI.Tagger_set_cost_factor(swigCPtr, this, cost_factor); + } + + public float cost_factor() { + return CRFPPJNI.Tagger_cost_factor(swigCPtr, this); + } + + public void set_nbest(long nbest) { + CRFPPJNI.Tagger_set_nbest(swigCPtr, this, nbest); + } + + public long nbest() { + return CRFPPJNI.Tagger_nbest(swigCPtr, this); + } + + public boolean add(String str) { + return CRFPPJNI.Tagger_add(swigCPtr, this, str); + } + + public long size() { + return CRFPPJNI.Tagger_size(swigCPtr, this); + } + + public long xsize() { + return CRFPPJNI.Tagger_xsize(swigCPtr, this); + } + + public long dsize() { + return CRFPPJNI.Tagger_dsize(swigCPtr, this); + } + + public long result(long i) { + return CRFPPJNI.Tagger_result(swigCPtr, this, i); + } + + public long answer(long i) { + return CRFPPJNI.Tagger_answer(swigCPtr, this, i); + } + + public long y(long i) { + return CRFPPJNI.Tagger_y(swigCPtr, this, i); + } + + public String y2(long i) { + return CRFPPJNI.Tagger_y2(swigCPtr, this, i); + } + + public String yname(long i) { + return CRFPPJNI.Tagger_yname(swigCPtr, this, i); + } + + public String x(long i, long j) { + return CRFPPJNI.Tagger_x(swigCPtr, this, i, j); + } + + public long ysize() { + return CRFPPJNI.Tagger_ysize(swigCPtr, this); + } + + public double prob(long i, long j) { + return CRFPPJNI.Tagger_prob__SWIG_0(swigCPtr, this, i, j); + } + + public double prob(long i) { + return CRFPPJNI.Tagger_prob__SWIG_1(swigCPtr, this, i); + } + + public double prob() { + return CRFPPJNI.Tagger_prob__SWIG_2(swigCPtr, this); + } + + public void set_penalty(long i, long j, double penalty) { + CRFPPJNI.Tagger_set_penalty(swigCPtr, this, i, j, penalty); + } + + public double penalty(long i, long j) { + return CRFPPJNI.Tagger_penalty(swigCPtr, this, i, j); + } + + public double alpha(long i, long j) { + return CRFPPJNI.Tagger_alpha(swigCPtr, this, i, j); + } + + public double beta(long i, long j) { + return CRFPPJNI.Tagger_beta(swigCPtr, this, i, j); + } + + public double emission_cost(long i, long j) { + return CRFPPJNI.Tagger_emission_cost(swigCPtr, this, i, j); + } + + public double next_transition_cost(long i, long j, long k) { + return CRFPPJNI.Tagger_next_transition_cost(swigCPtr, this, i, j, k); + } + + public double prev_transition_cost(long i, long j, long k) { + return CRFPPJNI.Tagger_prev_transition_cost(swigCPtr, this, i, j, k); + } + + public double best_cost(long i, long j) { + return CRFPPJNI.Tagger_best_cost(swigCPtr, this, i, j); + } + + public double Z() { + return CRFPPJNI.Tagger_Z(swigCPtr, this); + } + + public boolean parse() { + return CRFPPJNI.Tagger_parse__SWIG_0(swigCPtr, this); + } + + public boolean empty() { + return CRFPPJNI.Tagger_empty(swigCPtr, this); + } + + public boolean clear() { + return CRFPPJNI.Tagger_clear(swigCPtr, this); + } + + public boolean next() { + return CRFPPJNI.Tagger_next(swigCPtr, this); + } + + public String parse(String str) { + return CRFPPJNI.Tagger_parse__SWIG_1(swigCPtr, this, str); + } + + public String what() { + return CRFPPJNI.Tagger_what(swigCPtr, this); + } + + public Tagger(String arg) { + this(CRFPPJNI.new_Tagger(arg), true); + } + +} diff --git a/java/test.java b/java/test.java new file mode 100644 index 0000000..3ffafe6 --- /dev/null +++ b/java/test.java @@ -0,0 +1,80 @@ +import org.chasen.crfpp.Tagger; + +public class test { + +public static void main(String[] argv) { + Tagger tagger = new Tagger("-m ../model -v 3 -n2"); + // clear internal context + tagger.clear(); + + // add context + tagger.add("Confidence NN"); + tagger.add("in IN"); + tagger.add("the DT"); + tagger.add("pound NN"); + tagger.add("is VBZ"); + tagger.add("widely RB"); + tagger.add("expected VBN"); + tagger.add("to TO"); + tagger.add("take VB"); + tagger.add("another DT"); + tagger.add("sharp JJ"); + tagger.add("dive NN"); + tagger.add("if IN"); + tagger.add("trade NN"); + tagger.add("figures NNS"); + tagger.add("for IN"); + tagger.add("September NNP"); + + System.out.println("column size: " + tagger.xsize()); + System.out.println("token size: " + tagger.size()); + System.out.println("tag size: " + tagger.ysize()); + + System.out.println("tagset information:"); + for (int i = 0; i < tagger.ysize(); ++i) { + System.out.println("tag " + i + " " + tagger.yname(i)); + } + + // parse and change internal stated as 'parsed' + if (!tagger.parse()) + return; + + System.out.println("conditional prob=" + tagger.prob() + + " log(Z)=" + tagger.Z()); + + for (int i = 0; i < tagger.size(); ++i) { + for (int j = 0; j < tagger.xsize(); ++j) { + System.out.print(tagger.x(i, j) + "\t"); + } + System.out.print(tagger.y2(i) + "\t"); + System.out.print("\n"); + + System.out.print("Details"); + for (int j = 0; j < tagger.ysize(); ++j) { + System.out.print("\t" + tagger.yname(j) + "/prob=" + tagger.prob(i,j) + + "/alpha=" + tagger.alpha(i, j) + + "/beta=" + tagger.beta(i, j)); + } + System.out.print("\n"); + } + + // when -n20 is specified, you can access nbest outputs + System.out.println("nbest outputs:"); + for (int n = 0; n < 10; ++n) { + if (! tagger.next()) break; + System.out.println("nbest n=" + n + "\tconditional prob=" + tagger.prob()); + // you can access any information using tagger.y()... + } + System.out.println("Done"); +} + +static { + try { + System.loadLibrary("CRFPP"); + } catch (UnsatisfiedLinkError e) { + System.err.println("Cannot load the example native code.\nMake sure your LD_LIBRARY_PATH contains \'.\'\n" + e); + System.exit(1); + } +} + +} diff --git a/lbfgs.cpp b/lbfgs.cpp new file mode 100644 index 0000000..72456ca --- /dev/null +++ b/lbfgs.cpp @@ -0,0 +1,571 @@ +// MeCab -- Yet Another Part-of-Speech and Morphological Analyzer +// +// $Id: lbfgs.c 1528 2006-08-07 02:39:50Z taku $; +// +// lbfgs.c was ported from the FORTRAN code of lbfgs.m to C +// using f2c converter +// +// http://www.ece.northwestern.edu/~nocedal/lbfgs.html +// +// Software for Large-scale Unconstrained Optimization +// L-BFGS is a limited-memory quasi-Newton code for unconstrained +// optimization. +// The code has been developed at the Optimization Technology Center, +// a joint venture of Argonne National Laboratory and Northwestern University. +// +// Authors +// Jorge Nocedal +// +// References +// - J. Nocedal. Updating Quasi-Newton Matrices with Limited Storage(1980), +// Mathematics of Computation 35, pp. 773-782. +// - D.C. Liu and J. Nocedal. On the Limited Memory Method for +// Large Scale Optimization(1989), +// Mathematical Programming B, 45, 3, pp. 503-528. +#include <cmath> +#include <iostream> +#include <numeric> +#include "lbfgs.h" +#include "common.h" + +#define min(a, b) ((a) <= (b) ? (a) : (b)) +#define max(a, b) ((a) >= (b) ? (a) : (b)) + +namespace { +static const double ftol = 1e-4; +static const double xtol = 1e-16; +static const double eps = 1e-7; +static const double lb3_1_gtol = 0.9; +static const double lb3_1_stpmin = 1e-20; +static const double lb3_1_stpmax = 1e20; +static const int lb3_1_mp = 6; +static const int lb3_1_lp = 6; + +inline double pi(double x, double y) { + return CRFPP::sigma(x) == CRFPP::sigma(y) ?x : 0.0; +} + +inline void daxpy_(int n, double da, const double *dx, double *dy) { + for (int i = 0; i < n; ++i) + dy[i] += da * dx[i]; +} + +inline double ddot_(int size, const double *dx, const double *dy) { + return std::inner_product(dx, dx + size, dy, 0.0); +} + +void mcstep(double *stx, double *fx, double *dx, + double *sty, double *fy, double *dy, + double *stp, double fp, double dp, + int *brackt, + double stpmin, double stpmax, + int *info) { + bool bound = true; + double p, q, s, d1, d2, d3, r, gamma, theta, stpq, stpc, stpf; + *info = 0; + + if (*brackt && ((*stp <= min(*stx, *sty) || *stp >= max(*stx, *sty)) || + *dx * (*stp - *stx) >= 0.0 || stpmax < stpmin)) { + return; + } + + double sgnd = dp * (*dx / std::abs(*dx)); + + if (fp > *fx) { + *info = 1; + bound = true; + theta =(*fx - fp) * 3 / (*stp - *stx) + *dx + dp; + d1 = std::abs(theta); + d2 = std::abs(*dx); + d1 = max(d1, d2); + d2 = std::abs(dp); + s = max(d1, d2); + d1 = theta / s; + gamma = s * std::sqrt(d1 * d1 - *dx / s *(dp / s)); + if (*stp < *stx) { + gamma = -gamma; + } + p = gamma - *dx + theta; + q = gamma - *dx + gamma + dp; + r = p / q; + stpc = *stx + r * (*stp - *stx); + stpq = *stx + *dx / ((*fx - fp) / + (*stp - *stx) + *dx) / 2 * (*stp - *stx); + if ((d1 = stpc - *stx, std::abs(d1)) < (d2 = stpq - *stx, std::abs(d2))) { + stpf = stpc; + } else { + stpf = stpc + (stpq - stpc) / 2; + } + *brackt = true; + } else if (sgnd < 0.0) { + *info = 2; + bound = false; + theta = (*fx - fp) * 3 / (*stp - *stx) + *dx + dp; + d1 = std::abs(theta); + d2 = std::abs(*dx); + d1 = max(d1, d2); + d2 = std::abs(dp); + s = max(d1, d2); + d1 = theta / s; + gamma = s * std::sqrt(d1 * d1 - *dx / s * (dp / s)); + if (*stp > *stx) { + gamma = -gamma; + } + p = gamma - dp + theta; + q = gamma - dp + gamma + *dx; + r = p / q; + stpc = *stp + r *(*stx - *stp); + stpq = *stp + dp /(dp - *dx) * (*stx - *stp); + if ((d1 = stpc - *stp, std::abs(d1)) > (d2 = stpq - *stp, std::abs(d2))) { + stpf = stpc; + } else { + stpf = stpq; + } + *brackt = true; + } else if (std::abs(dp) < std::abs(*dx)) { + *info = 3; + bound = true; + theta = (*fx - fp) * 3 / (*stp - *stx) + *dx + dp; + d1 = std::abs(theta); + d2 = std::abs(*dx); + d1 = max(d1, d2); + d2 = std::abs(dp); + s = max(d1, d2); + d3 = theta / s; + d1 = 0.0; + d2 = d3 * d3 - *dx / s *(dp / s); + gamma = s * std::sqrt((max(d1, d2))); + if (*stp > *stx) { + gamma = -gamma; + } + p = gamma - dp + theta; + q = gamma + (*dx - dp) + gamma; + r = p / q; + if (r < 0.0 && gamma != 0.0) { + stpc = *stp + r *(*stx - *stp); + } else if (*stp > *stx) { + stpc = stpmax; + } else { + stpc = stpmin; + } + stpq = *stp + dp /(dp - *dx) * (*stx - *stp); + if (*brackt) { + if ((d1 = *stp - stpc, std::abs(d1)) < + (d2 = *stp - stpq, std::abs(d2))) { + stpf = stpc; + } else { + stpf = stpq; + } + } else { + if ((d1 = *stp - stpc, std::abs(d1)) > + (d2 = *stp - stpq, std::abs(d2))) { + stpf = stpc; + } else { + stpf = stpq; + } + } + } else { + *info = 4; + bound = false; + if (*brackt) { + theta =(fp - *fy) * 3 / (*sty - *stp) + *dy + dp; + d1 = std::abs(theta); + d2 = std::abs(*dy); + d1 = max(d1, d2); + d2 = std::abs(dp); + s = max(d1, d2); + d1 = theta / s; + gamma = s * std::sqrt(d1 * d1 - *dy / s * (dp / s)); + if (*stp > *sty) { + gamma = -gamma; + } + p = gamma - dp + theta; + q = gamma - dp + gamma + *dy; + r = p / q; + stpc = *stp + r * (*sty - *stp); + stpf = stpc; + } else if (*stp > *stx) { + stpf = stpmax; + } else { + stpf = stpmin; + } + } + + if (fp > *fx) { + *sty = *stp; + *fy = fp; + *dy = dp; + } else { + if (sgnd < 0.0) { + *sty = *stx; + *fy = *fx; + *dy = *dx; + } + *stx = *stp; + *fx = fp; + *dx = dp; + } + + stpf = min(stpmax, stpf); + stpf = max(stpmin, stpf); + *stp = stpf; + if (*brackt && bound) { + if (*sty > *stx) { + d1 = *stx + (*sty - *stx) * 0.66; + *stp = min(d1, *stp); + } else { + d1 = *stx + (*sty - *stx) * 0.66; + *stp = max(d1, *stp); + } + } + + return; +} +} + +namespace CRFPP { + +class LBFGS::Mcsrch { + private: + int infoc, stage1, brackt; + double finit, dginit, dgtest, width, width1; + double stx, fx, dgx, sty, fy, dgy, stmin, stmax; + + public: + Mcsrch(): + infoc(0), + stage1(0), + brackt(0), + finit(0.0), dginit(0.0), dgtest(0.0), width(0.0), width1(0.0), + stx(0.0), fx(0.0), dgx(0.0), sty(0.0), fy(0.0), dgy(0.0), + stmin(0.0), stmax(0.0) {} + + void mcsrch(int size, + double *x, + double f, const double *g, double *s, + double *stp, + int *info, int *nfev, double *wa) { + static const double p5 = 0.5; + static const double p66 = 0.66; + static const double xtrapf = 4.0; + static const int maxfev = 20; + + /* Parameter adjustments */ + --wa; + --s; + --g; + --x; + + if (*info == -1) goto L45; + infoc = 1; + + if (size <= 0 || *stp <= 0.0) return; + + dginit = ddot_(size, &g[1], &s[1]); + if (dginit >= 0.0) return; + + brackt = false; + stage1 = true; + *nfev = 0; + finit = f; + dgtest = ftol * dginit; + width = lb3_1_stpmax - lb3_1_stpmin; + width1 = width / p5; + for (int j = 1; j <= size; ++j) { + wa[j] = x[j]; + } + + stx = 0.0; + fx = finit; + dgx = dginit; + sty = 0.0; + fy = finit; + dgy = dginit; + + while (true) { + if (brackt) { + stmin = min(stx, sty); + stmax = max(stx, sty); + } else { + stmin = stx; + stmax = *stp + xtrapf * (*stp - stx); + } + + *stp = max(*stp, lb3_1_stpmin); + *stp = min(*stp, lb3_1_stpmax); + + if ((brackt && ((*stp <= stmin || *stp >= stmax) || + *nfev >= maxfev - 1 || infoc == 0)) || + (brackt && (stmax - stmin <= xtol * stmax))) { + *stp = stx; + } + + for (int j = 1; j <= size; ++j) { + x[j] = wa[j] + *stp * s[j]; + } + *info = -1; + return; + + L45: + *info = 0; + ++(*nfev); + double dg = ddot_(size, &g[1], &s[1]); + double ftest1 = finit + *stp * dgtest; + + if (brackt && ((*stp <= stmin || *stp >= stmax) || infoc == 0)) { + *info = 6; + } + if (*stp == lb3_1_stpmax && f <= ftest1 && dg <= dgtest) { + *info = 5; + } + if (*stp == lb3_1_stpmin && (f > ftest1 || dg >= dgtest)) { + *info = 4; + } + if (*nfev >= maxfev) { + *info = 3; + } + if (brackt && stmax - stmin <= xtol * stmax) { + *info = 2; + } + if (f <= ftest1 && std::abs(dg) <= lb3_1_gtol * (-dginit)) { + *info = 1; + } + + if (*info != 0) { + return; + } + + if (stage1 && f <= ftest1 && dg >= min(ftol, lb3_1_gtol) * dginit) { + stage1 = false; + } + + if (stage1 && f <= fx && f > ftest1) { + double fm = f - *stp * dgtest; + double fxm = fx - stx * dgtest; + double fym = fy - sty * dgtest; + double dgm = dg - dgtest; + double dgxm = dgx - dgtest; + double dgym = dgy - dgtest; + mcstep(&stx, &fxm, &dgxm, &sty, &fym, &dgym, stp, fm, dgm, &brackt, + stmin, stmax, &infoc); + fx = fxm + stx * dgtest; + fy = fym + sty * dgtest; + dgx = dgxm + dgtest; + dgy = dgym + dgtest; + } else { + mcstep(&stx, &fx, &dgx, &sty, &fy, &dgy, stp, f, dg, &brackt, + stmin, stmax, &infoc); + } + + if (brackt) { + double d1 = 0.0; + if ((d1 = sty - stx, std::abs(d1)) >= p66 * width1) { + *stp = stx + p5 * (sty - stx); + } + width1 = width; + width = (d1 = sty - stx, std::abs(d1)); + } + } + + return; + } +}; + +void LBFGS::clear() { + iflag_ = iscn = nfev = iycn = point = npt = + iter = info = ispt = isyt = iypt = 0; + stp = stp1 = 0.0; + diag_.clear(); + w_.clear(); + delete mcsrch_; + mcsrch_ = 0; +} + +void LBFGS::pseudo_gradient(int size, + double *v, + double *x, + const double *g, + double C) { + for (int i = 1; i <= size; ++i) { + if (x[i] == 0) { + if (g[i] + C < 0) { + v[i] = g[i] + C; + } else if (g[i] - C > 0) { + v[i] = g[i] - C; + } else { + v[i] = 0; + } + } else { + v[i] = g[i] + C * sigma(x[i]); + } + } +} + + +void LBFGS::lbfgs_optimize(int size, + int msize, + double *x, + double f, + const double *g, + double *diag, + double *w, + bool orthant, + double C, + double *v, + double *xi, + int *iflag) { + double yy = 0.0; + double ys = 0.0; + int bound = 0; + int cp = 0; + + --diag; + --g; + --x; + --w; + --v; + + if (orthant) { + --xi; + pseudo_gradient(size, v, x, g, C); + } + + if (!mcsrch_) mcsrch_ = new Mcsrch; + + if (*iflag == 1) goto L172; + if (*iflag == 2) goto L100; + + // initialization + if (*iflag == 0) { + point = 0; + for (int i = 1; i <= size; ++i) { + diag[i] = 1.0; + } + ispt = size + (msize << 1); + iypt = ispt + size * msize; + for (int i = 1; i <= size; ++i) { + w[ispt + i] = -v[i] * diag[i]; + } + stp1 = 1.0 / std::sqrt(ddot_(size, &v[1], &v[1])); + } + + // MAIN ITERATION LOOP + while (true) { + ++iter; + info = 0; + if (orthant) { + for (int i = 1; i <= size; ++i) { + xi[i] = (x[i] != 0 ? sigma(x[i]) : sigma(-v[i])); + } + } + if (iter == 1) goto L165; + if (iter > size) bound = size; + + // COMPUTE -H*G USING THE FORMULA GIVEN IN: Nocedal, J. 1980, + // "Updating quasi-Newton matrices with limited storage", + // Mathematics of Computation, Vol.24, No.151, pp. 773-782. + ys = ddot_(size, &w[iypt + npt + 1], &w[ispt + npt + 1]); + yy = ddot_(size, &w[iypt + npt + 1], &w[iypt + npt + 1]); + for (int i = 1; i <= size; ++i) { + diag[i] = ys / yy; + } + + L100: + cp = point; + if (point == 0) cp = msize; + w[size + cp] = 1.0 / ys; + + for (int i = 1; i <= size; ++i) { + w[i] = -v[i]; + } + + bound = min(iter - 1, msize); + + cp = point; + for (int i = 1; i <= bound; ++i) { + --cp; + if (cp == -1) cp = msize - 1; + double sq = ddot_(size, &w[ispt + cp * size + 1], &w[1]); + int inmc = size + msize + cp + 1; + iycn = iypt + cp * size; + w[inmc] = w[size + cp + 1] * sq; + double d = -w[inmc]; + daxpy_(size, d, &w[iycn + 1], &w[1]); + } + + for (int i = 1; i <= size; ++i) { + w[i] = diag[i] * w[i]; + } + + for (int i = 1; i <= bound; ++i) { + double yr = ddot_(size, &w[iypt + cp * size + 1], &w[1]); + double beta = w[size + cp + 1] * yr; + int inmc = size + msize + cp + 1; + beta = w[inmc] - beta; + iscn = ispt + cp * size; + daxpy_(size, beta, &w[iscn + 1], &w[1]); + ++cp; + if (cp == msize) cp = 0; + } + + if (orthant) { + for (int i = 1; i <= size; ++i) { + w[i] = (sigma(w[i]) == sigma(-v[i]) ? w[i] : 0); + } + } + // STORE THE NEW SEARCH DIRECTION + for (int i = 1; i <= size; ++i) { + w[ispt + point * size + i] = w[i]; + } + + L165: + // OBTAIN THE ONE-DIMENSIONAL MINIMIZER OF THE FUNCTION + // BY USING THE LINE SEARCH ROUTINE MCSRCH + nfev = 0; + stp = 1.0; + if (iter == 1) { + stp = stp1; + } + for (int i = 1; i <= size; ++i) { + w[i] = g[i]; + } + + L172: + mcsrch_->mcsrch(size, &x[1], f, &v[1], &w[ispt + point * size + 1], + &stp, &info, &nfev, &diag[1]); + if (info == -1) { + if (orthant) { + for (int i = 1; i <= size; ++i) { + x[i] = (sigma(x[i]) == sigma(xi[i]) ? x[i] : 0); + } + } + *iflag = 1; // next value + return; + } + if (info != 1) { + std::cerr << "The line search routine mcsrch failed: error code:" + << info << std::endl; + *iflag = -1; + return; + } + + // COMPUTE THE NEW STEP AND GRADIENT CHANGE + npt = point * size; + for (int i = 1; i <= size; ++i) { + w[ispt + npt + i] = stp * w[ispt + npt + i]; + w[iypt + npt + i] = g[i] - w[i]; + } + ++point; + if (point == msize) point = 0; + + double gnorm = std::sqrt(ddot_(size, &v[1], &v[1])); + double xnorm = max(1.0, std::sqrt(ddot_(size, &x[1], &x[1]))); + if (gnorm / xnorm <= eps) { + *iflag = 0; // OK terminated + return; + } + } + + return; +} +} diff --git a/lbfgs.h b/lbfgs.h new file mode 100644 index 0000000..1f9cf6c --- /dev/null +++ b/lbfgs.h @@ -0,0 +1,91 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: lbfgs.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_LBFGS_H__ +#define CRFPP_LBFGS_H__ + +#include <vector> +#include <iostream> + +namespace CRFPP { + +class LBFGS { + private: + class Mcsrch; + int iflag_, iscn, nfev, iycn, point, npt, iter, info, ispt, isyt, iypt, maxfev; + double stp, stp1; + std::vector <double> diag_; + std::vector <double> w_; + std::vector <double> v_; + std::vector <double> xi_; + Mcsrch *mcsrch_; + + void pseudo_gradient(int size, + double *v, + double *x, + const double *g, + double C); + + void lbfgs_optimize(int size, + int msize, + double *x, + double f, + const double *g, + double *diag, + double *w, bool orthant, double C, double *v, double *xi, int *iflag); + + public: + explicit LBFGS(): iflag_(0), iscn(0), nfev(0), iycn(0), + point(0), npt(0), iter(0), info(0), + ispt(0), isyt(0), iypt(0), maxfev(0), + stp(0.0), stp1(0.0), mcsrch_(0) {} + virtual ~LBFGS() { clear(); } + + void clear(); + + int optimize(size_t size, double *x, double f, double *g, bool orthant, double C) { + static const int msize = 5; + if (w_.empty()) { + iflag_ = 0; + w_.resize(size * (2 * msize + 1) + 2 * msize); + diag_.resize(size); + v_.resize(size); + if (orthant) { + xi_.resize(size); + } + } else if (diag_.size() != size || v_.size() != size) { + std::cerr << "size of array is different" << std::endl; + return -1; + } else if (orthant && v_.size() != size) { + std::cerr << "size of array is different" << std::endl; + return -1; + } + + if (orthant) { + lbfgs_optimize(static_cast<int>(size), + msize, x, f, g, &diag_[0], &w_[0], orthant, C, &v_[0], &xi_[0], &iflag_); + } else { + lbfgs_optimize(static_cast<int>(size), + msize, x, f, g, &diag_[0], &w_[0], orthant, C, g, &xi_[0], &iflag_); + } + + if (iflag_ < 0) { + std::cerr << "routine stops with unexpected error" << std::endl; + return -1; + } + + if (iflag_ == 0) { + clear(); + return 0; // terminate + } + + return 1; // evaluate next f and g + } +}; +} + +#endif diff --git a/libcrfpp.cpp b/libcrfpp.cpp new file mode 100644 index 0000000..fa1bc82 --- /dev/null +++ b/libcrfpp.cpp @@ -0,0 +1,288 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: libcrfpp.cpp 1587 2007-02-12 09:00:36Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#if defined(_WIN32) && !defined(__CYGWIN__) +#include <windows.h> +#endif + +#include <string> + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "crfpp.h" +#include "scoped_ptr.h" + +#if defined(_WIN32) && !defined(__CYGWIN__) +namespace CRFPP { +std::wstring Utf8ToWide(const std::string &input) { + int output_length = ::MultiByteToWideChar(CP_UTF8, 0, + input.c_str(), -1, NULL, 0); + output_length = output_length <= 0 ? 0 : output_length - 1; + if (output_length == 0) { + return L""; + } + scoped_array<wchar_t> input_wide(new wchar_t[output_length + 1]); + const int result = ::MultiByteToWideChar(CP_UTF8, 0, input.c_str(), -1, + input_wide.get(), output_length + 1); + std::wstring output; + if (result > 0) { + output.assign(input_wide.get()); + } + return output; +} + +std::string WideToUtf8(const std::wstring &input) { + const int output_length = ::WideCharToMultiByte(CP_UTF8, 0, + input.c_str(), -1, NULL, 0, + NULL, NULL); + if (output_length == 0) { + return ""; + } + + scoped_array<char> input_encoded(new char[output_length + 1]); + const int result = ::WideCharToMultiByte(CP_UTF8, 0, input.c_str(), -1, + input_encoded.get(), + output_length + 1, NULL, NULL); + std::string output; + if (result > 0) { + output.assign(input_encoded.get()); + } + return output; +} +} // CRFPP +#endif + +crfpp_model_t* crfpp_model_new(int argc, char **argv) { + CRFPP::Model *model = CRFPP::createModel(argc, argv); + if (!model) { + return 0; + } + return reinterpret_cast<crfpp_model_t *>(model); +} + +crfpp_model_t* crfpp_model_new2(const char *arg) { + CRFPP::Model *model = CRFPP::createModel(arg); + if (!model) { + return 0; + } + return reinterpret_cast<crfpp_model_t *>(model); +} + +const char* crfpp_model_strerror(crfpp_model_t *c) { + return reinterpret_cast<CRFPP::Model *>(c)->what(); +} + +crfpp_t* crfpp_model_new_tagger(crfpp_model_t *c) { + return reinterpret_cast<crfpp_t *>( + reinterpret_cast<CRFPP::Model *>(c)->createTagger()); +} + +crfpp_t* crfpp_new(int argc, char **argv) { + CRFPP::Tagger *tagger = CRFPP::createTagger(argc, argv); + if (!tagger) { + return 0; + } + return reinterpret_cast<crfpp_t *>(tagger); +} + +crfpp_t* crfpp_new2(char *arg) { + CRFPP::Tagger *tagger = CRFPP::createTagger(arg); + if (!tagger) { + return 0; + } + return reinterpret_cast<crfpp_t *>(tagger); +} + +const char* crfpp_strerror(crfpp_t *c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->what(); +} + +void crfpp_destroy(crfpp_t *c) { + CRFPP::Tagger *tagger = reinterpret_cast<CRFPP::Tagger *>(c); + delete tagger; +} + +bool crfpp_add2(crfpp_t* c, size_t s, const char **line) { + return reinterpret_cast<CRFPP::Tagger *>(c)->add(s, line); +} + +bool crfpp_add(crfpp_t* c, const char*s) { + return reinterpret_cast<CRFPP::Tagger *>(c)->add(s); +} + +size_t crfpp_size(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->size(); +} + +size_t crfpp_xsize(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->xsize(); +} + +size_t crfpp_result(crfpp_t* c, size_t i) { + return reinterpret_cast<CRFPP::Tagger *>(c)->result(i); +} + +size_t crfpp_answer(crfpp_t* c, size_t i) { + return reinterpret_cast<CRFPP::Tagger *>(c)->answer(i); +} + +size_t crfpp_y(crfpp_t* c, size_t i) { + return reinterpret_cast<CRFPP::Tagger *>(c)->y(i); +} + +size_t crfpp_ysize(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->ysize(); +} + +double crfpp_prob(crfpp_t* c, size_t i, size_t j) { + return reinterpret_cast<CRFPP::Tagger *>(c)->prob(i, j); +} + +double crfpp_prob2(crfpp_t* c, size_t i) { + return reinterpret_cast<CRFPP::Tagger *>(c)->prob(i); +} + +double crfpp_prob3(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->prob(); +} + +void crfpp_set_penalty(crfpp_t *c, size_t i, size_t j, double penalty) { + return reinterpret_cast<CRFPP::Tagger *>(c)->set_penalty(i, j, penalty); +} + +double crfpp_penalty(crfpp_t *c, size_t i, size_t j) { + return reinterpret_cast<CRFPP::Tagger *>(c)->penalty(i, j); +} + +double crfpp_alpha(crfpp_t* c, size_t i, size_t j) { + return reinterpret_cast<CRFPP::Tagger *>(c)->alpha(i, j); +} + +double crfpp_beta(crfpp_t* c, size_t i, size_t j) { + return reinterpret_cast<CRFPP::Tagger *>(c)->beta(i, j); +} + +double crfpp_best_cost(crfpp_t* c, size_t i, size_t j) { + return reinterpret_cast<CRFPP::Tagger *>(c)->best_cost(i, j); +} + +double crfpp_emisstion_cost(crfpp_t* c, size_t i, size_t j) { + return reinterpret_cast<CRFPP::Tagger *>(c)->emission_cost(i, j); +} + +const int* crfpp_emisstion_vector(crfpp_t* c, size_t i, size_t j) { + return reinterpret_cast<CRFPP::Tagger *>(c)->emission_vector(i, j); +} + +double crfpp_next_transition_cost(crfpp_t* c, size_t i, size_t j, size_t k) { + return reinterpret_cast<CRFPP::Tagger *>(c)->next_transition_cost(i, j, k); +} + +double crfpp_prev_transition_cost(crfpp_t* c, size_t i, size_t j, size_t k) { + return reinterpret_cast<CRFPP::Tagger *>(c)->next_transition_cost(i, j, k); +} + +const int* crfpp_next_transition_vector(crfpp_t* c, size_t i, + size_t j, size_t k) { + return reinterpret_cast<CRFPP::Tagger *>(c)->next_transition_vector(i, j, k); +} + +const int* crfpp_prev_transition_vector(crfpp_t* c, size_t i, + size_t j, size_t k) { + return reinterpret_cast<CRFPP::Tagger *>(c)->next_transition_vector(i, j, k); +} + +size_t crfpp_dsize(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->dsize(); +} + +const float* crfpp_weight_vector(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->weight_vector(); +} + +double crfpp_Z(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->Z(); +} + +bool crfpp_parse(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->parse(); +} + +bool crfpp_empty(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->empty(); +} + +bool crfpp_clear(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->clear(); +} + +bool crfpp_next(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->next(); +} + +const char* crfpp_yname(crfpp_t* c, size_t i) { + return reinterpret_cast<CRFPP::Tagger *>(c)->yname(i); +} + +const char* crfpp_y2(crfpp_t* c, size_t i) { + return reinterpret_cast<CRFPP::Tagger *>(c)->y2(i); +} + +const char* crfpp_x(crfpp_t* c, size_t i, size_t j) { + return reinterpret_cast<CRFPP::Tagger *>(c)->x(i, j); +} + +const char** crfpp_x2(crfpp_t* c, size_t i) { + return reinterpret_cast<CRFPP::Tagger *>(c)->x(i); +} + +const char* crfpp_parse_tostr(crfpp_t* c, const char* str) { + return reinterpret_cast<CRFPP::Tagger *>(c)->parse(str); +} + +const char* crfpp_parse_tostr2(crfpp_t* c, const char* str, size_t len) { + return reinterpret_cast<CRFPP::Tagger *>(c)->parse(str, len); +} + +const char* crfpp_parse_tostr3(crfpp_t* c, const char* str, + size_t len, char *ostr, size_t len2) { + return reinterpret_cast<CRFPP::Tagger *>(c)->parse(str, len, ostr, len2); +} + +const char* crfpp_tostr(crfpp_t* c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->toString(); +} + +const char* crfpp_tostr2(crfpp_t* c, char *ostr, size_t len) { + return reinterpret_cast<CRFPP::Tagger *>(c)->toString(ostr, len); +} + +void crfpp_set_vlevel(crfpp_t *c, unsigned int vlevel) { + reinterpret_cast<CRFPP::Tagger *>(c)->set_vlevel(vlevel); +} + +unsigned int crfpp_vlevel(crfpp_t *c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->vlevel(); +} + +void crfpp_set_cost_factor(crfpp_t *c, float cost_factor) { + reinterpret_cast<CRFPP::Tagger *>(c)->set_cost_factor(cost_factor); +} + +float crfpp_cost_factor(crfpp_t *c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->cost_factor(); +} + +void crfpp_set_nbest(crfpp_t *c, size_t nbest) { + reinterpret_cast<CRFPP::Tagger *>(c)->set_nbest(nbest); +} + +size_t crfpp_nbest(crfpp_t *c) { + return reinterpret_cast<CRFPP::Tagger *>(c)->nbest(); +} diff --git a/libtool b/libtool new file mode 100755 index 0000000..a853da9 --- /dev/null +++ b/libtool @@ -0,0 +1,11017 @@ +#! /bin/bash + +# libtool - Provide generalized library-building support services. +# Generated automatically by config.status (libtool) 2.4 +# Libtool was configured on host yellow: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, +# Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX F77 FC GCJ RC BINCC BINCXX" + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=2.4 +macro_revision=1.3293 + +# Assembler program. +AS="as" + +# DLL creation program. +DLLTOOL="false" + +# Object dumper program. +OBJDUMP="objdump" + +# Whether or not to build shared libraries. +build_libtool_libs=yes + +# Whether or not to build static libraries. +build_old_libs=yes + +# What type of objects to build. +pic_mode=default + +# Whether or not to optimize for fast installation. +fast_install=yes + +# Shell to use when invoking shell scripts. +SHELL="/bin/bash" + +# An echo program that protects backslashes. +ECHO="printf %s\\n" + +# The host system. +host_alias= +host=x86_64-pc-linux-gnu +host_os=linux-gnu + +# The build system. +build_alias=x86_64-linux-gnu +build=x86_64-pc-linux-gnu +build_os=linux-gnu + +# A sed program that does not truncate output. +SED="/bin/sed" + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP="/bin/grep" + +# An ERE matcher. +EGREP="/bin/grep -E" + +# A literal string matcher. +FGREP="/bin/grep -F" + +# A BSD- or MS-compatible name lister. +NM="/usr/bin/nm -B" + +# Whether we need soft or hard links. +LN_S="ln -s" + +# What is the maximum length of a command? +max_cmd_len=3458764513820540925 + +# Object file suffix (normally "o"). +objext=o + +# Executable file suffix (normally ""). +exeext= + +# whether the shell understands "unset". +lt_unset=unset + +# turn spaces into newlines. +SP2NL="tr \\040 \\012" + +# turn newlines into spaces. +NL2SP="tr \\015\\012 \\040\\040" + +# convert $build file names to $host format. +to_host_file_cmd=func_convert_file_noop + +# convert $build files to toolchain format. +to_tool_file_cmd=func_convert_file_noop + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method="pass_all" + +# Command to use when deplibs_check_method = "file_magic". +file_magic_cmd="\$MAGIC_CMD" + +# How to find potential files when deplibs_check_method = "file_magic". +file_magic_glob="" + +# Find potential files using nocaseglob when deplibs_check_method = "file_magic". +want_nocaseglob="no" + +# Command to associate shared and link libraries. +sharedlib_from_linklib_cmd="printf %s\\n" + +# The archiver. +AR="ar" + +# Flags to create an archive. +AR_FLAGS="cru" + +# How to feed a file listing to the archiver. +archiver_list_spec="@" + +# A symbol stripping program. +STRIP="strip" + +# Commands used to install an old-style archive. +RANLIB="ranlib" +old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$oldlib" +old_postuninstall_cmds="" + +# Whether to use a lock for old archive extraction. +lock_old_archive_extraction=no + +# A C compiler. +LTCC="gcc" + +# LTCC compiler flags. +LTCFLAGS="-Wall -g -O2" + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p' | sed '/ __gnu_lto/d'" + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl="sed -n -e 's/^T .* \\(.*\\)\$/extern int \\1();/p' -e 's/^[ABCDGIRSTW]* .* \\(.*\\)\$/extern char \\1;/p'" + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address="sed -n -e 's/^: \\([^ ]*\\)[ ]*\$/ {\\\"\\1\\\", (void *) 0},/p' -e 's/^[ABCDGIRSTW]* \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (void *) \\&\\2},/p'" + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \\([^ ]*\\)[ ]*\$/ {\\\"\\1\\\", (void *) 0},/p' -e 's/^[ABCDGIRSTW]* \\([^ ]*\\) \\(lib[^ ]*\\)\$/ {\"\\2\", (void *) \\&\\2},/p' -e 's/^[ABCDGIRSTW]* \\([^ ]*\\) \\([^ ]*\\)\$/ {\"lib\\2\", (void *) \\&\\2},/p'" + +# Specify filename containing input files for $NM. +nm_file_list_spec="@" + +# The root where to search for dependent libraries,and in which our libraries should be installed. +lt_sysroot= + +# The name of the directory that contains temporary libtool files. +objdir=.libs + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=file + +# Must we lock files when doing compilation? +need_locks="no" + +# Manifest tool. +MANIFEST_TOOL=":" + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL="" + +# Tool to change global to local symbols on Mac OS X. +NMEDIT="" + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO="" + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL="" + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64="" + +# Old archive suffix (normally "a"). +libext=a + +# Shared library suffix (normally ".so"). +shrext_cmds=".so" + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds="" + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" + +# Do we need the "lib" prefix for modules? +need_lib_prefix=no + +# Do we need a version for libraries? +need_version=no + +# Library versioning type. +version_type=linux + +# Shared library runtime path variable. +runpath_var=LD_RUN_PATH + +# Shared library path variable. +shlibpath_var=LD_LIBRARY_PATH + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=no + +# Format of library name prefix. +libname_spec="lib\$name" + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}" + +# The coded name of the library, if different from the real name. +soname_spec="\${libname}\${release}\${shared_ext}\$major" + +# Permission mode override for installation of shared libraries. +install_override_mode="" + +# Command to use after installation of a shared archive. +postinstall_cmds="" + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds="" + +# Commands used to finish a libtool library installation in a directory. +finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir" + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval="" + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=yes + +# Compile-time system search path for libraries. +sys_lib_search_path_spec="/lib/ /usr/lib/ /usr/X11R6/lib/ /usr/local/lib/" + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu " + +# Whether dlopen is supported. +dlopen_support=yes + +# Whether dlopen of programs is supported. +dlopen_self=yes + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=no + +# Commands to strip libraries. +old_striplib="strip --strip-debug" +striplib="strip --strip-unneeded" + + +# The linker used to build libraries. +LD="/usr/bin/ld -m elf_x86_64" + +# How to create reloadable object files. +reload_flag=" -r" +reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" + +# Commands used to build an old-style archive. +old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib" + +# A language specific compiler. +CC="gcc" + +# Is the compiler the GNU compiler? +with_gcc=yes + +# Compiler flag to turn off builtin functions. +no_builtin_flag=" -fno-builtin" + +# Additional compiler flags for building library objects. +pic_flag=" -fPIC -DPIC" + +# How to pass a linker flag through the compiler. +wl="-Wl," + +# Compiler flag to prevent dynamic linking. +link_static_flag="-static" + +# Does compiler simultaneously support -c and -o options? +compiler_c_o="yes" + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=no + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=no + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec="\${wl}--export-dynamic" + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive" + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object="no" + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds="" + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds="" + +# Commands used to build a shared archive. +archive_cmds="\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib" +archive_expsym_cmds="echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~ + cat \$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~ + echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~ + \$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-version-script \${wl}\$output_objdir/\$libname.ver -o \$lib" + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds="" +module_expsym_cmds="" + +# Whether we are building with GNU ld or not. +with_gnu_ld="yes" + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag="" + +# Flag that enforces no undefined symbols. +no_undefined_flag="" + +# Flag to hardcode $libdir into a binary during linking. +# This must work even if $libdir does not exist +hardcode_libdir_flag_spec="\${wl}-rpath \${wl}\$libdir" + +# If ld is used when linking, flag to hardcode $libdir into a binary +# during linking. This must work even if $libdir does not exist. +hardcode_libdir_flag_spec_ld="" + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator="" + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=no + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting ${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=no + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=no + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=unsupported + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=no + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=no + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=no + +# Set to "yes" if exported symbols are required. +always_export_symbols=no + +# The commands to list exported symbols. +export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*" + +# Symbols that must always be exported. +include_expsyms="" + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds="" + +# Commands necessary for finishing linking programs. +postlink_cmds="" + +# Specify filename containing input files. +file_list_spec="" + +# How to hardcode a shared library path into an executable. +hardcode_action=immediate + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs="" + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects="" +postdep_objects="" +predeps="" +postdeps="" + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path="" + +# ### END LIBTOOL CONFIG + + +# libtool (GNU libtool) 2.4 +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 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. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, +# or obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +# Usage: $progname [OPTION]... [MODE-ARG]... +# +# Provide generalized library-building support services. +# +# --config show all configuration variables +# --debug enable verbose shell tracing +# -n, --dry-run display commands without modifying any files +# --features display basic configuration information and exit +# --mode=MODE use operation mode MODE +# --preserve-dup-deps don't remove duplicate dependency libraries +# --quiet, --silent don't print informational messages +# --no-quiet, --no-silent +# print informational messages (default) +# --tag=TAG use configuration variables from tag TAG +# -v, --verbose print more informational messages than default +# --no-verbose don't print the extra informational messages +# --version print version information +# -h, --help, --help-all print short, long, or detailed help message +# +# MODE must be one of the following: +# +# clean remove files from the build directory +# compile compile a source file into a libtool object +# execute automatically set library path, then run a program +# finish complete the installation of libtool libraries +# install install libraries or executables +# link create a library or an executable +# uninstall remove libraries from an installed directory +# +# MODE-ARGS vary depending on the MODE. When passed as first option, +# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE. +# +# When reporting a bug, please describe a test case to reproduce it and +# include the following information: +# +# host-triplet: $host +# shell: $SHELL +# compiler: $LTCC +# compiler flags: $LTCFLAGS +# linker: $LD (gnu? $with_gnu_ld) +# $progname: (GNU libtool) 2.4 Debian-2.4-2ubuntu1 +# automake: $automake_version +# autoconf: $autoconf_version +# +# Report bugs to <bug-libtool@gnu.org>. +# GNU libtool home page: <http://www.gnu.org/software/libtool/>. +# General help using GNU software: <http://www.gnu.org/gethelp/>. + +PROGRAM=libtool +PACKAGE=libtool +VERSION="2.4 Debian-2.4-2ubuntu1" +TIMESTAMP="" +package_revision=1.3293 + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' +} + +# NLS nuisances: We save the old values to restore during execute mode. +lt_user_locale= +lt_safe_locale= +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES +do + eval "if test \"\${$lt_var+set}\" = set; then + save_$lt_var=\$$lt_var + $lt_var=C + export $lt_var + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" + fi" +done +LC_ALL=C +LANGUAGE=C +export LANGUAGE LC_ALL + +$lt_unset CDPATH + + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" + + + +: ${CP="cp -f"} +test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} +: ${EGREP="/bin/grep -E"} +: ${FGREP="/bin/grep -F"} +: ${GREP="/bin/grep"} +: ${LN_S="ln -s"} +: ${MAKE="make"} +: ${MKDIR="mkdir"} +: ${MV="mv -f"} +: ${RM="rm -f"} +: ${SED="/bin/sed"} +: ${SHELL="${CONFIG_SHELL-/bin/sh}"} +: ${Xsed="$SED -e 1s/^X//"} + +# Global variables: +EXIT_SUCCESS=0 +EXIT_FAILURE=1 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. + +exit_status=$EXIT_SUCCESS + +# Make sure IFS has a sensible default +lt_nl=' +' +IFS=" $lt_nl" + +dirname="s,/[^/]*$,," +basename="s,^.*/,," + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac +} # Extended-shell func_dirname implementation + + +# func_basename file +func_basename () +{ + func_basename_result="${1##*/}" +} # Extended-shell func_basename implementation + + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}" +} # Extended-shell func_dirname_and_basename implementation + + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# func_strip_suffix prefix name +func_stripname () +{ + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"} +} # Extended-shell func_stripname implementation + + +# These SED scripts presuppose an absolute path with a trailing slash. +pathcar='s,^/\([^/]*\).*$,\1,' +pathcdr='s,^/[^/]*,,' +removedotparts=':dotsl + s@/\./@/@g + t dotsl + s,/\.$,/,' +collapseslashes='s@/\{1,\}@/@g' +finalslash='s,/*$,/,' + +# func_normal_abspath PATH +# Remove doubled-up and trailing slashes, "." path components, +# and cancel out any ".." path components in PATH after making +# it an absolute path. +# value returned in "$func_normal_abspath_result" +func_normal_abspath () +{ + # Start from root dir and reassemble the path. + func_normal_abspath_result= + func_normal_abspath_tpath=$1 + func_normal_abspath_altnamespace= + case $func_normal_abspath_tpath in + "") + # Empty path, that just means $cwd. + func_stripname '' '/' "`pwd`" + func_normal_abspath_result=$func_stripname_result + return + ;; + # The next three entries are used to spot a run of precisely + # two leading slashes without using negated character classes; + # we take advantage of case's first-match behaviour. + ///*) + # Unusual form of absolute path, do nothing. + ;; + //*) + # Not necessarily an ordinary path; POSIX reserves leading '//' + # and for example Cygwin uses it to access remote file shares + # over CIFS/SMB, so we conserve a leading double slash if found. + func_normal_abspath_altnamespace=/ + ;; + /*) + # Absolute path, do nothing. + ;; + *) + # Relative path, prepend $cwd. + func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath + ;; + esac + # Cancel out all the simple stuff to save iterations. We also want + # the path to end with a slash for ease of parsing, so make sure + # there is one (and only one) here. + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` + while :; do + # Processed it all yet? + if test "$func_normal_abspath_tpath" = / ; then + # If we ascended to the root using ".." the result may be empty now. + if test -z "$func_normal_abspath_result" ; then + func_normal_abspath_result=/ + fi + break + fi + func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$pathcar"` + func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ + -e "$pathcdr"` + # Figure out what to do with it + case $func_normal_abspath_tcomponent in + "") + # Trailing empty path component, ignore it. + ;; + ..) + # Parent dir; strip last assembled component from result. + func_dirname "$func_normal_abspath_result" + func_normal_abspath_result=$func_dirname_result + ;; + *) + # Actual path component, append it. + func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent + ;; + esac + done + # Restore leading double-slash if one was found on entry. + func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result +} + +# func_relative_path SRCDIR DSTDIR +# generates a relative path from SRCDIR to DSTDIR, with a trailing +# slash if non-empty, suitable for immediately appending a filename +# without needing to append a separator. +# value returned in "$func_relative_path_result" +func_relative_path () +{ + func_relative_path_result= + func_normal_abspath "$1" + func_relative_path_tlibdir=$func_normal_abspath_result + func_normal_abspath "$2" + func_relative_path_tbindir=$func_normal_abspath_result + + # Ascend the tree starting from libdir + while :; do + # check if we have found a prefix of bindir + case $func_relative_path_tbindir in + $func_relative_path_tlibdir) + # found an exact match + func_relative_path_tcancelled= + break + ;; + $func_relative_path_tlibdir*) + # found a matching prefix + func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" + func_relative_path_tcancelled=$func_stripname_result + if test -z "$func_relative_path_result"; then + func_relative_path_result=. + fi + break + ;; + *) + func_dirname $func_relative_path_tlibdir + func_relative_path_tlibdir=${func_dirname_result} + if test "x$func_relative_path_tlibdir" = x ; then + # Have to descend all the way to the root! + func_relative_path_result=../$func_relative_path_result + func_relative_path_tcancelled=$func_relative_path_tbindir + break + fi + func_relative_path_result=../$func_relative_path_result + ;; + esac + done + + # Now calculate path; take care to avoid doubling-up slashes. + func_stripname '' '/' "$func_relative_path_result" + func_relative_path_result=$func_stripname_result + func_stripname '/' '/' "$func_relative_path_tcancelled" + if test "x$func_stripname_result" != x ; then + func_relative_path_result=${func_relative_path_result}/${func_stripname_result} + fi + + # Normalisation. If bindir is libdir, return empty string, + # else relative path ending with a slash; either way, target + # file name can be directly appended. + if test ! -z "$func_relative_path_result"; then + func_stripname './' '' "$func_relative_path_result/" + func_relative_path_result=$func_stripname_result + fi +} + +# The name of this program: +func_dirname_and_basename "$progpath" +progname=$func_basename_result + +# Make sure we have an absolute path for reexecution: +case $progpath in + [\\/]*|[A-Za-z]:\\*) ;; + *[\\/]*) + progdir=$func_dirname_result + progdir=`cd "$progdir" && pwd` + progpath="$progdir/$progname" + ;; + *) + save_IFS="$IFS" + IFS=: + for progdir in $PATH; do + IFS="$save_IFS" + test -x "$progdir/$progname" && break + done + IFS="$save_IFS" + test -n "$progdir" || progdir=`pwd` + progpath="$progdir/$progname" + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed="${SED}"' -e 1s/^X//' +sed_quote_subst='s/\([`"$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution that turns a string into a regex matching for the +# string literally. +sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' + +# Sed substitution that converts a w32 file name or path +# which contains forward slashes, into one that contains +# (escaped) backslashes. A very naive implementation. +lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + +# Re-`\' parameter expansions in output of double_quote_subst that were +# `\'-ed in input to the same. If an odd number of `\' preceded a '$' +# in input to double_quote_subst, that '$' was protected from expansion. +# Since each input `\' is now two `\'s, look for any number of runs of +# four `\'s followed by two `\'s and then a '$'. `\' that '$'. +bs='\\' +bs2='\\\\' +bs4='\\\\\\\\' +dollar='\$' +sed_double_backslash="\ + s/$bs4/&\\ +/g + s/^$bs2$dollar/$bs&/ + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g + s/\n//g" + +# Standard options: +opt_dry_run=false +opt_help=false +opt_quiet=false +opt_verbose=false +opt_warning=: + +# func_echo arg... +# Echo program name prefixed message, along with the current mode +# name if it has been set yet. +func_echo () +{ + $ECHO "$progname: ${opt_mode+$opt_mode: }$*" +} + +# func_verbose arg... +# Echo program name prefixed message in verbose mode only. +func_verbose () +{ + $opt_verbose && func_echo ${1+"$@"} + + # A bug in bash halts the script if the last line of a function + # fails when set -e is in force, so we need another command to + # work around that: + : +} + +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "$*" +} + +# func_error arg... +# Echo program name prefixed message to standard error. +func_error () +{ + $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 +} + +# func_warning arg... +# Echo program name prefixed warning message to standard error. +func_warning () +{ + $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 + + # bash bug again: + : +} + +# func_fatal_error arg... +# Echo program name prefixed message to standard error, and exit. +func_fatal_error () +{ + func_error ${1+"$@"} + exit $EXIT_FAILURE +} + +# func_fatal_help arg... +# Echo program name prefixed message to standard error, followed by +# a help hint, and exit. +func_fatal_help () +{ + func_error ${1+"$@"} + func_fatal_error "$help" +} +help="Try \`$progname --help' for more information." ## default + + +# func_grep expression filename +# Check whether EXPRESSION matches any line of FILENAME, without output. +func_grep () +{ + $GREP "$1" "$2" >/dev/null 2>&1 +} + + +# func_mkdir_p directory-path +# Make sure the entire path to DIRECTORY-PATH is available. +func_mkdir_p () +{ + my_directory_path="$1" + my_dir_list= + + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then + + # Protect directory names starting with `-' + case $my_directory_path in + -*) my_directory_path="./$my_directory_path" ;; + esac + + # While some portion of DIR does not yet exist... + while test ! -d "$my_directory_path"; do + # ...make a list in topmost first order. Use a colon delimited + # list incase some portion of path contains whitespace. + my_dir_list="$my_directory_path:$my_dir_list" + + # If the last portion added has no slash in it, the list is done + case $my_directory_path in */*) ;; *) break ;; esac + + # ...otherwise throw away the child directory and loop + my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` + done + my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` + + save_mkdir_p_IFS="$IFS"; IFS=':' + for my_dir in $my_dir_list; do + IFS="$save_mkdir_p_IFS" + # mkdir can fail with a `File exist' error if two processes + # try to create one of the directories concurrently. Don't + # stop in that case! + $MKDIR "$my_dir" 2>/dev/null || : + done + IFS="$save_mkdir_p_IFS" + + # Bail out if we (or some other process) failed to create a directory. + test -d "$my_directory_path" || \ + func_fatal_error "Failed to create \`$1'" + fi +} + + +# func_mktempdir [string] +# Make a temporary directory that won't clash with other running +# libtool processes, and avoids race conditions if possible. If +# given, STRING is the basename for that directory. +func_mktempdir () +{ + my_template="${TMPDIR-/tmp}/${1-$progname}" + + if test "$opt_dry_run" = ":"; then + # Return a directory name, but don't create it in dry-run mode + my_tmpdir="${my_template}-$$" + else + + # If mktemp works, use that first and foremost + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` + + if test ! -d "$my_tmpdir"; then + # Failing that, at least try and use $RANDOM to avoid a race + my_tmpdir="${my_template}-${RANDOM-0}$$" + + save_mktempdir_umask=`umask` + umask 0077 + $MKDIR "$my_tmpdir" + umask $save_mktempdir_umask + fi + + # If we're not in dry-run mode, bomb out on failure + test -d "$my_tmpdir" || \ + func_fatal_error "cannot create temporary directory \`$my_tmpdir'" + fi + + $ECHO "$my_tmpdir" +} + + +# func_quote_for_eval arg +# Aesthetically quote ARG to be evaled later. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT +# is double-quoted, suitable for a subsequent eval, whereas +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters +# which are still active within double quotes backslashified. +func_quote_for_eval () +{ + case $1 in + *[\\\`\"\$]*) + func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; + *) + func_quote_for_eval_unquoted_result="$1" ;; + esac + + case $func_quote_for_eval_unquoted_result in + # Double-quote args containing shell metacharacters to delay + # word splitting, command substitution and and variable + # expansion for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" + ;; + *) + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" + esac +} + + +# func_quote_for_expand arg +# Aesthetically quote ARG to be evaled later; same as above, +# but do not quote variable references. +func_quote_for_expand () +{ + case $1 in + *[\\\`\"]*) + my_arg=`$ECHO "$1" | $SED \ + -e "$double_quote_subst" -e "$sed_double_backslash"` ;; + *) + my_arg="$1" ;; + esac + + case $my_arg in + # Double-quote args containing shell metacharacters to delay + # word splitting and command substitution for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + my_arg="\"$my_arg\"" + ;; + esac + + func_quote_for_expand_result="$my_arg" +} + + +# func_show_eval cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. +func_show_eval () +{ + my_cmd="$1" + my_fail_exp="${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$my_cmd" + my_status=$? + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + + +# func_show_eval_locale cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. Use the saved locale for evaluation. +func_show_eval_locale () +{ + my_cmd="$1" + my_fail_exp="${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$lt_user_locale + $my_cmd" + my_status=$? + eval "$lt_safe_locale" + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + +# func_tr_sh +# Turn $1 into a string suitable for a shell variable name. +# Result is stored in $func_tr_sh_result. All characters +# not in the set a-zA-Z0-9_ are replaced with '_'. Further, +# if $1 begins with a digit, a '_' is prepended as well. +func_tr_sh () +{ + case $1 in + [0-9]* | *[!a-zA-Z0-9_]*) + func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` + ;; + * ) + func_tr_sh_result=$1 + ;; + esac +} + + +# func_version +# Echo version message to standard output and exit. +func_version () +{ + $opt_debug + + $SED -n '/(C)/!b go + :more + /\./!{ + N + s/\n# / / + b more + } + :go + /^# '$PROGRAM' (GNU /,/# warranty; / { + s/^# // + s/^# *$// + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ + p + }' < "$progpath" + exit $? +} + +# func_usage +# Echo short help message to standard output and exit. +func_usage () +{ + $opt_debug + + $SED -n '/^# Usage:/,/^# *.*--help/ { + s/^# // + s/^# *$// + s/\$progname/'$progname'/ + p + }' < "$progpath" + echo + $ECHO "run \`$progname --help | more' for full usage" + exit $? +} + +# func_help [NOEXIT] +# Echo long help message to standard output and exit, +# unless 'noexit' is passed as argument. +func_help () +{ + $opt_debug + + $SED -n '/^# Usage:/,/# Report bugs to/ { + :print + s/^# // + s/^# *$// + s*\$progname*'$progname'* + s*\$host*'"$host"'* + s*\$SHELL*'"$SHELL"'* + s*\$LTCC*'"$LTCC"'* + s*\$LTCFLAGS*'"$LTCFLAGS"'* + s*\$LD*'"$LD"'* + s/\$with_gnu_ld/'"$with_gnu_ld"'/ + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ + p + d + } + /^# .* home page:/b print + /^# General help using/b print + ' < "$progpath" + ret=$? + if test -z "$1"; then + exit $ret + fi +} + +# func_missing_arg argname +# Echo program name prefixed message to standard error and set global +# exit_cmd. +func_missing_arg () +{ + $opt_debug + + func_error "missing argument for $1." + exit_cmd=exit +} + + +# func_split_short_opt shortopt +# Set func_split_short_opt_name and func_split_short_opt_arg shell +# variables after splitting SHORTOPT after the 2nd character. +func_split_short_opt () +{ + func_split_short_opt_arg=${1#??} + func_split_short_opt_name=${1%"$func_split_short_opt_arg"} +} # Extended-shell func_split_short_opt implementation + + +# func_split_long_opt longopt +# Set func_split_long_opt_name and func_split_long_opt_arg shell +# variables after splitting LONGOPT at the `=' sign. +func_split_long_opt () +{ + func_split_long_opt_name=${1%%=*} + func_split_long_opt_arg=${1#*=} +} # Extended-shell func_split_long_opt implementation + +exit_cmd=: + + + + + +magic="%%%MAGIC variable%%%" +magic_exe="%%%MAGIC EXE variable%%%" + +# Global variables. +nonopt= +preserve_args= +lo2o="s/\\.lo\$/.${objext}/" +o2lo="s/\\.${objext}\$/.lo/" +extracted_archives= +extracted_serial=0 + +# If this variable is set in any of the actions, the command in it +# will be execed at the end. This prevents here-documents from being +# left over by shells. +exec_cmd= + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "${1}+=\${2}" +} # Extended-shell func_append implementation + +# func_append_quoted var value +# Quote VALUE and append to the end of shell variable VAR, separated +# by a space. +func_append_quoted () +{ + func_quote_for_eval "${2}" + eval "${1}+=\\ \$func_quote_for_eval_result" +} # Extended-shell func_append_quoted implementation + + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=$(( $* )) +} # Extended-shell func_arith implementation + + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=${#1} +} # Extended-shell func_len implementation + + +# func_lo2o object +func_lo2o () +{ + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac +} # Extended-shell func_lo2o implementation + + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=${1%.*}.lo +} # Extended-shell func_xform implementation + + +# func_fatal_configuration arg... +# Echo program name prefixed message to standard error, followed by +# a configuration failure hint, and exit. +func_fatal_configuration () +{ + func_error ${1+"$@"} + func_error "See the $PACKAGE documentation for more information." + func_fatal_error "Fatal configuration error." +} + + +# func_config +# Display the configuration for all the tags in this script. +func_config () +{ + re_begincf='^# ### BEGIN LIBTOOL' + re_endcf='^# ### END LIBTOOL' + + # Default configuration. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" + + # Now print the configurations for the tags. + for tagname in $taglist; do + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" + done + + exit $? +} + +# func_features +# Display the features supported by this script. +func_features () +{ + echo "host: $host" + if test "$build_libtool_libs" = yes; then + echo "enable shared libraries" + else + echo "disable shared libraries" + fi + if test "$build_old_libs" = yes; then + echo "enable static libraries" + else + echo "disable static libraries" + fi + + exit $? +} + +# func_enable_tag tagname +# Verify that TAGNAME is valid, and either flag an error and exit, or +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist +# variable here. +func_enable_tag () +{ + # Global variable: + tagname="$1" + + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" + sed_extractcf="/$re_begincf/,/$re_endcf/p" + + # Validate tagname. + case $tagname in + *[!-_A-Za-z0-9,/]*) + func_fatal_error "invalid tag name: $tagname" + ;; + esac + + # Don't test for the "default" C tag, as we know it's + # there but not specially marked. + case $tagname in + CC) ;; + *) + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then + taglist="$taglist $tagname" + + # Evaluate the configuration. Be careful to quote the path + # and the sed script, to avoid splitting on whitespace, but + # also don't use non-portable quotes within backquotes within + # quotes we have to do it in 2 steps: + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` + eval "$extractedcf" + else + func_error "ignoring unknown tag $tagname" + fi + ;; + esac +} + +# func_check_version_match +# Ensure that we are using m4 macros, and libtool script from the same +# release of libtool. +func_check_version_match () +{ + if test "$package_revision" != "$macro_revision"; then + if test "$VERSION" != "$macro_version"; then + if test -z "$macro_version"; then + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from an older release. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + fi + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, +$progname: but the definition of this LT_INIT comes from revision $macro_revision. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision +$progname: of $PACKAGE $VERSION and run autoconf again. +_LT_EOF + fi + + exit $EXIT_MISMATCH + fi +} + + +# Shorthand for --mode=foo, only valid as the first argument +case $1 in +clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift + ;; +compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift + ;; +execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift + ;; +finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift + ;; +install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; +link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; +uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift + ;; +esac + + + +# Option defaults: +opt_debug=: +opt_dry_run=false +opt_config=false +opt_preserve_dup_deps=false +opt_features=false +opt_finish=false +opt_help=false +opt_help_all=false +opt_silent=: +opt_verbose=: +opt_silent=false +opt_verbose=false + + +# Parse options once, thoroughly. This comes as soon as possible in the +# script to make things like `--version' happen as quickly as we can. +{ + # this just eases exit handling + while test $# -gt 0; do + opt="$1" + shift + case $opt in + --debug|-x) opt_debug='set -x' + func_echo "enabling shell trace mode" + $opt_debug + ;; + --dry-run|--dryrun|-n) + opt_dry_run=: + ;; + --config) + opt_config=: +func_config + ;; + --dlopen|-dlopen) + optarg="$1" + opt_dlopen="${opt_dlopen+$opt_dlopen +}$optarg" + shift + ;; + --preserve-dup-deps) + opt_preserve_dup_deps=: + ;; + --features) + opt_features=: +func_features + ;; + --finish) + opt_finish=: +set dummy --mode finish ${1+"$@"}; shift + ;; + --help) + opt_help=: + ;; + --help-all) + opt_help_all=: +opt_help=': help-all' + ;; + --mode) + test $# = 0 && func_missing_arg $opt && break + optarg="$1" + opt_mode="$optarg" +case $optarg in + # Valid mode arguments: + clean|compile|execute|finish|install|link|relink|uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument for $opt" + exit_cmd=exit + break + ;; +esac + shift + ;; + --no-silent|--no-quiet) + opt_silent=false +preserve_args+=" $opt" + ;; + --no-verbose) + opt_verbose=false +preserve_args+=" $opt" + ;; + --silent|--quiet) + opt_silent=: +preserve_args+=" $opt" + opt_verbose=false + ;; + --verbose|-v) + opt_verbose=: +preserve_args+=" $opt" +opt_silent=false + ;; + --tag) + test $# = 0 && func_missing_arg $opt && break + optarg="$1" + opt_tag="$optarg" +preserve_args+=" $opt $optarg" +func_enable_tag "$optarg" + shift + ;; + + -\?|-h) func_usage ;; + --help) func_help ;; + --version) func_version ;; + + # Separate optargs to long options: + --*=*) + func_split_long_opt "$opt" + set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} + shift + ;; + + # Separate non-argument short options: + -\?*|-h*|-n*|-v*) + func_split_short_opt "$opt" + set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} + shift + ;; + + --) break ;; + -*) func_fatal_help "unrecognized option \`$opt'" ;; + *) set dummy "$opt" ${1+"$@"}; shift; break ;; + esac + done + + # Validate options: + + # save first non-option argument + if test "$#" -gt 0; then + nonopt="$opt" + shift + fi + + # preserve --debug + test "$opt_debug" = : || preserve_args+=" --debug" + + case $host in + *cygwin* | *mingw* | *pw32* | *cegcc*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; + *) + opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps + ;; + esac + + $opt_help || { + # Sanity checks first: + func_check_version_match + + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then + func_fatal_configuration "not configured to build any kind of library" + fi + + # Darwin sucks + eval std_shrext=\"$shrext_cmds\" + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$opt_dlopen" && test "$opt_mode" != execute; then + func_error "unrecognized option \`-dlopen'" + $ECHO "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help="$help" + help="Try \`$progname --help --mode=$opt_mode' for more information." + } + + + # Bail if the options were screwed + $exit_cmd $EXIT_FAILURE +} + + + + +## ----------- ## +## Main. ## +## ----------- ## + +# func_lalib_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_lalib_p () +{ + test -f "$1" && + $SED -e 4q "$1" 2>/dev/null \ + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 +} + +# func_lalib_unsafe_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function implements the same check as func_lalib_p without +# resorting to external programs. To this end, it redirects stdin and +# closes it afterwards, without saving the original file descriptor. +# As a safety measure, use it only where a negative result would be +# fatal anyway. Works if `file' does not exist. +func_lalib_unsafe_p () +{ + lalib_p=no + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then + for lalib_p_l in 1 2 3 4 + do + read lalib_p_line + case "$lalib_p_line" in + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; + esac + done + exec 0<&5 5<&- + fi + test "$lalib_p" = yes +} + +# func_ltwrapper_script_p file +# True iff FILE is a libtool wrapper script +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_script_p () +{ + func_lalib_p "$1" +} + +# func_ltwrapper_executable_p file +# True iff FILE is a libtool wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_executable_p () +{ + func_ltwrapper_exec_suffix= + case $1 in + *.exe) ;; + *) func_ltwrapper_exec_suffix=.exe ;; + esac + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 +} + +# func_ltwrapper_scriptname file +# Assumes file is an ltwrapper_executable +# uses $file to determine the appropriate filename for a +# temporary ltwrapper_script. +func_ltwrapper_scriptname () +{ + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" +} + +# func_ltwrapper_p file +# True iff FILE is a libtool wrapper script or wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_p () +{ + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" +} + + +# func_execute_cmds commands fail_cmd +# Execute tilde-delimited COMMANDS. +# If FAIL_CMD is given, eval that upon failure. +# FAIL_CMD may read-access the current command in variable CMD! +func_execute_cmds () +{ + $opt_debug + save_ifs=$IFS; IFS='~' + for cmd in $1; do + IFS=$save_ifs + eval cmd=\"$cmd\" + func_show_eval "$cmd" "${2-:}" + done + IFS=$save_ifs +} + + +# func_source file +# Source FILE, adding directory component if necessary. +# Note that it is not necessary on cygwin/mingw to append a dot to +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe +# behavior happens only for exec(3), not for open(2)! Also, sourcing +# `FILE.' does not work on cygwin managed mounts. +func_source () +{ + $opt_debug + case $1 in + */* | *\\*) . "$1" ;; + *) . "./$1" ;; + esac +} + + +# func_resolve_sysroot PATH +# Replace a leading = in PATH with a sysroot. Store the result into +# func_resolve_sysroot_result +func_resolve_sysroot () +{ + func_resolve_sysroot_result=$1 + case $func_resolve_sysroot_result in + =*) + func_stripname '=' '' "$func_resolve_sysroot_result" + func_resolve_sysroot_result=$lt_sysroot$func_stripname_result + ;; + esac +} + +# func_replace_sysroot PATH +# If PATH begins with the sysroot, replace it with = and +# store the result into func_replace_sysroot_result. +func_replace_sysroot () +{ + case "$lt_sysroot:$1" in + ?*:"$lt_sysroot"*) + func_stripname "$lt_sysroot" '' "$1" + func_replace_sysroot_result="=$func_stripname_result" + ;; + *) + # Including no sysroot. + func_replace_sysroot_result=$1 + ;; + esac +} + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + $opt_debug + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + func_append_quoted CC_quoted "$arg" + done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + func_append_quoted CC_quoted "$arg" + done + CC_expanded=`func_echo_all $CC` + CC_quoted_expanded=`func_echo_all $CC_quoted` + case "$@ " in + " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ + " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + func_echo "unable to infer tagged configuration" + func_fatal_error "specify a tag with \`--tag'" +# else +# func_verbose "using $tagname tagged configuration" + fi + ;; + esac + fi +} + + + +# func_write_libtool_object output_name pic_name nonpic_name +# Create a libtool object file (analogous to a ".la" file), +# but don't create it if we're doing a dry run. +func_write_libtool_object () +{ + write_libobj=${1} + if test "$build_libtool_libs" = yes; then + write_lobj=\'${2}\' + else + write_lobj=none + fi + + if test "$build_old_libs" = yes; then + write_oldobj=\'${3}\' + else + write_oldobj=none + fi + + $opt_dry_run || { + cat >${write_libobj}T <<EOF +# $write_libobj - a libtool object file +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object=$write_lobj + +# Name of the non-PIC object +non_pic_object=$write_oldobj + +EOF + $MV "${write_libobj}T" "${write_libobj}" + } +} + + +################################################## +# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS # +################################################## + +# func_convert_core_file_wine_to_w32 ARG +# Helper function used by file name conversion functions when $build is *nix, +# and $host is mingw, cygwin, or some other w32 environment. Relies on a +# correctly configured wine environment available, with the winepath program +# in $build's $PATH. +# +# ARG is the $build file name to be converted to w32 format. +# Result is available in $func_convert_core_file_wine_to_w32_result, and will +# be empty on error (or when ARG is empty) +func_convert_core_file_wine_to_w32 () +{ + $opt_debug + func_convert_core_file_wine_to_w32_result="$1" + if test -n "$1"; then + # Unfortunately, winepath does not exit with a non-zero error code, so we + # are forced to check the contents of stdout. On the other hand, if the + # command is not found, the shell will set an exit code of 127 and print + # *an error message* to stdout. So we must check for both error code of + # zero AND non-empty stdout, which explains the odd construction: + func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null` + if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then + func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | + $SED -e "$lt_sed_naive_backslashify"` + else + func_convert_core_file_wine_to_w32_result= + fi + fi +} +# end: func_convert_core_file_wine_to_w32 + + +# func_convert_core_path_wine_to_w32 ARG +# Helper function used by path conversion functions when $build is *nix, and +# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly +# configured wine environment available, with the winepath program in $build's +# $PATH. Assumes ARG has no leading or trailing path separator characters. +# +# ARG is path to be converted from $build format to win32. +# Result is available in $func_convert_core_path_wine_to_w32_result. +# Unconvertible file (directory) names in ARG are skipped; if no directory names +# are convertible, then the result may be empty. +func_convert_core_path_wine_to_w32 () +{ + $opt_debug + # unfortunately, winepath doesn't convert paths, only file names + func_convert_core_path_wine_to_w32_result="" + if test -n "$1"; then + oldIFS=$IFS + IFS=: + for func_convert_core_path_wine_to_w32_f in $1; do + IFS=$oldIFS + func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" + if test -n "$func_convert_core_file_wine_to_w32_result" ; then + if test -z "$func_convert_core_path_wine_to_w32_result"; then + func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" + else + func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" + fi + fi + done + IFS=$oldIFS + fi +} +# end: func_convert_core_path_wine_to_w32 + + +# func_cygpath ARGS... +# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when +# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) +# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or +# (2), returns the Cygwin file name or path in func_cygpath_result (input +# file name or path is assumed to be in w32 format, as previously converted +# from $build's *nix or MSYS format). In case (3), returns the w32 file name +# or path in func_cygpath_result (input file name or path is assumed to be in +# Cygwin format). Returns an empty string on error. +# +# ARGS are passed to cygpath, with the last one being the file name or path to +# be converted. +# +# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH +# environment variable; do not put it in $PATH. +func_cygpath () +{ + $opt_debug + if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then + func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` + if test "$?" -ne 0; then + # on failure, ensure result is empty + func_cygpath_result= + fi + else + func_cygpath_result= + func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" + fi +} +#end: func_cygpath + + +# func_convert_core_msys_to_w32 ARG +# Convert file name or path ARG from MSYS format to w32 format. Return +# result in func_convert_core_msys_to_w32_result. +func_convert_core_msys_to_w32 () +{ + $opt_debug + # awkward: cmd appends spaces to result + func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | + $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` +} +#end: func_convert_core_msys_to_w32 + + +# func_convert_file_check ARG1 ARG2 +# Verify that ARG1 (a file name in $build format) was converted to $host +# format in ARG2. Otherwise, emit an error message, but continue (resetting +# func_to_host_file_result to ARG1). +func_convert_file_check () +{ + $opt_debug + if test -z "$2" && test -n "$1" ; then + func_error "Could not determine host file name corresponding to" + func_error " \`$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback: + func_to_host_file_result="$1" + fi +} +# end func_convert_file_check + + +# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH +# Verify that FROM_PATH (a path in $build format) was converted to $host +# format in TO_PATH. Otherwise, emit an error message, but continue, resetting +# func_to_host_file_result to a simplistic fallback value (see below). +func_convert_path_check () +{ + $opt_debug + if test -z "$4" && test -n "$3"; then + func_error "Could not determine the host path corresponding to" + func_error " \`$3'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback. This is a deliberately simplistic "conversion" and + # should not be "improved". See libtool.info. + if test "x$1" != "x$2"; then + lt_replace_pathsep_chars="s|$1|$2|g" + func_to_host_path_result=`echo "$3" | + $SED -e "$lt_replace_pathsep_chars"` + else + func_to_host_path_result="$3" + fi + fi +} +# end func_convert_path_check + + +# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG +# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT +# and appending REPL if ORIG matches BACKPAT. +func_convert_path_front_back_pathsep () +{ + $opt_debug + case $4 in + $1 ) func_to_host_path_result="$3$func_to_host_path_result" + ;; + esac + case $4 in + $2 ) func_to_host_path_result+="$3" + ;; + esac +} +# end func_convert_path_front_back_pathsep + + +################################################## +# $build to $host FILE NAME CONVERSION FUNCTIONS # +################################################## +# invoked via `$to_host_file_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# Result will be available in $func_to_host_file_result. + + +# func_to_host_file ARG +# Converts the file name ARG from $build format to $host format. Return result +# in func_to_host_file_result. +func_to_host_file () +{ + $opt_debug + $to_host_file_cmd "$1" +} +# end func_to_host_file + + +# func_to_tool_file ARG LAZY +# converts the file name ARG from $build format to toolchain format. Return +# result in func_to_tool_file_result. If the conversion in use is listed +# in (the comma separated) LAZY, no conversion takes place. +func_to_tool_file () +{ + $opt_debug + case ,$2, in + *,"$to_tool_file_cmd",*) + func_to_tool_file_result=$1 + ;; + *) + $to_tool_file_cmd "$1" + func_to_tool_file_result=$func_to_host_file_result + ;; + esac +} +# end func_to_tool_file + + +# func_convert_file_noop ARG +# Copy ARG to func_to_host_file_result. +func_convert_file_noop () +{ + func_to_host_file_result="$1" +} +# end func_convert_file_noop + + +# func_convert_file_msys_to_w32 ARG +# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_file_result. +func_convert_file_msys_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_to_host_file_result="$func_convert_core_msys_to_w32_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_w32 + + +# func_convert_file_cygwin_to_w32 ARG +# Convert file name ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_file_cygwin_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + # because $build is cygwin, we call "the" cygpath in $PATH; no need to use + # LT_CYGPATH in this case. + func_to_host_file_result=`cygpath -m "$1"` + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_cygwin_to_w32 + + +# func_convert_file_nix_to_w32 ARG +# Convert file name ARG from *nix to w32 format. Requires a wine environment +# and a working winepath. Returns result in func_to_host_file_result. +func_convert_file_nix_to_w32 () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_file_wine_to_w32 "$1" + func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_w32 + + +# func_convert_file_msys_to_cygwin ARG +# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_file_msys_to_cygwin () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + func_convert_core_msys_to_w32 "$1" + func_cygpath -u "$func_convert_core_msys_to_w32_result" + func_to_host_file_result="$func_cygpath_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_msys_to_cygwin + + +# func_convert_file_nix_to_cygwin ARG +# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed +# in a wine environment, working winepath, and LT_CYGPATH set. Returns result +# in func_to_host_file_result. +func_convert_file_nix_to_cygwin () +{ + $opt_debug + func_to_host_file_result="$1" + if test -n "$1"; then + # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. + func_convert_core_file_wine_to_w32 "$1" + func_cygpath -u "$func_convert_core_file_wine_to_w32_result" + func_to_host_file_result="$func_cygpath_result" + fi + func_convert_file_check "$1" "$func_to_host_file_result" +} +# end func_convert_file_nix_to_cygwin + + +############################################# +# $build to $host PATH CONVERSION FUNCTIONS # +############################################# +# invoked via `$to_host_path_cmd ARG' +# +# In each case, ARG is the path to be converted from $build to $host format. +# The result will be available in $func_to_host_path_result. +# +# Path separators are also converted from $build format to $host format. If +# ARG begins or ends with a path separator character, it is preserved (but +# converted to $host format) on output. +# +# All path conversion functions are named using the following convention: +# file name conversion function : func_convert_file_X_to_Y () +# path conversion function : func_convert_path_X_to_Y () +# where, for any given $build/$host combination the 'X_to_Y' value is the +# same. If conversion functions are added for new $build/$host combinations, +# the two new functions must follow this pattern, or func_init_to_host_path_cmd +# will break. + + +# func_init_to_host_path_cmd +# Ensures that function "pointer" variable $to_host_path_cmd is set to the +# appropriate value, based on the value of $to_host_file_cmd. +to_host_path_cmd= +func_init_to_host_path_cmd () +{ + $opt_debug + if test -z "$to_host_path_cmd"; then + func_stripname 'func_convert_file_' '' "$to_host_file_cmd" + to_host_path_cmd="func_convert_path_${func_stripname_result}" + fi +} + + +# func_to_host_path ARG +# Converts the path ARG from $build format to $host format. Return result +# in func_to_host_path_result. +func_to_host_path () +{ + $opt_debug + func_init_to_host_path_cmd + $to_host_path_cmd "$1" +} +# end func_to_host_path + + +# func_convert_path_noop ARG +# Copy ARG to func_to_host_path_result. +func_convert_path_noop () +{ + func_to_host_path_result="$1" +} +# end func_convert_path_noop + + +# func_convert_path_msys_to_w32 ARG +# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic +# conversion to w32 is not available inside the cwrapper. Returns result in +# func_to_host_path_result. +func_convert_path_msys_to_w32 () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # Remove leading and trailing path separator characters from ARG. MSYS + # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; + # and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result="$func_convert_core_msys_to_w32_result" + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_msys_to_w32 + + +# func_convert_path_cygwin_to_w32 ARG +# Convert path ARG from Cygwin to w32 format. Returns result in +# func_to_host_file_result. +func_convert_path_cygwin_to_w32 () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_cygwin_to_w32 + + +# func_convert_path_nix_to_w32 ARG +# Convert path ARG from *nix to w32 format. Requires a wine environment and +# a working winepath. Returns result in func_to_host_file_result. +func_convert_path_nix_to_w32 () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" + func_convert_path_check : ";" \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" + fi +} +# end func_convert_path_nix_to_w32 + + +# func_convert_path_msys_to_cygwin ARG +# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. +# Returns result in func_to_host_file_result. +func_convert_path_msys_to_cygwin () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # See func_convert_path_msys_to_w32: + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_msys_to_w32_result" + func_to_host_path_result="$func_cygpath_result" + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_msys_to_cygwin + + +# func_convert_path_nix_to_cygwin ARG +# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a +# a wine environment, working winepath, and LT_CYGPATH set. Returns result in +# func_to_host_file_result. +func_convert_path_nix_to_cygwin () +{ + $opt_debug + func_to_host_path_result="$1" + if test -n "$1"; then + # Remove leading and trailing path separator characters from + # ARG. msys behavior is inconsistent here, cygpath turns them + # into '.;' and ';.', and winepath ignores them completely. + func_stripname : : "$1" + func_to_host_path_tmp1=$func_stripname_result + func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" + func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" + func_to_host_path_result="$func_cygpath_result" + func_convert_path_check : : \ + "$func_to_host_path_tmp1" "$func_to_host_path_result" + func_convert_path_front_back_pathsep ":*" "*:" : "$1" + fi +} +# end func_convert_path_nix_to_cygwin + + +# func_mode_compile arg... +func_mode_compile () +{ + $opt_debug + # Get the compilation command and the source file. + base_compile= + srcfile="$nonopt" # always keep a non-empty value in "srcfile" + suppress_opt=yes + suppress_output= + arg_mode=normal + libobj= + later= + pie_flag= + + for arg + do + case $arg_mode in + arg ) + # do not "continue". Instead, add this to base_compile + lastarg="$arg" + arg_mode=normal + ;; + + target ) + libobj="$arg" + arg_mode=normal + continue + ;; + + normal ) + # Accept any command-line options. + case $arg in + -o) + test -n "$libobj" && \ + func_fatal_error "you cannot specify \`-o' more than once" + arg_mode=target + continue + ;; + + -pie | -fpie | -fPIE) + pie_flag+=" $arg" + continue + ;; + + -shared | -static | -prefer-pic | -prefer-non-pic) + later+=" $arg" + continue + ;; + + -no-suppress) + suppress_opt=no + continue + ;; + + -Xcompiler) + arg_mode=arg # the next one goes into the "base_compile" arg list + continue # The current "srcfile" will either be retained or + ;; # replaced later. I would guess that would be a bug. + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + lastarg= + save_ifs="$IFS"; IFS=',' + for arg in $args; do + IFS="$save_ifs" + func_append_quoted lastarg "$arg" + done + IFS="$save_ifs" + func_stripname ' ' '' "$lastarg" + lastarg=$func_stripname_result + + # Add the arguments to base_compile. + base_compile+=" $lastarg" + continue + ;; + + *) + # Accept the current argument as the source file. + # The previous "srcfile" becomes the current argument. + # + lastarg="$srcfile" + srcfile="$arg" + ;; + esac # case $arg + ;; + esac # case $arg_mode + + # Aesthetically quote the previous argument. + func_append_quoted base_compile "$lastarg" + done # for arg + + case $arg_mode in + arg) + func_fatal_error "you must specify an argument for -Xcompile" + ;; + target) + func_fatal_error "you must specify a target with \`-o'" + ;; + *) + # Get the name of the library object. + test -z "$libobj" && { + func_basename "$srcfile" + libobj="$func_basename_result" + } + ;; + esac + + # Recognize several different file suffixes. + # If the user specifies -o file.o, it is replaced with file.lo + case $libobj in + *.[cCFSifmso] | \ + *.ada | *.adb | *.ads | *.asm | \ + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ + *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup) + func_xform "$libobj" + libobj=$func_xform_result + ;; + esac + + case $libobj in + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; + *) + func_fatal_error "cannot determine name of library object from \`$libobj'" + ;; + esac + + func_infer_tag $base_compile + + for arg in $later; do + case $arg in + -shared) + test "$build_libtool_libs" != yes && \ + func_fatal_configuration "can not build a shared library" + build_old_libs=no + continue + ;; + + -static) + build_libtool_libs=no + build_old_libs=yes + continue + ;; + + -prefer-pic) + pic_mode=yes + continue + ;; + + -prefer-non-pic) + pic_mode=no + continue + ;; + esac + done + + func_quote_for_eval "$libobj" + test "X$libobj" != "X$func_quote_for_eval_result" \ + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ + && func_warning "libobj name \`$libobj' may not contain shell special characters." + func_dirname_and_basename "$obj" "/" "" + objname="$func_basename_result" + xdir="$func_dirname_result" + lobj=${xdir}$objdir/$objname + + test -z "$base_compile" && \ + func_fatal_help "you must specify a compilation command" + + # Delete any leftover library objects. + if test "$build_old_libs" = yes; then + removelist="$obj $lobj $libobj ${libobj}T" + else + removelist="$lobj $libobj ${libobj}T" + fi + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in + cygwin* | mingw* | pw32* | os2* | cegcc*) + pic_mode=default + ;; + esac + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test "$compiler_c_o" = no; then + output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} + lockfile="$output_obj.lock" + else + output_obj= + need_locks=no + lockfile= + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new file + if test "$need_locks" = yes; then + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + elif test "$need_locks" = warn; then + if test -f "$lockfile"; then + $ECHO "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + removelist+=" $output_obj" + $ECHO "$srcfile" > "$lockfile" + fi + + $opt_dry_run || $RM $removelist + removelist+=" $lockfile" + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 + + func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 + srcfile=$func_to_tool_file_result + func_quote_for_eval "$srcfile" + qsrcfile=$func_quote_for_eval_result + + # Only build a PIC object if we are building libtool libraries. + if test "$build_libtool_libs" = yes; then + # Without this assignment, base_compile gets emptied. + fbsd_hideous_sh_bug=$base_compile + + if test "$pic_mode" != no; then + command="$base_compile $qsrcfile $pic_flag" + else + # Don't build PIC code + command="$base_compile $qsrcfile" + fi + + func_mkdir_p "$xdir$objdir" + + if test -z "$output_obj"; then + # Place PIC objects in $objdir + command+=" -o $lobj" + fi + + func_show_eval_locale "$command" \ + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" = warn && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed, then go on to compile the next one + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then + func_show_eval '$MV "$output_obj" "$lobj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + + # Allow error messages only from the first compilation. + if test "$suppress_opt" = yes; then + suppress_output=' >/dev/null 2>&1' + fi + fi + + # Only build a position-dependent object if we build old libraries. + if test "$build_old_libs" = yes; then + if test "$pic_mode" != yes; then + # Don't build PIC code + command="$base_compile $qsrcfile$pie_flag" + else + command="$base_compile $qsrcfile $pic_flag" + fi + if test "$compiler_c_o" = yes; then + command+=" -o $obj" + fi + + # Suppress compiler output if we already did a PIC compilation. + command+="$suppress_output" + func_show_eval_locale "$command" \ + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" = warn && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then + func_show_eval '$MV "$output_obj" "$obj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + fi + + $opt_dry_run || { + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" + + # Unlock the critical section if it was locked + if test "$need_locks" != no; then + removelist=$lockfile + $RM "$lockfile" + fi + } + + exit $EXIT_SUCCESS +} + +$opt_help || { + test "$opt_mode" = compile && func_mode_compile ${1+"$@"} +} + +func_mode_help () +{ + # We need to display help for each of the modes. + case $opt_mode in + "") + # Generic help is extracted from the usage comments + # at the start of this file. + func_help + ;; + + clean) + $ECHO \ +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + + compile) + $ECHO \ +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -no-suppress do not suppress compiler output for multiple passes + -prefer-pic try to build PIC objects only + -prefer-non-pic try to build non-PIC objects only + -shared do not build a \`.o' file suitable for static linking + -static only build a \`.o' file suitable for static linking + -Wc,FLAG pass FLAG directly to the compiler + +COMPILE-COMMAND is a command to be used in creating a \`standard' object file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix \`.c' with the +library object suffix, \`.lo'." + ;; + + execute) + $ECHO \ +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library path + +This mode sets the library path environment variable according to \`-dlopen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + + finish) + $ECHO \ +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. Use +the \`--dry-run' option if you just want to see what would be executed." + ;; + + install) + $ECHO \ +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should be +either the \`install' or \`cp' program. + +The following components of INSTALL-COMMAND are treated specially: + + -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation + +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; + + link) + $ECHO \ +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -bindir BINDIR specify path to binaries directory (for systems where + libraries must be found in the PATH setting at runtime) + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE Use a list of object files found in FILE to specify objects + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -shared only do dynamic linking of libtool libraries + -shrext SUFFIX override the standard shared library file extension + -static do not do any dynamic linking of uninstalled libtool libraries + -static-libtool-libs + do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + -weak LIBNAME declare that the target provides the LIBNAME interface + -Wc,FLAG + -Xcompiler FLAG pass linker-specific FLAG directly to the compiler + -Wl,FLAG + -Xlinker FLAG pass linker-specific FLAG directly to the linker + -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) + +All other options (arguments beginning with \`-') are ignored. + +Every other argument is treated as a filename. Files ending in \`.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. + +If the OUTPUT-FILE ends in \`.la', then a libtool library is created, +only library objects (\`.lo' files) may be specified, and \`-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created +using \`ar' and \`ranlib', or on Windows using \`lib'. + +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file +is created, otherwise an executable program is created." + ;; + + uninstall) + $ECHO \ +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; + + *) + func_fatal_help "invalid operation mode \`$opt_mode'" + ;; + esac + + echo + $ECHO "Try \`$progname --help' for more information about other modes." +} + +# Now that we've collected a possible --mode arg, show help if necessary +if $opt_help; then + if test "$opt_help" = :; then + func_mode_help + else + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + func_mode_help + done + } | sed -n '1p; 2,$s/^Usage:/ or: /p' + { + func_help noexit + for opt_mode in compile link execute install finish uninstall clean; do + echo + func_mode_help + done + } | + sed '1d + /^When reporting/,/^Report/{ + H + d + } + $x + /information about other modes/d + /more detailed .*MODE/d + s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' + fi + exit $? +fi + + +# func_mode_execute arg... +func_mode_execute () +{ + $opt_debug + # The first argument is the command name. + cmd="$nonopt" + test -z "$cmd" && \ + func_fatal_help "you must specify a COMMAND" + + # Handle -dlopen flags immediately. + for file in $opt_dlopen; do + test -f "$file" \ + || func_fatal_help "\`$file' is not a file" + + dir= + case $file in + *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$lib' is not a valid libtool archive" + + # Read the libtool library. + dlname= + library_names= + func_source "$file" + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && \ + func_warning "\`$file' was not linked with \`-export-dynamic'" + continue + fi + + func_dirname "$file" "" "." + dir="$func_dirname_result" + + if test -f "$dir/$objdir/$dlname"; then + dir+="/$objdir" + else + if test ! -f "$dir/$dlname"; then + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" + fi + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + func_dirname "$file" "" "." + dir="$func_dirname_result" + ;; + + *) + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" + continue + ;; + esac + + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir="$absdir" + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic="$magic" + + # Check if any of the arguments is a wrapper script. + args= + for file + do + case $file in + -* | *.la | *.lo ) ;; + *) + # Do a test to see if this is really a libtool program. + if func_ltwrapper_script_p "$file"; then + func_source "$file" + # Transform arg to wrapped name. + file="$progdir/$program" + elif func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + func_source "$func_ltwrapper_scriptname_result" + # Transform arg to wrapped name. + file="$progdir/$program" + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + func_append_quoted args "$file" + done + + if test "X$opt_dry_run" = Xfalse; then + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi + + # Restore saved environment variables + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES + do + eval "if test \"\${save_$lt_var+set}\" = set; then + $lt_var=\$save_$lt_var; export $lt_var + else + $lt_unset $lt_var + fi" + done + + # Now prepare to actually exec the command. + exec_cmd="\$cmd$args" + else + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" + echo "export $shlibpath_var" + fi + $ECHO "$cmd$args" + exit $EXIT_SUCCESS + fi +} + +test "$opt_mode" = execute && func_mode_execute ${1+"$@"} + + +# func_mode_finish arg... +func_mode_finish () +{ + $opt_debug + libs= + libdirs= + admincmds= + + for opt in "$nonopt" ${1+"$@"} + do + if test -d "$opt"; then + libdirs+=" $opt" + + elif test -f "$opt"; then + if func_lalib_unsafe_p "$opt"; then + libs+=" $opt" + else + func_warning "\`$opt' is not a valid libtool archive" + fi + + else + func_fatal_error "invalid argument \`$opt'" + fi + done + + if test -n "$libs"; then + if test -n "$lt_sysroot"; then + sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` + sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" + else + sysroot_cmd= + fi + + # Remove sysroot references + if $opt_dry_run; then + for lib in $libs; do + echo "removing references to $lt_sysroot and \`=' prefixes from $lib" + done + else + tmpdir=`func_mktempdir` + for lib in $libs; do + sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ + > $tmpdir/tmp-la + mv -f $tmpdir/tmp-la $lib + done + ${RM}r "$tmpdir" + fi + fi + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds +'"$cmd"'"' + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $opt_dry_run || eval "$cmds" || admincmds+=" + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + $opt_silent && exit $EXIT_SUCCESS + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + echo "----------------------------------------------------------------------" + echo "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + echo + echo "If you ever happen to want to link against installed libraries" + echo "in a given directory, LIBDIR, you must either use libtool, and" + echo "specify the full pathname of the library, or use the \`-LLIBDIR'" + echo "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + echo " - add LIBDIR to the \`$shlibpath_var' environment variable" + echo " during execution" + fi + if test -n "$runpath_var"; then + echo " - add LIBDIR to the \`$runpath_var' environment variable" + echo " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" + + $ECHO " - use the \`$flag' linker flag" + fi + if test -n "$admincmds"; then + $ECHO " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" + fi + echo + + echo "See any operating system documentation about shared libraries for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" + echo "pages." + ;; + *) + echo "more information, such as the ld(1) and ld.so(8) manual pages." + ;; + esac + echo "----------------------------------------------------------------------" + fi + exit $EXIT_SUCCESS +} + +test "$opt_mode" = finish && func_mode_finish ${1+"$@"} + + +# func_mode_install arg... +func_mode_install () +{ + $opt_debug + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || + # Allow the use of GNU shtool's install command. + case $nonopt in *shtool*) :;; *) false;; esac; then + # Aesthetically quote it. + func_quote_for_eval "$nonopt" + install_prog="$func_quote_for_eval_result " + arg=$1 + shift + else + install_prog= + arg=$nonopt + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + func_quote_for_eval "$arg" + install_prog+="$func_quote_for_eval_result" + install_shared_prog=$install_prog + case " $install_prog " in + *[\\\ /]cp\ *) install_cp=: ;; + *) install_cp=false ;; + esac + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=no + stripme= + no_mode=: + for arg + do + arg2= + if test -n "$dest"; then + files+=" $dest" + dest=$arg + continue + fi + + case $arg in + -d) isdir=yes ;; + -f) + if $install_cp; then :; else + prev=$arg + fi + ;; + -g | -m | -o) + prev=$arg + ;; + -s) + stripme=" -s" + continue + ;; + -*) + ;; + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + if test "x$prev" = x-m && test -n "$install_override_mode"; then + arg2=$install_override_mode + no_mode=false + fi + prev= + else + dest=$arg + continue + fi + ;; + esac + + # Aesthetically quote the argument. + func_quote_for_eval "$arg" + install_prog+=" $func_quote_for_eval_result" + if test -n "$arg2"; then + func_quote_for_eval "$arg2" + fi + install_shared_prog+=" $func_quote_for_eval_result" + done + + test -z "$install_prog" && \ + func_fatal_help "you must specify an install program" + + test -n "$prev" && \ + func_fatal_help "the \`$prev' option requires an argument" + + if test -n "$install_override_mode" && $no_mode; then + if $install_cp; then :; else + func_quote_for_eval "$install_override_mode" + install_shared_prog+=" -m $func_quote_for_eval_result" + fi + fi + + if test -z "$files"; then + if test -z "$dest"; then + func_fatal_help "no file or destination specified" + else + func_fatal_help "you must specify a destination" + fi + fi + + # Strip any trailing slash from the destination. + func_stripname '' '/' "$dest" + dest=$func_stripname_result + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=yes + if test "$isdir" = yes; then + destdir="$dest" + destname= + else + func_dirname_and_basename "$dest" "" "." + destdir="$func_dirname_result" + destname="$func_basename_result" + + # Not a directory, so check to see that there is only one file specified. + set dummy $files; shift + test "$#" -gt 1 && \ + func_fatal_help "\`$dest' is not a directory" + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + for file in $files; do + case $file in + *.lo) ;; + *) + func_fatal_help "\`$destdir' must be an absolute directory name" + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do + + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + staticlibs+=" $file" + ;; + + *.la) + func_resolve_sysroot "$file" + file=$func_resolve_sysroot_result + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$file' is not a valid libtool archive" + + library_names= + old_library= + relink_command= + func_source "$file" + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) current_libdirs+=" $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) future_libdirs+=" $libdir" ;; + esac + fi + + func_dirname "$file" "/" "" + dir="$func_dirname_result" + dir+="$objdir" + + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + test "$inst_prefix_dir" = "$destdir" && \ + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` + fi + + func_warning "relinking \`$file'" + func_show_eval "$relink_command" \ + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' + fi + + # See the names of the shared library. + set dummy $library_names; shift + if test -n "$1"; then + realname="$1" + shift + + srcname="$realname" + test -n "$relink_command" && srcname="$realname"T + + # Install the shared library and build the symlinks. + func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ + 'exit $?' + tstripme="$stripme" + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme="" + ;; + esac + ;; + esac + if test -n "$tstripme" && test -n "$striplib"; then + func_show_eval "$striplib $destdir/$realname" 'exit $?' + fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + # Try `ln -sf' first, because the `ln' binary might depend on + # the symlink we replace! Solaris /bin/ln does not understand -f, + # so we also need to try rm && ln -s. + for linkname + do + test "$linkname" != "$realname" \ + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" + done + fi + + # Do each command in the postinstall commands. + lib="$destdir/$realname" + func_execute_cmds "$postinstall_cmds" 'exit $?' + fi + + # Install the pseudo-library for information purposes. + func_basename "$file" + name="$func_basename_result" + instname="$dir/$name"i + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs+=" $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" + fi + + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + func_lo2o "$destfile" + staticdest=$func_lo2o_result + ;; + *.$objext) + staticdest="$destfile" + destfile= + ;; + *) + func_fatal_help "cannot copy a libtool object to \`$destfile'" + ;; + esac + + # Install the libtool object if requested. + test -n "$destfile" && \ + func_show_eval "$install_prog $file $destfile" 'exit $?' + + # Install the old object if enabled. + if test "$build_old_libs" = yes; then + # Deduce the name of the old-style object file. + func_lo2o "$file" + staticobj=$func_lo2o_result + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' + fi + exit $EXIT_SUCCESS + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" + fi + + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext="" + case $file in + *.exe) + if test ! -f "$file"; then + func_stripname '' '.exe' "$file" + file=$func_stripname_result + stripped_ext=".exe" + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin* | *mingw*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=$func_ltwrapper_scriptname_result + else + func_stripname '' '.exe' "$file" + wrapper=$func_stripname_result + fi + ;; + *) + wrapper=$file + ;; + esac + if func_ltwrapper_script_p "$wrapper"; then + notinst_deplibs= + relink_command= + + func_source "$wrapper" + + # Check the variables that should have been set. + test -z "$generated_by_libtool_version" && \ + func_fatal_error "invalid libtool wrapper script \`$wrapper'" + + finalize=yes + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + func_source "$lib" + fi + libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test + if test -n "$libdir" && test ! -f "$libfile"; then + func_warning "\`$lib' has not been installed in \`$libdir'" + finalize=no + fi + done + + relink_command= + func_source "$wrapper" + + outputname= + if test "$fast_install" = no && test -n "$relink_command"; then + $opt_dry_run || { + if test "$finalize" = yes; then + tmpdir=`func_mktempdir` + func_basename "$file$stripped_ext" + file="$func_basename_result" + outputname="$tmpdir/$file" + # Replace the output file specification. + relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` + + $opt_silent || { + func_quote_for_expand "$relink_command" + eval "func_echo $func_quote_for_expand_result" + } + if eval "$relink_command"; then : + else + func_error "error: relink \`$file' with the above command before installing it" + $opt_dry_run || ${RM}r "$tmpdir" + continue + fi + file="$outputname" + else + func_warning "cannot relink \`$file'" + fi + } + else + # Install the binary that we compiled earlier. + file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` + fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + func_stripname '' '.exe' "$destfile" + destfile=$func_stripname_result + ;; + esac + ;; + esac + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' + $opt_dry_run || if test -n "$outputname"; then + ${RM}r "$tmpdir" + fi + ;; + esac + done + + for file in $staticlibs; do + func_basename "$file" + name="$func_basename_result" + + # Set up the ranlib parameters. + oldlib="$destdir/$name" + + func_show_eval "$install_prog \$file \$oldlib" 'exit $?' + + if test -n "$stripme" && test -n "$old_striplib"; then + func_show_eval "$old_striplib $oldlib" 'exit $?' + fi + + # Do each command in the postinstall commands. + func_execute_cmds "$old_postinstall_cmds" 'exit $?' + done + + test -n "$future_libdirs" && \ + func_warning "remember to run \`$progname --finish$future_libdirs'" + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + $opt_dry_run && current_libdirs=" -n$current_libdirs" + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' + else + exit $EXIT_SUCCESS + fi +} + +test "$opt_mode" = install && func_mode_install ${1+"$@"} + + +# func_generate_dlsyms outputname originator pic_p +# Extract symbols from dlprefiles and create ${outputname}S.o with +# a dlpreopen symbol table. +func_generate_dlsyms () +{ + $opt_debug + my_outputname="$1" + my_originator="$2" + my_pic_p="${3-no}" + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` + my_dlsyms= + + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + my_dlsyms="${my_outputname}S.c" + else + func_error "not configured to extract global symbols from dlpreopened files" + fi + fi + + if test -n "$my_dlsyms"; then + case $my_dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist="$output_objdir/${my_outputname}.nm" + + func_show_eval "$RM $nlist ${nlist}S ${nlist}T" + + # Parse the name list into a source file. + func_verbose "creating $output_objdir/$my_dlsyms" + + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" +#endif + +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + +/* External symbol declarations for the compiler. */\ +" + + if test "$dlself" = yes; then + func_verbose "generating symbol list for \`$output'" + + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` + for progfile in $progfiles; do + func_to_tool_file "$progfile" func_convert_file_msys_to_w32 + func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" + $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" + done + + if test -n "$exclude_expsyms"; then + $opt_dry_run || { + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + if test -n "$export_symbols_regex"; then + $opt_dry_run || { + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols="$output_objdir/$outputname.exp" + $opt_dry_run || { + $RM $export_symbols + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' + ;; + esac + } + else + $opt_dry_run || { + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' + ;; + esac + } + fi + fi + + for dlprefile in $dlprefiles; do + func_verbose "extracting global C symbols from \`$dlprefile'" + func_basename "$dlprefile" + name="$func_basename_result" + case $host in + *cygwin* | *mingw* | *cegcc* ) + # if an import library, we need to obtain dlname + if func_win32_import_lib_p "$dlprefile"; then + func_tr_sh "$dlprefile" + eval "curr_lafile=\$libfile_$func_tr_sh_result" + dlprefile_dlbasename="" + if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then + # Use subshell, to avoid clobbering current variable values + dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` + if test -n "$dlprefile_dlname" ; then + func_basename "$dlprefile_dlname" + dlprefile_dlbasename="$func_basename_result" + else + # no lafile. user explicitly requested -dlpreopen <import library>. + $sharedlib_from_linklib_cmd "$dlprefile" + dlprefile_dlbasename=$sharedlib_from_linklib_result + fi + fi + $opt_dry_run || { + if test -n "$dlprefile_dlbasename" ; then + eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' + else + func_warning "Could not compute DLL name from $name" + eval '$ECHO ": $name " >> "$nlist"' + fi + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | + $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" + } + else # not an import lib + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + fi + ;; + *) + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 + eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + ;; + esac + done + + $opt_dry_run || { + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" + fi + + # Try sorting and uniquifying the output. + if $GREP -v "^: " < "$nlist" | + if sort -k 3 </dev/null >/dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : + else + $GREP -v "^: " < "$nlist" > "$nlist"S + fi + + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' + else + echo '/* NONE */' >> "$output_objdir/$my_dlsyms" + fi + + echo >> "$output_objdir/$my_dlsyms" "\ + +/* The mapping between symbol names and symbols. */ +typedef struct { + const char *name; + void *address; +} lt_dlsymlist; +extern LT_DLSYM_CONST lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[]; +LT_DLSYM_CONST lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[] = +{\ + { \"$my_originator\", (void *) 0 }," + + case $need_lib_prefix in + no) + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + *) + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + esac + echo >> "$output_objdir/$my_dlsyms" "\ + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_${my_prefix}_LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif\ +" + } # !$opt_dry_run + + pic_flag_for_symtable= + case "$compile_command " in + *" -static "*) ;; + *) + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; + *-*-hpux*) + pic_flag_for_symtable=" $pic_flag" ;; + *) + if test "X$my_pic_p" != Xno; then + pic_flag_for_symtable=" $pic_flag" + fi + ;; + esac + ;; + esac + symtab_cflags= + for arg in $LTCFLAGS; do + case $arg in + -pie | -fpie | -fPIE) ;; + *) symtab_cflags+=" $arg" ;; + esac + done + + # Now compile the dynamic symbol file. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' + + # Clean up the generated files. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' + + # Transform the symbol file into the correct name. + symfileobj="$output_objdir/${my_outputname}S.$objext" + case $host in + *cygwin* | *mingw* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + else + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` + fi + ;; + *) + compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` + ;; + esac + ;; + *) + func_fatal_error "unknown suffix for \`$my_dlsyms'" + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + + # Nullify the symbol file. + compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` + finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` + fi +} + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +# Despite the name, also deal with 64 bit binaries. +func_win32_libid () +{ + $opt_debug + win32_libid_type="unknown" + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | + $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then + func_to_tool_file "$1" func_convert_file_msys_to_w32 + win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | + $SED -n -e ' + 1,100{ + / I /{ + s,.*,import, + p + q + } + }'` + case $win32_nmres in + import*) win32_libid_type="x86 archive import";; + *) win32_libid_type="x86 archive static";; + esac + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $ECHO "$win32_libid_type" +} + +# func_cygming_dll_for_implib ARG +# +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib () +{ + $opt_debug + sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` +} + +# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs +# +# The is the core of a fallback implementation of a +# platform-specific function to extract the name of the +# DLL associated with the specified import library LIBNAME. +# +# SECTION_NAME is either .idata$6 or .idata$7, depending +# on the platform and compiler that created the implib. +# +# Echos the name of the DLL associated with the +# specified import library. +func_cygming_dll_for_implib_fallback_core () +{ + $opt_debug + match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` + $OBJDUMP -s --section "$1" "$2" 2>/dev/null | + $SED '/^Contents of section '"$match_literal"':/{ + # Place marker at beginning of archive member dllname section + s/.*/====MARK====/ + p + d + } + # These lines can sometimes be longer than 43 characters, but + # are always uninteresting + /:[ ]*file format pe[i]\{,1\}-/d + /^In archive [^:]*:/d + # Ensure marker is printed + /^====MARK====/p + # Remove all lines with less than 43 characters + /^.\{43\}/!d + # From remaining lines, remove first 43 characters + s/^.\{43\}//' | + $SED -n ' + # Join marker and all lines until next marker into a single line + /^====MARK====/ b para + H + $ b para + b + :para + x + s/\n//g + # Remove the marker + s/^====MARK====// + # Remove trailing dots and whitespace + s/[\. \t]*$// + # Print + /./p' | + # we now have a list, one entry per line, of the stringified + # contents of the appropriate section of all members of the + # archive which possess that section. Heuristic: eliminate + # all those which have a first or second character that is + # a '.' (that is, objdump's representation of an unprintable + # character.) This should work for all archives with less than + # 0x302f exports -- but will fail for DLLs whose name actually + # begins with a literal '.' or a single character followed by + # a '.'. + # + # Of those that remain, print the first one. + $SED -e '/^\./d;/^.\./d;q' +} + +# func_cygming_gnu_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is a GNU/binutils-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_gnu_implib_p () +{ + $opt_debug + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` + test -n "$func_cygming_gnu_implib_tmp" +} + +# func_cygming_ms_implib_p ARG +# This predicate returns with zero status (TRUE) if +# ARG is an MS-style import library. Returns +# with nonzero status (FALSE) otherwise. +func_cygming_ms_implib_p () +{ + $opt_debug + func_to_tool_file "$1" func_convert_file_msys_to_w32 + func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` + test -n "$func_cygming_ms_implib_tmp" +} + +# func_cygming_dll_for_implib_fallback ARG +# Platform-specific function to extract the +# name of the DLL associated with the specified +# import library ARG. +# +# This fallback implementation is for use when $DLLTOOL +# does not support the --identify-strict option. +# Invoked by eval'ing the libtool variable +# $sharedlib_from_linklib_cmd +# Result is available in the variable +# $sharedlib_from_linklib_result +func_cygming_dll_for_implib_fallback () +{ + $opt_debug + if func_cygming_gnu_implib_p "$1" ; then + # binutils import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` + elif func_cygming_ms_implib_p "$1" ; then + # ms-generated import library + sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` + else + # unknown + sharedlib_from_linklib_result="" + fi +} + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + $opt_debug + f_ex_an_ar_dir="$1"; shift + f_ex_an_ar_oldlib="$1" + if test "$lock_old_archive_extraction" = yes; then + lockfile=$f_ex_an_ar_oldlib.lock + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + fi + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ + 'stat=$?; rm -f "$lockfile"; exit $stat' + if test "$lock_old_archive_extraction" = yes; then + $opt_dry_run || rm -f "$lockfile" + fi + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" + fi +} + + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + $opt_debug + my_gentop="$1"; shift + my_oldlibs=${1+"$@"} + my_oldobjs="" + my_xlib="" + my_xabs="" + my_xdir="" + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + func_basename "$my_xlib" + my_xlib="$func_basename_result" + my_xlib_u=$my_xlib + while :; do + case " $extracted_archives " in + *" $my_xlib_u "*) + func_arith $extracted_serial + 1 + extracted_serial=$func_arith_result + my_xlib_u=lt$extracted_serial-$my_xlib ;; + *) break ;; + esac + done + extracted_archives="$extracted_archives $my_xlib_u" + my_xdir="$my_gentop/$my_xlib_u" + + func_mkdir_p "$my_xdir" + + case $host in + *-darwin*) + func_verbose "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + $opt_dry_run || { + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + darwin_base_archive=`basename "$darwin_archive"` + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` + if test -n "$darwin_arches"; then + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches ; do + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" + func_extract_an_archive "`pwd`" "${darwin_base_archive}" + cd "$darwin_curdir" + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" + done # $darwin_arches + ## Okay now we've a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` + $LIPO -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + $RM -rf unfat-$$ + cd "$darwin_orig_dir" + else + cd $darwin_orig_dir + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + } # !$opt_dry_run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` + done + + func_extract_archives_result="$my_oldobjs" +} + + +# func_emit_wrapper [arg=no] +# +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to +# incorporate the script contents within a cygwin/mingw +# wrapper executable. Must ONLY be called from within +# func_mode_link because it depends on a number of variables +# set therein. +# +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# variable will take. If 'yes', then the emitted script +# will assume that the directory in which it is stored is +# the $objdir directory. This is a cygwin/mingw-specific +# behavior. +func_emit_wrapper () +{ + func_emit_wrapper_arg1=${1-no} + + $ECHO "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='$sed_quote_subst' + +# Be Bourne compatible +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +relink_command=\"$relink_command\" + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variables: + generated_by_libtool_version='$macro_version' + notinst_deplibs='$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$ECHO are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + file=\"\$0\"" + + qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` + $ECHO "\ + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +\$1 +_LTECHO_EOF' +} + ECHO=\"$qECHO\" + fi + +# Very basic option parsing. These options are (a) specific to +# the libtool wrapper, (b) are identical between the wrapper +# /script/ and the wrapper /executable/ which is used only on +# windows platforms, and (c) all begin with the string "--lt-" +# (application programs are unlikely to have options which match +# this pattern). +# +# There are only two supported options: --lt-debug and +# --lt-dump-script. There is, deliberately, no --lt-help. +# +# The first argument to this parsing function should be the +# script's $0 value, followed by "$@". +lt_option_debug= +func_parse_lt_options () +{ + lt_script_arg0=\$0 + shift + for lt_opt + do + case \"\$lt_opt\" in + --lt-debug) lt_option_debug=1 ;; + --lt-dump-script) + lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` + test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. + lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` + cat \"\$lt_dump_D/\$lt_dump_F\" + exit 0 + ;; + --lt-*) + \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 + exit 1 + ;; + esac + done + + # Print the debug banner immediately: + if test -n \"\$lt_option_debug\"; then + echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 + fi +} + +# Used when --lt-debug. Prints its arguments to stdout +# (redirection is the responsibility of the caller) +func_lt_dump_args () +{ + lt_dump_args_N=1; + for lt_arg + do + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" + lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` + done +} + +# Core function for launching the target application +func_exec_program_core () +{ +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2* | *-cegcc*) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + if test -n \"\$lt_option_debug\"; then + \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 + func_lt_dump_args \${1+\"\$@\"} 1>&2 + fi + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 +} + +# A function to encapsulate launching the target application +# Strips options in the --lt-* namespace from \$@ and +# launches target application with the remaining arguments. +func_exec_program () +{ + for lt_wr_arg + do + case \$lt_wr_arg in + --lt-*) ;; + *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; + esac + shift + done + func_exec_program_core \${1+\"\$@\"} +} + + # Parse options + func_parse_lt_options \"\$0\" \${1+\"\$@\"} + + # Find the directory that this script lives in. + thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. + + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; + esac + fi + + file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` + done + + # Usually 'no', except on cygwin/mingw when embedded into + # the cwrapper. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then + # special case for '.' + if test \"\$thisdir\" = \".\"; then + thisdir=\`pwd\` + fi + # remove .libs from thisdir + case \"\$thisdir\" in + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; + $objdir ) thisdir=. ;; + esac + fi + + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" +" + + if test "$fast_install" = yes; then + $ECHO "\ + program=lt-'$outputname'$exeext + progdir=\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ + test \"X\$file\" != \"X\$progdir/\$program\"; }; then + + file=\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $MKDIR \"\$progdir\" + else + $RM \"\$progdir/\$file\" + fi" + + $ECHO "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=\`eval \$relink_command 2>&1\`; then : + else + $ECHO \"\$relink_command_output\" >&2 + $RM \"\$progdir/\$file\" + exit 1 + fi + fi + + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $RM \"\$progdir/\$program\"; + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $RM \"\$progdir/\$file\" + fi" + else + $ECHO "\ + program='$outputname' + progdir=\"\$thisdir/$objdir\" +" + fi + + $ECHO "\ + + if test -f \"\$progdir/\$program\"; then" + + # fixup the dll searchpath if we need to. + # + # Fix the DLL searchpath if we need to. Do this before prepending + # to shlibpath, because on Windows, both are PATH and uninstalled + # libraries must come first. + if test -n "$dllsearchpath"; then + $ECHO "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + + # Export our shlibpath_var if we have one. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $ECHO "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` + + export $shlibpath_var +" + fi + + $ECHO "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. + func_exec_program \${1+\"\$@\"} + fi + else + # The program doesn't exist. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 + \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + exit 1 + fi +fi\ +" +} + + +# func_emit_cwrapperexe_src +# emit the source code for a wrapper executable on stdout +# Must ONLY be called from within func_mode_link because +# it depends on a number of variable set therein. +func_emit_cwrapperexe_src () +{ + cat <<EOF + +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION + + The $output program cannot be directly executed until all the libtool + libraries that it depends on are installed. + + This wrapper executable should never be moved out of the build directory. + If it is, it will not operate correctly. +*/ +EOF + cat <<"EOF" +#ifdef _MSC_VER +# define _CRT_SECURE_NO_DEPRECATE 1 +#endif +#include <stdio.h> +#include <stdlib.h> +#ifdef _MSC_VER +# include <direct.h> +# include <process.h> +# include <io.h> +#else +# include <unistd.h> +# include <stdint.h> +# ifdef __CYGWIN__ +# include <io.h> +# endif +#endif +#include <malloc.h> +#include <stdarg.h> +#include <assert.h> +#include <string.h> +#include <ctype.h> +#include <errno.h> +#include <fcntl.h> +#include <sys/stat.h> + +/* declarations of non-ANSI functions */ +#if defined(__MINGW32__) +# ifdef __STRICT_ANSI__ +int _putenv (const char *); +# endif +#elif defined(__CYGWIN__) +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +/* #elif defined (other platforms) ... */ +#endif + +/* portability defines, excluding path handling macros */ +#if defined(_MSC_VER) +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +# define S_IXUSR _S_IEXEC +# ifndef _INTPTR_T_DEFINED +# define _INTPTR_T_DEFINED +# define intptr_t int +# endif +#elif defined(__MINGW32__) +# define setmode _setmode +# define stat _stat +# define chmod _chmod +# define getcwd _getcwd +# define putenv _putenv +#elif defined(__CYGWIN__) +# define HAVE_SETENV +# define FOPEN_WB "wb" +/* #elif defined (other platforms) ... */ +#endif + +#if defined(PATH_MAX) +# define LT_PATHMAX PATH_MAX +#elif defined(MAXPATHLEN) +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef S_IXOTH +# define S_IXOTH 0 +#endif +#ifndef S_IXGRP +# define S_IXGRP 0 +#endif + +/* path handling portability macros */ +#ifndef DIR_SEPARATOR +# define DIR_SEPARATOR '/' +# define PATH_SEPARATOR ':' +#endif + +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ + defined (__OS2__) +# define HAVE_DOS_BASED_FILE_SYSTEM +# define FOPEN_WB "wb" +# ifndef DIR_SEPARATOR_2 +# define DIR_SEPARATOR_2 '\\' +# endif +# ifndef PATH_SEPARATOR_2 +# define PATH_SEPARATOR_2 ';' +# endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#ifndef PATH_SEPARATOR_2 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) +#else /* PATH_SEPARATOR_2 */ +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) +#endif /* PATH_SEPARATOR_2 */ + +#ifndef FOPEN_WB +# define FOPEN_WB "w" +#endif +#ifndef _O_BINARY +# define _O_BINARY 0 +#endif + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free ((void *) stale); stale = 0; } \ +} while (0) + +#if defined(LT_DEBUGWRAPPER) +static int lt_debug = 1; +#else +static int lt_debug = 0; +#endif + +const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ + +void *xmalloc (size_t num); +char *xstrdup (const char *string); +const char *base_name (const char *name); +char *find_executable (const char *wrapper); +char *chase_symlinks (const char *pathspec); +int make_executable (const char *path); +int check_executable (const char *path); +char *strendzap (char *str, const char *pat); +void lt_debugprintf (const char *file, int line, const char *fmt, ...); +void lt_fatal (const char *file, int line, const char *message, ...); +static const char *nonnull (const char *s); +static const char *nonempty (const char *s); +void lt_setenv (const char *name, const char *value); +char *lt_extend_str (const char *orig_value, const char *add, int to_end); +void lt_update_exe_path (const char *name, const char *value); +void lt_update_lib_path (const char *name, const char *value); +char **prepare_spawn (char **argv); +void lt_dump_script (FILE *f); +EOF + + cat <<EOF +volatile const char * MAGIC_EXE = "$magic_exe"; +const char * LIB_PATH_VARNAME = "$shlibpath_var"; +EOF + + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + func_to_host_path "$temp_rpath" + cat <<EOF +const char * LIB_PATH_VALUE = "$func_to_host_path_result"; +EOF + else + cat <<"EOF" +const char * LIB_PATH_VALUE = ""; +EOF + fi + + if test -n "$dllsearchpath"; then + func_to_host_path "$dllsearchpath:" + cat <<EOF +const char * EXE_PATH_VARNAME = "PATH"; +const char * EXE_PATH_VALUE = "$func_to_host_path_result"; +EOF + else + cat <<"EOF" +const char * EXE_PATH_VARNAME = ""; +const char * EXE_PATH_VALUE = ""; +EOF + fi + + if test "$fast_install" = yes; then + cat <<EOF +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */ +EOF + else + cat <<EOF +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */ +EOF + fi + + + cat <<"EOF" + +#define LTWRAPPER_OPTION_PREFIX "--lt-" + +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX; +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script"; +static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug"; + +int +main (int argc, char *argv[]) +{ + char **newargz; + int newargc; + char *tmp_pathspec; + char *actual_cwrapper_path; + char *actual_cwrapper_name; + char *target_name; + char *lt_argv_zero; + intptr_t rval = 127; + + int i; + + program_name = (char *) xstrdup (base_name (argv[0])); + newargz = XMALLOC (char *, argc + 1); + + /* very simple arg parsing; don't want to rely on getopt + * also, copy all non cwrapper options to newargz, except + * argz[0], which is handled differently + */ + newargc=0; + for (i = 1; i < argc; i++) + { + if (strcmp (argv[i], dumpscript_opt) == 0) + { +EOF + case "$host" in + *mingw* | *cygwin* ) + # make stdout use "unix" line endings + echo " setmode(1,_O_BINARY);" + ;; + esac + + cat <<"EOF" + lt_dump_script (stdout); + return 0; + } + if (strcmp (argv[i], debug_opt) == 0) + { + lt_debug = 1; + continue; + } + if (strcmp (argv[i], ltwrapper_option_prefix) == 0) + { + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX + namespace, but it is not one of the ones we know about and + have already dealt with, above (inluding dump-script), then + report an error. Otherwise, targets might begin to believe + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX + namespace. The first time any user complains about this, we'll + need to make LTWRAPPER_OPTION_PREFIX a configure-time option + or a configure.ac-settable value. + */ + lt_fatal (__FILE__, __LINE__, + "unrecognized %s option: '%s'", + ltwrapper_option_prefix, argv[i]); + } + /* otherwise ... */ + newargz[++newargc] = xstrdup (argv[i]); + } + newargz[++newargc] = NULL; + +EOF + cat <<EOF + /* The GNU banner must be the first non-error debug message */ + lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n"); +EOF + cat <<"EOF" + lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]); + lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name); + + tmp_pathspec = find_executable (argv[0]); + if (tmp_pathspec == NULL) + lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]); + lt_debugprintf (__FILE__, __LINE__, + "(main) found exe (before symlink chase) at: %s\n", + tmp_pathspec); + + actual_cwrapper_path = chase_symlinks (tmp_pathspec); + lt_debugprintf (__FILE__, __LINE__, + "(main) found exe (after symlink chase) at: %s\n", + actual_cwrapper_path); + XFREE (tmp_pathspec); + + actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path)); + strendzap (actual_cwrapper_path, actual_cwrapper_name); + + /* wrapper name transforms */ + strendzap (actual_cwrapper_name, ".exe"); + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1); + XFREE (actual_cwrapper_name); + actual_cwrapper_name = tmp_pathspec; + tmp_pathspec = 0; + + /* target_name transforms -- use actual target program name; might have lt- prefix */ + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME)); + strendzap (target_name, ".exe"); + tmp_pathspec = lt_extend_str (target_name, ".exe", 1); + XFREE (target_name); + target_name = tmp_pathspec; + tmp_pathspec = 0; + + lt_debugprintf (__FILE__, __LINE__, + "(main) libtool target name: %s\n", + target_name); +EOF + + cat <<EOF + newargz[0] = + XMALLOC (char, (strlen (actual_cwrapper_path) + + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1)); + strcpy (newargz[0], actual_cwrapper_path); + strcat (newargz[0], "$objdir"); + strcat (newargz[0], "/"); +EOF + + cat <<"EOF" + /* stop here, and copy so we don't have to do this twice */ + tmp_pathspec = xstrdup (newargz[0]); + + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */ + strcat (newargz[0], actual_cwrapper_name); + + /* DO want the lt- prefix here if it exists, so use target_name */ + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1); + XFREE (tmp_pathspec); + tmp_pathspec = NULL; +EOF + + case $host_os in + mingw*) + cat <<"EOF" + { + char* p; + while ((p = strchr (newargz[0], '\\')) != NULL) + { + *p = '/'; + } + while ((p = strchr (lt_argv_zero, '\\')) != NULL) + { + *p = '/'; + } + } +EOF + ;; + esac + + cat <<"EOF" + XFREE (target_name); + XFREE (actual_cwrapper_path); + XFREE (actual_cwrapper_name); + + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */ + lt_setenv ("DUALCASE", "1"); /* for MSK sh */ + /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must + be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath) + because on Windows, both *_VARNAMEs are PATH but uninstalled + libraries must come first. */ + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); + + lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n", + nonnull (lt_argv_zero)); + for (i = 0; i < newargc; i++) + { + lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n", + i, nonnull (newargz[i])); + } + +EOF + + case $host_os in + mingw*) + cat <<"EOF" + /* execv doesn't actually work on mingw as expected on unix */ + newargz = prepare_spawn (newargz); + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); + if (rval == -1) + { + /* failed to start process */ + lt_debugprintf (__FILE__, __LINE__, + "(main) failed to launch target \"%s\": %s\n", + lt_argv_zero, nonnull (strerror (errno))); + return 127; + } + return rval; +EOF + ;; + *) + cat <<"EOF" + execv (lt_argv_zero, newargz); + return rval; /* =127, but avoids unused variable warning */ +EOF + ;; + esac + + cat <<"EOF" +} + +void * +xmalloc (size_t num) +{ + void *p = (void *) malloc (num); + if (!p) + lt_fatal (__FILE__, __LINE__, "memory exhausted"); + + return p; +} + +char * +xstrdup (const char *string) +{ + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), + string) : NULL; +} + +const char * +base_name (const char *name) +{ + const char *base; + +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + /* Skip over the disk name in MSDOS pathnames. */ + if (isalpha ((unsigned char) name[0]) && name[1] == ':') + name += 2; +#endif + + for (base = name; *name; name++) + if (IS_DIR_SEPARATOR (*name)) + base = name + 1; + return base; +} + +int +check_executable (const char *path) +{ + struct stat st; + + lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n", + nonempty (path)); + if ((!path) || (!*path)) + return 0; + + if ((stat (path, &st) >= 0) + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) + return 1; + else + return 0; +} + +int +make_executable (const char *path) +{ + int rval = 0; + struct stat st; + + lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", + nonempty (path)); + if ((!path) || (!*path)) + return 0; + + if (stat (path, &st) >= 0) + { + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); + } + return rval; +} + +/* Searches for the full path of the wrapper. Returns + newly allocated full path name if found, NULL otherwise + Does not chase symlinks, even on platforms that support them. +*/ +char * +find_executable (const char *wrapper) +{ + int has_slash = 0; + const char *p; + const char *p_next; + /* static buffer for getcwd */ + char tmp[LT_PATHMAX + 1]; + int tmp_len; + char *concat_name; + + lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", + nonempty (wrapper)); + + if ((wrapper == NULL) || (*wrapper == '\0')) + return NULL; + + /* Absolute path? */ +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + else + { +#endif + if (IS_DIR_SEPARATOR (wrapper[0])) + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + } +#endif + + for (p = wrapper; *p; p++) + if (*p == '/') + { + has_slash = 1; + break; + } + if (!has_slash) + { + /* no slashes; search PATH */ + const char *path = getenv ("PATH"); + if (path != NULL) + { + for (p = path; *p; p = p_next) + { + const char *q; + size_t p_len; + for (q = p; *q; q++) + if (IS_PATH_SEPARATOR (*q)) + break; + p_len = q - p; + p_next = (*q == '\0' ? q : q + 1); + if (p_len == 0) + { + /* empty path: current directory */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); + tmp_len = strlen (tmp); + concat_name = + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + } + else + { + concat_name = + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, wrapper); + } + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + } + /* not found in PATH; assume curdir */ + } + /* Relative path | not found in path: prepend cwd */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", + nonnull (strerror (errno))); + tmp_len = strlen (tmp); + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + return NULL; +} + +char * +chase_symlinks (const char *pathspec) +{ +#ifndef S_ISLNK + return xstrdup (pathspec); +#else + char buf[LT_PATHMAX]; + struct stat s; + char *tmp_pathspec = xstrdup (pathspec); + char *p; + int has_symlinks = 0; + while (strlen (tmp_pathspec) && !has_symlinks) + { + lt_debugprintf (__FILE__, __LINE__, + "checking path component for symlinks: %s\n", + tmp_pathspec); + if (lstat (tmp_pathspec, &s) == 0) + { + if (S_ISLNK (s.st_mode) != 0) + { + has_symlinks = 1; + break; + } + + /* search backwards for last DIR_SEPARATOR */ + p = tmp_pathspec + strlen (tmp_pathspec) - 1; + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + p--; + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + { + /* no more DIR_SEPARATORS left */ + break; + } + *p = '\0'; + } + else + { + lt_fatal (__FILE__, __LINE__, + "error accessing file \"%s\": %s", + tmp_pathspec, nonnull (strerror (errno))); + } + } + XFREE (tmp_pathspec); + + if (!has_symlinks) + { + return xstrdup (pathspec); + } + + tmp_pathspec = realpath (pathspec, buf); + if (tmp_pathspec == 0) + { + lt_fatal (__FILE__, __LINE__, + "could not follow symlinks for %s", pathspec); + } + return xstrdup (tmp_pathspec); +#endif +} + +char * +strendzap (char *str, const char *pat) +{ + size_t len, patlen; + + assert (str != NULL); + assert (pat != NULL); + + len = strlen (str); + patlen = strlen (pat); + + if (patlen <= len) + { + str += len - patlen; + if (strcmp (str, pat) == 0) + *str = '\0'; + } + return str; +} + +void +lt_debugprintf (const char *file, int line, const char *fmt, ...) +{ + va_list args; + if (lt_debug) + { + (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); + va_start (args, fmt); + (void) vfprintf (stderr, fmt, args); + va_end (args); + } +} + +static void +lt_error_core (int exit_status, const char *file, + int line, const char *mode, + const char *message, va_list ap) +{ + fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >= 0) + exit (exit_status); +} + +void +lt_fatal (const char *file, int line, const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); + va_end (ap); +} + +static const char * +nonnull (const char *s) +{ + return s ? s : "(null)"; +} + +static const char * +nonempty (const char *s) +{ + return (s && !*s) ? "(empty)" : nonnull (s); +} + +void +lt_setenv (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_setenv) setting '%s' to '%s'\n", + nonnull (name), nonnull (value)); + { +#ifdef HAVE_SETENV + /* always make a copy, for consistency with !HAVE_SETENV */ + char *str = xstrdup (value); + setenv (name, str, 1); +#else + int len = strlen (name) + 1 + strlen (value) + 1; + char *str = XMALLOC (char, len); + sprintf (str, "%s=%s", name, value); + if (putenv (str) != EXIT_SUCCESS) + { + XFREE (str); + } +#endif + } +} + +char * +lt_extend_str (const char *orig_value, const char *add, int to_end) +{ + char *new_value; + if (orig_value && *orig_value) + { + int orig_value_len = strlen (orig_value); + int add_len = strlen (add); + new_value = XMALLOC (char, add_len + orig_value_len + 1); + if (to_end) + { + strcpy (new_value, orig_value); + strcpy (new_value + orig_value_len, add); + } + else + { + strcpy (new_value, add); + strcpy (new_value + add_len, orig_value); + } + } + else + { + new_value = xstrdup (add); + } + return new_value; +} + +void +lt_update_exe_path (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + /* some systems can't cope with a ':'-terminated path #' */ + int len = strlen (new_value); + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) + { + new_value[len-1] = '\0'; + } + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +void +lt_update_lib_path (const char *name, const char *value) +{ + lt_debugprintf (__FILE__, __LINE__, + "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", + nonnull (name), nonnull (value)); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +EOF + case $host_os in + mingw*) + cat <<"EOF" + +/* Prepares an argument vector before calling spawn(). + Note that spawn() does not by itself call the command interpreter + (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : + ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); + GetVersionEx(&v); + v.dwPlatformId == VER_PLATFORM_WIN32_NT; + }) ? "cmd.exe" : "command.com"). + Instead it simply concatenates the arguments, separated by ' ', and calls + CreateProcess(). We must quote the arguments since Win32 CreateProcess() + interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a + special way: + - Space and tab are interpreted as delimiters. They are not treated as + delimiters if they are surrounded by double quotes: "...". + - Unescaped double quotes are removed from the input. Their only effect is + that within double quotes, space and tab are treated like normal + characters. + - Backslashes not followed by double quotes are not special. + - But 2*n+1 backslashes followed by a double quote become + n backslashes followed by a double quote (n >= 0): + \" -> " + \\\" -> \" + \\\\\" -> \\" + */ +#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" +char ** +prepare_spawn (char **argv) +{ + size_t argc; + char **new_argv; + size_t i; + + /* Count number of arguments. */ + for (argc = 0; argv[argc] != NULL; argc++) + ; + + /* Allocate new argument vector. */ + new_argv = XMALLOC (char *, argc + 1); + + /* Put quoted arguments into the new argument vector. */ + for (i = 0; i < argc; i++) + { + const char *string = argv[i]; + + if (string[0] == '\0') + new_argv[i] = xstrdup ("\"\""); + else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) + { + int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); + size_t length; + unsigned int backslashes; + const char *s; + char *quoted_string; + char *p; + + length = 0; + backslashes = 0; + if (quote_around) + length++; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + length += backslashes + 1; + length++; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + length += backslashes + 1; + + quoted_string = XMALLOC (char, length + 1); + + p = quoted_string; + backslashes = 0; + if (quote_around) + *p++ = '"'; + for (s = string; *s != '\0'; s++) + { + char c = *s; + if (c == '"') + { + unsigned int j; + for (j = backslashes + 1; j > 0; j--) + *p++ = '\\'; + } + *p++ = c; + if (c == '\\') + backslashes++; + else + backslashes = 0; + } + if (quote_around) + { + unsigned int j; + for (j = backslashes; j > 0; j--) + *p++ = '\\'; + *p++ = '"'; + } + *p = '\0'; + + new_argv[i] = quoted_string; + } + else + new_argv[i] = (char *) string; + } + new_argv[argc] = NULL; + + return new_argv; +} +EOF + ;; + esac + + cat <<"EOF" +void lt_dump_script (FILE* f) +{ +EOF + func_emit_wrapper yes | + $SED -e 's/\([\\"]\)/\\\1/g' \ + -e 's/^/ fputs ("/' -e 's/$/\\n", f);/' + + cat <<"EOF" +} +EOF +} +# end: func_emit_cwrapperexe_src + +# func_win32_import_lib_p ARG +# True if ARG is an import lib, as indicated by $file_magic_cmd +func_win32_import_lib_p () +{ + $opt_debug + case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in + *import*) : ;; + *) false ;; + esac +} + +# func_mode_link arg... +func_mode_link () +{ + $opt_debug + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # which system we are compiling for in order to pass an extra + # flag for every libtool invocation. + # allow_undefined=no + + # FIXME: Unfortunately, there are problems with the above when trying + # to make a dll which has undefined symbols, in which case not + # even a static library is built. For now, we need to specify + # -no-undefined on the libtool link line when we can be certain + # that all symbols are satisfied, otherwise we get a static library. + allow_undefined=yes + ;; + *) + allow_undefined=yes + ;; + esac + libtool_args=$nonopt + base_compile="$nonopt $@" + compile_command=$nonopt + finalize_command=$nonopt + + compile_rpath= + finalize_rpath= + compile_shlibpath= + finalize_shlibpath= + convenience= + old_convenience= + deplibs= + old_deplibs= + compiler_flags= + linker_flags= + dllsearchpath= + lib_search_path=`pwd` + inst_prefix_dir= + new_inherited_linker_flags= + + avoid_version=no + bindir= + dlfiles= + dlprefiles= + dlself=no + export_dynamic=no + export_symbols= + export_symbols_regex= + generated= + libobjs= + ltlibs= + module=no + no_install=no + objs= + non_pic_objects= + precious_files_regex= + prefer_static_libs=no + preload=no + prev= + prevarg= + release= + rpath= + xrpath= + perm_rpath= + temp_rpath= + thread_safe=no + vinfo= + vinfo_number=no + weak_libs= + single_module="${wl}-single_module" + func_infer_tag $base_compile + + # We need to know -static, to get the right output filenames. + for arg + do + case $arg in + -shared) + test "$build_libtool_libs" != yes && \ + func_fatal_configuration "can not build a shared library" + build_old_libs=no + break + ;; + -all-static | -static | -static-libtool-libs) + case $arg in + -all-static) + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then + func_warning "complete static linking is impossible in this configuration" + fi + if test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + -static) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=built + ;; + -static-libtool-libs) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + esac + build_libtool_libs=no + build_old_libs=yes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes + + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg="$1" + shift + func_quote_for_eval "$arg" + qarg=$func_quote_for_eval_unquoted_result + libtool_args+=" $func_quote_for_eval_result" + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + compile_command+=" @OUTPUT@" + finalize_command+=" @OUTPUT@" + ;; + esac + + case $prev in + bindir) + bindir="$arg" + prev= + continue + ;; + dlfiles|dlprefiles) + if test "$preload" = no; then + # Add the symbol object into the linking commands. + compile_command+=" @SYMFILE@" + finalize_command+=" @SYMFILE@" + preload=yes + fi + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test "$dlself" = no; then + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + self) + if test "$prev" = dlprefiles; then + dlself=yes + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then + dlself=yes + else + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + *) + if test "$prev" = dlfiles; then + dlfiles+=" $arg" + else + dlprefiles+=" $arg" + fi + prev= + continue + ;; + esac + ;; + expsyms) + export_symbols="$arg" + test -f "$arg" \ + || func_fatal_error "symbol file \`$arg' does not exist" + prev= + continue + ;; + expsyms_regex) + export_symbols_regex="$arg" + prev= + continue + ;; + framework) + case $host in + *-*-darwin*) + case "$deplibs " in + *" $qarg.ltframework "*) ;; + *) deplibs+=" $qarg.ltframework" # this is fixed later + ;; + esac + ;; + esac + prev= + continue + ;; + inst_prefix) + inst_prefix_dir="$arg" + prev= + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat "$save_arg"` + do +# moreargs+=" $fil" + arg=$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles+=" $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles+=" $pic_object" + prev= + fi + + # A PIC object. + libobjs+=" $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + non_pic_objects+=" $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + non_pic_objects+=" $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + libobjs+=" $pic_object" + non_pic_objects+=" $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + done + else + func_fatal_error "link input file \`$arg' does not exist" + fi + arg=$save_arg + prev= + continue + ;; + precious_regex) + precious_files_regex="$arg" + prev= + continue + ;; + release) + release="-$arg" + prev= + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + if test "$prev" = rpath; then + case "$rpath " in + *" $arg "*) ;; + *) rpath+=" $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) xrpath+=" $arg" ;; + esac + fi + prev= + continue + ;; + shrext) + shrext_cmds="$arg" + prev= + continue + ;; + weak) + weak_libs+=" $arg" + prev= + continue + ;; + xcclinker) + linker_flags+=" $qarg" + compiler_flags+=" $qarg" + prev= + compile_command+=" $qarg" + finalize_command+=" $qarg" + continue + ;; + xcompiler) + compiler_flags+=" $qarg" + prev= + compile_command+=" $qarg" + finalize_command+=" $qarg" + continue + ;; + xlinker) + linker_flags+=" $qarg" + compiler_flags+=" $wl$qarg" + prev= + compile_command+=" $wl$qarg" + finalize_command+=" $wl$qarg" + continue + ;; + *) + eval "$prev=\"\$arg\"" + prev= + continue + ;; + esac + fi # test -n "$prev" + + prevarg="$arg" + + case $arg in + -all-static) + if test -n "$link_static_flag"; then + # See comment for -static flag below, for more details. + compile_command+=" $link_static_flag" + finalize_command+=" $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + func_fatal_error "\`-allow-undefined' must not be used because it is the default" + ;; + + -avoid-version) + avoid_version=yes + continue + ;; + + -bindir) + prev=bindir + continue + ;; + + -dlopen) + prev=dlfiles + continue + ;; + + -dlpreopen) + prev=dlprefiles + continue + ;; + + -export-dynamic) + export_dynamic=yes + continue + ;; + + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + func_fatal_error "more than one -exported-symbols argument is not allowed" + fi + if test "X$arg" = "X-export-symbols"; then + prev=expsyms + else + prev=expsyms_regex + fi + continue + ;; + + -framework) + prev=framework + continue + ;; + + -inst-prefix-dir) + prev=inst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + compile_command+=" $arg" + finalize_command+=" $arg" + ;; + esac + continue + ;; + + -L*) + func_stripname "-L" '' "$arg" + if test -z "$func_stripname_result"; then + if test "$#" -gt 0; then + func_fatal_error "require no space between \`-L' and \`$1'" + else + func_fatal_error "need path for \`-L' option" + fi + fi + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=`cd "$dir" && pwd` + test -z "$absdir" && \ + func_fatal_error "cannot determine absolute directory name of \`$dir'" + dir="$absdir" + ;; + esac + case "$deplibs " in + *" -L$dir "* | *" $arg "*) + # Will only happen for absolute or sysroot arguments + ;; + *) + # Preserve sysroot, but never include relative directories + case $dir in + [\\/]* | [A-Za-z]:[\\/]* | =*) deplibs+=" $arg" ;; + *) deplibs+=" -L$dir" ;; + esac + lib_search_path+=" $dir" + ;; + esac + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; + ::) dllsearchpath=$dir;; + *) dllsearchpath+=":$dir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) dllsearchpath+=":$testbindir";; + esac + ;; + esac + continue + ;; + + -l*) + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) + # These systems don't actually have a C or math library (as such) + continue + ;; + *-*-os2*) + # These systems don't actually have a C library (as such) + test "X$arg" = "X-lc" && continue + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + deplibs+=" System.ltframework" + continue + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + test "X$arg" = "X-lc" && continue + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + test "X$arg" = "X-lc" && continue + ;; + esac + elif test "X$arg" = "X-lc_r"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac + fi + deplibs+=" $arg" + continue + ;; + + -module) + module=yes + continue + ;; + + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + # Darwin uses the -arch flag to determine output architecture. + -model|-arch|-isysroot|--sysroot) + compiler_flags+=" $arg" + compile_command+=" $arg" + finalize_command+=" $arg" + prev=xcompiler + continue + ;; + + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + compiler_flags+=" $arg" + compile_command+=" $arg" + finalize_command+=" $arg" + case "$new_inherited_linker_flags " in + *" $arg "*) ;; + * ) new_inherited_linker_flags+=" $arg" ;; + esac + continue + ;; + + -multi_module) + single_module="${wl}-multi_module" + continue + ;; + + -no-fast-install) + fast_install=no + continue + ;; + + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) + # The PATH hackery in wrapper scripts is required on Windows + # and Darwin in order for the loader to find any dlls it needs. + func_warning "\`-no-install' is ignored for $host" + func_warning "assuming \`-no-fast-install' instead" + fast_install=no + ;; + *) no_install=yes ;; + esac + continue + ;; + + -no-undefined) + allow_undefined=no + continue + ;; + + -objectlist) + prev=objectlist + continue + ;; + + -o) prev=output ;; + + -precious-files-regex) + prev=precious_regex + continue + ;; + + -release) + prev=release + continue + ;; + + -rpath) + prev=rpath + continue + ;; + + -R) + prev=xrpath + continue + ;; + + -R*) + func_stripname '-R' '' "$arg" + dir=$func_stripname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + =*) + func_stripname '=' '' "$dir" + dir=$lt_sysroot$func_stripname_result + ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + case "$xrpath " in + *" $dir "*) ;; + *) xrpath+=" $dir" ;; + esac + continue + ;; + + -shared) + # The effects of -shared are defined in a previous loop. + continue + ;; + + -shrext) + prev=shrext + continue + ;; + + -static | -static-libtool-libs) + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. + continue + ;; + + -thread-safe) + thread_safe=yes + continue + ;; + + -version-info) + prev=vinfo + continue + ;; + + -version-number) + prev=vinfo + vinfo_number=yes + continue + ;; + + -weak) + prev=weak + continue + ;; + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + arg+=" $func_quote_for_eval_result" + compiler_flags+=" $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + arg+=" $wl$func_quote_for_eval_result" + compiler_flags+=" $wl$func_quote_for_eval_result" + linker_flags+=" $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Xcompiler) + prev=xcompiler + continue + ;; + + -Xlinker) + prev=xlinker + continue + ;; + + -XCClinker) + prev=xcclinker + continue + ;; + + # -msg_* for osf cc + -msg_*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + + # Flags to be passed through unchanged, with rationale: + # -64, -mips[0-9] enable 64-bit mode for the SGI compiler + # -r[0-9][0-9]* specify processor for the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler + # +DA*, +DD* enable 64-bit mode for the HP compiler + # -q* compiler args for the IBM compiler + # -m*, -t[45]*, -txscale* architecture-specific flags for GCC + # -F/path path to uninstalled frameworks, gcc on darwin + # -p, -pg, --coverage, -fprofile-* profiling flags for GCC + # @file GCC response files + # -tp=* Portland pgcc target processor selection + # --sysroot=* for sysroot support + # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ + -O*|-flto*|-fwhopr*|-fuse-linker-plugin) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + compile_command+=" $arg" + finalize_command+=" $arg" + compiler_flags+=" $arg" + continue + ;; + + # Some other compiler flag. + -* | +*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + + *.$objext) + # A standard object. + objs+=" $arg" + ;; + + *.lo) + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles+=" $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles+=" $pic_object" + prev= + fi + + # A PIC object. + libobjs+=" $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + non_pic_objects+=" $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + non_pic_objects+=" $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + libobjs+=" $pic_object" + non_pic_objects+=" $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + ;; + + *.$libext) + # An archive. + deplibs+=" $arg" + old_deplibs+=" $arg" + continue + ;; + + *.la) + # A libtool-controlled library. + + func_resolve_sysroot "$arg" + if test "$prev" = dlfiles; then + # This library was specified with -dlopen. + dlfiles+=" $func_resolve_sysroot_result" + prev= + elif test "$prev" = dlprefiles; then + # The library was specified with -dlpreopen. + dlprefiles+=" $func_resolve_sysroot_result" + prev= + else + deplibs+=" $func_resolve_sysroot_result" + fi + continue + ;; + + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + esac # arg + + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + compile_command+=" $arg" + finalize_command+=" $arg" + fi + done # argument parsing loop + + test -n "$prev" && \ + func_fatal_help "the \`$prevarg' option requires an argument" + + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + compile_command+=" $arg" + finalize_command+=" $arg" + fi + + oldlibs= + # calculate the name of the file, without its directory + func_basename "$output" + outputname="$func_basename_result" + libobjs_save="$libobjs" + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` + else + shlib_search_path= + fi + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" + + func_dirname "$output" "/" "" + output_objdir="$func_dirname_result$objdir" + func_to_tool_file "$output_objdir/" + tool_output_objdir=$func_to_tool_file_result + # Create the object directory. + func_mkdir_p "$output_objdir" + + # Determine the type of output + case $output in + "") + func_fatal_help "you must specify an output file" + ;; + *.$libext) linkmode=oldlib ;; + *.lo | *.$objext) linkmode=obj ;; + *.la) linkmode=lib ;; + *) linkmode=prog ;; # Anything else should be a program. + esac + + specialdeplibs= + + libs= + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if $opt_preserve_dup_deps ; then + case "$libs " in + *" $deplib "*) specialdeplibs+=" $deplib" ;; + esac + fi + libs+=" $deplib" + done + + if test "$linkmode" = lib; then + libs="$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps= + if $opt_duplicate_compiler_generated_deps; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) specialdeplibs+=" $pre_post_deps" ;; + esac + pre_post_deps+=" $pre_post_dep" + done + fi + pre_post_deps= + fi + + deplibs= + newdependency_libs= + newlib_search_path= + need_relink=no # whether we're linking any uninstalled libtool libraries + notinst_deplibs= # not-installed libtool libraries + notinst_path= # paths that contain not-installed libtool libraries + + case $linkmode in + lib) + passes="conv dlpreopen link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; + *) + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" + ;; + esac + done + ;; + prog) + compile_deplibs= + finalize_deplibs= + alldeplibs=no + newdlfiles= + newdlprefiles= + passes="conv scan dlopen dlpreopen link" + ;; + *) passes="conv" + ;; + esac + + for pass in $passes; do + # The preopen pass in lib mode reverses $deplibs; put it back here + # so that -L comes before libs that need it for instance... + if test "$linkmode,$pass" = "lib,link"; then + ## FIXME: Find the place where the list is rebuilt in the wrong + ## order, and fix it there properly + tmp_deplibs= + for deplib in $deplibs; do + tmp_deplibs="$deplib $tmp_deplibs" + done + deplibs="$tmp_deplibs" + fi + + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan"; then + libs="$deplibs" + deplibs= + fi + if test "$linkmode" = prog; then + case $pass in + dlopen) libs="$dlfiles" ;; + dlpreopen) libs="$dlprefiles" ;; + link) + libs="$deplibs %DEPLIBS%" + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" + ;; + esac + fi + if test "$linkmode,$pass" = "lib,dlpreopen"; then + # Collect and forward deplibs of preopened libtool libs + for lib in $dlprefiles; do + # Ignore non-libtool-libs + dependency_libs= + func_resolve_sysroot "$lib" + case $lib in + *.la) func_source "$func_resolve_sysroot_result" ;; + esac + + # Collect preopened libtool deplibs, except any this library + # has declared as weak libs + for deplib in $dependency_libs; do + func_basename "$deplib" + deplib_base=$func_basename_result + case " $weak_libs " in + *" $deplib_base "*) ;; + *) deplibs+=" $deplib" ;; + esac + done + done + libs="$dlprefiles" + fi + if test "$pass" = dlopen; then + # Collect dlpreopened libraries + save_deplibs="$deplibs" + deplibs= + fi + + for deplib in $libs; do + lib= + found=no + case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + compiler_flags+=" $deplib" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags+=" $deplib" ;; + esac + fi + fi + continue + ;; + -l*) + if test "$linkmode" != lib && test "$linkmode" != prog; then + func_warning "\`-l' is ignored for archives/objects" + continue + fi + func_stripname '-l' '' "$deplib" + name=$func_stripname_result + if test "$linkmode" = lib; then + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" + else + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" + fi + for searchdir in $searchdirs; do + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib="$searchdir/lib${name}${search_ext}" + if test -f "$lib"; then + if test "$search_ext" = ".la"; then + found=yes + else + found=no + fi + break 2 + fi + done + done + if test "$found" != yes; then + # deplib doesn't seem to be a libtool library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + else # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, + # We need to do some special things here, and not later. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $deplib "*) + if func_lalib_p "$lib"; then + library_names= + old_library= + func_source "$lib" + for l in $old_library $library_names; do + ll="$l" + done + if test "X$ll" = "X$old_library" ; then # only static version available + found=no + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + lib=$ladir/$old_library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi + fi + ;; # -l + *.ltframework) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags+=" $deplib" ;; + esac + fi + fi + continue + ;; + -L*) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test "$pass" = conv && continue + newdependency_libs="$deplib $newdependency_libs" + func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + newlib_search_path+=" $func_resolve_sysroot_result" + ;; + prog) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + if test "$pass" = scan; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + newlib_search_path+=" $func_resolve_sysroot_result" + ;; + *) + func_warning "\`-L' is ignored for archives/objects" + ;; + esac # linkmode + continue + ;; # -L + -R*) + if test "$pass" = link; then + func_stripname '-R' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + dir=$func_resolve_sysroot_result + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) xrpath+=" $dir" ;; + esac + fi + deplibs="$deplib $deplibs" + continue + ;; + *.la) + func_resolve_sysroot "$deplib" + lib=$func_resolve_sysroot_result + ;; + *.$libext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + case $linkmode in + lib) + # Linking convenience modules into shared libraries is allowed, + # but linking other static libraries is non-portable. + case " $dlpreconveniencelibs " in + *" $deplib "*) ;; + *) + valid_a_lib=no + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=yes + fi + ;; + pass_all) + valid_a_lib=yes + ;; + esac + if test "$valid_a_lib" != yes; then + echo + $ECHO "*** Warning: Trying to link with static lib archive $deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because the file extensions .$libext of this argument makes me believe" + echo "*** that it is just a static archive that I should not use here." + else + echo + $ECHO "*** Warning: Linking the shared library $output against the" + $ECHO "*** static library $deplib is not portable!" + deplibs="$deplib $deplibs" + fi + ;; + esac + continue + ;; + prog) + if test "$pass" != link; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + elif test "$linkmode" = prog; then + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles+=" $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + newdlfiles+=" $deplib" + fi + fi + continue + ;; + %DEPLIBS%) + alldeplibs=yes + continue + ;; + esac # case $deplib + + if test "$found" = yes || test -f "$lib"; then : + else + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" + fi + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$lib" \ + || func_fatal_error "\`$lib' is not a valid libtool archive" + + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + + dlname= + dlopen= + dlpreopen= + libdir= + library_names= + old_library= + inherited_linker_flags= + # If the library was installed with an old release of libtool, + # it will not redefine variables installed, or shouldnotlink + installed=yes + shouldnotlink=no + avoidtemprpath= + + + # Read the .la file + func_source "$lib" + + # Convert "-framework foo" to "foo.ltframework" + if test -n "$inherited_linker_flags"; then + tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do + case " $new_inherited_linker_flags " in + *" $tmp_inherited_linker_flag "*) ;; + *) new_inherited_linker_flags+=" $tmp_inherited_linker_flag";; + esac + done + fi + dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan" || + { test "$linkmode" != prog && test "$linkmode" != lib; }; then + test -n "$dlopen" && dlfiles+=" $dlopen" + test -n "$dlpreopen" && dlprefiles+=" $dlpreopen" + fi + + if test "$pass" = conv; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + # It is a libtool convenience library, so add in its objects. + convenience+=" $ladir/$objdir/$old_library" + old_convenience+=" $ladir/$objdir/$old_library" + tmp_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if $opt_preserve_dup_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs+=" $deplib" ;; + esac + fi + tmp_libs+=" $deplib" + done + elif test "$linkmode" != prog && test "$linkmode" != lib; then + func_fatal_error "\`$lib' is not a convenience library" + fi + continue + fi # $pass = conv + + + # Get the name of the library we link against. + linklib= + if test -n "$old_library" && + { test "$prefer_static_libs" = yes || + test "$prefer_static_libs,$installed" = "built,no"; }; then + linklib=$old_library + else + for l in $old_library $library_names; do + linklib="$l" + done + fi + if test -z "$linklib"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + + # This library was specified with -dlopen. + if test "$pass" = dlopen; then + if test -z "$libdir"; then + func_fatal_error "cannot -dlopen a convenience library: \`$lib'" + fi + if test -z "$dlname" || + test "$dlopen_support" != yes || + test "$build_libtool_libs" = no; then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + dlprefiles+=" $lib $dependency_libs" + else + newdlfiles+=" $lib" + fi + continue + fi # $pass = dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; + *) + abs_ladir=`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + func_warning "cannot determine absolute directory name of \`$ladir'" + func_warning "passing it literally to the linker, although it might fail" + abs_ladir="$ladir" + fi + ;; + esac + func_basename "$lib" + laname="$func_basename_result" + + # Find the relevant object directory and library name. + if test "X$installed" = Xyes; then + if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + func_warning "library \`$lib' was moved." + dir="$ladir" + absdir="$abs_ladir" + libdir="$abs_ladir" + else + dir="$lt_sysroot$libdir" + absdir="$lt_sysroot$libdir" + fi + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes + else + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then + dir="$ladir" + absdir="$abs_ladir" + # Remove this search path later + notinst_path+=" $abs_ladir" + else + dir="$ladir/$objdir" + absdir="$abs_ladir/$objdir" + # Remove this search path later + notinst_path+=" $abs_ladir" + fi + fi # $installed = yes + func_stripname 'lib' '.la' "$laname" + name=$func_stripname_result + + # This library was specified with -dlpreopen. + if test "$pass" = dlpreopen; then + if test -z "$libdir" && test "$linkmode" = prog; then + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" + fi + case "$host" in + # special handling for platforms with PE-DLLs. + *cygwin* | *mingw* | *cegcc* ) + # Linker will automatically link against shared library if both + # static and shared are present. Therefore, ensure we extract + # symbols from the import library if a shared library is present + # (otherwise, the dlopen module name will be incorrect). We do + # this by putting the import library name into $newdlprefiles. + # We recover the dlopen module name by 'saving' the la file + # name in a special purpose variable, and (later) extracting the + # dlname from the la file. + if test -n "$dlname"; then + func_tr_sh "$dir/$linklib" + eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" + newdlprefiles+=" $dir/$linklib" + else + newdlprefiles+=" $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + dlpreconveniencelibs+=" $dir/$old_library" + fi + ;; + * ) + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + newdlprefiles+=" $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + dlpreconveniencelibs+=" $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + newdlprefiles+=" $dir/$dlname" + else + newdlprefiles+=" $dir/$linklib" + fi + ;; + esac + fi # $pass = dlpreopen + + if test -z "$libdir"; then + # Link the convenience library + if test "$linkmode" = lib; then + deplibs="$dir/$old_library $deplibs" + elif test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$dir/$old_library $compile_deplibs" + finalize_deplibs="$dir/$old_library $finalize_deplibs" + else + deplibs="$lib $deplibs" # used for prog,scan pass + fi + continue + fi + + + if test "$linkmode" = prog && test "$pass" != link; then + newlib_search_path+=" $ladir" + deplibs="$lib $deplibs" + + linkalldeplibs=no + if test "$link_all_deplibs" != no || test -z "$library_names" || + test "$build_libtool_libs" = no; then + linkalldeplibs=yes + fi + + tmp_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result" + newlib_search_path+=" $func_resolve_sysroot_result" + ;; + esac + # Need to link against all dependency_libs? + if test "$linkalldeplibs" = yes; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs="$deplib $newdependency_libs" + fi + if $opt_preserve_dup_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs+=" $deplib" ;; + esac + fi + tmp_libs+=" $deplib" + done # for deplib + continue + fi # $linkmode = prog... + + if test "$linkmode,$pass" = "prog,link"; then + if test -n "$library_names" && + { { test "$prefer_static_libs" = no || + test "$prefer_static_libs,$installed" = "built,yes"; } || + test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath:" in + *"$absdir:"*) ;; + *) temp_rpath+="$absdir:" ;; + esac + fi + + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath+=" $absdir" ;; + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath+=" $libdir" ;; + esac + ;; + esac + fi # $linkmode,$pass = prog,link... + + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + fi + + link_static=no # Whether the deplib will be linked statically + use_static_libs=$prefer_static_libs + if test "$use_static_libs" = built && test "$installed" = yes; then + use_static_libs=no + fi + if test -n "$library_names" && + { test "$use_static_libs" = no || test -z "$old_library"; }; then + case $host in + *cygwin* | *mingw* | *cegcc*) + # No point in relinking DLLs because paths are not encoded + notinst_deplibs+=" $lib" + need_relink=no + ;; + *) + if test "$installed" = no; then + notinst_deplibs+=" $lib" + need_relink=yes + fi + ;; + esac + # This is a shared library + + # Warn about portability, can't link against -module's on some + # systems (darwin). Don't bleat about dlopened modules though! + dlopenmodule="" + for dlpremoduletest in $dlprefiles; do + if test "X$dlpremoduletest" = "X$lib"; then + dlopenmodule="$dlpremoduletest" + break + fi + done + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then + echo + if test "$linkmode" = prog; then + $ECHO "*** Warning: Linking the executable $output against the loadable module" + else + $ECHO "*** Warning: Linking the shared library $output against the loadable module" + fi + $ECHO "*** $linklib is not portable!" + fi + if test "$linkmode" = lib && + test "$hardcode_into_libs" = yes; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath+=" $absdir" ;; + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath+=" $libdir" ;; + esac + ;; + esac + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + shift + realname="$1" + shift + libname=`eval "\\$ECHO \"$libname_spec\""` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname="$dlname" + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin* | mingw* | *cegcc*) + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + esac + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + + # Make a new name for the extract_expsyms_cmds to use + soroot="$soname" + func_basename "$soroot" + soname="$func_basename_result" + func_stripname 'lib' '.dll' "$soname" + newlib=libimp-$func_stripname_result.a + + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + func_verbose "extracting exported symbol list from \`$soname'" + func_execute_cmds "$extract_expsyms_cmds" 'exit $?' + fi + + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + func_verbose "generating import library for \`$soname'" + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' + fi + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib + fi # test -n "$old_archive_from_expsyms_cmds" + + if test "$linkmode" = prog || test "$opt_mode" != relink; then + add_shlibpath= + add_dir= + add= + lib_linked=yes + case $hardcode_action in + immediate | unsupported) + if test "$hardcode_direct" = no; then + add="$dir/$linklib" + case $host in + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; + *-*-sysv4*uw2*) add_dir="-L$dir" ;; + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ + *-*-unixware7*) add_dir="-L$dir" ;; + *-*-darwin* ) + # if the lib is a (non-dlopened) module then we can not + # link against it, someone is ignoring the earlier warnings + if /usr/bin/file -L $add 2> /dev/null | + $GREP ": [^:]* bundle" >/dev/null ; then + if test "X$dlopenmodule" != "X$lib"; then + $ECHO "*** Warning: lib $linklib is a module, not a shared library" + if test -z "$old_library" ; then + echo + echo "*** And there doesn't seem to be a static archive available" + echo "*** The link will probably fail, sorry" + else + add="$dir/$old_library" + fi + elif test -n "$old_library"; then + add="$dir/$old_library" + fi + fi + esac + elif test "$hardcode_minus_L" = no; then + case $host in + *-*-sunos*) add_shlibpath="$dir" ;; + esac + add_dir="-L$dir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = no; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + relink) + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$dir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir+=" -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + *) lib_linked=no ;; + esac + + if test "$lib_linked" != yes; then + func_fatal_configuration "unsupported hardcode properties" + fi + + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) compile_shlibpath+="$add_shlibpath:" ;; + esac + fi + if test "$linkmode" = prog; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + if test "$hardcode_direct" != yes && + test "$hardcode_minus_L" != yes && + test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath+="$libdir:" ;; + esac + fi + fi + fi + + if test "$linkmode" = prog || test "$opt_mode" = relink; then + add_shlibpath= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath+="$libdir:" ;; + esac + add="-l$name" + elif test "$hardcode_automatic" = yes; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib" ; then + add="$inst_prefix_dir$libdir/$linklib" + else + add="$libdir/$linklib" + fi + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir="-L$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir+=" -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + fi + + if test "$linkmode" = prog; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi + fi + elif test "$linkmode" = prog; then + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test "$hardcode_direct" != unsupported; then + test -n "$old_library" && linklib="$old_library" + compile_deplibs="$dir/$linklib $compile_deplibs" + finalize_deplibs="$dir/$linklib $finalize_deplibs" + else + compile_deplibs="-l$name -L$dir $compile_deplibs" + finalize_deplibs="-l$name -L$dir $finalize_deplibs" + fi + elif test "$build_libtool_libs" = yes; then + # Not a shared library + if test "$deplibs_check_method" != pass_all; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + echo + $ECHO "*** Warning: This system can not link to static lib archive $lib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have." + if test "$module" = yes; then + echo "*** But as you try to build a module library, libtool will still create " + echo "*** a static module, that should work as long as the dlopening application" + echo "*** is linked with the -dlopen flag to resolve symbols at runtime." + if test -z "$global_symbol_pipe"; then + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + else + deplibs="$dir/$old_library $deplibs" + link_static=yes + fi + fi # link shared/static library? + + if test "$linkmode" = lib; then + if test -n "$dependency_libs" && + { test "$hardcode_into_libs" != yes || + test "$build_old_libs" = yes || + test "$link_static" = yes; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do + case $libdir in + -R*) func_stripname '-R' '' "$libdir" + temp_xrpath=$func_stripname_result + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) xrpath+=" $temp_xrpath";; + esac;; + *) temp_deplibs+=" $libdir";; + esac + done + dependency_libs="$temp_deplibs" + fi + + newlib_search_path+=" $absdir" + # Link against this library + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" + # ... and its dependency_libs + tmp_libs= + for deplib in $dependency_libs; do + newdependency_libs="$deplib $newdependency_libs" + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + func_resolve_sysroot "$func_stripname_result";; + *) func_resolve_sysroot "$deplib" ;; + esac + if $opt_preserve_dup_deps ; then + case "$tmp_libs " in + *" $func_resolve_sysroot_result "*) + specialdeplibs+=" $func_resolve_sysroot_result" ;; + esac + fi + tmp_libs+=" $func_resolve_sysroot_result" + done + + if test "$link_all_deplibs" != no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + path= + case $deplib in + -L*) path="$deplib" ;; + *.la) + func_resolve_sysroot "$deplib" + deplib=$func_resolve_sysroot_result + func_dirname "$deplib" "" "." + dir=$func_dirname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + func_warning "cannot determine absolute directory name of \`$dir'" + absdir="$dir" + fi + ;; + esac + if $GREP "^installed=no" $deplib > /dev/null; then + case $host in + *-*-darwin*) + depdepl= + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` + if test -n "$deplibrary_names" ; then + for tmp in $deplibrary_names ; do + depdepl=$tmp + done + if test -f "$absdir/$objdir/$depdepl" ; then + depdepl="$absdir/$objdir/$depdepl" + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + if test -z "$darwin_install_name"; then + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + fi + compiler_flags+=" ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" + linker_flags+=" -dylib_file ${darwin_install_name}:${depdepl}" + path= + fi + fi + ;; + *) + path="-L$absdir/$objdir" + ;; + esac + else + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + test "$absdir" != "$libdir" && \ + func_warning "\`$deplib' seems to be moved" + + path="-L$absdir" + fi + ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs="$path $deplibs" ;; + esac + done + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs + if test "$pass" = link; then + if test "$linkmode" = "prog"; then + compile_deplibs="$new_inherited_linker_flags $compile_deplibs" + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" + else + compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + fi + fi + dependency_libs="$newdependency_libs" + if test "$pass" = dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi + if test "$pass" != dlopen; then + if test "$pass" != conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) lib_search_path+=" $dir" ;; + esac + done + newlib_search_path= + fi + + if test "$linkmode,$pass" != "prog,link"; then + vars="deplibs" + else + vars="compile_deplibs finalize_deplibs" + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=\"\$$var\" + new_libs= + for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs="$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: + case $deplib in + -L*) new_libs="$deplib $new_libs" ;; + -R*) ;; + *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. + case " $specialdeplibs " in + *" $deplib "*) new_libs="$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs= + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) tmp_libs+=" $deplib" ;; + esac + ;; + *) tmp_libs+=" $deplib" ;; + esac + done + eval $var=\"$tmp_libs\" + done # for var + fi + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs= + for i in $dependency_libs ; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i="" + ;; + esac + if test -n "$i" ; then + tmp_libs+=" $i" + fi + done + dependency_libs=$tmp_libs + done # for pass + if test "$linkmode" = prog; then + dlfiles="$newdlfiles" + fi + if test "$linkmode" = prog || test "$linkmode" = lib; then + dlprefiles="$newdlprefiles" + fi + + case $linkmode in + oldlib) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for archives" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for archives" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for archives" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for archives" + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for archives" + + test -n "$release" && \ + func_warning "\`-release' is ignored for archives" + + test -n "$export_symbols$export_symbols_regex" && \ + func_warning "\`-export-symbols' is ignored for archives" + + # Now set the variables for building old libraries. + build_libtool_libs=no + oldlibs="$output" + objs+="$old_deplibs" + ;; + + lib) + # Make sure we only generate libraries of the form `libNAME.la'. + case $outputname in + lib*) + func_stripname 'lib' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + ;; + *) + test "$module" = no && \ + func_fatal_help "libtool library \`$output' must begin with \`lib'" + + if test "$need_lib_prefix" != no; then + # Add the "lib" prefix for modules if required + func_stripname '' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + else + func_stripname '' '.la' "$outputname" + libname=$func_stripname_result + fi + ;; + esac + + if test -n "$objs"; then + if test "$deplibs_check_method" != pass_all; then + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" + else + echo + $ECHO "*** Warning: Linking the shared library $output against the non-libtool" + $ECHO "*** objects $objs is not portable!" + libobjs+=" $objs" + fi + fi + + test "$dlself" != no && \ + func_warning "\`-dlopen self' is ignored for libtool libraries" + + set dummy $rpath + shift + test "$#" -gt 1 && \ + func_warning "ignoring multiple \`-rpath's for a libtool library" + + install_libdir="$1" + + oldlibs= + if test -z "$rpath"; then + if test "$build_libtool_libs" = yes; then + # Building a libtool convenience library. + # Some compilers have problems with a `.al' extension so + # convenience libraries should have the same extension an + # archive normally would. + oldlibs="$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=convenience + build_old_libs=yes + fi + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for convenience libraries" + + test -n "$release" && \ + func_warning "\`-release' is ignored for convenience libraries" + else + + # Parse the version information argument. + save_ifs="$IFS"; IFS=':' + set dummy $vinfo 0 0 0 + shift + IFS="$save_ifs" + + test -n "$7" && \ + func_fatal_help "too many parameters to \`-version-info'" + + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major="$1" + number_minor="$2" + number_revision="$3" + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # which has an extra 1 added just for fun + # + case $version_type in + darwin|linux|osf|windows|none) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_revision" + ;; + freebsd-aout|freebsd-elf|qnx|sunos) + current="$number_major" + revision="$number_minor" + age="0" + ;; + irix|nonstopux) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_minor" + lt_irix_increment=no + ;; + *) + func_fatal_configuration "$modename: unknown library version type \`$version_type'" + ;; + esac + ;; + no) + current="$1" + revision="$2" + age="$3" + ;; + esac + + # Check that each of the things are valid numbers. + case $current in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "CURRENT \`$current' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $revision in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "REVISION \`$revision' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $age in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "AGE \`$age' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + if test "$age" -gt "$current"; then + func_error "AGE \`$age' is greater than the current interface number \`$current'" + func_fatal_error "\`$vinfo' is not valid version information" + fi + + # Calculate the version variables. + major= + versuffix= + verstring= + case $version_type in + none) ;; + + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + # Darwin ld doesn't like 0 for these options... + func_arith $current + 1 + minor_current=$func_arith_result + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + ;; + + freebsd-aout) + major=".$current" + versuffix=".$current.$revision"; + ;; + + freebsd-elf) + major=".$current" + versuffix=".$current" + ;; + + irix | nonstopux) + if test "X$lt_irix_increment" = "Xno"; then + func_arith $current - $age + else + func_arith $current - $age + 1 + fi + major=$func_arith_result + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring="$verstring_prefix$major.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$revision + while test "$loop" -ne 0; do + func_arith $revision - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring_prefix$major.$iface:$verstring" + done + + # Before this point, $major must not contain `.'. + major=.$major + versuffix="$major.$revision" + ;; + + linux) + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + ;; + + osf) + func_arith $current - $age + major=.$func_arith_result + versuffix=".$current.$age.$revision" + verstring="$current.$age.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$age + while test "$loop" -ne 0; do + func_arith $current - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring:${iface}.0" + done + + # Make executables depend on our current version. + verstring+=":${current}.0" + ;; + + qnx) + major=".$current" + versuffix=".$current" + ;; + + sunos) + major=".$current" + versuffix=".$current.$revision" + ;; + + windows) + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 filesystems. + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + + *) + func_fatal_configuration "unknown library version type \`$version_type'" + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major= + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring= + ;; + *) + verstring="0.0" + ;; + esac + if test "$need_version" = no; then + versuffix= + else + versuffix=".0.0" + fi + fi + + # Remove version info from name if versioning should be avoided + if test "$avoid_version" = yes && test "$need_version" = no; then + major= + versuffix= + verstring="" + fi + + # Check to see if the archive will have undefined symbols. + if test "$allow_undefined" = yes; then + if test "$allow_undefined_flag" = unsupported; then + func_warning "undefined symbols not allowed in $host shared libraries" + build_libtool_libs=no + build_old_libs=yes + fi + else + # Don't allow undefined symbols. + allow_undefined_flag="$no_undefined_flag" + fi + + fi + + func_generate_dlsyms "$libname" "$libname" "yes" + libobjs+=" $symfileobj" + test "X$libobjs" = "X " && libobjs= + + if test "$opt_mode" != relink; then + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist= + tempremovelist=`$ECHO "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext | *.gcno) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) + if test "X$precious_files_regex" != "X"; then + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + removelist+=" $p" + ;; + *) ;; + esac + done + test -n "$removelist" && \ + func_show_eval "${RM}r \$removelist" + fi + + # Now set the variables for building old libraries. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then + oldlibs+=" $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` + fi + + # Eliminate all temporary directories. + #for path in $notinst_path; do + # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` + # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` + # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` + #done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath= + for libdir in $xrpath; do + func_replace_sysroot "$libdir" + temp_xrpath+=" -R$func_replace_sysroot_result" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath+=" $libdir" ;; + esac + done + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpreopened + old_dlfiles="$dlfiles" + dlfiles= + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) dlfiles+=" $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles="$dlprefiles" + dlprefiles= + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) dlprefiles+=" $lib" ;; + esac + done + + if test "$build_libtool_libs" = yes; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + deplibs+=" System.ltframework" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test "$build_libtool_need_lc" = "yes"; then + deplibs+=" -lc" + fi + ;; + esac + fi + + # Transform deplibs into only deplibs that can be linked in shared. + name_save=$name + libname_save=$libname + release_save=$release + versuffix_save=$versuffix + major_save=$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release="" + versuffix="" + major="" + newdeplibs= + droppeddeps=no + case $deplibs_check_method in + pass_all) + # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behavior. + newdeplibs=$deplibs + ;; + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $opt_dry_run || $RM conftest.c + cat > conftest.c <<EOF + int main() { return 0; } +EOF + $opt_dry_run || $RM conftest + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then + ldd_output=`ldd conftest` + for i in $deplibs; do + case $i in + -l*) + func_stripname -l '' "$i" + name=$func_stripname_result + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $i "*) + newdeplibs+=" $i" + i="" + ;; + esac + fi + if test -n "$i" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` + set dummy $deplib_matches; shift + deplib_match=$1 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then + newdeplibs+=" $i" + else + droppeddeps=yes + echo + $ECHO "*** Warning: dynamic linker does not accept needed library $i." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which I believe you do not have" + echo "*** because a test_compile did reveal that the linker did not use it for" + echo "*** its dynamic dependency list that programs get resolved with at runtime." + fi + fi + ;; + *) + newdeplibs+=" $i" + ;; + esac + done + else + # Error occurred in the first compile. Let's try to salvage + # the situation: Compile a separate program for each library. + for i in $deplibs; do + case $i in + -l*) + func_stripname -l '' "$i" + name=$func_stripname_result + $opt_dry_run || $RM conftest + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then + ldd_output=`ldd conftest` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $i "*) + newdeplibs+=" $i" + i="" + ;; + esac + fi + if test -n "$i" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` + set dummy $deplib_matches; shift + deplib_match=$1 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then + newdeplibs+=" $i" + else + droppeddeps=yes + echo + $ECHO "*** Warning: dynamic linker does not accept needed library $i." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because a test_compile did reveal that the linker did not use this one" + echo "*** as a dynamic dependency that programs can get resolved with at runtime." + fi + fi + else + droppeddeps=yes + echo + $ECHO "*** Warning! Library $i is needed by this library but I was not able to" + echo "*** make it link in! You will probably need to install it or some" + echo "*** library that it depends on before this library will be fully" + echo "*** functional. Installing it before continuing would be even better." + fi + ;; + *) + newdeplibs+=" $i" + ;; + esac + done + fi + ;; + file_magic*) + set dummy $deplibs_check_method; shift + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + for a_deplib in $deplibs; do + case $a_deplib in + -l*) + func_stripname -l '' "$a_deplib" + name=$func_stripname_result + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs+=" $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + if test -n "$file_magic_glob"; then + libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob` + else + libnameglob=$libname + fi + test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + if test "$want_nocaseglob" = yes; then + shopt -s nocaseglob + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` + $nocaseglob + else + potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` + fi + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potent_lib" 2>/dev/null | + $GREP " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib="$potent_lib" + while test -h "$potlib" 2>/dev/null; do + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` + case $potliblink in + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; + *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; + esac + done + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | + $SED -e 10q | + $EGREP "$file_magic_regex" > /dev/null; then + newdeplibs+=" $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + echo + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for file magic test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a file magic. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs+=" $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + for a_deplib in $deplibs; do + case $a_deplib in + -l*) + func_stripname -l '' "$a_deplib" + name=$func_stripname_result + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs+=" $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib="$potent_lib" # see symlink-check above in file_magic test + if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ + $EGREP "$match_pattern_regex" > /dev/null; then + newdeplibs+=" $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + echo + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have" + echo "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a regex pattern. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs+=" $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + none | unknown | *) + newdeplibs="" + tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + for i in $predeps $postdeps ; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` + done + fi + case $tmp_deplibs in + *[!\ \ ]*) + echo + if test "X$deplibs_check_method" = "Xnone"; then + echo "*** Warning: inter-library dependencies are not supported in this platform." + else + echo "*** Warning: inter-library dependencies are not known to be supported." + fi + echo "*** All declared inter-library dependencies are being dropped." + droppeddeps=yes + ;; + esac + ;; + esac + versuffix=$versuffix_save + major=$major_save + release=$release_save + libname=$libname_save + name=$name_save + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library with the System framework + newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` + ;; + esac + + if test "$droppeddeps" = yes; then + if test "$module" = yes; then + echo + echo "*** Warning: libtool could not satisfy all declared inter-library" + $ECHO "*** dependencies of module $libname. Therefore, libtool will create" + echo "*** a static module, that should work as long as the dlopening" + echo "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + else + echo "*** The inter-library dependencies that have been dropped here will be" + echo "*** automatically added whenever a program is linked with this library" + echo "*** or is declared to -dlopen it." + + if test "$allow_undefined" = no; then + echo + echo "*** Since this library must not contain undefined symbols," + echo "*** because either the platform does not support them or" + echo "*** it was explicitly requested with -no-undefined," + echo "*** libtool will only create a static version of it." + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + fi + fi + # Done checking deplibs! + deplibs=$newdeplibs + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + case $host in + *-*-darwin*) + newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $deplibs " in + *" -L$path/$objdir "*) + new_libs+=" -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs+=" $deplib" ;; + esac + ;; + *) new_libs+=" $deplib" ;; + esac + done + deplibs="$new_libs" + + # All the library-specific variables (install_libdir is set above). + library_names= + old_library= + dlname= + + # Test again, we may have decided not to build it any more + if test "$build_libtool_libs" = yes; then + if test "$hardcode_into_libs" = yes; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= + rpath="$finalize_rpath" + test "$opt_mode" != relink && rpath="$compile_rpath$rpath" + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + func_replace_sysroot "$libdir" + libdir=$func_replace_sysroot_result + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs+="$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + dep_rpath+=" $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) func_apped perm_rpath " $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + if test -n "$hardcode_libdir_flag_spec_ld"; then + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" + else + eval dep_rpath=\"$hardcode_libdir_flag_spec\" + fi + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath+="$dir:" + done + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" + fi + + shlibpath="$finalize_shlibpath" + test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" + if test -n "$shlibpath"; then + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" + fi + + # Get the real and link names of the library. + eval shared_ext=\"$shrext_cmds\" + eval library_names=\"$library_names_spec\" + set dummy $library_names + shift + realname="$1" + shift + + if test -n "$soname_spec"; then + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + if test -z "$dlname"; then + dlname=$soname + fi + + lib="$output_objdir/$realname" + linknames= + for link + do + linknames+=" $link" + done + + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` + test "X$libobjs" = "X " && libobjs= + + delfiles= + if test -n "$export_symbols" && test -n "$include_expsyms"; then + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" + export_symbols="$output_objdir/$libname.uexp" + delfiles+=" $export_symbols" + fi + + orig_export_symbols= + case $host_os in + cygwin* | mingw* | cegcc*) + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then + # exporting using user supplied symfile + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then + # and it's NOT already a .def file. Must figure out + # which of the given symbols are data symbols and tag + # them as such. So, trigger use of export_symbols_cmds. + # export_symbols gets reassigned inside the "prepare + # the list of exported symbols" if statement, so the + # include_expsyms logic still works. + orig_export_symbols="$export_symbols" + export_symbols= + always_export_symbols=yes + fi + fi + ;; + esac + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + cmds=$export_symbols_cmds + save_ifs="$IFS"; IFS='~' + for cmd1 in $cmds; do + IFS="$save_ifs" + # Take the normal branch if the nm_file_list_spec branch + # doesn't work or if tool conversion is not needed. + case $nm_file_list_spec~$to_tool_file_cmd in + *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) + try_normal_branch=yes + eval cmd=\"$cmd1\" + func_len " $cmd" + len=$func_len_result + ;; + *) + try_normal_branch=no + ;; + esac + if test "$try_normal_branch" = yes \ + && { test "$len" -lt "$max_cmd_len" \ + || test "$max_cmd_len" -le -1; } + then + func_show_eval "$cmd" 'exit $?' + skipped_export=false + elif test -n "$nm_file_list_spec"; then + func_basename "$output" + output_la=$func_basename_result + save_libobjs=$libobjs + save_output=$output + output=${output_objdir}/${output_la}.nm + func_to_tool_file "$output" + libobjs=$nm_file_list_spec$func_to_tool_file_result + delfiles+=" $output" + func_verbose "creating $NM input file list: $output" + for obj in $save_libobjs; do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > "$output" + eval cmd=\"$cmd1\" + func_show_eval "$cmd" 'exit $?' + output=$save_output + libobjs=$save_libobjs + skipped_export=false + else + # The command line is too long to execute in one step. + func_verbose "using reloadable object file for export list..." + skipped_export=: + # Break out early, otherwise skipped_export may be + # set to false by a later but shorter cmd. + break + fi + done + IFS="$save_ifs" + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + fi + + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' + fi + + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + delfiles+=" $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + + tmp_deplibs= + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + tmp_deplibs+=" $test_deplib" + ;; + esac + done + deplibs="$tmp_deplibs" + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec" && + test "$compiler_needs_object" = yes && + test -z "$libobjs"; then + # extract the archives, so we have objects to list. + # TODO: could optimize this to just extract one archive. + whole_archive_flag_spec= + fi + if test -n "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + else + gentop="$output_objdir/${outputname}x" + generated+=" $gentop" + + func_extract_archives $gentop $convenience + libobjs+=" $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + fi + + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then + eval flag=\"$thread_safe_flag_spec\" + linker_flags+=" $flag" + fi + + # Make a backup of the uninstalled library when relinking + if test "$opt_mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? + fi + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=\"$module_expsym_cmds\" + cmds=$module_expsym_cmds + else + eval test_cmds=\"$module_cmds\" + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=\"$archive_expsym_cmds\" + cmds=$archive_expsym_cmds + else + eval test_cmds=\"$archive_cmds\" + cmds=$archive_cmds + fi + fi + + if test "X$skipped_export" != "X:" && + func_len " $test_cmds" && + len=$func_len_result && + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise + # or, if using GNU ld and skipped_export is not :, use a linker + # script. + + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + fi + save_output=$output + func_basename "$output" + output_la=$func_basename_result + + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds= + concat_cmds= + objlist= + last_robj= + k=1 + + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then + output=${output_objdir}/${output_la}.lnkscript + func_verbose "creating GNU ld script: $output" + echo 'INPUT (' > $output + for obj in $save_libobjs + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output + done + echo ')' >> $output + delfiles+=" $output" + func_to_tool_file "$output" + output=$func_to_tool_file_result + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then + output=${output_objdir}/${output_la}.lnk + func_verbose "creating linker input file list: $output" + : > $output + set x $save_libobjs + shift + firstobj= + if test "$compiler_needs_object" = yes; then + firstobj="$1 " + shift + fi + for obj + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" >> $output + done + delfiles+=" $output" + func_to_tool_file "$output" + output=$firstobj\"$file_list_spec$func_to_tool_file_result\" + else + if test -n "$save_libobjs"; then + func_verbose "creating reloadable object files..." + output=$output_objdir/$output_la-${k}.$objext + eval test_cmds=\"$reload_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + if test "X$objlist" = X || + test "$len" -lt "$max_cmd_len"; then + objlist+=" $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test "$k" -eq 1 ; then + # The first file doesn't have a previous command to add. + reload_objs=$objlist + eval concat_cmds=\"$reload_cmds\" + else + # All subsequent reloadable object files will link in + # the last one created. + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" + fi + last_robj=$output_objdir/$output_la-${k}.$objext + func_arith $k + 1 + k=$func_arith_result + output=$output_objdir/$output_la-${k}.$objext + objlist=" $obj" + func_len " $last_robj" + func_arith $len0 + $func_len_result + len=$func_arith_result + fi + done + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + reload_objs="$objlist $last_robj" + eval concat_cmds=\"\${concat_cmds}$reload_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" + fi + delfiles+=" $output" + + else + output= + fi + + if ${skipped_export-false}; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + libobjs=$output + # Append the command to create the export file. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" + fi + fi + + test -n "$save_libobjs" && + func_verbose "creating a temporary reloadable object file: $output" + + # Loop through the commands generated above and execute them. + save_ifs="$IFS"; IFS='~' + for cmd in $concat_cmds; do + IFS="$save_ifs" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$opt_mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + + if test -n "$export_symbols_regex" && ${skipped_export-false}; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + + if ${skipped_export-false}; then + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' + fi + + if test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + delfiles+=" $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + fi + + libobjs=$output + # Restore the value of output. + output=$save_output + + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=$module_expsym_cmds + else + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + cmds=$archive_expsym_cmds + else + cmds=$archive_cmds + fi + fi + fi + + if test -n "$delfiles"; then + # Append the command to remove temporary files to $cmds. + eval cmds=\"\$cmds~\$RM $delfiles\" + fi + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + generated+=" $gentop" + + func_extract_archives $gentop $dlprefiles + libobjs+=" $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$opt_mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + + # Restore the uninstalled library and exit + if test "$opt_mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? + + if test -n "$convenience"; then + if test -z "$whole_archive_flag_spec"; then + func_show_eval '${RM}r "$gentop"' + fi + fi + + exit $EXIT_SUCCESS + fi + + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" != "$linkname"; then + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' + fi + done + + # If -module or -export-dynamic was specified, set the dlname. + if test "$module" = yes || test "$export_dynamic" = yes; then + # On all known operating systems, these are identical. + dlname="$soname" + fi + fi + ;; + + obj) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for objects" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for objects" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for objects" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for objects" + + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for objects" + + test -n "$release" && \ + func_warning "\`-release' is ignored for objects" + + case $output in + *.lo) + test -n "$objs$old_deplibs" && \ + func_fatal_error "cannot build library object \`$output' from non-libtool objects" + + libobj=$output + func_lo2o "$libobj" + obj=$func_lo2o_result + ;; + *) + libobj= + obj="$output" + ;; + esac + + # Delete the old objects. + $opt_dry_run || $RM $obj $libobj + + # Objects from convenience libraries. This assumes + # single-version convenience libraries. Whenever we create + # different ones for PIC/non-PIC, this we'll have to duplicate + # the extraction. + reload_conv_objs= + gentop= + # reload_cmds runs $LD directly, so let us get rid of + # -Wl from whole_archive_flag_spec and hope we can get by with + # turning comma into space.. + wl= + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" + reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` + else + gentop="$output_objdir/${obj}x" + generated+=" $gentop" + + func_extract_archives $gentop $convenience + reload_conv_objs="$reload_objs $func_extract_archives_result" + fi + fi + + # If we're not building shared, we need to use non_pic_objs + test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" + + # Create the old-style object. + reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test + + output="$obj" + func_execute_cmds "$reload_cmds" 'exit $?' + + # Exit if we aren't doing a library object file. + if test -z "$libobj"; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + fi + + if test "$build_libtool_libs" != yes; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + # $show "echo timestamp > $libobj" + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS + fi + + if test -n "$pic_flag" || test "$pic_mode" != default; then + # Only do commands if we really have different PIC objects. + reload_objs="$libobjs $reload_conv_objs" + output="$libobj" + func_execute_cmds "$reload_cmds" 'exit $?' + fi + + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + ;; + + prog) + case $host in + *cygwin*) func_stripname '' '.exe' "$output" + output=$func_stripname_result.exe;; + esac + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for programs" + + test -n "$release" && \ + func_warning "\`-release' is ignored for programs" + + test "$preload" = yes \ + && test "$dlopen_support" = unknown \ + && test "$dlopen_self" = unknown \ + && test "$dlopen_self_static" = unknown && \ + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` + ;; + esac + + case $host in + *-*-darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + # But is supposedly fixed on 10.4 or later (yay!). + if test "$tagname" = CXX ; then + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in + 10.[0123]) + compile_command+=" ${wl}-bind_at_load" + finalize_command+=" ${wl}-bind_at_load" + ;; + esac + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $compile_deplibs " in + *" -L$path/$objdir "*) + new_libs+=" -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $compile_deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs+=" $deplib" ;; + esac + ;; + *) new_libs+=" $deplib" ;; + esac + done + compile_deplibs="$new_libs" + + + compile_command+=" $compile_deplibs" + finalize_command+=" $finalize_deplibs" + + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + # This is the magic to use -rpath. + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath+=" $libdir" ;; + esac + done + fi + + # Now hardcode the library paths + rpath= + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs+="$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath+=" $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath+=" $libdir" ;; + esac + fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; + ::) dllsearchpath=$libdir;; + *) dllsearchpath+=":$libdir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) dllsearchpath+=":$testbindir";; + esac + ;; + esac + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + compile_rpath="$rpath" + + rpath= + hardcode_libdirs= + for libdir in $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs+="$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath+=" $flag" + fi + elif test -n "$runpath_var"; then + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) finalize_perm_rpath+=" $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + finalize_rpath="$rpath" + + if test -n "$libobjs" && test "$build_old_libs" = yes; then + # Transform all the library objects into standard objects. + compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` + finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` + fi + + func_generate_dlsyms "$outputname" "@PROGRAM@" "no" + + # template prelinking step + if test -n "$prelink_cmds"; then + func_execute_cmds "$prelink_cmds" 'exit $?' + fi + + wrappers_required=yes + case $host in + *cegcc* | *mingw32ce*) + # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. + wrappers_required=no + ;; + *cygwin* | *mingw* ) + if test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + *) + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + esac + if test "$wrappers_required" = no; then + # Replace the output file specification. + compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` + link_command="$compile_command$compile_rpath" + + # We have no uninstalled library dependencies, so finalize right now. + exit_status=0 + func_show_eval "$link_command" 'exit_status=$?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + # Delete the generated files. + if test -f "$output_objdir/${outputname}S.${objext}"; then + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' + fi + + exit $exit_status + fi + + if test -n "$compile_shlibpath$finalize_shlibpath"; then + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" + fi + + compile_var= + finalize_var= + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath+="$dir:" + done + compile_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $finalize_perm_rpath; do + rpath+="$dir:" + done + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + fi + + if test "$no_install" = yes; then + # We don't need to create a wrapper script. + link_command="$compile_var$compile_command$compile_rpath" + # Replace the output file specification. + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` + # Delete the old output file. + $opt_dry_run || $RM $output + # Link the executable and exit + func_show_eval "$link_command" 'exit $?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + exit $EXIT_SUCCESS + fi + + if test "$hardcode_action" = relink; then + # Fast installation is not supported + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + + func_warning "this platform does not like uninstalled shared libraries" + func_warning "\`$output' will be relinked during installation" + else + if test "$fast_install" != no; then + link_command="$finalize_var$compile_command$finalize_rpath" + if test "$fast_install" = yes; then + relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` + else + # fast_install is set to needless + relink_command= + fi + else + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + fi + fi + + # Replace the output file specification. + link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + + # Delete the old output files. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname + + func_show_eval "$link_command" 'exit $?' + + if test -n "$postlink_cmds"; then + func_to_tool_file "$output_objdir/$outputname" + postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` + func_execute_cmds "$postlink_cmds" 'exit $?' + fi + + # Now create the wrapper script. + func_verbose "creating $output" + + # Quote the relink command for shipping. + if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + relink_command="(cd `pwd`; $relink_command)" + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` + fi + + # Only actually do things if not in dry run mode. + $opt_dry_run || { + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) func_stripname '' '.exe' "$output" + output=$func_stripname_result ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) + exeext=.exe + func_stripname '' '.exe' "$outputname" + outputname=$func_stripname_result ;; + *) exeext= ;; + esac + case $host in + *cygwin* | *mingw* ) + func_dirname_and_basename "$output" "" "." + output_name=$func_basename_result + output_path=$func_dirname_result + cwrappersource="$output_path/$objdir/lt-$output_name.c" + cwrapper="$output_path/$output_name.exe" + $RM $cwrappersource $cwrapper + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + func_emit_cwrapperexe_src > $cwrappersource + + # The wrapper executable is built using the $host compiler, + # because it contains $host paths and files. If cross- + # compiling, it, like the target executable, must be + # executed on the $host or under an emulation environment. + $opt_dry_run || { + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource + $STRIP $cwrapper + } + + # Now, create the wrapper script for func_source use: + func_ltwrapper_scriptname $cwrapper + $RM $func_ltwrapper_scriptname_result + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 + $opt_dry_run || { + # note: this script will not be executed, so do not chmod. + if test "x$build" = "x$host" ; then + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result + else + func_emit_wrapper no > $func_ltwrapper_scriptname_result + fi + } + ;; + * ) + $RM $output + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 + + func_emit_wrapper no > $output + chmod +x $output + ;; + esac + } + exit $EXIT_SUCCESS + ;; + esac + + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do + + if test "$build_libtool_libs" = convenience; then + oldobjs="$libobjs_save $symfileobj" + addlibs="$convenience" + build_libtool_libs=no + else + if test "$build_libtool_libs" = module; then + oldobjs="$libobjs_save" + build_libtool_libs=no + else + oldobjs="$old_deplibs $non_pic_objects" + if test "$preload" = yes && test -f "$symfileobj"; then + oldobjs+=" $symfileobj" + fi + fi + addlibs="$old_convenience" + fi + + if test -n "$addlibs"; then + gentop="$output_objdir/${outputname}x" + generated+=" $gentop" + + func_extract_archives $gentop $addlibs + oldobjs+=" $func_extract_archives_result" + fi + + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then + cmds=$old_archive_from_new_cmds + else + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + generated+=" $gentop" + + func_extract_archives $gentop $dlprefiles + oldobjs+=" $func_extract_archives_result" + fi + + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + func_basename "$obj" + $ECHO "$func_basename_result" + done | sort | sort -uc >/dev/null 2>&1); then + : + else + echo "copying selected object files to avoid basename conflicts..." + gentop="$output_objdir/${outputname}x" + generated+=" $gentop" + func_mkdir_p "$gentop" + save_oldobjs=$oldobjs + oldobjs= + counter=1 + for obj in $save_oldobjs + do + func_basename "$obj" + objbase="$func_basename_result" + case " $oldobjs " in + " ") oldobjs=$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=lt$counter-$objbase + func_arith $counter + 1 + counter=$func_arith_result + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" + oldobjs+=" $gentop/$newobj" + ;; + *) oldobjs+=" $obj" ;; + esac + done + fi + eval cmds=\"$old_archive_cmds\" + + func_len " $cmds" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=$old_archive_cmds + elif test -n "$archiver_list_spec"; then + func_verbose "using command file archive linking..." + for obj in $oldobjs + do + func_to_tool_file "$obj" + $ECHO "$func_to_tool_file_result" + done > $output_objdir/$libname.libcmd + func_to_tool_file "$output_objdir/$libname.libcmd" + oldobjs=" $archiver_list_spec$func_to_tool_file_result" + cmds=$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + func_verbose "using piecewise archive linking..." + save_RANLIB=$RANLIB + RANLIB=: + objlist= + concat_cmds= + save_oldobjs=$oldobjs + oldobjs= + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=$obj + done + eval test_cmds=\"$old_archive_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + for obj in $save_oldobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + objlist+=" $obj" + if test "$len" -lt "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=$objlist + if test "$obj" = "$last_oldobj" ; then + RANLIB=$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" + objlist= + len=$len0 + fi + done + RANLIB=$save_RANLIB + oldobjs=$objlist + if test "X$oldobjs" = "X" ; then + eval cmds=\"\$concat_cmds\" + else + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + fi + fi + fi + func_execute_cmds "$cmds" 'exit $?' + done + + test -n "$generated" && \ + func_show_eval "${RM}r$generated" + + # Now create the libtool archive. + case $output in + *.la) + old_library= + test "$build_old_libs" = yes && old_library="$libname.$libext" + func_verbose "creating $output" + + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + # Quote the link command for shipping. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` + if test "$hardcode_automatic" = yes ; then + relink_command= + fi + + # Only create the output if not a dry run. + $opt_dry_run || { + for installed in no yes; do + if test "$installed" = yes; then + if test -z "$install_libdir"; then + break + fi + output="$output_objdir/$outputname"i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs= + for deplib in $dependency_libs; do + case $deplib in + *.la) + func_basename "$deplib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + newdependency_libs+=" ${lt_sysroot:+=}$libdir/$name" + ;; + -L*) + func_stripname -L '' "$deplib" + func_replace_sysroot "$func_stripname_result" + newdependency_libs+=" -L$func_replace_sysroot_result" + ;; + -R*) + func_stripname -R '' "$deplib" + func_replace_sysroot "$func_stripname_result" + newdependency_libs+=" -R$func_replace_sysroot_result" + ;; + *) newdependency_libs+=" $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" + newdlfiles= + + for lib in $dlfiles; do + case $lib in + *.la) + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlfiles+=" ${lt_sysroot:+=}$libdir/$name" + ;; + *) newdlfiles+=" $lib" ;; + esac + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + *.la) + # Only pass preopened files to the pseudo-archive (for + # eventual linking with the app. that links it) if we + # didn't already link the preopened objects directly into + # the library: + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlprefiles+=" ${lt_sysroot:+=}$libdir/$name" + ;; + esac + done + dlprefiles="$newdlprefiles" + else + newdlfiles= + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlfiles+=" $abs" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlprefiles+=" $abs" + done + dlprefiles="$newdlprefiles" + fi + $RM $output + # place dlname in correct position for cygwin + # In fact, it would be nice if we could use this code for all target + # systems that can't hard-code library paths into their executables + # and that have no shared library path variable independent of PATH, + # but it turns out we can't easily determine that from inspecting + # libtool variables, so we have to hard-code the OSs to which it + # applies here; at the moment, that means platforms that use the PE + # object format with DLL files. See the long comment at the top of + # tests/bindir.at for full details. + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) + # If a -bindir argument was supplied, place the dll there. + if test "x$bindir" != x ; + then + func_relative_path "$install_libdir" "$bindir" + tdlname=$func_relative_path_result$dlname + else + # Otherwise fall back on heuristic. + tdlname=../bin/$dlname + fi + ;; + esac + $ECHO > $output "\ +# $outputname - a libtool library file +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='$tdlname' + +# Names of this library. +library_names='$library_names' + +# The name of the static archive. +old_library='$old_library' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='$new_inherited_linker_flags' + +# Libraries that this one depends upon. +dependency_libs='$dependency_libs' + +# Names of additional weak libraries provided by this library +weak_library_names='$weak_libs' + +# Version information for $libname. +current=$current +age=$age +revision=$revision + +# Is this an already installed library? +installed=$installed + +# Should we warn about portability when linking against -modules? +shouldnotlink=$module + +# Files to dlopen/dlpreopen +dlopen='$dlfiles' +dlpreopen='$dlprefiles' + +# Directory that this library needs to be installed in: +libdir='$install_libdir'" + if test "$installed" = no && test "$need_relink" = yes; then + $ECHO >> $output "\ +relink_command=\"$relink_command\"" + fi + done + } + + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' + ;; + esac + exit $EXIT_SUCCESS +} + +{ test "$opt_mode" = link || test "$opt_mode" = relink; } && + func_mode_link ${1+"$@"} + + +# func_mode_uninstall arg... +func_mode_uninstall () +{ + $opt_debug + RM="$nonopt" + files= + rmforce= + exit_status=0 + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + for arg + do + case $arg in + -f) RM+=" $arg"; rmforce=yes ;; + -*) RM+=" $arg" ;; + *) files+=" $arg" ;; + esac + done + + test -z "$RM" && \ + func_fatal_help "you must specify an RM program" + + rmdirs= + + for file in $files; do + func_dirname "$file" "" "." + dir="$func_dirname_result" + if test "X$dir" = X.; then + odir="$objdir" + else + odir="$dir/$objdir" + fi + func_basename "$file" + name="$func_basename_result" + test "$opt_mode" = uninstall && odir="$dir" + + # Remember odir for removal later, being careful to avoid duplicates + if test "$opt_mode" = clean; then + case " $rmdirs " in + *" $odir "*) ;; + *) rmdirs+=" $odir" ;; + esac + fi + + # Don't error if the file doesn't exist and rm -f was used. + if { test -L "$file"; } >/dev/null 2>&1 || + { test -h "$file"; } >/dev/null 2>&1 || + test -f "$file"; then + : + elif test -d "$file"; then + exit_status=1 + continue + elif test "$rmforce" = yes; then + continue + fi + + rmfiles="$file" + + case $name in + *.la) + # Possibly a libtool archive, so verify it. + if func_lalib_p "$file"; then + func_source $dir/$name + + # Delete the libtool libraries and symlinks. + for n in $library_names; do + rmfiles+=" $odir/$n" + done + test -n "$old_library" && rmfiles+=" $odir/$old_library" + + case "$opt_mode" in + clean) + case " $library_names " in + *" $dlname "*) ;; + *) test -n "$dlname" && rmfiles+=" $odir/$dlname" ;; + esac + test -n "$libdir" && rmfiles+=" $odir/$name $odir/${name}i" + ;; + uninstall) + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' + fi + + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' + fi + # FIXME: should reinstall the best remaining shared library. + ;; + esac + fi + ;; + + *.lo) + # Possibly a libtool object, so verify it. + if func_lalib_p "$file"; then + + # Read the .lo file + func_source $dir/$name + + # Add PIC object to the list of files to remove. + if test -n "$pic_object" && + test "$pic_object" != none; then + rmfiles+=" $dir/$pic_object" + fi + + # Add non-PIC object to the list of files to remove. + if test -n "$non_pic_object" && + test "$non_pic_object" != none; then + rmfiles+=" $dir/$non_pic_object" + fi + fi + ;; + + *) + if test "$opt_mode" = clean ; then + noexename=$name + case $file in + *.exe) + func_stripname '' '.exe' "$file" + file=$func_stripname_result + func_stripname '' '.exe' "$name" + noexename=$func_stripname_result + # $file with .exe has already been added to rmfiles, + # add $file without .exe + rmfiles+=" $file" + ;; + esac + # Do a test to see if this is a libtool program. + if func_ltwrapper_p "$file"; then + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + relink_command= + func_source $func_ltwrapper_scriptname_result + rmfiles+=" $func_ltwrapper_scriptname_result" + else + relink_command= + func_source $dir/$noexename + fi + + # note $name still contains .exe if it was in $file originally + # as does the version of $file that was added into $rmfiles + rmfiles+=" $odir/$name $odir/${name}S.${objext}" + if test "$fast_install" = yes && test -n "$relink_command"; then + rmfiles+=" $odir/lt-$name" + fi + if test "X$noexename" != "X$name" ; then + rmfiles+=" $odir/lt-${noexename}.c" + fi + fi + fi + ;; + esac + func_show_eval "$RM $rmfiles" 'exit_status=1' + done + + # Try to remove the ${objdir}s in the directories where we deleted files + for dir in $rmdirs; do + if test -d "$dir"; then + func_show_eval "rmdir $dir >/dev/null 2>&1" + fi + done + + exit $exit_status +} + +{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && + func_mode_uninstall ${1+"$@"} + +test -z "$opt_mode" && { + help="$generic_help" + func_fatal_help "you must specify a MODE" +} + +test -z "$exec_cmd" && \ + func_fatal_help "invalid operation mode \`$opt_mode'" + +if test -n "$exec_cmd"; then + eval exec "$exec_cmd" + exit $EXIT_FAILURE +fi + +exit $exit_status + + +# The TAGs below are defined such that we never get into a situation +# in which we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared +build_libtool_libs=no +build_old_libs=yes +# ### END LIBTOOL TAG CONFIG: disable-shared + +# ### BEGIN LIBTOOL TAG CONFIG: disable-static +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` +# ### END LIBTOOL TAG CONFIG: disable-static + +# Local Variables: +# mode:shell-script +# sh-indentation:2 +# End: +# vi:sw=2 + + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD="/usr/bin/ld -m elf_x86_64" + +# How to create reloadable object files. +reload_flag=" -r" +reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" + +# Commands used to build an old-style archive. +old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib" + +# A language specific compiler. +CC="g++" + +# Is the compiler the GNU compiler? +with_gcc=yes + +# Compiler flag to turn off builtin functions. +no_builtin_flag=" -fno-builtin" + +# Additional compiler flags for building library objects. +pic_flag=" -fPIC -DPIC" + +# How to pass a linker flag through the compiler. +wl="-Wl," + +# Compiler flag to prevent dynamic linking. +link_static_flag="-static" + +# Does compiler simultaneously support -c and -o options? +compiler_c_o="yes" + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=no + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=no + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec="\${wl}--export-dynamic" + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive" + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object="no" + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds="" + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds="" + +# Commands used to build a shared archive. +archive_cmds="\$CC \$pic_flag -shared \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib" +archive_expsym_cmds="\$CC \$pic_flag -shared \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib" + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds="" +module_expsym_cmds="" + +# Whether we are building with GNU ld or not. +with_gnu_ld="yes" + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag="" + +# Flag that enforces no undefined symbols. +no_undefined_flag="" + +# Flag to hardcode $libdir into a binary during linking. +# This must work even if $libdir does not exist +hardcode_libdir_flag_spec="\${wl}-rpath \${wl}\$libdir" + +# If ld is used when linking, flag to hardcode $libdir into a binary +# during linking. This must work even if $libdir does not exist. +hardcode_libdir_flag_spec_ld="" + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator="" + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=no + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting ${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=no + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=no + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=unsupported + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=no + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=no + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=no + +# Set to "yes" if exported symbols are required. +always_export_symbols=no + +# The commands to list exported symbols. +export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*" + +# Symbols that must always be exported. +include_expsyms="" + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds="" + +# Commands necessary for finishing linking programs. +postlink_cmds="" + +# Specify filename containing input files. +file_list_spec="" + +# How to hardcode a shared library path into an executable. +hardcode_action=immediate + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs="/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../.. /usr/lib/x86_64-linux-gnu" + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects="" +postdep_objects="" +predeps="" +postdeps="-lstdc++ -lm -lgcc_s -lc -lgcc_s" + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path="" + +# ### END LIBTOOL TAG CONFIG: CXX + +# ### BEGIN LIBTOOL TAG CONFIG: F77 + +# The linker used to build libraries. +LD="/usr/bin/ld -m elf_x86_64" + +# How to create reloadable object files. +reload_flag=" -r" +reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" + +# Commands used to build an old-style archive. +old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib" + +# A language specific compiler. +CC="gfortran" + +# Is the compiler the GNU compiler? +with_gcc=yes + +# Compiler flag to turn off builtin functions. +no_builtin_flag="" + +# Additional compiler flags for building library objects. +pic_flag=" -fPIC" + +# How to pass a linker flag through the compiler. +wl="-Wl," + +# Compiler flag to prevent dynamic linking. +link_static_flag="-static" + +# Does compiler simultaneously support -c and -o options? +compiler_c_o="yes" + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=no + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=no + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec="\${wl}--export-dynamic" + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive" + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object="no" + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds="" + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds="" + +# Commands used to build a shared archive. +archive_cmds="\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib" +archive_expsym_cmds="echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~ + cat \$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~ + echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~ + \$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-version-script \${wl}\$output_objdir/\$libname.ver -o \$lib" + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds="" +module_expsym_cmds="" + +# Whether we are building with GNU ld or not. +with_gnu_ld="yes" + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag="" + +# Flag that enforces no undefined symbols. +no_undefined_flag="" + +# Flag to hardcode $libdir into a binary during linking. +# This must work even if $libdir does not exist +hardcode_libdir_flag_spec="\${wl}-rpath \${wl}\$libdir" + +# If ld is used when linking, flag to hardcode $libdir into a binary +# during linking. This must work even if $libdir does not exist. +hardcode_libdir_flag_spec_ld="" + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator="" + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=no + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting ${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=no + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=no + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=unsupported + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=no + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=no + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=no + +# Set to "yes" if exported symbols are required. +always_export_symbols=no + +# The commands to list exported symbols. +export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*" + +# Symbols that must always be exported. +include_expsyms="" + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds="" + +# Commands necessary for finishing linking programs. +postlink_cmds="" + +# Specify filename containing input files. +file_list_spec="" + +# How to hardcode a shared library path into an executable. +hardcode_action=immediate + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs="" + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects="" +postdep_objects="" +predeps="" +postdeps="" + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path="" + +# ### END LIBTOOL TAG CONFIG: F77 + +# ### BEGIN LIBTOOL TAG CONFIG: FC + +# The linker used to build libraries. +LD="/usr/bin/ld -m elf_x86_64" + +# How to create reloadable object files. +reload_flag=" -r" +reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" + +# Commands used to build an old-style archive. +old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib" + +# A language specific compiler. +CC="gfortran" + +# Is the compiler the GNU compiler? +with_gcc=yes + +# Compiler flag to turn off builtin functions. +no_builtin_flag="" + +# Additional compiler flags for building library objects. +pic_flag=" -fPIC" + +# How to pass a linker flag through the compiler. +wl="-Wl," + +# Compiler flag to prevent dynamic linking. +link_static_flag="-static" + +# Does compiler simultaneously support -c and -o options? +compiler_c_o="yes" + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=no + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=no + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec="\${wl}--export-dynamic" + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive" + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object="no" + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds="" + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds="" + +# Commands used to build a shared archive. +archive_cmds="\$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib" +archive_expsym_cmds="echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~ + cat \$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~ + echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~ + \$CC -shared \$pic_flag \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-version-script \${wl}\$output_objdir/\$libname.ver -o \$lib" + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds="" +module_expsym_cmds="" + +# Whether we are building with GNU ld or not. +with_gnu_ld="yes" + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag="" + +# Flag that enforces no undefined symbols. +no_undefined_flag="" + +# Flag to hardcode $libdir into a binary during linking. +# This must work even if $libdir does not exist +hardcode_libdir_flag_spec="\${wl}-rpath \${wl}\$libdir" + +# If ld is used when linking, flag to hardcode $libdir into a binary +# during linking. This must work even if $libdir does not exist. +hardcode_libdir_flag_spec_ld="" + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator="" + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=no + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting ${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=no + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=no + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=unsupported + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=no + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=no + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=no + +# Set to "yes" if exported symbols are required. +always_export_symbols=no + +# The commands to list exported symbols. +export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*" + +# Symbols that must always be exported. +include_expsyms="" + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds="" + +# Commands necessary for finishing linking programs. +postlink_cmds="" + +# Specify filename containing input files. +file_list_spec="" + +# How to hardcode a shared library path into an executable. +hardcode_action=immediate + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs="/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../.. /usr/lib/x86_64-linux-gnu" + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects="" +postdep_objects="" +predeps="" +postdeps="-lgfortran -lm -lgcc_s -lquadmath -lm -lgcc_s -lc -lgcc_s" + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path="" + +# ### END LIBTOOL TAG CONFIG: FC + +# ### BEGIN LIBTOOL TAG CONFIG: GCJ + +# The linker used to build libraries. +LD="/usr/bin/ld -m elf_x86_64" + +# How to create reloadable object files. +reload_flag=" -r" +reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" + +# Commands used to build an old-style archive. +old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib" + +# A language specific compiler. +CC="" + +# Is the compiler the GNU compiler? +with_gcc= + +# Compiler flag to turn off builtin functions. +no_builtin_flag="" + +# Additional compiler flags for building library objects. +pic_flag="" + +# How to pass a linker flag through the compiler. +wl="" + +# Compiler flag to prevent dynamic linking. +link_static_flag="" + +# Does compiler simultaneously support -c and -o options? +compiler_c_o="" + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=no + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes= + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec="" + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec="" + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object="" + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds="" + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds="" + +# Commands used to build a shared archive. +archive_cmds="" +archive_expsym_cmds="" + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds="" +module_expsym_cmds="" + +# Whether we are building with GNU ld or not. +with_gnu_ld="" + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag="" + +# Flag that enforces no undefined symbols. +no_undefined_flag="" + +# Flag to hardcode $libdir into a binary during linking. +# This must work even if $libdir does not exist +hardcode_libdir_flag_spec="" + +# If ld is used when linking, flag to hardcode $libdir into a binary +# during linking. This must work even if $libdir does not exist. +hardcode_libdir_flag_spec_ld="" + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator="" + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct= + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting ${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute= + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L= + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var= + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic= + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath= + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs= + +# Set to "yes" if exported symbols are required. +always_export_symbols= + +# The commands to list exported symbols. +export_symbols_cmds="" + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms="" + +# Symbols that must always be exported. +include_expsyms="" + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds="" + +# Commands necessary for finishing linking programs. +postlink_cmds="" + +# Specify filename containing input files. +file_list_spec="" + +# How to hardcode a shared library path into an executable. +hardcode_action= + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs="" + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects="" +postdep_objects="" +predeps="" +postdeps="" + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path="" + +# ### END LIBTOOL TAG CONFIG: GCJ + +# ### BEGIN LIBTOOL TAG CONFIG: RC + +# The linker used to build libraries. +LD="" + +# How to create reloadable object files. +reload_flag="" +reload_cmds="" + +# Commands used to build an old-style archive. +old_archive_cmds="" + +# A language specific compiler. +CC="" + +# Is the compiler the GNU compiler? +with_gcc= + +# Compiler flag to turn off builtin functions. +no_builtin_flag="" + +# Additional compiler flags for building library objects. +pic_flag="" + +# How to pass a linker flag through the compiler. +wl="" + +# Compiler flag to prevent dynamic linking. +link_static_flag="" + +# Does compiler simultaneously support -c and -o options? +compiler_c_o="yes" + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc= + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes= + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec="" + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec="" + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object="" + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds="" + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds="" + +# Commands used to build a shared archive. +archive_cmds="" +archive_expsym_cmds="" + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds="" +module_expsym_cmds="" + +# Whether we are building with GNU ld or not. +with_gnu_ld="" + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag="" + +# Flag that enforces no undefined symbols. +no_undefined_flag="" + +# Flag to hardcode $libdir into a binary during linking. +# This must work even if $libdir does not exist +hardcode_libdir_flag_spec="" + +# If ld is used when linking, flag to hardcode $libdir into a binary +# during linking. This must work even if $libdir does not exist. +hardcode_libdir_flag_spec_ld="" + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator="" + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct= + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting ${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute= + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L= + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var= + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic= + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath= + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs= + +# Set to "yes" if exported symbols are required. +always_export_symbols= + +# The commands to list exported symbols. +export_symbols_cmds="" + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms="" + +# Symbols that must always be exported. +include_expsyms="" + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds="" + +# Commands necessary for finishing linking programs. +postlink_cmds="" + +# Specify filename containing input files. +file_list_spec="" + +# How to hardcode a shared library path into an executable. +hardcode_action= + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs="" + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects="" +postdep_objects="" +predeps="" +postdeps="" + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path="" + +# ### END LIBTOOL TAG CONFIG: RC +# ### BEGIN LIBTOOL TAG CONFIG: BINCC + +# A C compiler. +LTCC="cc" + + +# A language specific compiler. +CC="cc" + +# ### END LIBTOOL TAG CONFIG: BINCC + +# ### BEGIN LIBTOOL TAG CONFIG: BINCXX + +# The linker used to build libraries. +LD="/usr/bin/ld -m elf_x86_64" + +# How to create reloadable object files. +reload_flag=" -r" +reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" + +# Commands used to build an old-style archive. +old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib" + +# A language specific compiler. +CC="c++" + +# Is the compiler the GNU compiler? +with_gcc=yes + +# Compiler flag to turn off builtin functions. +no_builtin_flag=" -fno-builtin" + +# Additional compiler flags for building library objects. +pic_flag=" -fPIC -DPIC" + +# How to pass a linker flag through the compiler. +wl="-Wl," + +# Compiler flag to prevent dynamic linking. +link_static_flag="-static" + +# Does compiler simultaneously support -c and -o options? +compiler_c_o="yes" + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=no + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=no + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec="\${wl}--export-dynamic" + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive" + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object="no" + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds="" + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds="" + +# Commands used to build a shared archive. +archive_cmds="\$CC \$pic_flag -shared \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib" +archive_expsym_cmds="\$CC \$pic_flag -shared \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib" + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds="" +module_expsym_cmds="" + +# Whether we are building with GNU ld or not. +with_gnu_ld="yes" + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag="" + +# Flag that enforces no undefined symbols. +no_undefined_flag="" + +# Flag to hardcode $libdir into a binary during linking. +# This must work even if $libdir does not exist +hardcode_libdir_flag_spec="\${wl}-rpath \${wl}\$libdir" + +# If ld is used when linking, flag to hardcode $libdir into a binary +# during linking. This must work even if $libdir does not exist. +hardcode_libdir_flag_spec_ld="" + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator="" + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=no + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting ${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=no + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=no + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=unsupported + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=no + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=no + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=no + +# Set to "yes" if exported symbols are required. +always_export_symbols=no + +# The commands to list exported symbols. +export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*" + +# Symbols that must always be exported. +include_expsyms="" + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds="" + +# Commands necessary for finishing linking programs. +postlink_cmds="" + +# Specify filename containing input files. +file_list_spec="" + +# How to hardcode a shared library path into an executable. +hardcode_action=immediate + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs="/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../.. /usr/lib/x86_64-linux-gnu" + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects="" +postdep_objects="" +predeps="" +postdeps="-lstdc++ -lm -lgcc_s -lc -lgcc_s" + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path="" + +# ### END LIBTOOL TAG CONFIG: BINCXX + diff --git a/ltmain.sh b/ltmain.sh new file mode 100755 index 0000000..7ed280b --- /dev/null +++ b/ltmain.sh @@ -0,0 +1,8413 @@ +# Generated from ltmain.m4sh. + +# ltmain.sh (GNU libtool) 2.2.6b +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, +# or obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +# Usage: $progname [OPTION]... [MODE-ARG]... +# +# Provide generalized library-building support services. +# +# --config show all configuration variables +# --debug enable verbose shell tracing +# -n, --dry-run display commands without modifying any files +# --features display basic configuration information and exit +# --mode=MODE use operation mode MODE +# --preserve-dup-deps don't remove duplicate dependency libraries +# --quiet, --silent don't print informational messages +# --tag=TAG use configuration variables from tag TAG +# -v, --verbose print informational messages (default) +# --version print version information +# -h, --help print short or long help message +# +# MODE must be one of the following: +# +# clean remove files from the build directory +# compile compile a source file into a libtool object +# execute automatically set library path, then run a program +# finish complete the installation of libtool libraries +# install install libraries or executables +# link create a library or an executable +# uninstall remove libraries from an installed directory +# +# MODE-ARGS vary depending on the MODE. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE. +# +# When reporting a bug, please describe a test case to reproduce it and +# include the following information: +# +# host-triplet: $host +# shell: $SHELL +# compiler: $LTCC +# compiler flags: $LTCFLAGS +# linker: $LD (gnu? $with_gnu_ld) +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1 +# automake: $automake_version +# autoconf: $autoconf_version +# +# Report bugs to <bug-libtool@gnu.org>. + +PROGRAM=ltmain.sh +PACKAGE=libtool +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1" +TIMESTAMP="" +package_revision=1.3017 + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# NLS nuisances: We save the old values to restore during execute mode. +# Only set LANG and LC_ALL to C if already set. +# These must not be set unconditionally because not all systems understand +# e.g. LANG=C (notably SCO). +lt_user_locale= +lt_safe_locale= +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES +do + eval "if test \"\${$lt_var+set}\" = set; then + save_$lt_var=\$$lt_var + $lt_var=C + export $lt_var + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" + fi" +done + +$lt_unset CDPATH + + + + + +: ${CP="cp -f"} +: ${ECHO="echo"} +: ${EGREP="/bin/grep -E"} +: ${FGREP="/bin/grep -F"} +: ${GREP="/bin/grep"} +: ${LN_S="ln -s"} +: ${MAKE="make"} +: ${MKDIR="mkdir"} +: ${MV="mv -f"} +: ${RM="rm -f"} +: ${SED="/bin/sed"} +: ${SHELL="${CONFIG_SHELL-/bin/sh}"} +: ${Xsed="$SED -e 1s/^X//"} + +# Global variables: +EXIT_SUCCESS=0 +EXIT_FAILURE=1 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. + +exit_status=$EXIT_SUCCESS + +# Make sure IFS has a sensible default +lt_nl=' +' +IFS=" $lt_nl" + +dirname="s,/[^/]*$,," +basename="s,^.*/,," + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` +} + +# Generated shell functions inserted here. + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" + +# The name of this program: +# In the unlikely event $progname began with a '-', it would play havoc with +# func_echo (imagine progname=-n), so we prepend ./ in that case: +func_dirname_and_basename "$progpath" +progname=$func_basename_result +case $progname in + -*) progname=./$progname ;; +esac + +# Make sure we have an absolute path for reexecution: +case $progpath in + [\\/]*|[A-Za-z]:\\*) ;; + *[\\/]*) + progdir=$func_dirname_result + progdir=`cd "$progdir" && pwd` + progpath="$progdir/$progname" + ;; + *) + save_IFS="$IFS" + IFS=: + for progdir in $PATH; do + IFS="$save_IFS" + test -x "$progdir/$progname" && break + done + IFS="$save_IFS" + test -n "$progdir" || progdir=`pwd` + progpath="$progdir/$progname" + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed="${SED}"' -e 1s/^X//' +sed_quote_subst='s/\([`"$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Re-`\' parameter expansions in output of double_quote_subst that were +# `\'-ed in input to the same. If an odd number of `\' preceded a '$' +# in input to double_quote_subst, that '$' was protected from expansion. +# Since each input `\' is now two `\'s, look for any number of runs of +# four `\'s followed by two `\'s and then a '$'. `\' that '$'. +bs='\\' +bs2='\\\\' +bs4='\\\\\\\\' +dollar='\$' +sed_double_backslash="\ + s/$bs4/&\\ +/g + s/^$bs2$dollar/$bs&/ + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g + s/\n//g" + +# Standard options: +opt_dry_run=false +opt_help=false +opt_quiet=false +opt_verbose=false +opt_warning=: + +# func_echo arg... +# Echo program name prefixed message, along with the current mode +# name if it has been set yet. +func_echo () +{ + $ECHO "$progname${mode+: }$mode: $*" +} + +# func_verbose arg... +# Echo program name prefixed message in verbose mode only. +func_verbose () +{ + $opt_verbose && func_echo ${1+"$@"} + + # A bug in bash halts the script if the last line of a function + # fails when set -e is in force, so we need another command to + # work around that: + : +} + +# func_error arg... +# Echo program name prefixed message to standard error. +func_error () +{ + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 +} + +# func_warning arg... +# Echo program name prefixed warning message to standard error. +func_warning () +{ + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 + + # bash bug again: + : +} + +# func_fatal_error arg... +# Echo program name prefixed message to standard error, and exit. +func_fatal_error () +{ + func_error ${1+"$@"} + exit $EXIT_FAILURE +} + +# func_fatal_help arg... +# Echo program name prefixed message to standard error, followed by +# a help hint, and exit. +func_fatal_help () +{ + func_error ${1+"$@"} + func_fatal_error "$help" +} +help="Try \`$progname --help' for more information." ## default + + +# func_grep expression filename +# Check whether EXPRESSION matches any line of FILENAME, without output. +func_grep () +{ + $GREP "$1" "$2" >/dev/null 2>&1 +} + + +# func_mkdir_p directory-path +# Make sure the entire path to DIRECTORY-PATH is available. +func_mkdir_p () +{ + my_directory_path="$1" + my_dir_list= + + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then + + # Protect directory names starting with `-' + case $my_directory_path in + -*) my_directory_path="./$my_directory_path" ;; + esac + + # While some portion of DIR does not yet exist... + while test ! -d "$my_directory_path"; do + # ...make a list in topmost first order. Use a colon delimited + # list incase some portion of path contains whitespace. + my_dir_list="$my_directory_path:$my_dir_list" + + # If the last portion added has no slash in it, the list is done + case $my_directory_path in */*) ;; *) break ;; esac + + # ...otherwise throw away the child directory and loop + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` + done + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` + + save_mkdir_p_IFS="$IFS"; IFS=':' + for my_dir in $my_dir_list; do + IFS="$save_mkdir_p_IFS" + # mkdir can fail with a `File exist' error if two processes + # try to create one of the directories concurrently. Don't + # stop in that case! + $MKDIR "$my_dir" 2>/dev/null || : + done + IFS="$save_mkdir_p_IFS" + + # Bail out if we (or some other process) failed to create a directory. + test -d "$my_directory_path" || \ + func_fatal_error "Failed to create \`$1'" + fi +} + + +# func_mktempdir [string] +# Make a temporary directory that won't clash with other running +# libtool processes, and avoids race conditions if possible. If +# given, STRING is the basename for that directory. +func_mktempdir () +{ + my_template="${TMPDIR-/tmp}/${1-$progname}" + + if test "$opt_dry_run" = ":"; then + # Return a directory name, but don't create it in dry-run mode + my_tmpdir="${my_template}-$$" + else + + # If mktemp works, use that first and foremost + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` + + if test ! -d "$my_tmpdir"; then + # Failing that, at least try and use $RANDOM to avoid a race + my_tmpdir="${my_template}-${RANDOM-0}$$" + + save_mktempdir_umask=`umask` + umask 0077 + $MKDIR "$my_tmpdir" + umask $save_mktempdir_umask + fi + + # If we're not in dry-run mode, bomb out on failure + test -d "$my_tmpdir" || \ + func_fatal_error "cannot create temporary directory \`$my_tmpdir'" + fi + + $ECHO "X$my_tmpdir" | $Xsed +} + + +# func_quote_for_eval arg +# Aesthetically quote ARG to be evaled later. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT +# is double-quoted, suitable for a subsequent eval, whereas +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters +# which are still active within double quotes backslashified. +func_quote_for_eval () +{ + case $1 in + *[\\\`\"\$]*) + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; + *) + func_quote_for_eval_unquoted_result="$1" ;; + esac + + case $func_quote_for_eval_unquoted_result in + # Double-quote args containing shell metacharacters to delay + # word splitting, command substitution and and variable + # expansion for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" + ;; + *) + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" + esac +} + + +# func_quote_for_expand arg +# Aesthetically quote ARG to be evaled later; same as above, +# but do not quote variable references. +func_quote_for_expand () +{ + case $1 in + *[\\\`\"]*) + my_arg=`$ECHO "X$1" | $Xsed \ + -e "$double_quote_subst" -e "$sed_double_backslash"` ;; + *) + my_arg="$1" ;; + esac + + case $my_arg in + # Double-quote args containing shell metacharacters to delay + # word splitting and command substitution for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + my_arg="\"$my_arg\"" + ;; + esac + + func_quote_for_expand_result="$my_arg" +} + + +# func_show_eval cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. +func_show_eval () +{ + my_cmd="$1" + my_fail_exp="${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$my_cmd" + my_status=$? + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + + +# func_show_eval_locale cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. Use the saved locale for evaluation. +func_show_eval_locale () +{ + my_cmd="$1" + my_fail_exp="${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$lt_user_locale + $my_cmd" + my_status=$? + eval "$lt_safe_locale" + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + + + + + +# func_version +# Echo version message to standard output and exit. +func_version () +{ + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { + s/^# // + s/^# *$// + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ + p + }' < "$progpath" + exit $? +} + +# func_usage +# Echo short help message to standard output and exit. +func_usage () +{ + $SED -n '/^# Usage:/,/# -h/ { + s/^# // + s/^# *$// + s/\$progname/'$progname'/ + p + }' < "$progpath" + $ECHO + $ECHO "run \`$progname --help | more' for full usage" + exit $? +} + +# func_help +# Echo long help message to standard output and exit. +func_help () +{ + $SED -n '/^# Usage:/,/# Report bugs to/ { + s/^# // + s/^# *$// + s*\$progname*'$progname'* + s*\$host*'"$host"'* + s*\$SHELL*'"$SHELL"'* + s*\$LTCC*'"$LTCC"'* + s*\$LTCFLAGS*'"$LTCFLAGS"'* + s*\$LD*'"$LD"'* + s/\$with_gnu_ld/'"$with_gnu_ld"'/ + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ + p + }' < "$progpath" + exit $? +} + +# func_missing_arg argname +# Echo program name prefixed message to standard error and set global +# exit_cmd. +func_missing_arg () +{ + func_error "missing argument for $1" + exit_cmd=exit +} + +exit_cmd=: + + + + + +# Check that we have a working $ECHO. +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then + # Yippee, $ECHO works! + : +else + # Restart under the correct shell, and then maybe $ECHO will work. + exec $SHELL "$progpath" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat <<EOF +$* +EOF + exit $EXIT_SUCCESS +fi + +magic="%%%MAGIC variable%%%" +magic_exe="%%%MAGIC EXE variable%%%" + +# Global variables. +# $mode is unset +nonopt= +execute_dlfiles= +preserve_args= +lo2o="s/\\.lo\$/.${objext}/" +o2lo="s/\\.${objext}\$/.lo/" +extracted_archives= +extracted_serial=0 + +opt_dry_run=false +opt_duplicate_deps=false +opt_silent=false +opt_debug=: + +# If this variable is set in any of the actions, the command in it +# will be execed at the end. This prevents here-documents from being +# left over by shells. +exec_cmd= + +# func_fatal_configuration arg... +# Echo program name prefixed message to standard error, followed by +# a configuration failure hint, and exit. +func_fatal_configuration () +{ + func_error ${1+"$@"} + func_error "See the $PACKAGE documentation for more information." + func_fatal_error "Fatal configuration error." +} + + +# func_config +# Display the configuration for all the tags in this script. +func_config () +{ + re_begincf='^# ### BEGIN LIBTOOL' + re_endcf='^# ### END LIBTOOL' + + # Default configuration. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" + + # Now print the configurations for the tags. + for tagname in $taglist; do + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" + done + + exit $? +} + +# func_features +# Display the features supported by this script. +func_features () +{ + $ECHO "host: $host" + if test "$build_libtool_libs" = yes; then + $ECHO "enable shared libraries" + else + $ECHO "disable shared libraries" + fi + if test "$build_old_libs" = yes; then + $ECHO "enable static libraries" + else + $ECHO "disable static libraries" + fi + + exit $? +} + +# func_enable_tag tagname +# Verify that TAGNAME is valid, and either flag an error and exit, or +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist +# variable here. +func_enable_tag () +{ + # Global variable: + tagname="$1" + + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" + sed_extractcf="/$re_begincf/,/$re_endcf/p" + + # Validate tagname. + case $tagname in + *[!-_A-Za-z0-9,/]*) + func_fatal_error "invalid tag name: $tagname" + ;; + esac + + # Don't test for the "default" C tag, as we know it's + # there but not specially marked. + case $tagname in + CC) ;; + *) + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then + taglist="$taglist $tagname" + + # Evaluate the configuration. Be careful to quote the path + # and the sed script, to avoid splitting on whitespace, but + # also don't use non-portable quotes within backquotes within + # quotes we have to do it in 2 steps: + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` + eval "$extractedcf" + else + func_error "ignoring unknown tag $tagname" + fi + ;; + esac +} + +# Parse options once, thoroughly. This comes as soon as possible in +# the script to make things like `libtool --version' happen quickly. +{ + + # Shorthand for --mode=foo, only valid as the first argument + case $1 in + clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift + ;; + compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift + ;; + execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift + ;; + finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift + ;; + install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; + link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift + ;; + esac + + # Parse non-mode specific arguments: + while test "$#" -gt 0; do + opt="$1" + shift + + case $opt in + --config) func_config ;; + + --debug) preserve_args="$preserve_args $opt" + func_echo "enabling shell trace mode" + opt_debug='set -x' + $opt_debug + ;; + + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break + execute_dlfiles="$execute_dlfiles $1" + shift + ;; + + --dry-run | -n) opt_dry_run=: ;; + --features) func_features ;; + --finish) mode="finish" ;; + + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break + case $1 in + # Valid mode arguments: + clean) ;; + compile) ;; + execute) ;; + finish) ;; + install) ;; + link) ;; + relink) ;; + uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument for $opt" + exit_cmd=exit + break + ;; + esac + + mode="$1" + shift + ;; + + --preserve-dup-deps) + opt_duplicate_deps=: ;; + + --quiet|--silent) preserve_args="$preserve_args $opt" + opt_silent=: + ;; + + --verbose| -v) preserve_args="$preserve_args $opt" + opt_silent=false + ;; + + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break + preserve_args="$preserve_args $opt $1" + func_enable_tag "$1" # tagname is set here + shift + ;; + + # Separate optargs to long options: + -dlopen=*|--mode=*|--tag=*) + func_opt_split "$opt" + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} + shift + ;; + + -\?|-h) func_usage ;; + --help) opt_help=: ;; + --version) func_version ;; + + -*) func_fatal_help "unrecognized option \`$opt'" ;; + + *) nonopt="$opt" + break + ;; + esac + done + + + case $host in + *cygwin* | *mingw* | *pw32* | *cegcc*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; + *) + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps + ;; + esac + + # Having warned about all mis-specified options, bail out if + # anything was wrong. + $exit_cmd $EXIT_FAILURE +} + +# func_check_version_match +# Ensure that we are using m4 macros, and libtool script from the same +# release of libtool. +func_check_version_match () +{ + if test "$package_revision" != "$macro_revision"; then + if test "$VERSION" != "$macro_version"; then + if test -z "$macro_version"; then + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from an older release. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + fi + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, +$progname: but the definition of this LT_INIT comes from revision $macro_revision. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision +$progname: of $PACKAGE $VERSION and run autoconf again. +_LT_EOF + fi + + exit $EXIT_MISMATCH + fi +} + + +## ----------- ## +## Main. ## +## ----------- ## + +$opt_help || { + # Sanity checks first: + func_check_version_match + + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then + func_fatal_configuration "not configured to build any kind of library" + fi + + test -z "$mode" && func_fatal_error "error: you must specify a MODE." + + + # Darwin sucks + eval std_shrext=\"$shrext_cmds\" + + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$execute_dlfiles" && test "$mode" != execute; then + func_error "unrecognized option \`-dlopen'" + $ECHO "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help="$help" + help="Try \`$progname --help --mode=$mode' for more information." +} + + +# func_lalib_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_lalib_p () +{ + test -f "$1" && + $SED -e 4q "$1" 2>/dev/null \ + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 +} + +# func_lalib_unsafe_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function implements the same check as func_lalib_p without +# resorting to external programs. To this end, it redirects stdin and +# closes it afterwards, without saving the original file descriptor. +# As a safety measure, use it only where a negative result would be +# fatal anyway. Works if `file' does not exist. +func_lalib_unsafe_p () +{ + lalib_p=no + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then + for lalib_p_l in 1 2 3 4 + do + read lalib_p_line + case "$lalib_p_line" in + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; + esac + done + exec 0<&5 5<&- + fi + test "$lalib_p" = yes +} + +# func_ltwrapper_script_p file +# True iff FILE is a libtool wrapper script +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_script_p () +{ + func_lalib_p "$1" +} + +# func_ltwrapper_executable_p file +# True iff FILE is a libtool wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_executable_p () +{ + func_ltwrapper_exec_suffix= + case $1 in + *.exe) ;; + *) func_ltwrapper_exec_suffix=.exe ;; + esac + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 +} + +# func_ltwrapper_scriptname file +# Assumes file is an ltwrapper_executable +# uses $file to determine the appropriate filename for a +# temporary ltwrapper_script. +func_ltwrapper_scriptname () +{ + func_ltwrapper_scriptname_result="" + if func_ltwrapper_executable_p "$1"; then + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" + fi +} + +# func_ltwrapper_p file +# True iff FILE is a libtool wrapper script or wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_p () +{ + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" +} + + +# func_execute_cmds commands fail_cmd +# Execute tilde-delimited COMMANDS. +# If FAIL_CMD is given, eval that upon failure. +# FAIL_CMD may read-access the current command in variable CMD! +func_execute_cmds () +{ + $opt_debug + save_ifs=$IFS; IFS='~' + for cmd in $1; do + IFS=$save_ifs + eval cmd=\"$cmd\" + func_show_eval "$cmd" "${2-:}" + done + IFS=$save_ifs +} + + +# func_source file +# Source FILE, adding directory component if necessary. +# Note that it is not necessary on cygwin/mingw to append a dot to +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe +# behavior happens only for exec(3), not for open(2)! Also, sourcing +# `FILE.' does not work on cygwin managed mounts. +func_source () +{ + $opt_debug + case $1 in + */* | *\\*) . "$1" ;; + *) . "./$1" ;; + esac +} + + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + $opt_debug + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + func_quote_for_eval "$arg" + CC_quoted="$CC_quoted $func_quote_for_eval_result" + done + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + func_quote_for_eval "$arg" + CC_quoted="$CC_quoted $func_quote_for_eval_result" + done + case "$@ " in + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + func_echo "unable to infer tagged configuration" + func_fatal_error "specify a tag with \`--tag'" +# else +# func_verbose "using $tagname tagged configuration" + fi + ;; + esac + fi +} + + + +# func_write_libtool_object output_name pic_name nonpic_name +# Create a libtool object file (analogous to a ".la" file), +# but don't create it if we're doing a dry run. +func_write_libtool_object () +{ + write_libobj=${1} + if test "$build_libtool_libs" = yes; then + write_lobj=\'${2}\' + else + write_lobj=none + fi + + if test "$build_old_libs" = yes; then + write_oldobj=\'${3}\' + else + write_oldobj=none + fi + + $opt_dry_run || { + cat >${write_libobj}T <<EOF +# $write_libobj - a libtool object file +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object=$write_lobj + +# Name of the non-PIC object +non_pic_object=$write_oldobj + +EOF + $MV "${write_libobj}T" "${write_libobj}" + } +} + +# func_mode_compile arg... +func_mode_compile () +{ + $opt_debug + # Get the compilation command and the source file. + base_compile= + srcfile="$nonopt" # always keep a non-empty value in "srcfile" + suppress_opt=yes + suppress_output= + arg_mode=normal + libobj= + later= + pie_flag= + + for arg + do + case $arg_mode in + arg ) + # do not "continue". Instead, add this to base_compile + lastarg="$arg" + arg_mode=normal + ;; + + target ) + libobj="$arg" + arg_mode=normal + continue + ;; + + normal ) + # Accept any command-line options. + case $arg in + -o) + test -n "$libobj" && \ + func_fatal_error "you cannot specify \`-o' more than once" + arg_mode=target + continue + ;; + + -pie | -fpie | -fPIE) + pie_flag="$pie_flag $arg" + continue + ;; + + -shared | -static | -prefer-pic | -prefer-non-pic) + later="$later $arg" + continue + ;; + + -no-suppress) + suppress_opt=no + continue + ;; + + -Xcompiler) + arg_mode=arg # the next one goes into the "base_compile" arg list + continue # The current "srcfile" will either be retained or + ;; # replaced later. I would guess that would be a bug. + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + lastarg= + save_ifs="$IFS"; IFS=',' + for arg in $args; do + IFS="$save_ifs" + func_quote_for_eval "$arg" + lastarg="$lastarg $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$lastarg" + lastarg=$func_stripname_result + + # Add the arguments to base_compile. + base_compile="$base_compile $lastarg" + continue + ;; + + *) + # Accept the current argument as the source file. + # The previous "srcfile" becomes the current argument. + # + lastarg="$srcfile" + srcfile="$arg" + ;; + esac # case $arg + ;; + esac # case $arg_mode + + # Aesthetically quote the previous argument. + func_quote_for_eval "$lastarg" + base_compile="$base_compile $func_quote_for_eval_result" + done # for arg + + case $arg_mode in + arg) + func_fatal_error "you must specify an argument for -Xcompile" + ;; + target) + func_fatal_error "you must specify a target with \`-o'" + ;; + *) + # Get the name of the library object. + test -z "$libobj" && { + func_basename "$srcfile" + libobj="$func_basename_result" + } + ;; + esac + + # Recognize several different file suffixes. + # If the user specifies -o file.o, it is replaced with file.lo + case $libobj in + *.[cCFSifmso] | \ + *.ada | *.adb | *.ads | *.asm | \ + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ + *.[fF][09]? | *.for | *.java | *.obj | *.sx) + func_xform "$libobj" + libobj=$func_xform_result + ;; + esac + + case $libobj in + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; + *) + func_fatal_error "cannot determine name of library object from \`$libobj'" + ;; + esac + + func_infer_tag $base_compile + + for arg in $later; do + case $arg in + -shared) + test "$build_libtool_libs" != yes && \ + func_fatal_configuration "can not build a shared library" + build_old_libs=no + continue + ;; + + -static) + build_libtool_libs=no + build_old_libs=yes + continue + ;; + + -prefer-pic) + pic_mode=yes + continue + ;; + + -prefer-non-pic) + pic_mode=no + continue + ;; + esac + done + + func_quote_for_eval "$libobj" + test "X$libobj" != "X$func_quote_for_eval_result" \ + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ + && func_warning "libobj name \`$libobj' may not contain shell special characters." + func_dirname_and_basename "$obj" "/" "" + objname="$func_basename_result" + xdir="$func_dirname_result" + lobj=${xdir}$objdir/$objname + + test -z "$base_compile" && \ + func_fatal_help "you must specify a compilation command" + + # Delete any leftover library objects. + if test "$build_old_libs" = yes; then + removelist="$obj $lobj $libobj ${libobj}T" + else + removelist="$lobj $libobj ${libobj}T" + fi + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in + cygwin* | mingw* | pw32* | os2* | cegcc*) + pic_mode=default + ;; + esac + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test "$compiler_c_o" = no; then + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} + lockfile="$output_obj.lock" + else + output_obj= + need_locks=no + lockfile= + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new file + if test "$need_locks" = yes; then + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + elif test "$need_locks" = warn; then + if test -f "$lockfile"; then + $ECHO "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + removelist="$removelist $output_obj" + $ECHO "$srcfile" > "$lockfile" + fi + + $opt_dry_run || $RM $removelist + removelist="$removelist $lockfile" + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 + + if test -n "$fix_srcfile_path"; then + eval srcfile=\"$fix_srcfile_path\" + fi + func_quote_for_eval "$srcfile" + qsrcfile=$func_quote_for_eval_result + + # Only build a PIC object if we are building libtool libraries. + if test "$build_libtool_libs" = yes; then + # Without this assignment, base_compile gets emptied. + fbsd_hideous_sh_bug=$base_compile + + if test "$pic_mode" != no; then + command="$base_compile $qsrcfile $pic_flag" + else + # Don't build PIC code + command="$base_compile $qsrcfile" + fi + + func_mkdir_p "$xdir$objdir" + + if test -z "$output_obj"; then + # Place PIC objects in $objdir + command="$command -o $lobj" + fi + + func_show_eval_locale "$command" \ + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" = warn && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed, then go on to compile the next one + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then + func_show_eval '$MV "$output_obj" "$lobj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + + # Allow error messages only from the first compilation. + if test "$suppress_opt" = yes; then + suppress_output=' >/dev/null 2>&1' + fi + fi + + # Only build a position-dependent object if we build old libraries. + if test "$build_old_libs" = yes; then + if test "$pic_mode" != yes; then + # Don't build PIC code + command="$base_compile $qsrcfile$pie_flag" + else + command="$base_compile $qsrcfile $pic_flag" + fi + if test "$compiler_c_o" = yes; then + command="$command -o $obj" + fi + + # Suppress compiler output if we already did a PIC compilation. + command="$command$suppress_output" + func_show_eval_locale "$command" \ + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" = warn && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then + func_show_eval '$MV "$output_obj" "$obj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + fi + + $opt_dry_run || { + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" + + # Unlock the critical section if it was locked + if test "$need_locks" != no; then + removelist=$lockfile + $RM "$lockfile" + fi + } + + exit $EXIT_SUCCESS +} + +$opt_help || { +test "$mode" = compile && func_mode_compile ${1+"$@"} +} + +func_mode_help () +{ + # We need to display help for each of the modes. + case $mode in + "") + # Generic help is extracted from the usage comments + # at the start of this file. + func_help + ;; + + clean) + $ECHO \ +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + + compile) + $ECHO \ +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -no-suppress do not suppress compiler output for multiple passes + -prefer-pic try to building PIC objects only + -prefer-non-pic try to building non-PIC objects only + -shared do not build a \`.o' file suitable for static linking + -static only build a \`.o' file suitable for static linking + +COMPILE-COMMAND is a command to be used in creating a \`standard' object file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix \`.c' with the +library object suffix, \`.lo'." + ;; + + execute) + $ECHO \ +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library path + +This mode sets the library path environment variable according to \`-dlopen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + + finish) + $ECHO \ +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. Use +the \`--dry-run' option if you just want to see what would be executed." + ;; + + install) + $ECHO \ +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should be +either the \`install' or \`cp' program. + +The following components of INSTALL-COMMAND are treated specially: + + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation + +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; + + link) + $ECHO \ +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE Use a list of object files found in FILE to specify objects + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -shared only do dynamic linking of libtool libraries + -shrext SUFFIX override the standard shared library file extension + -static do not do any dynamic linking of uninstalled libtool libraries + -static-libtool-libs + do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + -weak LIBNAME declare that the target provides the LIBNAME interface + +All other options (arguments beginning with \`-') are ignored. + +Every other argument is treated as a filename. Files ending in \`.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. + +If the OUTPUT-FILE ends in \`.la', then a libtool library is created, +only library objects (\`.lo' files) may be specified, and \`-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created +using \`ar' and \`ranlib', or on Windows using \`lib'. + +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file +is created, otherwise an executable program is created." + ;; + + uninstall) + $ECHO \ +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; + + *) + func_fatal_help "invalid operation mode \`$mode'" + ;; + esac + + $ECHO + $ECHO "Try \`$progname --help' for more information about other modes." + + exit $? +} + + # Now that we've collected a possible --mode arg, show help if necessary + $opt_help && func_mode_help + + +# func_mode_execute arg... +func_mode_execute () +{ + $opt_debug + # The first argument is the command name. + cmd="$nonopt" + test -z "$cmd" && \ + func_fatal_help "you must specify a COMMAND" + + # Handle -dlopen flags immediately. + for file in $execute_dlfiles; do + test -f "$file" \ + || func_fatal_help "\`$file' is not a file" + + dir= + case $file in + *.la) + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$lib' is not a valid libtool archive" + + # Read the libtool library. + dlname= + library_names= + func_source "$file" + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && \ + func_warning "\`$file' was not linked with \`-export-dynamic'" + continue + fi + + func_dirname "$file" "" "." + dir="$func_dirname_result" + + if test -f "$dir/$objdir/$dlname"; then + dir="$dir/$objdir" + else + if test ! -f "$dir/$dlname"; then + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" + fi + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + func_dirname "$file" "" "." + dir="$func_dirname_result" + ;; + + *) + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" + continue + ;; + esac + + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir="$absdir" + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic="$magic" + + # Check if any of the arguments is a wrapper script. + args= + for file + do + case $file in + -*) ;; + *) + # Do a test to see if this is really a libtool program. + if func_ltwrapper_script_p "$file"; then + func_source "$file" + # Transform arg to wrapped name. + file="$progdir/$program" + elif func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + func_source "$func_ltwrapper_scriptname_result" + # Transform arg to wrapped name. + file="$progdir/$program" + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + func_quote_for_eval "$file" + args="$args $func_quote_for_eval_result" + done + + if test "X$opt_dry_run" = Xfalse; then + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi + + # Restore saved environment variables + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES + do + eval "if test \"\${save_$lt_var+set}\" = set; then + $lt_var=\$save_$lt_var; export $lt_var + else + $lt_unset $lt_var + fi" + done + + # Now prepare to actually exec the command. + exec_cmd="\$cmd$args" + else + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" + $ECHO "export $shlibpath_var" + fi + $ECHO "$cmd$args" + exit $EXIT_SUCCESS + fi +} + +test "$mode" = execute && func_mode_execute ${1+"$@"} + + +# func_mode_finish arg... +func_mode_finish () +{ + $opt_debug + libdirs="$nonopt" + admincmds= + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for dir + do + libdirs="$libdirs $dir" + done + + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds +'"$cmd"'"' + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $opt_dry_run || eval "$cmds" || admincmds="$admincmds + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + $opt_silent && exit $EXIT_SUCCESS + + $ECHO "X----------------------------------------------------------------------" | $Xsed + $ECHO "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + $ECHO + $ECHO "If you ever happen to want to link against installed libraries" + $ECHO "in a given directory, LIBDIR, you must either use libtool, and" + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" + $ECHO "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" + $ECHO " during execution" + fi + if test -n "$runpath_var"; then + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" + $ECHO " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" + + $ECHO " - use the \`$flag' linker flag" + fi + if test -n "$admincmds"; then + $ECHO " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" + fi + $ECHO + + $ECHO "See any operating system documentation about shared libraries for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" + $ECHO "pages." + ;; + *) + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." + ;; + esac + $ECHO "X----------------------------------------------------------------------" | $Xsed + exit $EXIT_SUCCESS +} + +test "$mode" = finish && func_mode_finish ${1+"$@"} + + +# func_mode_install arg... +func_mode_install () +{ + $opt_debug + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || + # Allow the use of GNU shtool's install command. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then + # Aesthetically quote it. + func_quote_for_eval "$nonopt" + install_prog="$func_quote_for_eval_result " + arg=$1 + shift + else + install_prog= + arg=$nonopt + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + func_quote_for_eval "$arg" + install_prog="$install_prog$func_quote_for_eval_result" + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=no + stripme= + for arg + do + if test -n "$dest"; then + files="$files $dest" + dest=$arg + continue + fi + + case $arg in + -d) isdir=yes ;; + -f) + case " $install_prog " in + *[\\\ /]cp\ *) ;; + *) prev=$arg ;; + esac + ;; + -g | -m | -o) + prev=$arg + ;; + -s) + stripme=" -s" + continue + ;; + -*) + ;; + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + prev= + else + dest=$arg + continue + fi + ;; + esac + + # Aesthetically quote the argument. + func_quote_for_eval "$arg" + install_prog="$install_prog $func_quote_for_eval_result" + done + + test -z "$install_prog" && \ + func_fatal_help "you must specify an install program" + + test -n "$prev" && \ + func_fatal_help "the \`$prev' option requires an argument" + + if test -z "$files"; then + if test -z "$dest"; then + func_fatal_help "no file or destination specified" + else + func_fatal_help "you must specify a destination" + fi + fi + + # Strip any trailing slash from the destination. + func_stripname '' '/' "$dest" + dest=$func_stripname_result + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=yes + if test "$isdir" = yes; then + destdir="$dest" + destname= + else + func_dirname_and_basename "$dest" "" "." + destdir="$func_dirname_result" + destname="$func_basename_result" + + # Not a directory, so check to see that there is only one file specified. + set dummy $files; shift + test "$#" -gt 1 && \ + func_fatal_help "\`$dest' is not a directory" + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + for file in $files; do + case $file in + *.lo) ;; + *) + func_fatal_help "\`$destdir' must be an absolute directory name" + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do + + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + staticlibs="$staticlibs $file" + ;; + + *.la) + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$file' is not a valid libtool archive" + + library_names= + old_library= + relink_command= + func_source "$file" + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) current_libdirs="$current_libdirs $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) future_libdirs="$future_libdirs $libdir" ;; + esac + fi + + func_dirname "$file" "/" "" + dir="$func_dirname_result" + dir="$dir$objdir" + + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + test "$inst_prefix_dir" = "$destdir" && \ + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` + fi + + func_warning "relinking \`$file'" + func_show_eval "$relink_command" \ + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' + fi + + # See the names of the shared library. + set dummy $library_names; shift + if test -n "$1"; then + realname="$1" + shift + + srcname="$realname" + test -n "$relink_command" && srcname="$realname"T + + # Install the shared library and build the symlinks. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ + 'exit $?' + tstripme="$stripme" + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme="" + ;; + esac + ;; + esac + if test -n "$tstripme" && test -n "$striplib"; then + func_show_eval "$striplib $destdir/$realname" 'exit $?' + fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + # Try `ln -sf' first, because the `ln' binary might depend on + # the symlink we replace! Solaris /bin/ln does not understand -f, + # so we also need to try rm && ln -s. + for linkname + do + test "$linkname" != "$realname" \ + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" + done + fi + + # Do each command in the postinstall commands. + lib="$destdir/$realname" + func_execute_cmds "$postinstall_cmds" 'exit $?' + fi + + # Install the pseudo-library for information purposes. + func_basename "$file" + name="$func_basename_result" + instname="$dir/$name"i + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" + fi + + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + func_lo2o "$destfile" + staticdest=$func_lo2o_result + ;; + *.$objext) + staticdest="$destfile" + destfile= + ;; + *) + func_fatal_help "cannot copy a libtool object to \`$destfile'" + ;; + esac + + # Install the libtool object if requested. + test -n "$destfile" && \ + func_show_eval "$install_prog $file $destfile" 'exit $?' + + # Install the old object if enabled. + if test "$build_old_libs" = yes; then + # Deduce the name of the old-style object file. + func_lo2o "$file" + staticobj=$func_lo2o_result + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' + fi + exit $EXIT_SUCCESS + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" + fi + + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext="" + case $file in + *.exe) + if test ! -f "$file"; then + func_stripname '' '.exe' "$file" + file=$func_stripname_result + stripped_ext=".exe" + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin* | *mingw*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=$func_ltwrapper_scriptname_result + else + func_stripname '' '.exe' "$file" + wrapper=$func_stripname_result + fi + ;; + *) + wrapper=$file + ;; + esac + if func_ltwrapper_script_p "$wrapper"; then + notinst_deplibs= + relink_command= + + func_source "$wrapper" + + # Check the variables that should have been set. + test -z "$generated_by_libtool_version" && \ + func_fatal_error "invalid libtool wrapper script \`$wrapper'" + + finalize=yes + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + func_source "$lib" + fi + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test + if test -n "$libdir" && test ! -f "$libfile"; then + func_warning "\`$lib' has not been installed in \`$libdir'" + finalize=no + fi + done + + relink_command= + func_source "$wrapper" + + outputname= + if test "$fast_install" = no && test -n "$relink_command"; then + $opt_dry_run || { + if test "$finalize" = yes; then + tmpdir=`func_mktempdir` + func_basename "$file$stripped_ext" + file="$func_basename_result" + outputname="$tmpdir/$file" + # Replace the output file specification. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` + + $opt_silent || { + func_quote_for_expand "$relink_command" + eval "func_echo $func_quote_for_expand_result" + } + if eval "$relink_command"; then : + else + func_error "error: relink \`$file' with the above command before installing it" + $opt_dry_run || ${RM}r "$tmpdir" + continue + fi + file="$outputname" + else + func_warning "cannot relink \`$file'" + fi + } + else + # Install the binary that we compiled earlier. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` + fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + func_stripname '' '.exe' "$destfile" + destfile=$func_stripname_result + ;; + esac + ;; + esac + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' + $opt_dry_run || if test -n "$outputname"; then + ${RM}r "$tmpdir" + fi + ;; + esac + done + + for file in $staticlibs; do + func_basename "$file" + name="$func_basename_result" + + # Set up the ranlib parameters. + oldlib="$destdir/$name" + + func_show_eval "$install_prog \$file \$oldlib" 'exit $?' + + if test -n "$stripme" && test -n "$old_striplib"; then + func_show_eval "$old_striplib $oldlib" 'exit $?' + fi + + # Do each command in the postinstall commands. + func_execute_cmds "$old_postinstall_cmds" 'exit $?' + done + + test -n "$future_libdirs" && \ + func_warning "remember to run \`$progname --finish$future_libdirs'" + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + $opt_dry_run && current_libdirs=" -n$current_libdirs" + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' + else + exit $EXIT_SUCCESS + fi +} + +test "$mode" = install && func_mode_install ${1+"$@"} + + +# func_generate_dlsyms outputname originator pic_p +# Extract symbols from dlprefiles and create ${outputname}S.o with +# a dlpreopen symbol table. +func_generate_dlsyms () +{ + $opt_debug + my_outputname="$1" + my_originator="$2" + my_pic_p="${3-no}" + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` + my_dlsyms= + + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + my_dlsyms="${my_outputname}S.c" + else + func_error "not configured to extract global symbols from dlpreopened files" + fi + fi + + if test -n "$my_dlsyms"; then + case $my_dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist="$output_objdir/${my_outputname}.nm" + + func_show_eval "$RM $nlist ${nlist}S ${nlist}T" + + # Parse the name list into a source file. + func_verbose "creating $output_objdir/$my_dlsyms" + + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +/* External symbol declarations for the compiler. */\ +" + + if test "$dlself" = yes; then + func_verbose "generating symbol list for \`$output'" + + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + for progfile in $progfiles; do + func_verbose "extracting global C symbols from \`$progfile'" + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" + done + + if test -n "$exclude_expsyms"; then + $opt_dry_run || { + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + if test -n "$export_symbols_regex"; then + $opt_dry_run || { + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols="$output_objdir/$outputname.exp" + $opt_dry_run || { + $RM $export_symbols + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' + ;; + esac + } + else + $opt_dry_run || { + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + case $host in + *cygwin | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' + ;; + esac + } + fi + fi + + for dlprefile in $dlprefiles; do + func_verbose "extracting global C symbols from \`$dlprefile'" + func_basename "$dlprefile" + name="$func_basename_result" + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + done + + $opt_dry_run || { + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" + fi + + # Try sorting and uniquifying the output. + if $GREP -v "^: " < "$nlist" | + if sort -k 3 </dev/null >/dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : + else + $GREP -v "^: " < "$nlist" > "$nlist"S + fi + + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' + else + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" + fi + + $ECHO >> "$output_objdir/$my_dlsyms" "\ + +/* The mapping between symbol names and symbols. */ +typedef struct { + const char *name; + void *address; +} lt_dlsymlist; +" + case $host in + *cygwin* | *mingw* | *cegcc* ) + $ECHO >> "$output_objdir/$my_dlsyms" "\ +/* DATA imports from DLLs on WIN32 con't be const, because + runtime relocations are performed -- see ld's documentation + on pseudo-relocs. */" + lt_dlsym_const= ;; + *osf5*) + echo >> "$output_objdir/$my_dlsyms" "\ +/* This system does not cope well with relocations in const data */" + lt_dlsym_const= ;; + *) + lt_dlsym_const=const ;; + esac + + $ECHO >> "$output_objdir/$my_dlsyms" "\ +extern $lt_dlsym_const lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[]; +$lt_dlsym_const lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[] = +{\ + { \"$my_originator\", (void *) 0 }," + + case $need_lib_prefix in + no) + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + *) + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + esac + $ECHO >> "$output_objdir/$my_dlsyms" "\ + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_${my_prefix}_LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif\ +" + } # !$opt_dry_run + + pic_flag_for_symtable= + case "$compile_command " in + *" -static "*) ;; + *) + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; + *-*-hpux*) + pic_flag_for_symtable=" $pic_flag" ;; + *) + if test "X$my_pic_p" != Xno; then + pic_flag_for_symtable=" $pic_flag" + fi + ;; + esac + ;; + esac + symtab_cflags= + for arg in $LTCFLAGS; do + case $arg in + -pie | -fpie | -fPIE) ;; + *) symtab_cflags="$symtab_cflags $arg" ;; + esac + done + + # Now compile the dynamic symbol file. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' + + # Clean up the generated files. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' + + # Transform the symbol file into the correct name. + symfileobj="$output_objdir/${my_outputname}S.$objext" + case $host in + *cygwin* | *mingw* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + else + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + fi + ;; + *) + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + ;; + esac + ;; + *) + func_fatal_error "unknown suffix for \`$my_dlsyms'" + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + + # Nullify the symbol file. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` + fi +} + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +func_win32_libid () +{ + $opt_debug + win32_libid_type="unknown" + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then + win32_nmres=`eval $NM -f posix -A $1 | + $SED -n -e ' + 1,100{ + / I /{ + s,.*,import, + p + q + } + }'` + case $win32_nmres in + import*) win32_libid_type="x86 archive import";; + *) win32_libid_type="x86 archive static";; + esac + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $ECHO "$win32_libid_type" +} + + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + $opt_debug + f_ex_an_ar_dir="$1"; shift + f_ex_an_ar_oldlib="$1" + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" + fi +} + + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + $opt_debug + my_gentop="$1"; shift + my_oldlibs=${1+"$@"} + my_oldobjs="" + my_xlib="" + my_xabs="" + my_xdir="" + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + func_basename "$my_xlib" + my_xlib="$func_basename_result" + my_xlib_u=$my_xlib + while :; do + case " $extracted_archives " in + *" $my_xlib_u "*) + func_arith $extracted_serial + 1 + extracted_serial=$func_arith_result + my_xlib_u=lt$extracted_serial-$my_xlib ;; + *) break ;; + esac + done + extracted_archives="$extracted_archives $my_xlib_u" + my_xdir="$my_gentop/$my_xlib_u" + + func_mkdir_p "$my_xdir" + + case $host in + *-darwin*) + func_verbose "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + $opt_dry_run || { + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + darwin_base_archive=`basename "$darwin_archive"` + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` + if test -n "$darwin_arches"; then + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches ; do + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" + func_extract_an_archive "`pwd`" "${darwin_base_archive}" + cd "$darwin_curdir" + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" + done # $darwin_arches + ## Okay now we've a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` + $LIPO -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + $RM -rf unfat-$$ + cd "$darwin_orig_dir" + else + cd $darwin_orig_dir + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + } # !$opt_dry_run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` + done + + func_extract_archives_result="$my_oldobjs" +} + + + +# func_emit_wrapper_part1 [arg=no] +# +# Emit the first part of a libtool wrapper script on stdout. +# For more information, see the description associated with +# func_emit_wrapper(), below. +func_emit_wrapper_part1 () +{ + func_emit_wrapper_part1_arg1=no + if test -n "$1" ; then + func_emit_wrapper_part1_arg1=$1 + fi + + $ECHO "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='${SED} -e 1s/^X//' +sed_quote_subst='$sed_quote_subst' + +# Be Bourne compatible +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +relink_command=\"$relink_command\" + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variables: + generated_by_libtool_version='$macro_version' + notinst_deplibs='$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$ECHO are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + ECHO=\"$qecho\" + file=\"\$0\" + # Make sure echo works. + if test \"X\$1\" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then + # Yippee, \$ECHO works! + : + else + # Restart under the correct shell, and then maybe \$ECHO will work. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} + fi + fi\ +" + $ECHO "\ + + # Find the directory that this script lives in. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. + + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; + esac + fi + + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` + done +" +} +# end: func_emit_wrapper_part1 + +# func_emit_wrapper_part2 [arg=no] +# +# Emit the second part of a libtool wrapper script on stdout. +# For more information, see the description associated with +# func_emit_wrapper(), below. +func_emit_wrapper_part2 () +{ + func_emit_wrapper_part2_arg1=no + if test -n "$1" ; then + func_emit_wrapper_part2_arg1=$1 + fi + + $ECHO "\ + + # Usually 'no', except on cygwin/mingw when embedded into + # the cwrapper. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then + # special case for '.' + if test \"\$thisdir\" = \".\"; then + thisdir=\`pwd\` + fi + # remove .libs from thisdir + case \"\$thisdir\" in + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; + $objdir ) thisdir=. ;; + esac + fi + + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" +" + + if test "$fast_install" = yes; then + $ECHO "\ + program=lt-'$outputname'$exeext + progdir=\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ + test \"X\$file\" != \"X\$progdir/\$program\"; }; then + + file=\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $MKDIR \"\$progdir\" + else + $RM \"\$progdir/\$file\" + fi" + + $ECHO "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=\`eval \$relink_command 2>&1\`; then : + else + $ECHO \"\$relink_command_output\" >&2 + $RM \"\$progdir/\$file\" + exit 1 + fi + fi + + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $RM \"\$progdir/\$program\"; + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $RM \"\$progdir/\$file\" + fi" + else + $ECHO "\ + program='$outputname' + progdir=\"\$thisdir/$objdir\" +" + fi + + $ECHO "\ + + if test -f \"\$progdir/\$program\"; then" + + # Export our shlibpath_var if we have one. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $ECHO "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` + + export $shlibpath_var +" + fi + + # fixup the dll searchpath if we need to. + if test -n "$dllsearchpath"; then + $ECHO "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + + $ECHO "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2* | *-cegcc*) + $ECHO "\ + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 + fi + else + # The program doesn't exist. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + exit 1 + fi +fi\ +" +} +# end: func_emit_wrapper_part2 + + +# func_emit_wrapper [arg=no] +# +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to +# incorporate the script contents within a cygwin/mingw +# wrapper executable. Must ONLY be called from within +# func_mode_link because it depends on a number of variables +# set therein. +# +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# variable will take. If 'yes', then the emitted script +# will assume that the directory in which it is stored is +# the $objdir directory. This is a cygwin/mingw-specific +# behavior. +func_emit_wrapper () +{ + func_emit_wrapper_arg1=no + if test -n "$1" ; then + func_emit_wrapper_arg1=$1 + fi + + # split this up so that func_emit_cwrapperexe_src + # can call each part independently. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" +} + + +# func_to_host_path arg +# +# Convert paths to host format when used with build tools. +# Intended for use with "native" mingw (where libtool itself +# is running under the msys shell), or in the following cross- +# build environments: +# $build $host +# mingw (msys) mingw [e.g. native] +# cygwin mingw +# *nix + wine mingw +# where wine is equipped with the `winepath' executable. +# In the native mingw case, the (msys) shell automatically +# converts paths for any non-msys applications it launches, +# but that facility isn't available from inside the cwrapper. +# Similar accommodations are necessary for $host mingw and +# $build cygwin. Calling this function does no harm for other +# $host/$build combinations not listed above. +# +# ARG is the path (on $build) that should be converted to +# the proper representation for $host. The result is stored +# in $func_to_host_path_result. +func_to_host_path () +{ + func_to_host_path_result="$1" + if test -n "$1" ; then + case $host in + *mingw* ) + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + case $build in + *mingw* ) # actually, msys + # awkward: cmd appends spaces to result + lt_sed_strip_trailing_spaces="s/[ ]*\$//" + func_to_host_path_tmp1=`( cmd //c echo "$1" |\ + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + *cygwin* ) + func_to_host_path_tmp1=`cygpath -w "$1"` + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + * ) + # Unfortunately, winepath does not exit with a non-zero + # error code, so we are forced to check the contents of + # stdout. On the other hand, if the command is not + # found, the shell will set an exit code of 127 and print + # *an error message* to stdout. So we must check for both + # error code of zero AND non-empty stdout, which explains + # the odd construction: + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + else + # Allow warning below. + func_to_host_path_result="" + fi + ;; + esac + if test -z "$func_to_host_path_result" ; then + func_error "Could not determine host path corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback: + func_to_host_path_result="$1" + fi + ;; + esac + fi +} +# end: func_to_host_path + +# func_to_host_pathlist arg +# +# Convert pathlists to host format when used with build tools. +# See func_to_host_path(), above. This function supports the +# following $build/$host combinations (but does no harm for +# combinations not listed here): +# $build $host +# mingw (msys) mingw [e.g. native] +# cygwin mingw +# *nix + wine mingw +# +# Path separators are also converted from $build format to +# $host format. If ARG begins or ends with a path separator +# character, it is preserved (but converted to $host format) +# on output. +# +# ARG is a pathlist (on $build) that should be converted to +# the proper representation on $host. The result is stored +# in $func_to_host_pathlist_result. +func_to_host_pathlist () +{ + func_to_host_pathlist_result="$1" + if test -n "$1" ; then + case $host in + *mingw* ) + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + # Remove leading and trailing path separator characters from + # ARG. msys behavior is inconsistent here, cygpath turns them + # into '.;' and ';.', and winepath ignores them completely. + func_to_host_pathlist_tmp2="$1" + # Once set for this call, this variable should not be + # reassigned. It is used in tha fallback case. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e 's|^:*||' -e 's|:*$||'` + case $build in + *mingw* ) # Actually, msys. + # Awkward: cmd appends spaces to result. + lt_sed_strip_trailing_spaces="s/[ ]*\$//" + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + *cygwin* ) + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + * ) + # unfortunately, winepath doesn't convert pathlists + func_to_host_pathlist_result="" + func_to_host_pathlist_oldIFS=$IFS + IFS=: + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do + IFS=$func_to_host_pathlist_oldIFS + if test -n "$func_to_host_pathlist_f" ; then + func_to_host_path "$func_to_host_pathlist_f" + if test -n "$func_to_host_path_result" ; then + if test -z "$func_to_host_pathlist_result" ; then + func_to_host_pathlist_result="$func_to_host_path_result" + else + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" + fi + fi + fi + IFS=: + done + IFS=$func_to_host_pathlist_oldIFS + ;; + esac + if test -z "$func_to_host_pathlist_result" ; then + func_error "Could not determine the host path(s) corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback. This may break if $1 contains DOS-style drive + # specifications. The fix is not to complicate the expression + # below, but for the user to provide a working wine installation + # with winepath so that path translation in the cross-to-mingw + # case works properly. + lt_replace_pathsep_nix_to_dos="s|:|;|g" + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ + $SED -e "$lt_replace_pathsep_nix_to_dos"` + fi + # Now, add the leading and trailing path separators back + case "$1" in + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" + ;; + esac + case "$1" in + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" + ;; + esac + ;; + esac + fi +} +# end: func_to_host_pathlist + +# func_emit_cwrapperexe_src +# emit the source code for a wrapper executable on stdout +# Must ONLY be called from within func_mode_link because +# it depends on a number of variable set therein. +func_emit_cwrapperexe_src () +{ + cat <<EOF + +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION + + The $output program cannot be directly executed until all the libtool + libraries that it depends on are installed. + + This wrapper executable should never be moved out of the build directory. + If it is, it will not operate correctly. + + Currently, it simply execs the wrapper *script* "$SHELL $output", + but could eventually absorb all of the scripts functionality and + exec $objdir/$outputname directly. +*/ +EOF + cat <<"EOF" +#include <stdio.h> +#include <stdlib.h> +#ifdef _MSC_VER +# include <direct.h> +# include <process.h> +# include <io.h> +# define setmode _setmode +#else +# include <unistd.h> +# include <stdint.h> +# ifdef __CYGWIN__ +# include <io.h> +# define HAVE_SETENV +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +# endif +#endif +#include <malloc.h> +#include <stdarg.h> +#include <assert.h> +#include <string.h> +#include <ctype.h> +#include <errno.h> +#include <fcntl.h> +#include <sys/stat.h> + +#if defined(PATH_MAX) +# define LT_PATHMAX PATH_MAX +#elif defined(MAXPATHLEN) +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef S_IXOTH +# define S_IXOTH 0 +#endif +#ifndef S_IXGRP +# define S_IXGRP 0 +#endif + +#ifdef _MSC_VER +# define S_IXUSR _S_IEXEC +# define stat _stat +# ifndef _INTPTR_T_DEFINED +# define intptr_t int +# endif +#endif + +#ifndef DIR_SEPARATOR +# define DIR_SEPARATOR '/' +# define PATH_SEPARATOR ':' +#endif + +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ + defined (__OS2__) +# define HAVE_DOS_BASED_FILE_SYSTEM +# define FOPEN_WB "wb" +# ifndef DIR_SEPARATOR_2 +# define DIR_SEPARATOR_2 '\\' +# endif +# ifndef PATH_SEPARATOR_2 +# define PATH_SEPARATOR_2 ';' +# endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#ifndef PATH_SEPARATOR_2 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) +#else /* PATH_SEPARATOR_2 */ +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) +#endif /* PATH_SEPARATOR_2 */ + +#ifdef __CYGWIN__ +# define FOPEN_WB "wb" +#endif + +#ifndef FOPEN_WB +# define FOPEN_WB "w" +#endif +#ifndef _O_BINARY +# define _O_BINARY 0 +#endif + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free ((void *) stale); stale = 0; } \ +} while (0) + +#undef LTWRAPPER_DEBUGPRINTF +#if defined DEBUGWRAPPER +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args +static void +ltwrapper_debugprintf (const char *fmt, ...) +{ + va_list args; + va_start (args, fmt); + (void) vfprintf (stderr, fmt, args); + va_end (args); +} +#else +# define LTWRAPPER_DEBUGPRINTF(args) +#endif + +const char *program_name = NULL; + +void *xmalloc (size_t num); +char *xstrdup (const char *string); +const char *base_name (const char *name); +char *find_executable (const char *wrapper); +char *chase_symlinks (const char *pathspec); +int make_executable (const char *path); +int check_executable (const char *path); +char *strendzap (char *str, const char *pat); +void lt_fatal (const char *message, ...); +void lt_setenv (const char *name, const char *value); +char *lt_extend_str (const char *orig_value, const char *add, int to_end); +void lt_opt_process_env_set (const char *arg); +void lt_opt_process_env_prepend (const char *arg); +void lt_opt_process_env_append (const char *arg); +int lt_split_name_value (const char *arg, char** name, char** value); +void lt_update_exe_path (const char *name, const char *value); +void lt_update_lib_path (const char *name, const char *value); + +static const char *script_text_part1 = +EOF + + func_emit_wrapper_part1 yes | + $SED -e 's/\([\\"]\)/\\\1/g' \ + -e 's/^/ "/' -e 's/$/\\n"/' + echo ";" + cat <<EOF + +static const char *script_text_part2 = +EOF + func_emit_wrapper_part2 yes | + $SED -e 's/\([\\"]\)/\\\1/g' \ + -e 's/^/ "/' -e 's/$/\\n"/' + echo ";" + + cat <<EOF +const char * MAGIC_EXE = "$magic_exe"; +const char * LIB_PATH_VARNAME = "$shlibpath_var"; +EOF + + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + func_to_host_pathlist "$temp_rpath" + cat <<EOF +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result"; +EOF + else + cat <<"EOF" +const char * LIB_PATH_VALUE = ""; +EOF + fi + + if test -n "$dllsearchpath"; then + func_to_host_pathlist "$dllsearchpath:" + cat <<EOF +const char * EXE_PATH_VARNAME = "PATH"; +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result"; +EOF + else + cat <<"EOF" +const char * EXE_PATH_VARNAME = ""; +const char * EXE_PATH_VALUE = ""; +EOF + fi + + if test "$fast_install" = yes; then + cat <<EOF +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */ +EOF + else + cat <<EOF +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */ +EOF + fi + + + cat <<"EOF" + +#define LTWRAPPER_OPTION_PREFIX "--lt-" +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5 + +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH; +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX; + +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script"; + +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7; +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set"; + /* argument is putenv-style "foo=bar", value of foo is set to bar */ + +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11; +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend"; + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */ + +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10; +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append"; + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */ + +int +main (int argc, char *argv[]) +{ + char **newargz; + int newargc; + char *tmp_pathspec; + char *actual_cwrapper_path; + char *actual_cwrapper_name; + char *target_name; + char *lt_argv_zero; + intptr_t rval = 127; + + int i; + + program_name = (char *) xstrdup (base_name (argv[0])); + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0])); + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name)); + + /* very simple arg parsing; don't want to rely on getopt */ + for (i = 1; i < argc; i++) + { + if (strcmp (argv[i], dumpscript_opt) == 0) + { +EOF + case "$host" in + *mingw* | *cygwin* ) + # make stdout use "unix" line endings + echo " setmode(1,_O_BINARY);" + ;; + esac + + cat <<"EOF" + printf ("%s", script_text_part1); + printf ("%s", script_text_part2); + return 0; + } + } + + newargz = XMALLOC (char *, argc + 1); + tmp_pathspec = find_executable (argv[0]); + if (tmp_pathspec == NULL) + lt_fatal ("Couldn't find %s", argv[0]); + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n", + tmp_pathspec)); + + actual_cwrapper_path = chase_symlinks (tmp_pathspec); + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n", + actual_cwrapper_path)); + XFREE (tmp_pathspec); + + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path)); + strendzap (actual_cwrapper_path, actual_cwrapper_name); + + /* wrapper name transforms */ + strendzap (actual_cwrapper_name, ".exe"); + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1); + XFREE (actual_cwrapper_name); + actual_cwrapper_name = tmp_pathspec; + tmp_pathspec = 0; + + /* target_name transforms -- use actual target program name; might have lt- prefix */ + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME)); + strendzap (target_name, ".exe"); + tmp_pathspec = lt_extend_str (target_name, ".exe", 1); + XFREE (target_name); + target_name = tmp_pathspec; + tmp_pathspec = 0; + + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n", + target_name)); +EOF + + cat <<EOF + newargz[0] = + XMALLOC (char, (strlen (actual_cwrapper_path) + + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1)); + strcpy (newargz[0], actual_cwrapper_path); + strcat (newargz[0], "$objdir"); + strcat (newargz[0], "/"); +EOF + + cat <<"EOF" + /* stop here, and copy so we don't have to do this twice */ + tmp_pathspec = xstrdup (newargz[0]); + + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */ + strcat (newargz[0], actual_cwrapper_name); + + /* DO want the lt- prefix here if it exists, so use target_name */ + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1); + XFREE (tmp_pathspec); + tmp_pathspec = NULL; +EOF + + case $host_os in + mingw*) + cat <<"EOF" + { + char* p; + while ((p = strchr (newargz[0], '\\')) != NULL) + { + *p = '/'; + } + while ((p = strchr (lt_argv_zero, '\\')) != NULL) + { + *p = '/'; + } + } +EOF + ;; + esac + + cat <<"EOF" + XFREE (target_name); + XFREE (actual_cwrapper_path); + XFREE (actual_cwrapper_name); + + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */ + lt_setenv ("DUALCASE", "1"); /* for MSK sh */ + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); + + newargc=0; + for (i = 1; i < argc; i++) + { + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0) + { + if (argv[i][env_set_opt_len] == '=') + { + const char *p = argv[i] + env_set_opt_len + 1; + lt_opt_process_env_set (p); + } + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc) + { + lt_opt_process_env_set (argv[++i]); /* don't copy */ + } + else + lt_fatal ("%s missing required argument", env_set_opt); + continue; + } + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0) + { + if (argv[i][env_prepend_opt_len] == '=') + { + const char *p = argv[i] + env_prepend_opt_len + 1; + lt_opt_process_env_prepend (p); + } + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc) + { + lt_opt_process_env_prepend (argv[++i]); /* don't copy */ + } + else + lt_fatal ("%s missing required argument", env_prepend_opt); + continue; + } + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0) + { + if (argv[i][env_append_opt_len] == '=') + { + const char *p = argv[i] + env_append_opt_len + 1; + lt_opt_process_env_append (p); + } + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc) + { + lt_opt_process_env_append (argv[++i]); /* don't copy */ + } + else + lt_fatal ("%s missing required argument", env_append_opt); + continue; + } + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0) + { + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX + namespace, but it is not one of the ones we know about and + have already dealt with, above (inluding dump-script), then + report an error. Otherwise, targets might begin to believe + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX + namespace. The first time any user complains about this, we'll + need to make LTWRAPPER_OPTION_PREFIX a configure-time option + or a configure.ac-settable value. + */ + lt_fatal ("Unrecognized option in %s namespace: '%s'", + ltwrapper_option_prefix, argv[i]); + } + /* otherwise ... */ + newargz[++newargc] = xstrdup (argv[i]); + } + newargz[++newargc] = NULL; + + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>"))); + for (i = 0; i < newargc; i++) + { + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>"))); + } + +EOF + + case $host_os in + mingw*) + cat <<"EOF" + /* execv doesn't actually work on mingw as expected on unix */ + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); + if (rval == -1) + { + /* failed to start process */ + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); + return 127; + } + return rval; +EOF + ;; + *) + cat <<"EOF" + execv (lt_argv_zero, newargz); + return rval; /* =127, but avoids unused variable warning */ +EOF + ;; + esac + + cat <<"EOF" +} + +void * +xmalloc (size_t num) +{ + void *p = (void *) malloc (num); + if (!p) + lt_fatal ("Memory exhausted"); + + return p; +} + +char * +xstrdup (const char *string) +{ + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), + string) : NULL; +} + +const char * +base_name (const char *name) +{ + const char *base; + +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + /* Skip over the disk name in MSDOS pathnames. */ + if (isalpha ((unsigned char) name[0]) && name[1] == ':') + name += 2; +#endif + + for (base = name; *name; name++) + if (IS_DIR_SEPARATOR (*name)) + base = name + 1; + return base; +} + +int +check_executable (const char *path) +{ + struct stat st; + + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", + path ? (*path ? path : "EMPTY!") : "NULL!")); + if ((!path) || (!*path)) + return 0; + + if ((stat (path, &st) >= 0) + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) + return 1; + else + return 0; +} + +int +make_executable (const char *path) +{ + int rval = 0; + struct stat st; + + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", + path ? (*path ? path : "EMPTY!") : "NULL!")); + if ((!path) || (!*path)) + return 0; + + if (stat (path, &st) >= 0) + { + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); + } + return rval; +} + +/* Searches for the full path of the wrapper. Returns + newly allocated full path name if found, NULL otherwise + Does not chase symlinks, even on platforms that support them. +*/ +char * +find_executable (const char *wrapper) +{ + int has_slash = 0; + const char *p; + const char *p_next; + /* static buffer for getcwd */ + char tmp[LT_PATHMAX + 1]; + int tmp_len; + char *concat_name; + + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); + + if ((wrapper == NULL) || (*wrapper == '\0')) + return NULL; + + /* Absolute path? */ +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + else + { +#endif + if (IS_DIR_SEPARATOR (wrapper[0])) + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + } +#endif + + for (p = wrapper; *p; p++) + if (*p == '/') + { + has_slash = 1; + break; + } + if (!has_slash) + { + /* no slashes; search PATH */ + const char *path = getenv ("PATH"); + if (path != NULL) + { + for (p = path; *p; p = p_next) + { + const char *q; + size_t p_len; + for (q = p; *q; q++) + if (IS_PATH_SEPARATOR (*q)) + break; + p_len = q - p; + p_next = (*q == '\0' ? q : q + 1); + if (p_len == 0) + { + /* empty path: current directory */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + tmp_len = strlen (tmp); + concat_name = + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + } + else + { + concat_name = + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, wrapper); + } + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + } + /* not found in PATH; assume curdir */ + } + /* Relative path | not found in path: prepend cwd */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + tmp_len = strlen (tmp); + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + return NULL; +} + +char * +chase_symlinks (const char *pathspec) +{ +#ifndef S_ISLNK + return xstrdup (pathspec); +#else + char buf[LT_PATHMAX]; + struct stat s; + char *tmp_pathspec = xstrdup (pathspec); + char *p; + int has_symlinks = 0; + while (strlen (tmp_pathspec) && !has_symlinks) + { + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", + tmp_pathspec)); + if (lstat (tmp_pathspec, &s) == 0) + { + if (S_ISLNK (s.st_mode) != 0) + { + has_symlinks = 1; + break; + } + + /* search backwards for last DIR_SEPARATOR */ + p = tmp_pathspec + strlen (tmp_pathspec) - 1; + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + p--; + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + { + /* no more DIR_SEPARATORS left */ + break; + } + *p = '\0'; + } + else + { + char *errstr = strerror (errno); + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); + } + } + XFREE (tmp_pathspec); + + if (!has_symlinks) + { + return xstrdup (pathspec); + } + + tmp_pathspec = realpath (pathspec, buf); + if (tmp_pathspec == 0) + { + lt_fatal ("Could not follow symlinks for %s", pathspec); + } + return xstrdup (tmp_pathspec); +#endif +} + +char * +strendzap (char *str, const char *pat) +{ + size_t len, patlen; + + assert (str != NULL); + assert (pat != NULL); + + len = strlen (str); + patlen = strlen (pat); + + if (patlen <= len) + { + str += len - patlen; + if (strcmp (str, pat) == 0) + *str = '\0'; + } + return str; +} + +static void +lt_error_core (int exit_status, const char *mode, + const char *message, va_list ap) +{ + fprintf (stderr, "%s: %s: ", program_name, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >= 0) + exit (exit_status); +} + +void +lt_fatal (const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, "FATAL", message, ap); + va_end (ap); +} + +void +lt_setenv (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", + (name ? name : "<NULL>"), + (value ? value : "<NULL>"))); + { +#ifdef HAVE_SETENV + /* always make a copy, for consistency with !HAVE_SETENV */ + char *str = xstrdup (value); + setenv (name, str, 1); +#else + int len = strlen (name) + 1 + strlen (value) + 1; + char *str = XMALLOC (char, len); + sprintf (str, "%s=%s", name, value); + if (putenv (str) != EXIT_SUCCESS) + { + XFREE (str); + } +#endif + } +} + +char * +lt_extend_str (const char *orig_value, const char *add, int to_end) +{ + char *new_value; + if (orig_value && *orig_value) + { + int orig_value_len = strlen (orig_value); + int add_len = strlen (add); + new_value = XMALLOC (char, add_len + orig_value_len + 1); + if (to_end) + { + strcpy (new_value, orig_value); + strcpy (new_value + orig_value_len, add); + } + else + { + strcpy (new_value, add); + strcpy (new_value + add_len, orig_value); + } + } + else + { + new_value = xstrdup (add); + } + return new_value; +} + +int +lt_split_name_value (const char *arg, char** name, char** value) +{ + const char *p; + int len; + if (!arg || !*arg) + return 1; + + p = strchr (arg, (int)'='); + + if (!p) + return 1; + + *value = xstrdup (++p); + + len = strlen (arg) - strlen (*value); + *name = XMALLOC (char, len); + strncpy (*name, arg, len-1); + (*name)[len - 1] = '\0'; + + return 0; +} + +void +lt_opt_process_env_set (const char *arg) +{ + char *name = NULL; + char *value = NULL; + + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); + } + + lt_setenv (name, value); + XFREE (name); + XFREE (value); +} + +void +lt_opt_process_env_prepend (const char *arg) +{ + char *name = NULL; + char *value = NULL; + char *new_value = NULL; + + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); + } + + new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + XFREE (name); + XFREE (value); +} + +void +lt_opt_process_env_append (const char *arg) +{ + char *name = NULL; + char *value = NULL; + char *new_value = NULL; + + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); + } + + new_value = lt_extend_str (getenv (name), value, 1); + lt_setenv (name, new_value); + XFREE (new_value); + XFREE (name); + XFREE (value); +} + +void +lt_update_exe_path (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", + (name ? name : "<NULL>"), + (value ? value : "<NULL>"))); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + /* some systems can't cope with a ':'-terminated path #' */ + int len = strlen (new_value); + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) + { + new_value[len-1] = '\0'; + } + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +void +lt_update_lib_path (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", + (name ? name : "<NULL>"), + (value ? value : "<NULL>"))); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + } +} + + +EOF +} +# end: func_emit_cwrapperexe_src + +# func_mode_link arg... +func_mode_link () +{ + $opt_debug + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # which system we are compiling for in order to pass an extra + # flag for every libtool invocation. + # allow_undefined=no + + # FIXME: Unfortunately, there are problems with the above when trying + # to make a dll which has undefined symbols, in which case not + # even a static library is built. For now, we need to specify + # -no-undefined on the libtool link line when we can be certain + # that all symbols are satisfied, otherwise we get a static library. + allow_undefined=yes + ;; + *) + allow_undefined=yes + ;; + esac + libtool_args=$nonopt + base_compile="$nonopt $@" + compile_command=$nonopt + finalize_command=$nonopt + + compile_rpath= + finalize_rpath= + compile_shlibpath= + finalize_shlibpath= + convenience= + old_convenience= + deplibs= + old_deplibs= + compiler_flags= + linker_flags= + dllsearchpath= + lib_search_path=`pwd` + inst_prefix_dir= + new_inherited_linker_flags= + + avoid_version=no + dlfiles= + dlprefiles= + dlself=no + export_dynamic=no + export_symbols= + export_symbols_regex= + generated= + libobjs= + ltlibs= + module=no + no_install=no + objs= + non_pic_objects= + precious_files_regex= + prefer_static_libs=no + preload=no + prev= + prevarg= + release= + rpath= + xrpath= + perm_rpath= + temp_rpath= + thread_safe=no + vinfo= + vinfo_number=no + weak_libs= + single_module="${wl}-single_module" + func_infer_tag $base_compile + + # We need to know -static, to get the right output filenames. + for arg + do + case $arg in + -shared) + test "$build_libtool_libs" != yes && \ + func_fatal_configuration "can not build a shared library" + build_old_libs=no + break + ;; + -all-static | -static | -static-libtool-libs) + case $arg in + -all-static) + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then + func_warning "complete static linking is impossible in this configuration" + fi + if test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + -static) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=built + ;; + -static-libtool-libs) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + esac + build_libtool_libs=no + build_old_libs=yes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes + + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg="$1" + shift + func_quote_for_eval "$arg" + qarg=$func_quote_for_eval_unquoted_result + func_append libtool_args " $func_quote_for_eval_result" + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + func_append compile_command " @OUTPUT@" + func_append finalize_command " @OUTPUT@" + ;; + esac + + case $prev in + dlfiles|dlprefiles) + if test "$preload" = no; then + # Add the symbol object into the linking commands. + func_append compile_command " @SYMFILE@" + func_append finalize_command " @SYMFILE@" + preload=yes + fi + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test "$dlself" = no; then + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + self) + if test "$prev" = dlprefiles; then + dlself=yes + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then + dlself=yes + else + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + *) + if test "$prev" = dlfiles; then + dlfiles="$dlfiles $arg" + else + dlprefiles="$dlprefiles $arg" + fi + prev= + continue + ;; + esac + ;; + expsyms) + export_symbols="$arg" + test -f "$arg" \ + || func_fatal_error "symbol file \`$arg' does not exist" + prev= + continue + ;; + expsyms_regex) + export_symbols_regex="$arg" + prev= + continue + ;; + framework) + case $host in + *-*-darwin*) + case "$deplibs " in + *" $qarg.ltframework "*) ;; + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later + ;; + esac + ;; + esac + prev= + continue + ;; + inst_prefix) + inst_prefix_dir="$arg" + prev= + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat "$save_arg"` + do +# moreargs="$moreargs $fil" + arg=$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + done + else + func_fatal_error "link input file \`$arg' does not exist" + fi + arg=$save_arg + prev= + continue + ;; + precious_regex) + precious_files_regex="$arg" + prev= + continue + ;; + release) + release="-$arg" + prev= + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + if test "$prev" = rpath; then + case "$rpath " in + *" $arg "*) ;; + *) rpath="$rpath $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) xrpath="$xrpath $arg" ;; + esac + fi + prev= + continue + ;; + shrext) + shrext_cmds="$arg" + prev= + continue + ;; + weak) + weak_libs="$weak_libs $arg" + prev= + continue + ;; + xcclinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xcompiler) + compiler_flags="$compiler_flags $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xlinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $wl$qarg" + prev= + func_append compile_command " $wl$qarg" + func_append finalize_command " $wl$qarg" + continue + ;; + *) + eval "$prev=\"\$arg\"" + prev= + continue + ;; + esac + fi # test -n "$prev" + + prevarg="$arg" + + case $arg in + -all-static) + if test -n "$link_static_flag"; then + # See comment for -static flag below, for more details. + func_append compile_command " $link_static_flag" + func_append finalize_command " $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + func_fatal_error "\`-allow-undefined' must not be used because it is the default" + ;; + + -avoid-version) + avoid_version=yes + continue + ;; + + -dlopen) + prev=dlfiles + continue + ;; + + -dlpreopen) + prev=dlprefiles + continue + ;; + + -export-dynamic) + export_dynamic=yes + continue + ;; + + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + func_fatal_error "more than one -exported-symbols argument is not allowed" + fi + if test "X$arg" = "X-export-symbols"; then + prev=expsyms + else + prev=expsyms_regex + fi + continue + ;; + + -framework) + prev=framework + continue + ;; + + -inst-prefix-dir) + prev=inst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + func_append compile_command " $arg" + func_append finalize_command " $arg" + ;; + esac + continue + ;; + + -L*) + func_stripname '-L' '' "$arg" + dir=$func_stripname_result + if test -z "$dir"; then + if test "$#" -gt 0; then + func_fatal_error "require no space between \`-L' and \`$1'" + else + func_fatal_error "need path for \`-L' option" + fi + fi + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=`cd "$dir" && pwd` + test -z "$absdir" && \ + func_fatal_error "cannot determine absolute directory name of \`$dir'" + dir="$absdir" + ;; + esac + case "$deplibs " in + *" -L$dir "*) ;; + *) + deplibs="$deplibs -L$dir" + lib_search_path="$lib_search_path $dir" + ;; + esac + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; + ::) dllsearchpath=$dir;; + *) dllsearchpath="$dllsearchpath:$dir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) dllsearchpath="$dllsearchpath:$testbindir";; + esac + ;; + esac + continue + ;; + + -l*) + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) + # These systems don't actually have a C or math library (as such) + continue + ;; + *-*-os2*) + # These systems don't actually have a C library (as such) + test "X$arg" = "X-lc" && continue + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + deplibs="$deplibs System.ltframework" + continue + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + test "X$arg" = "X-lc" && continue + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + test "X$arg" = "X-lc" && continue + ;; + esac + elif test "X$arg" = "X-lc_r"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac + fi + deplibs="$deplibs $arg" + continue + ;; + + -module) + module=yes + continue + ;; + + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + # Darwin uses the -arch flag to determine output architecture. + -model|-arch|-isysroot) + compiler_flags="$compiler_flags $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + prev=xcompiler + continue + ;; + + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + compiler_flags="$compiler_flags $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + case "$new_inherited_linker_flags " in + *" $arg "*) ;; + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; + esac + continue + ;; + + -multi_module) + single_module="${wl}-multi_module" + continue + ;; + + -no-fast-install) + fast_install=no + continue + ;; + + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) + # The PATH hackery in wrapper scripts is required on Windows + # and Darwin in order for the loader to find any dlls it needs. + func_warning "\`-no-install' is ignored for $host" + func_warning "assuming \`-no-fast-install' instead" + fast_install=no + ;; + *) no_install=yes ;; + esac + continue + ;; + + -no-undefined) + allow_undefined=no + continue + ;; + + -objectlist) + prev=objectlist + continue + ;; + + -o) prev=output ;; + + -precious-files-regex) + prev=precious_regex + continue + ;; + + -release) + prev=release + continue + ;; + + -rpath) + prev=rpath + continue + ;; + + -R) + prev=xrpath + continue + ;; + + -R*) + func_stripname '-R' '' "$arg" + dir=$func_stripname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + continue + ;; + + -shared) + # The effects of -shared are defined in a previous loop. + continue + ;; + + -shrext) + prev=shrext + continue + ;; + + -static | -static-libtool-libs) + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. + continue + ;; + + -thread-safe) + thread_safe=yes + continue + ;; + + -version-info) + prev=vinfo + continue + ;; + + -version-number) + prev=vinfo + vinfo_number=yes + continue + ;; + + -weak) + prev=weak + continue + ;; + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + arg="$arg $wl$func_quote_for_eval_result" + compiler_flags="$compiler_flags $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + arg="$arg $wl$func_quote_for_eval_result" + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" + linker_flags="$linker_flags $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Xcompiler) + prev=xcompiler + continue + ;; + + -Xlinker) + prev=xlinker + continue + ;; + + -XCClinker) + prev=xcclinker + continue + ;; + + # -msg_* for osf cc + -msg_*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler + # -r[0-9][0-9]* specifies the processor on the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler + # +DA*, +DD* enable 64-bit mode on the HP compiler + # -q* pass through compiler args for the IBM compiler + # -m*, -t[45]*, -txscale* pass through architecture-specific + # compiler args for GCC + # -F/path gives path to uninstalled frameworks, gcc on darwin + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC + # @file GCC response files + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + func_append compile_command " $arg" + func_append finalize_command " $arg" + compiler_flags="$compiler_flags $arg" + continue + ;; + + # Some other compiler flag. + -* | +*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + + *.$objext) + # A standard object. + objs="$objs $arg" + ;; + + *.lo) + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + ;; + + *.$libext) + # An archive. + deplibs="$deplibs $arg" + old_deplibs="$old_deplibs $arg" + continue + ;; + + *.la) + # A libtool-controlled library. + + if test "$prev" = dlfiles; then + # This library was specified with -dlopen. + dlfiles="$dlfiles $arg" + prev= + elif test "$prev" = dlprefiles; then + # The library was specified with -dlpreopen. + dlprefiles="$dlprefiles $arg" + prev= + else + deplibs="$deplibs $arg" + fi + continue + ;; + + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + esac # arg + + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + done # argument parsing loop + + test -n "$prev" && \ + func_fatal_help "the \`$prevarg' option requires an argument" + + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + + oldlibs= + # calculate the name of the file, without its directory + func_basename "$output" + outputname="$func_basename_result" + libobjs_save="$libobjs" + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` + else + shlib_search_path= + fi + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" + + func_dirname "$output" "/" "" + output_objdir="$func_dirname_result$objdir" + # Create the object directory. + func_mkdir_p "$output_objdir" + + # Determine the type of output + case $output in + "") + func_fatal_help "you must specify an output file" + ;; + *.$libext) linkmode=oldlib ;; + *.lo | *.$objext) linkmode=obj ;; + *.la) linkmode=lib ;; + *) linkmode=prog ;; # Anything else should be a program. + esac + + specialdeplibs= + + libs= + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if $opt_duplicate_deps ; then + case "$libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + libs="$libs $deplib" + done + + if test "$linkmode" = lib; then + libs="$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps= + if $opt_duplicate_compiler_generated_deps; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; + esac + pre_post_deps="$pre_post_deps $pre_post_dep" + done + fi + pre_post_deps= + fi + + deplibs= + newdependency_libs= + newlib_search_path= + need_relink=no # whether we're linking any uninstalled libtool libraries + notinst_deplibs= # not-installed libtool libraries + notinst_path= # paths that contain not-installed libtool libraries + + case $linkmode in + lib) + passes="conv dlpreopen link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; + *) + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" + ;; + esac + done + ;; + prog) + compile_deplibs= + finalize_deplibs= + alldeplibs=no + newdlfiles= + newdlprefiles= + passes="conv scan dlopen dlpreopen link" + ;; + *) passes="conv" + ;; + esac + + for pass in $passes; do + # The preopen pass in lib mode reverses $deplibs; put it back here + # so that -L comes before libs that need it for instance... + if test "$linkmode,$pass" = "lib,link"; then + ## FIXME: Find the place where the list is rebuilt in the wrong + ## order, and fix it there properly + tmp_deplibs= + for deplib in $deplibs; do + tmp_deplibs="$deplib $tmp_deplibs" + done + deplibs="$tmp_deplibs" + fi + + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan"; then + libs="$deplibs" + deplibs= + fi + if test "$linkmode" = prog; then + case $pass in + dlopen) libs="$dlfiles" ;; + dlpreopen) libs="$dlprefiles" ;; + link) + libs="$deplibs %DEPLIBS%" + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs" + ;; + esac + fi + if test "$linkmode,$pass" = "lib,dlpreopen"; then + # Collect and forward deplibs of preopened libtool libs + for lib in $dlprefiles; do + # Ignore non-libtool-libs + dependency_libs= + case $lib in + *.la) func_source "$lib" ;; + esac + + # Collect preopened libtool deplibs, except any this library + # has declared as weak libs + for deplib in $dependency_libs; do + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` + case " $weak_libs " in + *" $deplib_base "*) ;; + *) deplibs="$deplibs $deplib" ;; + esac + done + done + libs="$dlprefiles" + fi + if test "$pass" = dlopen; then + # Collect dlpreopened libraries + save_deplibs="$deplibs" + deplibs= + fi + + for deplib in $libs; do + lib= + found=no + case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + compiler_flags="$compiler_flags $deplib" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + esac + fi + fi + continue + ;; + -l*) + if test "$linkmode" != lib && test "$linkmode" != prog; then + func_warning "\`-l' is ignored for archives/objects" + continue + fi + func_stripname '-l' '' "$deplib" + name=$func_stripname_result + if test "$linkmode" = lib; then + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" + else + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" + fi + for searchdir in $searchdirs; do + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib="$searchdir/lib${name}${search_ext}" + if test -f "$lib"; then + if test "$search_ext" = ".la"; then + found=yes + else + found=no + fi + break 2 + fi + done + done + if test "$found" != yes; then + # deplib doesn't seem to be a libtool library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + else # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, + # We need to do some special things here, and not later. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $deplib "*) + if func_lalib_p "$lib"; then + library_names= + old_library= + func_source "$lib" + for l in $old_library $library_names; do + ll="$l" + done + if test "X$ll" = "X$old_library" ; then # only static version available + found=no + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + lib=$ladir/$old_library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi + fi + ;; # -l + *.ltframework) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + esac + fi + fi + continue + ;; + -L*) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test "$pass" = conv && continue + newdependency_libs="$deplib $newdependency_libs" + func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + prog) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + if test "$pass" = scan; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + *) + func_warning "\`-L' is ignored for archives/objects" + ;; + esac # linkmode + continue + ;; # -L + -R*) + if test "$pass" = link; then + func_stripname '-R' '' "$deplib" + dir=$func_stripname_result + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + fi + deplibs="$deplib $deplibs" + continue + ;; + *.la) lib="$deplib" ;; + *.$libext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + case $linkmode in + lib) + # Linking convenience modules into shared libraries is allowed, + # but linking other static libraries is non-portable. + case " $dlpreconveniencelibs " in + *" $deplib "*) ;; + *) + valid_a_lib=no + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=yes + fi + ;; + pass_all) + valid_a_lib=yes + ;; + esac + if test "$valid_a_lib" != yes; then + $ECHO + $ECHO "*** Warning: Trying to link with static lib archive $deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because the file extensions .$libext of this argument makes me believe" + $ECHO "*** that it is just a static archive that I should not use here." + else + $ECHO + $ECHO "*** Warning: Linking the shared library $output against the" + $ECHO "*** static library $deplib is not portable!" + deplibs="$deplib $deplibs" + fi + ;; + esac + continue + ;; + prog) + if test "$pass" != link; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + elif test "$linkmode" = prog; then + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles="$newdlprefiles $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + newdlfiles="$newdlfiles $deplib" + fi + fi + continue + ;; + %DEPLIBS%) + alldeplibs=yes + continue + ;; + esac # case $deplib + + if test "$found" = yes || test -f "$lib"; then : + else + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" + fi + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$lib" \ + || func_fatal_error "\`$lib' is not a valid libtool archive" + + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + + dlname= + dlopen= + dlpreopen= + libdir= + library_names= + old_library= + inherited_linker_flags= + # If the library was installed with an old release of libtool, + # it will not redefine variables installed, or shouldnotlink + installed=yes + shouldnotlink=no + avoidtemprpath= + + + # Read the .la file + func_source "$lib" + + # Convert "-framework foo" to "foo.ltframework" + if test -n "$inherited_linker_flags"; then + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do + case " $new_inherited_linker_flags " in + *" $tmp_inherited_linker_flag "*) ;; + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; + esac + done + fi + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan" || + { test "$linkmode" != prog && test "$linkmode" != lib; }; then + test -n "$dlopen" && dlfiles="$dlfiles $dlopen" + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" + fi + + if test "$pass" = conv; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + # It is a libtool convenience library, so add in its objects. + convenience="$convenience $ladir/$objdir/$old_library" + old_convenience="$old_convenience $ladir/$objdir/$old_library" + tmp_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + elif test "$linkmode" != prog && test "$linkmode" != lib; then + func_fatal_error "\`$lib' is not a convenience library" + fi + continue + fi # $pass = conv + + + # Get the name of the library we link against. + linklib= + for l in $old_library $library_names; do + linklib="$l" + done + if test -z "$linklib"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + + # This library was specified with -dlopen. + if test "$pass" = dlopen; then + if test -z "$libdir"; then + func_fatal_error "cannot -dlopen a convenience library: \`$lib'" + fi + if test -z "$dlname" || + test "$dlopen_support" != yes || + test "$build_libtool_libs" = no; then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + dlprefiles="$dlprefiles $lib $dependency_libs" + else + newdlfiles="$newdlfiles $lib" + fi + continue + fi # $pass = dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; + *) + abs_ladir=`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + func_warning "cannot determine absolute directory name of \`$ladir'" + func_warning "passing it literally to the linker, although it might fail" + abs_ladir="$ladir" + fi + ;; + esac + func_basename "$lib" + laname="$func_basename_result" + + # Find the relevant object directory and library name. + if test "X$installed" = Xyes; then + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + func_warning "library \`$lib' was moved." + dir="$ladir" + absdir="$abs_ladir" + libdir="$abs_ladir" + else + dir="$libdir" + absdir="$libdir" + fi + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes + else + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then + dir="$ladir" + absdir="$abs_ladir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + else + dir="$ladir/$objdir" + absdir="$abs_ladir/$objdir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + fi + fi # $installed = yes + func_stripname 'lib' '.la' "$laname" + name=$func_stripname_result + + # This library was specified with -dlpreopen. + if test "$pass" = dlpreopen; then + if test -z "$libdir" && test "$linkmode" = prog; then + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" + fi + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + newdlprefiles="$newdlprefiles $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + newdlprefiles="$newdlprefiles $dir/$dlname" + else + newdlprefiles="$newdlprefiles $dir/$linklib" + fi + fi # $pass = dlpreopen + + if test -z "$libdir"; then + # Link the convenience library + if test "$linkmode" = lib; then + deplibs="$dir/$old_library $deplibs" + elif test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$dir/$old_library $compile_deplibs" + finalize_deplibs="$dir/$old_library $finalize_deplibs" + else + deplibs="$lib $deplibs" # used for prog,scan pass + fi + continue + fi + + + if test "$linkmode" = prog && test "$pass" != link; then + newlib_search_path="$newlib_search_path $ladir" + deplibs="$lib $deplibs" + + linkalldeplibs=no + if test "$link_all_deplibs" != no || test -z "$library_names" || + test "$build_libtool_libs" = no; then + linkalldeplibs=yes + fi + + tmp_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + esac + # Need to link against all dependency_libs? + if test "$linkalldeplibs" = yes; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs="$deplib $newdependency_libs" + fi + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done # for deplib + continue + fi # $linkmode = prog... + + if test "$linkmode,$pass" = "prog,link"; then + if test -n "$library_names" && + { { test "$prefer_static_libs" = no || + test "$prefer_static_libs,$installed" = "built,yes"; } || + test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath:" in + *"$absdir:"*) ;; + *) temp_rpath="$temp_rpath$absdir:" ;; + esac + fi + + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi # $linkmode,$pass = prog,link... + + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + fi + + link_static=no # Whether the deplib will be linked statically + use_static_libs=$prefer_static_libs + if test "$use_static_libs" = built && test "$installed" = yes; then + use_static_libs=no + fi + if test -n "$library_names" && + { test "$use_static_libs" = no || test -z "$old_library"; }; then + case $host in + *cygwin* | *mingw* | *cegcc*) + # No point in relinking DLLs because paths are not encoded + notinst_deplibs="$notinst_deplibs $lib" + need_relink=no + ;; + *) + if test "$installed" = no; then + notinst_deplibs="$notinst_deplibs $lib" + need_relink=yes + fi + ;; + esac + # This is a shared library + + # Warn about portability, can't link against -module's on some + # systems (darwin). Don't bleat about dlopened modules though! + dlopenmodule="" + for dlpremoduletest in $dlprefiles; do + if test "X$dlpremoduletest" = "X$lib"; then + dlopenmodule="$dlpremoduletest" + break + fi + done + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then + $ECHO + if test "$linkmode" = prog; then + $ECHO "*** Warning: Linking the executable $output against the loadable module" + else + $ECHO "*** Warning: Linking the shared library $output against the loadable module" + fi + $ECHO "*** $linklib is not portable!" + fi + if test "$linkmode" = lib && + test "$hardcode_into_libs" = yes; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + shift + realname="$1" + shift + libname=`eval "\\$ECHO \"$libname_spec\""` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname="$dlname" + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin* | mingw* | *cegcc*) + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + esac + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + + # Make a new name for the extract_expsyms_cmds to use + soroot="$soname" + func_basename "$soroot" + soname="$func_basename_result" + func_stripname 'lib' '.dll' "$soname" + newlib=libimp-$func_stripname_result.a + + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + func_verbose "extracting exported symbol list from \`$soname'" + func_execute_cmds "$extract_expsyms_cmds" 'exit $?' + fi + + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + func_verbose "generating import library for \`$soname'" + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' + fi + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib + fi # test -n "$old_archive_from_expsyms_cmds" + + if test "$linkmode" = prog || test "$mode" != relink; then + add_shlibpath= + add_dir= + add= + lib_linked=yes + case $hardcode_action in + immediate | unsupported) + if test "$hardcode_direct" = no; then + add="$dir/$linklib" + case $host in + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; + *-*-sysv4*uw2*) add_dir="-L$dir" ;; + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ + *-*-unixware7*) add_dir="-L$dir" ;; + *-*-darwin* ) + # if the lib is a (non-dlopened) module then we can not + # link against it, someone is ignoring the earlier warnings + if /usr/bin/file -L $add 2> /dev/null | + $GREP ": [^:]* bundle" >/dev/null ; then + if test "X$dlopenmodule" != "X$lib"; then + $ECHO "*** Warning: lib $linklib is a module, not a shared library" + if test -z "$old_library" ; then + $ECHO + $ECHO "*** And there doesn't seem to be a static archive available" + $ECHO "*** The link will probably fail, sorry" + else + add="$dir/$old_library" + fi + elif test -n "$old_library"; then + add="$dir/$old_library" + fi + fi + esac + elif test "$hardcode_minus_L" = no; then + case $host in + *-*-sunos*) add_shlibpath="$dir" ;; + esac + add_dir="-L$dir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = no; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + relink) + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$dir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + *) lib_linked=no ;; + esac + + if test "$lib_linked" != yes; then + func_fatal_configuration "unsupported hardcode properties" + fi + + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; + esac + fi + if test "$linkmode" = prog; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + if test "$hardcode_direct" != yes && + test "$hardcode_minus_L" != yes && + test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + fi + fi + fi + + if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + add="-l$name" + elif test "$hardcode_automatic" = yes; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib" ; then + add="$inst_prefix_dir$libdir/$linklib" + else + add="$libdir/$linklib" + fi + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir="-L$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + fi + + if test "$linkmode" = prog; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi + fi + elif test "$linkmode" = prog; then + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test "$hardcode_direct" != unsupported; then + test -n "$old_library" && linklib="$old_library" + compile_deplibs="$dir/$linklib $compile_deplibs" + finalize_deplibs="$dir/$linklib $finalize_deplibs" + else + compile_deplibs="-l$name -L$dir $compile_deplibs" + finalize_deplibs="-l$name -L$dir $finalize_deplibs" + fi + elif test "$build_libtool_libs" = yes; then + # Not a shared library + if test "$deplibs_check_method" != pass_all; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + $ECHO + $ECHO "*** Warning: This system can not link to static lib archive $lib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have." + if test "$module" = yes; then + $ECHO "*** But as you try to build a module library, libtool will still create " + $ECHO "*** a static module, that should work as long as the dlopening application" + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." + if test -z "$global_symbol_pipe"; then + $ECHO + $ECHO "*** However, this would only work if libtool was able to extract symbol" + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" + $ECHO "*** not find such a program. So, this module is probably useless." + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + else + deplibs="$dir/$old_library $deplibs" + link_static=yes + fi + fi # link shared/static library? + + if test "$linkmode" = lib; then + if test -n "$dependency_libs" && + { test "$hardcode_into_libs" != yes || + test "$build_old_libs" = yes || + test "$link_static" = yes; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do + case $libdir in + -R*) func_stripname '-R' '' "$libdir" + temp_xrpath=$func_stripname_result + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) xrpath="$xrpath $temp_xrpath";; + esac;; + *) temp_deplibs="$temp_deplibs $libdir";; + esac + done + dependency_libs="$temp_deplibs" + fi + + newlib_search_path="$newlib_search_path $absdir" + # Link against this library + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" + # ... and its dependency_libs + tmp_libs= + for deplib in $dependency_libs; do + newdependency_libs="$deplib $newdependency_libs" + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + + if test "$link_all_deplibs" != no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + path= + case $deplib in + -L*) path="$deplib" ;; + *.la) + func_dirname "$deplib" "" "." + dir="$func_dirname_result" + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + func_warning "cannot determine absolute directory name of \`$dir'" + absdir="$dir" + fi + ;; + esac + if $GREP "^installed=no" $deplib > /dev/null; then + case $host in + *-*-darwin*) + depdepl= + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` + if test -n "$deplibrary_names" ; then + for tmp in $deplibrary_names ; do + depdepl=$tmp + done + if test -f "$absdir/$objdir/$depdepl" ; then + depdepl="$absdir/$objdir/$depdepl" + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + if test -z "$darwin_install_name"; then + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + fi + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" + path= + fi + fi + ;; + *) + path="-L$absdir/$objdir" + ;; + esac + else + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + test "$absdir" != "$libdir" && \ + func_warning "\`$deplib' seems to be moved" + + path="-L$absdir" + fi + ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs="$path $deplibs" ;; + esac + done + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs + if test "$pass" = link; then + if test "$linkmode" = "prog"; then + compile_deplibs="$new_inherited_linker_flags $compile_deplibs" + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" + else + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + fi + fi + dependency_libs="$newdependency_libs" + if test "$pass" = dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi + if test "$pass" != dlopen; then + if test "$pass" != conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) lib_search_path="$lib_search_path $dir" ;; + esac + done + newlib_search_path= + fi + + if test "$linkmode,$pass" != "prog,link"; then + vars="deplibs" + else + vars="compile_deplibs finalize_deplibs" + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=\"\$$var\" + new_libs= + for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs="$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: + case $deplib in + -L*) new_libs="$deplib $new_libs" ;; + -R*) ;; + *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. + case " $specialdeplibs " in + *" $deplib "*) new_libs="$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs= + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + done + eval $var=\"$tmp_libs\" + done # for var + fi + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs= + for i in $dependency_libs ; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i="" + ;; + esac + if test -n "$i" ; then + tmp_libs="$tmp_libs $i" + fi + done + dependency_libs=$tmp_libs + done # for pass + if test "$linkmode" = prog; then + dlfiles="$newdlfiles" + fi + if test "$linkmode" = prog || test "$linkmode" = lib; then + dlprefiles="$newdlprefiles" + fi + + case $linkmode in + oldlib) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for archives" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for archives" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for archives" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for archives" + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for archives" + + test -n "$release" && \ + func_warning "\`-release' is ignored for archives" + + test -n "$export_symbols$export_symbols_regex" && \ + func_warning "\`-export-symbols' is ignored for archives" + + # Now set the variables for building old libraries. + build_libtool_libs=no + oldlibs="$output" + objs="$objs$old_deplibs" + ;; + + lib) + # Make sure we only generate libraries of the form `libNAME.la'. + case $outputname in + lib*) + func_stripname 'lib' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + ;; + *) + test "$module" = no && \ + func_fatal_help "libtool library \`$output' must begin with \`lib'" + + if test "$need_lib_prefix" != no; then + # Add the "lib" prefix for modules if required + func_stripname '' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + else + func_stripname '' '.la' "$outputname" + libname=$func_stripname_result + fi + ;; + esac + + if test -n "$objs"; then + if test "$deplibs_check_method" != pass_all; then + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" + else + $ECHO + $ECHO "*** Warning: Linking the shared library $output against the non-libtool" + $ECHO "*** objects $objs is not portable!" + libobjs="$libobjs $objs" + fi + fi + + test "$dlself" != no && \ + func_warning "\`-dlopen self' is ignored for libtool libraries" + + set dummy $rpath + shift + test "$#" -gt 1 && \ + func_warning "ignoring multiple \`-rpath's for a libtool library" + + install_libdir="$1" + + oldlibs= + if test -z "$rpath"; then + if test "$build_libtool_libs" = yes; then + # Building a libtool convenience library. + # Some compilers have problems with a `.al' extension so + # convenience libraries should have the same extension an + # archive normally would. + oldlibs="$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=convenience + build_old_libs=yes + fi + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for convenience libraries" + + test -n "$release" && \ + func_warning "\`-release' is ignored for convenience libraries" + else + + # Parse the version information argument. + save_ifs="$IFS"; IFS=':' + set dummy $vinfo 0 0 0 + shift + IFS="$save_ifs" + + test -n "$7" && \ + func_fatal_help "too many parameters to \`-version-info'" + + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major="$1" + number_minor="$2" + number_revision="$3" + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # which has an extra 1 added just for fun + # + case $version_type in + darwin|linux|osf|windows|none) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_revision" + ;; + freebsd-aout|freebsd-elf|sunos) + current="$number_major" + revision="$number_minor" + age="0" + ;; + irix|nonstopux) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_minor" + lt_irix_increment=no + ;; + *) + func_fatal_configuration "$modename: unknown library version type \`$version_type'" + ;; + esac + ;; + no) + current="$1" + revision="$2" + age="$3" + ;; + esac + + # Check that each of the things are valid numbers. + case $current in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "CURRENT \`$current' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $revision in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "REVISION \`$revision' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $age in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "AGE \`$age' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + if test "$age" -gt "$current"; then + func_error "AGE \`$age' is greater than the current interface number \`$current'" + func_fatal_error "\`$vinfo' is not valid version information" + fi + + # Calculate the version variables. + major= + versuffix= + verstring= + case $version_type in + none) ;; + + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + # Darwin ld doesn't like 0 for these options... + func_arith $current + 1 + minor_current=$func_arith_result + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + ;; + + freebsd-aout) + major=".$current" + versuffix=".$current.$revision"; + ;; + + freebsd-elf) + major=".$current" + versuffix=".$current" + ;; + + irix | nonstopux) + if test "X$lt_irix_increment" = "Xno"; then + func_arith $current - $age + else + func_arith $current - $age + 1 + fi + major=$func_arith_result + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring="$verstring_prefix$major.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$revision + while test "$loop" -ne 0; do + func_arith $revision - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring_prefix$major.$iface:$verstring" + done + + # Before this point, $major must not contain `.'. + major=.$major + versuffix="$major.$revision" + ;; + + linux) + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + ;; + + osf) + func_arith $current - $age + major=.$func_arith_result + versuffix=".$current.$age.$revision" + verstring="$current.$age.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$age + while test "$loop" -ne 0; do + func_arith $current - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring:${iface}.0" + done + + # Make executables depend on our current version. + verstring="$verstring:${current}.0" + ;; + + qnx) + major=".$current" + versuffix=".$current" + ;; + + sunos) + major=".$current" + versuffix=".$current.$revision" + ;; + + windows) + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 filesystems. + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + + *) + func_fatal_configuration "unknown library version type \`$version_type'" + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major= + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring= + ;; + *) + verstring="0.0" + ;; + esac + if test "$need_version" = no; then + versuffix= + else + versuffix=".0.0" + fi + fi + + # Remove version info from name if versioning should be avoided + if test "$avoid_version" = yes && test "$need_version" = no; then + major= + versuffix= + verstring="" + fi + + # Check to see if the archive will have undefined symbols. + if test "$allow_undefined" = yes; then + if test "$allow_undefined_flag" = unsupported; then + func_warning "undefined symbols not allowed in $host shared libraries" + build_libtool_libs=no + build_old_libs=yes + fi + else + # Don't allow undefined symbols. + allow_undefined_flag="$no_undefined_flag" + fi + + fi + + func_generate_dlsyms "$libname" "$libname" "yes" + libobjs="$libobjs $symfileobj" + test "X$libobjs" = "X " && libobjs= + + if test "$mode" != relink; then + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist= + tempremovelist=`$ECHO "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext | *.gcno) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) + if test "X$precious_files_regex" != "X"; then + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + removelist="$removelist $p" + ;; + *) ;; + esac + done + test -n "$removelist" && \ + func_show_eval "${RM}r \$removelist" + fi + + # Now set the variables for building old libraries. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then + oldlibs="$oldlibs $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` + fi + + # Eliminate all temporary directories. + #for path in $notinst_path; do + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` + #done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath= + for libdir in $xrpath; do + temp_xrpath="$temp_xrpath -R$libdir" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpreopened + old_dlfiles="$dlfiles" + dlfiles= + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) dlfiles="$dlfiles $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles="$dlprefiles" + dlprefiles= + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) dlprefiles="$dlprefiles $lib" ;; + esac + done + + if test "$build_libtool_libs" = yes; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + deplibs="$deplibs System.ltframework" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test "$build_libtool_need_lc" = "yes"; then + deplibs="$deplibs -lc" + fi + ;; + esac + fi + + # Transform deplibs into only deplibs that can be linked in shared. + name_save=$name + libname_save=$libname + release_save=$release + versuffix_save=$versuffix + major_save=$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release="" + versuffix="" + major="" + newdeplibs= + droppeddeps=no + case $deplibs_check_method in + pass_all) + # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behavior. + newdeplibs=$deplibs + ;; + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $opt_dry_run || $RM conftest.c + cat > conftest.c <<EOF + int main() { return 0; } +EOF + $opt_dry_run || $RM conftest + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then + ldd_output=`ldd conftest` + for i in $deplibs; do + case $i in + -l*) + func_stripname -l '' "$i" + name=$func_stripname_result + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $i "*) + newdeplibs="$newdeplibs $i" + i="" + ;; + esac + fi + if test -n "$i" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` + set dummy $deplib_matches; shift + deplib_match=$1 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then + newdeplibs="$newdeplibs $i" + else + droppeddeps=yes + $ECHO + $ECHO "*** Warning: dynamic linker does not accept needed library $i." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which I believe you do not have" + $ECHO "*** because a test_compile did reveal that the linker did not use it for" + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime." + fi + fi + ;; + *) + newdeplibs="$newdeplibs $i" + ;; + esac + done + else + # Error occurred in the first compile. Let's try to salvage + # the situation: Compile a separate program for each library. + for i in $deplibs; do + case $i in + -l*) + func_stripname -l '' "$i" + name=$func_stripname_result + $opt_dry_run || $RM conftest + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then + ldd_output=`ldd conftest` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $i "*) + newdeplibs="$newdeplibs $i" + i="" + ;; + esac + fi + if test -n "$i" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` + set dummy $deplib_matches; shift + deplib_match=$1 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then + newdeplibs="$newdeplibs $i" + else + droppeddeps=yes + $ECHO + $ECHO "*** Warning: dynamic linker does not accept needed library $i." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because a test_compile did reveal that the linker did not use this one" + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime." + fi + fi + else + droppeddeps=yes + $ECHO + $ECHO "*** Warning! Library $i is needed by this library but I was not able to" + $ECHO "*** make it link in! You will probably need to install it or some" + $ECHO "*** library that it depends on before this library will be fully" + $ECHO "*** functional. Installing it before continuing would be even better." + fi + ;; + *) + newdeplibs="$newdeplibs $i" + ;; + esac + done + fi + ;; + file_magic*) + set dummy $deplibs_check_method; shift + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + for a_deplib in $deplibs; do + case $a_deplib in + -l*) + func_stripname -l '' "$a_deplib" + name=$func_stripname_result + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potent_lib" 2>/dev/null | + $GREP " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib="$potent_lib" + while test -h "$potlib" 2>/dev/null; do + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` + case $potliblink in + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; + esac + done + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | + $SED -e 10q | + $EGREP "$file_magic_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $ECHO + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for file magic test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a file magic. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + for a_deplib in $deplibs; do + case $a_deplib in + -l*) + func_stripname -l '' "$a_deplib" + name=$func_stripname_result + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib="$potent_lib" # see symlink-check above in file_magic test + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ + $EGREP "$match_pattern_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $ECHO + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a regex pattern. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + none | unknown | *) + newdeplibs="" + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + for i in $predeps $postdeps ; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` + done + fi + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | + $GREP . >/dev/null; then + $ECHO + if test "X$deplibs_check_method" = "Xnone"; then + $ECHO "*** Warning: inter-library dependencies are not supported in this platform." + else + $ECHO "*** Warning: inter-library dependencies are not known to be supported." + fi + $ECHO "*** All declared inter-library dependencies are being dropped." + droppeddeps=yes + fi + ;; + esac + versuffix=$versuffix_save + major=$major_save + release=$release_save + libname=$libname_save + name=$name_save + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library with the System framework + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + ;; + esac + + if test "$droppeddeps" = yes; then + if test "$module" = yes; then + $ECHO + $ECHO "*** Warning: libtool could not satisfy all declared inter-library" + $ECHO "*** dependencies of module $libname. Therefore, libtool will create" + $ECHO "*** a static module, that should work as long as the dlopening" + $ECHO "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + $ECHO + $ECHO "*** However, this would only work if libtool was able to extract symbol" + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" + $ECHO "*** not find such a program. So, this module is probably useless." + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + else + $ECHO "*** The inter-library dependencies that have been dropped here will be" + $ECHO "*** automatically added whenever a program is linked with this library" + $ECHO "*** or is declared to -dlopen it." + + if test "$allow_undefined" = no; then + $ECHO + $ECHO "*** Since this library must not contain undefined symbols," + $ECHO "*** because either the platform does not support them or" + $ECHO "*** it was explicitly requested with -no-undefined," + $ECHO "*** libtool will only create a static version of it." + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + fi + fi + # Done checking deplibs! + deplibs=$newdeplibs + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + case $host in + *-*-darwin*) + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; + esac + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + deplibs="$new_libs" + + # All the library-specific variables (install_libdir is set above). + library_names= + old_library= + dlname= + + # Test again, we may have decided not to build it any more + if test "$build_libtool_libs" = yes; then + if test "$hardcode_into_libs" = yes; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= + rpath="$finalize_rpath" + test "$mode" != relink && rpath="$compile_rpath$rpath" + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + dep_rpath="$dep_rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + if test -n "$hardcode_libdir_flag_spec_ld"; then + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" + else + eval dep_rpath=\"$hardcode_libdir_flag_spec\" + fi + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" + fi + + shlibpath="$finalize_shlibpath" + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" + if test -n "$shlibpath"; then + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" + fi + + # Get the real and link names of the library. + eval shared_ext=\"$shrext_cmds\" + eval library_names=\"$library_names_spec\" + set dummy $library_names + shift + realname="$1" + shift + + if test -n "$soname_spec"; then + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + if test -z "$dlname"; then + dlname=$soname + fi + + lib="$output_objdir/$realname" + linknames= + for link + do + linknames="$linknames $link" + done + + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + test "X$libobjs" = "X " && libobjs= + + delfiles= + if test -n "$export_symbols" && test -n "$include_expsyms"; then + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" + export_symbols="$output_objdir/$libname.uexp" + delfiles="$delfiles $export_symbols" + fi + + orig_export_symbols= + case $host_os in + cygwin* | mingw* | cegcc*) + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then + # exporting using user supplied symfile + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then + # and it's NOT already a .def file. Must figure out + # which of the given symbols are data symbols and tag + # them as such. So, trigger use of export_symbols_cmds. + # export_symbols gets reassigned inside the "prepare + # the list of exported symbols" if statement, so the + # include_expsyms logic still works. + orig_export_symbols="$export_symbols" + export_symbols= + always_export_symbols=yes + fi + fi + ;; + esac + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + cmds=$export_symbols_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + func_len " $cmd" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + func_show_eval "$cmd" 'exit $?' + skipped_export=false + else + # The command line is too long to execute in one step. + func_verbose "using reloadable object file for export list..." + skipped_export=: + # Break out early, otherwise skipped_export may be + # set to false by a later but shorter cmd. + break + fi + done + IFS="$save_ifs" + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + fi + + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + fi + + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + + tmp_deplibs= + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + tmp_deplibs="$tmp_deplibs $test_deplib" + ;; + esac + done + deplibs="$tmp_deplibs" + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec" && + test "$compiler_needs_object" = yes && + test -z "$libobjs"; then + # extract the archives, so we have objects to list. + # TODO: could optimize this to just extract one archive. + whole_archive_flag_spec= + fi + if test -n "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + else + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $convenience + libobjs="$libobjs $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + fi + + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then + eval flag=\"$thread_safe_flag_spec\" + linker_flags="$linker_flags $flag" + fi + + # Make a backup of the uninstalled library when relinking + if test "$mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? + fi + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=\"$module_expsym_cmds\" + cmds=$module_expsym_cmds + else + eval test_cmds=\"$module_cmds\" + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=\"$archive_expsym_cmds\" + cmds=$archive_expsym_cmds + else + eval test_cmds=\"$archive_cmds\" + cmds=$archive_cmds + fi + fi + + if test "X$skipped_export" != "X:" && + func_len " $test_cmds" && + len=$func_len_result && + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise + # or, if using GNU ld and skipped_export is not :, use a linker + # script. + + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + fi + save_output=$output + output_la=`$ECHO "X$output" | $Xsed -e "$basename"` + + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds= + concat_cmds= + objlist= + last_robj= + k=1 + + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then + output=${output_objdir}/${output_la}.lnkscript + func_verbose "creating GNU ld script: $output" + $ECHO 'INPUT (' > $output + for obj in $save_libobjs + do + $ECHO "$obj" >> $output + done + $ECHO ')' >> $output + delfiles="$delfiles $output" + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then + output=${output_objdir}/${output_la}.lnk + func_verbose "creating linker input file list: $output" + : > $output + set x $save_libobjs + shift + firstobj= + if test "$compiler_needs_object" = yes; then + firstobj="$1 " + shift + fi + for obj + do + $ECHO "$obj" >> $output + done + delfiles="$delfiles $output" + output=$firstobj\"$file_list_spec$output\" + else + if test -n "$save_libobjs"; then + func_verbose "creating reloadable object files..." + output=$output_objdir/$output_la-${k}.$objext + eval test_cmds=\"$reload_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + if test "X$objlist" = X || + test "$len" -lt "$max_cmd_len"; then + func_append objlist " $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test "$k" -eq 1 ; then + # The first file doesn't have a previous command to add. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\" + else + # All subsequent reloadable object files will link in + # the last one created. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" + fi + last_robj=$output_objdir/$output_la-${k}.$objext + func_arith $k + 1 + k=$func_arith_result + output=$output_objdir/$output_la-${k}.$objext + objlist=$obj + func_len " $last_robj" + func_arith $len0 + $func_len_result + len=$func_arith_result + fi + done + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" + if test -n "$last_robj"; then + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" + fi + delfiles="$delfiles $output" + + else + output= + fi + + if ${skipped_export-false}; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + libobjs=$output + # Append the command to create the export file. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" + fi + fi + + test -n "$save_libobjs" && + func_verbose "creating a temporary reloadable object file: $output" + + # Loop through the commands generated above and execute them. + save_ifs="$IFS"; IFS='~' + for cmd in $concat_cmds; do + IFS="$save_ifs" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + + if test -n "$export_symbols_regex" && ${skipped_export-false}; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + + if ${skipped_export-false}; then + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + fi + + if test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + fi + + libobjs=$output + # Restore the value of output. + output=$save_output + + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=$module_expsym_cmds + else + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + cmds=$archive_expsym_cmds + else + cmds=$archive_cmds + fi + fi + fi + + if test -n "$delfiles"; then + # Append the command to remove temporary files to $cmds. + eval cmds=\"\$cmds~\$RM $delfiles\" + fi + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $dlprefiles + libobjs="$libobjs $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? + + if test -n "$convenience"; then + if test -z "$whole_archive_flag_spec"; then + func_show_eval '${RM}r "$gentop"' + fi + fi + + exit $EXIT_SUCCESS + fi + + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" != "$linkname"; then + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' + fi + done + + # If -module or -export-dynamic was specified, set the dlname. + if test "$module" = yes || test "$export_dynamic" = yes; then + # On all known operating systems, these are identical. + dlname="$soname" + fi + fi + ;; + + obj) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for objects" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for objects" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for objects" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for objects" + + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for objects" + + test -n "$release" && \ + func_warning "\`-release' is ignored for objects" + + case $output in + *.lo) + test -n "$objs$old_deplibs" && \ + func_fatal_error "cannot build library object \`$output' from non-libtool objects" + + libobj=$output + func_lo2o "$libobj" + obj=$func_lo2o_result + ;; + *) + libobj= + obj="$output" + ;; + esac + + # Delete the old objects. + $opt_dry_run || $RM $obj $libobj + + # Objects from convenience libraries. This assumes + # single-version convenience libraries. Whenever we create + # different ones for PIC/non-PIC, this we'll have to duplicate + # the extraction. + reload_conv_objs= + gentop= + # reload_cmds runs $LD directly, so let us get rid of + # -Wl from whole_archive_flag_spec and hope we can get by with + # turning comma into space.. + wl= + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` + else + gentop="$output_objdir/${obj}x" + generated="$generated $gentop" + + func_extract_archives $gentop $convenience + reload_conv_objs="$reload_objs $func_extract_archives_result" + fi + fi + + # Create the old-style object. + reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test + + output="$obj" + func_execute_cmds "$reload_cmds" 'exit $?' + + # Exit if we aren't doing a library object file. + if test -z "$libobj"; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + fi + + if test "$build_libtool_libs" != yes; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + # $show "echo timestamp > $libobj" + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS + fi + + if test -n "$pic_flag" || test "$pic_mode" != default; then + # Only do commands if we really have different PIC objects. + reload_objs="$libobjs $reload_conv_objs" + output="$libobj" + func_execute_cmds "$reload_cmds" 'exit $?' + fi + + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + ;; + + prog) + case $host in + *cygwin*) func_stripname '' '.exe' "$output" + output=$func_stripname_result.exe;; + esac + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for programs" + + test -n "$release" && \ + func_warning "\`-release' is ignored for programs" + + test "$preload" = yes \ + && test "$dlopen_support" = unknown \ + && test "$dlopen_self" = unknown \ + && test "$dlopen_self_static" = unknown && \ + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + ;; + esac + + case $host in + *-*-darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + # But is supposedly fixed on 10.4 or later (yay!). + if test "$tagname" = CXX ; then + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in + 10.[0123]) + compile_command="$compile_command ${wl}-bind_at_load" + finalize_command="$finalize_command ${wl}-bind_at_load" + ;; + esac + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $compile_deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $compile_deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; + esac + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + compile_deplibs="$new_libs" + + + compile_command="$compile_command $compile_deplibs" + finalize_command="$finalize_command $finalize_deplibs" + + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + # This is the magic to use -rpath. + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + fi + + # Now hardcode the library paths + rpath= + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; + ::) dllsearchpath=$libdir;; + *) dllsearchpath="$dllsearchpath:$libdir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) dllsearchpath="$dllsearchpath:$testbindir";; + esac + ;; + esac + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + compile_rpath="$rpath" + + rpath= + hardcode_libdirs= + for libdir in $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + finalize_rpath="$rpath" + + if test -n "$libobjs" && test "$build_old_libs" = yes; then + # Transform all the library objects into standard objects. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + fi + + func_generate_dlsyms "$outputname" "@PROGRAM@" "no" + + # template prelinking step + if test -n "$prelink_cmds"; then + func_execute_cmds "$prelink_cmds" 'exit $?' + fi + + wrappers_required=yes + case $host in + *cygwin* | *mingw* ) + if test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + *cegcc) + # Disable wrappers for cegcc, we are cross compiling anyway. + wrappers_required=no + ;; + *) + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + esac + if test "$wrappers_required" = no; then + # Replace the output file specification. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + link_command="$compile_command$compile_rpath" + + # We have no uninstalled library dependencies, so finalize right now. + exit_status=0 + func_show_eval "$link_command" 'exit_status=$?' + + # Delete the generated files. + if test -f "$output_objdir/${outputname}S.${objext}"; then + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' + fi + + exit $exit_status + fi + + if test -n "$compile_shlibpath$finalize_shlibpath"; then + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" + fi + + compile_var= + finalize_var= + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + compile_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $finalize_perm_rpath; do + rpath="$rpath$dir:" + done + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + fi + + if test "$no_install" = yes; then + # We don't need to create a wrapper script. + link_command="$compile_var$compile_command$compile_rpath" + # Replace the output file specification. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + # Delete the old output file. + $opt_dry_run || $RM $output + # Link the executable and exit + func_show_eval "$link_command" 'exit $?' + exit $EXIT_SUCCESS + fi + + if test "$hardcode_action" = relink; then + # Fast installation is not supported + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + + func_warning "this platform does not like uninstalled shared libraries" + func_warning "\`$output' will be relinked during installation" + else + if test "$fast_install" != no; then + link_command="$finalize_var$compile_command$finalize_rpath" + if test "$fast_install" = yes; then + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` + else + # fast_install is set to needless + relink_command= + fi + else + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + fi + fi + + # Replace the output file specification. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + + # Delete the old output files. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname + + func_show_eval "$link_command" 'exit $?' + + # Now create the wrapper script. + func_verbose "creating $output" + + # Quote the relink command for shipping. + if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + relink_command="(cd `pwd`; $relink_command)" + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` + fi + + # Quote $ECHO for shipping. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then + case $progpath in + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; + esac + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` + else + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` + fi + + # Only actually do things if not in dry run mode. + $opt_dry_run || { + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) func_stripname '' '.exe' "$output" + output=$func_stripname_result ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) + exeext=.exe + func_stripname '' '.exe' "$outputname" + outputname=$func_stripname_result ;; + *) exeext= ;; + esac + case $host in + *cygwin* | *mingw* ) + func_dirname_and_basename "$output" "" "." + output_name=$func_basename_result + output_path=$func_dirname_result + cwrappersource="$output_path/$objdir/lt-$output_name.c" + cwrapper="$output_path/$output_name.exe" + $RM $cwrappersource $cwrapper + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + func_emit_cwrapperexe_src > $cwrappersource + + # The wrapper executable is built using the $host compiler, + # because it contains $host paths and files. If cross- + # compiling, it, like the target executable, must be + # executed on the $host or under an emulation environment. + $opt_dry_run || { + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource + $STRIP $cwrapper + } + + # Now, create the wrapper script for func_source use: + func_ltwrapper_scriptname $cwrapper + $RM $func_ltwrapper_scriptname_result + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 + $opt_dry_run || { + # note: this script will not be executed, so do not chmod. + if test "x$build" = "x$host" ; then + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result + else + func_emit_wrapper no > $func_ltwrapper_scriptname_result + fi + } + ;; + * ) + $RM $output + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 + + func_emit_wrapper no > $output + chmod +x $output + ;; + esac + } + exit $EXIT_SUCCESS + ;; + esac + + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do + + if test "$build_libtool_libs" = convenience; then + oldobjs="$libobjs_save $symfileobj" + addlibs="$convenience" + build_libtool_libs=no + else + if test "$build_libtool_libs" = module; then + oldobjs="$libobjs_save" + build_libtool_libs=no + else + oldobjs="$old_deplibs $non_pic_objects" + if test "$preload" = yes && test -f "$symfileobj"; then + oldobjs="$oldobjs $symfileobj" + fi + fi + addlibs="$old_convenience" + fi + + if test -n "$addlibs"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $addlibs + oldobjs="$oldobjs $func_extract_archives_result" + fi + + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then + cmds=$old_archive_from_new_cmds + else + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $dlprefiles + oldobjs="$oldobjs $func_extract_archives_result" + fi + + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + func_basename "$obj" + $ECHO "$func_basename_result" + done | sort | sort -uc >/dev/null 2>&1); then + : + else + $ECHO "copying selected object files to avoid basename conflicts..." + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + func_mkdir_p "$gentop" + save_oldobjs=$oldobjs + oldobjs= + counter=1 + for obj in $save_oldobjs + do + func_basename "$obj" + objbase="$func_basename_result" + case " $oldobjs " in + " ") oldobjs=$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=lt$counter-$objbase + func_arith $counter + 1 + counter=$func_arith_result + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" + oldobjs="$oldobjs $gentop/$newobj" + ;; + *) oldobjs="$oldobjs $obj" ;; + esac + done + fi + eval cmds=\"$old_archive_cmds\" + + func_len " $cmds" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + func_verbose "using piecewise archive linking..." + save_RANLIB=$RANLIB + RANLIB=: + objlist= + concat_cmds= + save_oldobjs=$oldobjs + oldobjs= + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=$obj + done + eval test_cmds=\"$old_archive_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + for obj in $save_oldobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + func_append objlist " $obj" + if test "$len" -lt "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=$objlist + if test "$obj" = "$last_oldobj" ; then + RANLIB=$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" + objlist= + len=$len0 + fi + done + RANLIB=$save_RANLIB + oldobjs=$objlist + if test "X$oldobjs" = "X" ; then + eval cmds=\"\$concat_cmds\" + else + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + fi + fi + fi + func_execute_cmds "$cmds" 'exit $?' + done + + test -n "$generated" && \ + func_show_eval "${RM}r$generated" + + # Now create the libtool archive. + case $output in + *.la) + old_library= + test "$build_old_libs" = yes && old_library="$libname.$libext" + func_verbose "creating $output" + + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + # Quote the link command for shipping. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` + if test "$hardcode_automatic" = yes ; then + relink_command= + fi + + # Only create the output if not a dry run. + $opt_dry_run || { + for installed in no yes; do + if test "$installed" = yes; then + if test -z "$install_libdir"; then + break + fi + output="$output_objdir/$outputname"i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs= + for deplib in $dependency_libs; do + case $deplib in + *.la) + func_basename "$deplib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + newdependency_libs="$newdependency_libs $libdir/$name" + ;; + *) newdependency_libs="$newdependency_libs $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" + newdlfiles= + + for lib in $dlfiles; do + case $lib in + *.la) + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlfiles="$newdlfiles $libdir/$name" + ;; + *) newdlfiles="$newdlfiles $lib" ;; + esac + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + *.la) + # Only pass preopened files to the pseudo-archive (for + # eventual linking with the app. that links it) if we + # didn't already link the preopened objects directly into + # the library: + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlprefiles="$newdlprefiles $libdir/$name" + ;; + esac + done + dlprefiles="$newdlprefiles" + else + newdlfiles= + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlfiles="$newdlfiles $abs" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlprefiles="$newdlprefiles $abs" + done + dlprefiles="$newdlprefiles" + fi + $RM $output + # place dlname in correct position for cygwin + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + esac + $ECHO > $output "\ +# $outputname - a libtool library file +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='$tdlname' + +# Names of this library. +library_names='$library_names' + +# The name of the static archive. +old_library='$old_library' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='$new_inherited_linker_flags' + +# Libraries that this one depends upon. +dependency_libs='$dependency_libs' + +# Names of additional weak libraries provided by this library +weak_library_names='$weak_libs' + +# Version information for $libname. +current=$current +age=$age +revision=$revision + +# Is this an already installed library? +installed=$installed + +# Should we warn about portability when linking against -modules? +shouldnotlink=$module + +# Files to dlopen/dlpreopen +dlopen='$dlfiles' +dlpreopen='$dlprefiles' + +# Directory that this library needs to be installed in: +libdir='$install_libdir'" + if test "$installed" = no && test "$need_relink" = yes; then + $ECHO >> $output "\ +relink_command=\"$relink_command\"" + fi + done + } + + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' + ;; + esac + exit $EXIT_SUCCESS +} + +{ test "$mode" = link || test "$mode" = relink; } && + func_mode_link ${1+"$@"} + + +# func_mode_uninstall arg... +func_mode_uninstall () +{ + $opt_debug + RM="$nonopt" + files= + rmforce= + exit_status=0 + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + for arg + do + case $arg in + -f) RM="$RM $arg"; rmforce=yes ;; + -*) RM="$RM $arg" ;; + *) files="$files $arg" ;; + esac + done + + test -z "$RM" && \ + func_fatal_help "you must specify an RM program" + + rmdirs= + + origobjdir="$objdir" + for file in $files; do + func_dirname "$file" "" "." + dir="$func_dirname_result" + if test "X$dir" = X.; then + objdir="$origobjdir" + else + objdir="$dir/$origobjdir" + fi + func_basename "$file" + name="$func_basename_result" + test "$mode" = uninstall && objdir="$dir" + + # Remember objdir for removal later, being careful to avoid duplicates + if test "$mode" = clean; then + case " $rmdirs " in + *" $objdir "*) ;; + *) rmdirs="$rmdirs $objdir" ;; + esac + fi + + # Don't error if the file doesn't exist and rm -f was used. + if { test -L "$file"; } >/dev/null 2>&1 || + { test -h "$file"; } >/dev/null 2>&1 || + test -f "$file"; then + : + elif test -d "$file"; then + exit_status=1 + continue + elif test "$rmforce" = yes; then + continue + fi + + rmfiles="$file" + + case $name in + *.la) + # Possibly a libtool archive, so verify it. + if func_lalib_p "$file"; then + func_source $dir/$name + + # Delete the libtool libraries and symlinks. + for n in $library_names; do + rmfiles="$rmfiles $objdir/$n" + done + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" + + case "$mode" in + clean) + case " $library_names " in + # " " in the beginning catches empty $dlname + *" $dlname "*) ;; + *) rmfiles="$rmfiles $objdir/$dlname" ;; + esac + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" + ;; + uninstall) + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' + fi + + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' + fi + # FIXME: should reinstall the best remaining shared library. + ;; + esac + fi + ;; + + *.lo) + # Possibly a libtool object, so verify it. + if func_lalib_p "$file"; then + + # Read the .lo file + func_source $dir/$name + + # Add PIC object to the list of files to remove. + if test -n "$pic_object" && + test "$pic_object" != none; then + rmfiles="$rmfiles $dir/$pic_object" + fi + + # Add non-PIC object to the list of files to remove. + if test -n "$non_pic_object" && + test "$non_pic_object" != none; then + rmfiles="$rmfiles $dir/$non_pic_object" + fi + fi + ;; + + *) + if test "$mode" = clean ; then + noexename=$name + case $file in + *.exe) + func_stripname '' '.exe' "$file" + file=$func_stripname_result + func_stripname '' '.exe' "$name" + noexename=$func_stripname_result + # $file with .exe has already been added to rmfiles, + # add $file without .exe + rmfiles="$rmfiles $file" + ;; + esac + # Do a test to see if this is a libtool program. + if func_ltwrapper_p "$file"; then + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + relink_command= + func_source $func_ltwrapper_scriptname_result + rmfiles="$rmfiles $func_ltwrapper_scriptname_result" + else + relink_command= + func_source $dir/$noexename + fi + + # note $name still contains .exe if it was in $file originally + # as does the version of $file that was added into $rmfiles + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" + if test "$fast_install" = yes && test -n "$relink_command"; then + rmfiles="$rmfiles $objdir/lt-$name" + fi + if test "X$noexename" != "X$name" ; then + rmfiles="$rmfiles $objdir/lt-${noexename}.c" + fi + fi + fi + ;; + esac + func_show_eval "$RM $rmfiles" 'exit_status=1' + done + objdir="$origobjdir" + + # Try to remove the ${objdir}s in the directories where we deleted files + for dir in $rmdirs; do + if test -d "$dir"; then + func_show_eval "rmdir $dir >/dev/null 2>&1" + fi + done + + exit $exit_status +} + +{ test "$mode" = uninstall || test "$mode" = clean; } && + func_mode_uninstall ${1+"$@"} + +test -z "$mode" && { + help="$generic_help" + func_fatal_help "you must specify a MODE" +} + +test -z "$exec_cmd" && \ + func_fatal_help "invalid operation mode \`$mode'" + +if test -n "$exec_cmd"; then + eval exec "$exec_cmd" + exit $EXIT_FAILURE +fi + +exit $exit_status + + +# The TAGs below are defined such that we never get into a situation +# in which we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared +build_libtool_libs=no +build_old_libs=yes +# ### END LIBTOOL TAG CONFIG: disable-shared + +# ### BEGIN LIBTOOL TAG CONFIG: disable-static +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` +# ### END LIBTOOL TAG CONFIG: disable-static + +# Local Variables: +# mode:shell-script +# sh-indentation:2 +# End: +# vi:sw=2 + diff --git a/make.bat b/make.bat new file mode 100755 index 0000000..4040d32 --- /dev/null +++ b/make.bat @@ -0,0 +1,8 @@ +Set PATH=c:\Program Files\Microsoft Visual Studio 8\VC\bin;%PATH% +Set INCLUDE=c:\Program Files\Microsoft Visual Studio 8\VC\include;c:\Program Files\Microsoft Platform SDK\Include;%INCLUDE% +Set LIB=c:\Program Files\Microsoft Visual Studio 8\VC\lib;c:\Program Files\Microsoft Platform SDK\Lib;%LIB% +Set COMSPEC=cmd.exe +nmake -f Makefile.msvc clean +nmake -f Makefile.msvc + + diff --git a/merge-models.pl b/merge-models.pl new file mode 100755 index 0000000..21a9a98 --- /dev/null +++ b/merge-models.pl @@ -0,0 +1,141 @@ +#!/usr/bin/perl -w + +use strict; +use warnings; +my %model_u; +my %model_b; +my $xsize = -1; +my $version = -1; +my $cost_factor = -1; +my $template = ""; +my @class = (); +my $model_size = 0; + +die "merge-models.pl files ... > new_text_file\n" if (scalar(@ARGV) == 0); + +for my $file (@ARGV) { + print STDERR "reading $file ..\n"; + + # header + open(F, $file) || die "$file\n"; + while (<F>) { + chomp; + last if (/^$/); + if (/xsize: (\S+)/) { + die "xsize $xsize != $1\n" if ($xsize != -1 && $xsize != $1); + $xsize = $1; + } elsif (/version: (\S+)/) { + die "version $version != $1\n" if ($version != -1 && $version != $1); + $version = $1; + } elsif (/cost-factor: (\S+)/) { + die "cost-factor $cost_factor != $1\n" if ($cost_factor != -1 && $cost_factor != $1); + $cost_factor = $1; + } + } + + # class + my @tmp = (); + while (<F>) { + chomp; + last if (/^$/); + push @tmp, $_; + } + + die "@tmp != @class\n" if (@class && join(" ", @tmp) ne join(" ", @class)); + @class = @tmp; + + # template + my $templ = ""; + while (<F>) { + last if (/^$/); + $templ .= $_; + } + + die "$templ != $template\n" if ($template ne "" && $template ne $templ); + $template = $templ; + + # dic + my %u; + my %b; + while (<F>) { + chomp; + last if (/^$/); + my ($id, $v) = split; + if ($v =~ /^U/) { + $u{$v} = $id; + } elsif ($v =~ /^B/) { + $b{$v} = $id; + } + } + + # weights + my @w; + while (<F>) { + chomp; + push @w, $_; + } + close(F); + + ## merge + { + my $size = scalar(@class); + for my $v (keys %u) { + my $id = $u{$v}; + for (my $i = 0; $i < $size; ++$i) { + $model_u{$v}->[$i] += $w[$id + $i]; + } + } + } + + { + my $size = scalar(@class) * scalar(@class); + for my $v (keys %b) { + my $id = $b{$v}; + for (my $i = 0; $i < $size; ++$i) { + $model_b{$v}->[$i] += $w[$id + $i]; + } + } + } + + ++$model_size; +} + +my $size = scalar(@class); +my $maxid = scalar(keys %model_u) * $size + scalar(keys %model_b) * $size * $size; + +# output +print "version: $version\n"; +print "cost-factor: 1\n"; +print "maxid: $maxid\n"; +print "xsize: $xsize\n"; +print "\n"; +print (join "\n", @class); +print "\n\n"; +print $template; +print "\n"; + +my $id = 0; +my @w; +for my $v (sort keys %model_b) { + my $size = scalar(@class) * scalar(@class); + for (my $i = 0; $i < $size; ++$i) { + push @w, 1.0 * $model_b{$v}->[$i] / $model_size; + } + print "$id $v\n"; + $id += $size; +} + +for my $v (sort keys %model_u) { + my $size = scalar(@class); + for (my $i = 0; $i < $size; ++$i) { + push @w, 1.0 * $model_u{$v}->[$i] / $model_size; + } + print "$id $v\n"; + $id += $size; +} + +print "\n"; + +for (@w) { + print "$_\n"; +} diff --git a/missing b/missing new file mode 100755 index 0000000..64b5f90 --- /dev/null +++ b/missing @@ -0,0 +1,353 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. + +scriptversion=2004-09-07.08 + +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004 +# Free Software Foundation, Inc. +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +run=: + +# In the cases where this matters, `missing' is being run in the +# srcdir already. +if test -f configure.ac; then + configure_ac=configure.ac +else + configure_ac=configure.in +fi + +msg="missing on your system" + +case "$1" in +--run) + # Try to run requested program, and just exit if it succeeds. + run= + shift + "$@" && exit 0 + # Exit code 63 means version mismatch. This often happens + # when the user try to use an ancient version of a tool on + # a file that requires a minimum version. In this case we + # we should proceed has if the program had been absent, or + # if --run hadn't been passed. + if test $? = 63; then + run=: + msg="probably too old" + fi + ;; + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + --run try to run the given command, and emulate it if it fails + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + help2man touch the output file + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + tar try tar, gnutar, gtar, then tar without non-portable flags + yacc create \`y.tab.[ch]', if possible, from existing .[ch] + +Send bug reports to <bug-automake@gnu.org>." + exit 0 + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing $scriptversion (GNU Automake)" + exit 0 + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + +esac + +# Now exit if we have it, but it failed. Also exit now if we +# don't have it and --version was passed (most likely to detect +# the program). +case "$1" in + lex|yacc) + # Not GNU programs, they don't have --version. + ;; + + tar) + if test -n "$run"; then + echo 1>&2 "ERROR: \`tar' requires --run" + exit 1 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then + exit 1 + fi + ;; + + *) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then + # Could not run --version or --help. This is probably someone + # running `$TOOL --version' or `$TOOL --help' to check whether + # $TOOL exists and not knowing $TOOL uses missing. + exit 1 + fi + ;; +esac + +# If it does not exist, or fails to run (possibly an outdated version), +# try to emulate it. +case "$1" in + aclocal*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acinclude.m4' or \`${configure_ac}'. You might want + to install the \`Automake' and \`Perl' packages. Grab them from + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`${configure_ac}'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acconfig.h' or \`${configure_ac}'. You might want + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` + test -z "$files" && files="config.h" + touch_files= + for f in $files; do + case "$f" in + *:*) touch_files="$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files="$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + autom4te) + echo 1>&2 "\ +WARNING: \`$1' is needed, but is $msg. + You might have modified some files without having the + proper tools for further handling them. + You can get \`$1' as part of \`Autoconf' from any GNU + archive site." + + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo "#! /bin/sh" + echo "# Created by GNU Automake missing as a replacement of" + echo "# $ $@" + echo "exit 0" + chmod +x $file + exit 1 + fi + ;; + + bison|yacc) + echo 1>&2 "\ +WARNING: \`$1' $msg. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.y) + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if [ ! -f y.tab.h ]; then + echo >y.tab.h + fi + if [ ! -f y.tab.c ]; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex|flex) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if [ ! -f lex.yy.c ]; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + help2man) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a dependency of a manual page. You may need the + \`Help2man' package in order for those modifications to take + effect. You can get \`Help2man' from any GNU archive site." + + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` + fi + if [ -f "$file" ]; then + touch $file + else + test -z "$file" || exec >$file + echo ".ab help2man is required to generate this page" + exit 1 + fi + ;; + + makeinfo) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AIX, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site." + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` + fi + touch $file + ;; + + tar) + shift + + # We have already tried tar in the generic part. + # Look for gnutar/gtar before invocation to avoid ugly error + # messages. + if (gnutar --version > /dev/null 2>&1); then + gnutar "$@" && exit 0 + fi + if (gtar --version > /dev/null 2>&1); then + gtar "$@" && exit 0 + fi + firstarg="$1" + if shift; then + case "$firstarg" in + *o*) + firstarg=`echo "$firstarg" | sed s/o//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + case "$firstarg" in + *h*) + firstarg=`echo "$firstarg" | sed s/h//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + fi + + echo 1>&2 "\ +WARNING: I can't seem to be able to run \`tar' with the given arguments. + You may want to install GNU tar or Free paxutils, or check the + command line arguments." + exit 1 + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and is $msg. + You might have modified some files without having the + proper tools for further handling them. Check the \`README' file, + it often tells you about the needed prerequisites for installing + this package. You may also peek at any GNU archive site, in case + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/mkinstalldirs b/mkinstalldirs new file mode 100755 index 0000000..4f58503 --- /dev/null +++ b/mkinstalldirs @@ -0,0 +1,40 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman <friedman@prep.ai.mit.edu> +# Created: 1993-05-16 +# Public domain + +# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $ + +errstatus=0 + +for file +do + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` + shift + + pathcomp= + for d + do + pathcomp="$pathcomp$d" + case "$pathcomp" in + -* ) pathcomp=./$pathcomp ;; + esac + + if test ! -d "$pathcomp"; then + echo "mkdir $pathcomp" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + fi + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# mkinstalldirs ends here diff --git a/mmap.h b/mmap.h new file mode 100644 index 0000000..cbbd2d2 --- /dev/null +++ b/mmap.h @@ -0,0 +1,220 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: mmap.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_MMAP_H_ +#define CRFPP_MMAP_H_ + +#include <errno.h> +#include <string> + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +extern "C" { + +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif + +#ifdef HAVE_SYS_STAT_H +#include <sys/stat.h> +#endif + +#ifdef HAVE_FCNTL_H +#include <fcntl.h> +#endif + +#ifdef HAVE_STRING_H +#include <string.h> +#endif + +#if defined(_WIN32) && !defined(__CYGWIN__) +#ifdef HAVE_WINDOWS_H +#include <windows.h> +#endif +#else + +#ifdef HAVE_SYS_MMAN_H +#include <sys/mman.h> +#endif + +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif +#endif +} + +#include "common.h" + +#ifndef O_BINARY +#define O_BINARY 0 +#endif + +#if !defined(_WIN32) || defined(__CYGWIN__) +namespace { +int open__(const char* name, int flag) { return open(name, flag); } +int close__(int fd) { return close(fd); } +} +#endif + +namespace CRFPP { + +template <class T> class Mmap { + private: + T *text; + size_t length; + std::string fileName; + whatlog what_; + +#if defined(_WIN32) && !defined(__CYGWIN__) + HANDLE hFile; + HANDLE hMap; +#else + int fd; + int flag; +#endif + + public: + T& operator[](size_t n) { return *(text + n); } + const T& operator[](size_t n) const { return *(text + n); } + T* begin() { return text; } + const T* begin() const { return text; } + T* end() { return text + size(); } + const T* end() const { return text + size(); } + size_t size() { return length/sizeof(T); } + const char *what() { return what_.str(); } + const char *file_name() { return fileName.c_str(); } + size_t file_size() { return length; } + bool empty() { return(length == 0); } + + // This code is imported from sufary, develoved by + // TATUO Yamashita <yto@nais.to> Thanks! +#if defined(_WIN32) && !defined(__CYGWIN__) + bool open(const char *filename, const char *mode = "r") { + this->close(); + unsigned long mode1, mode2, mode3; + fileName = std::string(filename); + + if (std::strcmp(mode, "r") == 0) { + mode1 = GENERIC_READ; + mode2 = PAGE_READONLY; + mode3 = FILE_MAP_READ; + } else if (std::strcmp(mode, "r+") == 0) { + mode1 = GENERIC_READ | GENERIC_WRITE; + mode2 = PAGE_READWRITE; + mode3 = FILE_MAP_ALL_ACCESS; + } else { + CHECK_FALSE(false) << "unknown open mode:" << filename; + } + + hFile = ::CreateFileW(WPATH(filename), mode1, FILE_SHARE_READ, 0, + OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); + CHECK_FALSE(hFile != INVALID_HANDLE_VALUE) + << "CreateFile() failed: " << filename; + + length = ::GetFileSize(hFile, 0); + + hMap = ::CreateFileMapping(hFile, 0, mode2, 0, 0, 0); + CHECK_FALSE(hMap) << "CreateFileMapping() failed: " << filename; + + text = reinterpret_cast<T *>(::MapViewOfFile(hMap, mode3, 0, 0, 0)); + CHECK_FALSE(text) << "MapViewOfFile() failed: " << filename; + + return true; + } + + void close() { + if (text) { ::UnmapViewOfFile(text); } + if (hFile != INVALID_HANDLE_VALUE) { + ::CloseHandle(hFile); + hFile = INVALID_HANDLE_VALUE; + } + if (hMap) { + ::CloseHandle(hMap); + hMap = 0; + } + text = 0; + } + + Mmap(): text(0), hFile(INVALID_HANDLE_VALUE), hMap(0) {} + +#else + + bool open(const char *filename, const char *mode = "r") { + this->close(); + struct stat st; + fileName = std::string(filename); + + if (std::strcmp(mode, "r") == 0) + flag = O_RDONLY; + else if (std::strcmp(mode, "r+") == 0) + flag = O_RDWR; + else + CHECK_FALSE(false) << "unknown open mode: " << filename; + + CHECK_FALSE((fd = open__(filename, flag | O_BINARY)) >= 0) + << "open failed: " << filename; + + CHECK_FALSE(fstat(fd, &st) >= 0) + << "failed to get file size: " << filename; + + length = st.st_size; + +#ifdef HAVE_MMAP + int prot = PROT_READ; + if (flag == O_RDWR) prot |= PROT_WRITE; + char *p; + CHECK_FALSE((p = reinterpret_cast<char *> + (mmap(0, length, prot, MAP_SHARED, fd, 0))) + != MAP_FAILED) + << "mmap() failed: " << filename; + + text = reinterpret_cast<T *>(p); +#else + text = new T[length]; + CHECK_FALSE(read(fd, text, length) >= 0) + << "read() failed: " << filename; +#endif + close__(fd); + fd = -1; + + return true; + } + + void close() { + if (fd >= 0) { + close__(fd); + fd = -1; + } + + if (text) { +#ifdef HAVE_MMAP + munmap(reinterpret_cast<char *>(text), length); + text = 0; +#else + if (flag == O_RDWR) { + int fd2; + if ((fd2 = open__(fileName.c_str(), O_RDWR)) >= 0) { + write(fd2, text, length); + close__(fd2); + } + } + delete [] text; +#endif + } + + text = 0; + } + + Mmap(): text(0), fd(-1) {} +#endif + + virtual ~Mmap() { this->close(); } +}; +} +#endif diff --git a/node.cpp b/node.cpp new file mode 100644 index 0000000..42a91bb --- /dev/null +++ b/node.cpp @@ -0,0 +1,44 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: node.cpp 1595 2007-02-24 10:18:32Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#include <stdlib.h> +#include <cmath> +#include "node.h" +#include "common.h" + +namespace CRFPP { + +void Node::calcAlpha() { + alpha = 0.0; + for (const_Path_iterator it = lpath.begin(); it != lpath.end(); ++it) { + alpha = logsumexp(alpha, + (*it)->cost +(*it)->lnode->alpha, + (it == lpath.begin())); + } + alpha += cost; +} + +void Node::calcBeta() { + beta = 0.0; + for (const_Path_iterator it = rpath.begin(); it != rpath.end(); ++it) { + beta = logsumexp(beta, + (*it)->cost +(*it)->rnode->beta, + (it == rpath.begin())); + } + beta += cost; +} + +void Node::calcExpectation(double *expected, double Z, size_t size) const { + const double c = std::exp(alpha + beta - cost - Z); + for (const int *f = fvector; *f != -1; ++f) { + expected[*f + y] += c; + } + for (const_Path_iterator it = lpath.begin(); it != lpath.end(); ++it) { + (*it)->calcExpectation(expected, Z, size); + } +} +} diff --git a/node.h b/node.h new file mode 100644 index 0000000..a822b8a --- /dev/null +++ b/node.h @@ -0,0 +1,71 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: node.h 1595 2007-02-24 10:18:32Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_NODE_H_ +#define CRFPP_NODE_H_ + +#include <vector> +#include <cmath> +#include "path.h" +#include "common.h" + +#define LOG2 0.69314718055 +#define MINUS_LOG_EPSILON 50 + +namespace CRFPP { +// log(exp(x) + exp(y)); +// this can be used recursivly +// e.g., log(exp(log(exp(x) + exp(y))) + exp(z)) = +// log(exp (x) + exp(y) + exp(z)) +inline double logsumexp(double x, double y, bool flg) { + if (flg) return y; // init mode + const double vmin = std::min(x, y); + const double vmax = std::max(x, y); + if (vmax > vmin + MINUS_LOG_EPSILON) { + return vmax; + } else { + return vmax + std::log(std::exp(vmin - vmax) + 1.0); + } +} + +struct Path; + +struct Node { + unsigned int x; + unsigned short int y; + double alpha; + double beta; + double cost; + double bestCost; + Node *prev; + const int *fvector; + std::vector<Path *> lpath; + std::vector<Path *> rpath; + + void calcAlpha(); + void calcBeta(); + void calcExpectation(double *expected, double, size_t) const; + + void clear() { + x = y = 0; + alpha = beta = cost = 0.0; + prev = 0; + fvector = 0; + lpath.clear(); + rpath.clear(); + } + + void shrink() { + std::vector<Path *>(lpath).swap(lpath); + std::vector<Path *>(rpath).swap(rpath); + } + + Node() : x(0), y(0), alpha(0.0), beta(0.0), + cost(0.0), bestCost(0.0), prev(0), fvector(0) {} +}; +} +#endif diff --git a/param.cpp b/param.cpp new file mode 100644 index 0000000..44305df --- /dev/null +++ b/param.cpp @@ -0,0 +1,225 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: param.cpp 1587 2007-02-12 09:00:36Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#include <fstream> +#include <cstdio> +#include "param.h" +#include "common.h" + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +namespace CRFPP { +namespace { + +void init_param(std::string *help, + std::string *version, + const std::string &system_name, + const Option *opts) { + *help = std::string(COPYRIGHT) + "\nUsage: " + + system_name + " [options] files\n"; + + *version = std::string(PACKAGE) + " of " + VERSION + '\n'; + + size_t max = 0; + for (size_t i = 0; opts[i].name; ++i) { + size_t l = 1 + std::strlen(opts[i].name); + if (opts[i].arg_description) + l += (1 + std::strlen(opts[i].arg_description)); + max = std::max(l, max); + } + + for (size_t i = 0; opts[i].name; ++i) { + size_t l = std::strlen(opts[i].name); + if (opts[i].arg_description) + l += (1 + std::strlen(opts[i].arg_description)); + *help += " -"; + *help += opts[i].short_name; + *help += ", --"; + *help += opts[i].name; + if (opts[i].arg_description) { + *help += '='; + *help += opts[i].arg_description; + } + for (; l <= max; l++) *help += ' '; + *help += opts[i].description; + *help += '\n'; + } + + *help += '\n'; + return; +} +} // namespace + +void Param::dump_config(std::ostream *os) const { + for (std::map<std::string, std::string>::const_iterator it = conf_.begin(); + it != conf_.end(); + ++it) { + *os << it->first << ": " << it->second << std::endl; + } +} + +bool Param::load(const char *filename) { + std::ifstream ifs(WPATH(filename)); + + CHECK_FALSE(ifs) << "no such file or directory: " << filename; + + std::string line; + while (std::getline(ifs, line)) { + if (!line.size() || + (line.size() && (line[0] == ';' || line[0] == '#'))) continue; + + size_t pos = line.find('='); + CHECK_FALSE(pos != std::string::npos) << "format error: " << line; + + size_t s1, s2; + for (s1 = pos+1; s1 < line.size() && isspace(line[s1]); s1++); + for (s2 = pos-1; static_cast<long>(s2) >= 0 && isspace(line[s2]); s2--); + const std::string value = line.substr(s1, line.size() - s1); + const std::string key = line.substr(0, s2 + 1); + set<std::string>(key.c_str(), value, false); + } + + return true; +} + +bool Param::open(int argc, char **argv, const Option *opts) { + int ind = 0; + int _errno = 0; + +#define GOTO_FATAL_ERROR(n) { \ + _errno = n; \ + goto FATAL_ERROR; } while (0) + + if (argc <= 0) { + system_name_ = "unknown"; + return true; // this is not error + } + + system_name_ = std::string(argv[0]); + + init_param(&help_, &version_, system_name_, opts); + + for (size_t i = 0; opts[i].name; ++i) { + if (opts[i].default_value) set<std::string> + (opts[i].name, opts[i].default_value); + } + + for (ind = 1; ind < argc; ind++) { + if (argv[ind][0] == '-') { + // long options + if (argv[ind][1] == '-') { + char *s; + for (s = &argv[ind][2]; *s != '\0' && *s != '='; s++); + size_t len = (size_t)(s - &argv[ind][2]); + if (len == 0) return true; // stop the scanning + + bool hit = false; + size_t i = 0; + for (i = 0; opts[i].name; ++i) { + size_t nlen = std::strlen(opts[i].name); + if (nlen == len && std::strncmp(&argv[ind][2], + opts[i].name, len) == 0) { + hit = true; + break; + } + } + + if (!hit) GOTO_FATAL_ERROR(0); + + if (opts[i].arg_description) { + if (*s == '=') { + if (*(s+1) == '\0') GOTO_FATAL_ERROR(1); + set<std::string>(opts[i].name, s+1); + } else { + if (argc == (ind+1)) GOTO_FATAL_ERROR(1); + set<std::string>(opts[i].name, argv[++ind]); + } + } else { + if (*s == '=') GOTO_FATAL_ERROR(2); + set<int>(opts[i].name, 1); + } + + // short options + } else if (argv[ind][1] != '\0') { + size_t i = 0; + bool hit = false; + for (i = 0; opts[i].name; ++i) { + if (opts[i].short_name == argv[ind][1]) { + hit = true; + break; + } + } + + if (!hit) GOTO_FATAL_ERROR(0); + + if (opts[i].arg_description) { + if (argv[ind][2] != '\0') { + set<std::string>(opts[i].name, &argv[ind][2]); + } else { + if (argc == (ind+1)) GOTO_FATAL_ERROR(1); + set<std::string>(opts[i].name, argv[++ind]); + } + } else { + if (argv[ind][2] != '\0') GOTO_FATAL_ERROR(2); + set<int>(opts[i].name, 1); + } + } + } else { + rest_.push_back(std::string(argv[ind])); // others + } + } + + return true; + +FATAL_ERROR: + switch (_errno) { + case 0: WHAT << "unrecognized option `" << argv[ind] << "`"; break; + case 1: WHAT << "`" << argv[ind] << "` requires an argument"; break; + case 2: WHAT << "`" << argv[ind] << "` doesn't allow an argument"; break; + } + return false; +} + +void Param::clear() { + conf_.clear(); + rest_.clear(); +} + +bool Param::open(const char *arg, const Option *opts) { + char str[BUF_SIZE]; + std::strncpy(str, arg, sizeof(str)); + char* ptr[64]; + unsigned int size = 1; + ptr[0] = const_cast<char*>(PACKAGE); + + for (char *p = str; *p;) { + while (isspace(*p)) *p++ = '\0'; + if (*p == '\0') break; + ptr[size++] = p; + if (size == sizeof(ptr)) break; + while (*p && !isspace(*p)) p++; + } + + return open(size, ptr, opts); +} + +int Param::help_version() const { + if (get<bool>("help")) { + std::cout << help(); + return 0; + } + + if (get<bool>("version")) { + std::cout << version(); + return 0; + } + + return 1; +} +} diff --git a/param.h b/param.h new file mode 100644 index 0000000..176b724 --- /dev/null +++ b/param.h @@ -0,0 +1,94 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: param.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_PARAM_H__ +#define CRFPP_PARAM_H__ + +#include <map> +#include <string> +#include <vector> +#include <sstream> +#include "scoped_ptr.h" +#include "common.h" + +namespace CRFPP { + +namespace { +template <class Target, class Source> +Target lexical_cast(Source arg) { + std::stringstream interpreter; + Target result; + if (!(interpreter << arg) || !(interpreter >> result) || + !(interpreter >> std::ws).eof()) { + scoped_ptr<Target> r(new Target()); // return default value + return *r; + } + return result; +} + +template <> +std::string lexical_cast<std::string, std::string>(std::string arg) { + return arg; +} +} + +struct Option { + const char *name; + char short_name; + const char *default_value; + const char *arg_description; + const char *description; +}; + +class Param { + private: + std::map<std::string, std::string> conf_; + std::vector<std::string> rest_; + std::string system_name_; + std::string help_; + std::string version_; + whatlog what_; + + public: + bool open(int argc, char **argv, const Option *opt); + bool open(const char *arg, const Option *opt); + bool load(const char *filename); + void clear(); + const std::vector<std::string>& rest_args() const { return rest_; } + + const char* program_name() const { return system_name_.c_str(); } + const char *what() { return what_.str(); } + const char* help() const { return help_.c_str(); } + const char* version() const { return version_.c_str(); } + int help_version() const; + + template <class T> + T get(const char *key) const { + std::map<std::string, std::string>::const_iterator it = conf_.find(key); + if (it == conf_.end()) { + scoped_ptr<T> r(new T()); + return *r; + } + return lexical_cast<T, std::string>(it->second); + } + + template <class T> + void set(const char* key, const T &value, + bool rewrite = true) { + std::string key2 = std::string(key); + if (rewrite || (!rewrite && conf_.find(key2) == conf_.end())) + conf_[key2] = lexical_cast<std::string, T>(value); + } + + void dump_config(std::ostream *os) const; + + explicit Param() {} + virtual ~Param() {} +}; +} + +#endif diff --git a/path.cpp b/path.cpp new file mode 100644 index 0000000..39319ec --- /dev/null +++ b/path.cpp @@ -0,0 +1,27 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: path.cpp 1587 2007-02-12 09:00:36Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#include <cmath> +#include "path.h" +#include "common.h" + +namespace CRFPP { + +void Path::calcExpectation(double *expected, double Z, size_t size) const { + const double c = std::exp(lnode->alpha + cost + rnode->beta - Z); + for (const int *f = fvector; *f != -1; ++f) { + expected[*f + lnode->y * size + rnode->y] += c; + } +} + +void Path::add(Node *_lnode, Node *_rnode) { + lnode = _lnode; + rnode = _rnode; + lnode->rpath.push_back(this); + rnode->lpath.push_back(this); +} +} diff --git a/path.h b/path.h new file mode 100644 index 0000000..32b1b1f --- /dev/null +++ b/path.h @@ -0,0 +1,38 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: path.h 1595 2007-02-24 10:18:32Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_PATH_H_ +#define CRFPP_PATH_H_ + +#include <vector> +#include "node.h" + +namespace CRFPP { +struct Node; + +struct Path { + Node *rnode; + Node *lnode; + const int *fvector; + double cost; + + Path() : rnode(0), lnode(0), fvector(0), cost(0.0) {} + + // for CRF + void calcExpectation(double *expected, double, size_t) const; + void add(Node *_lnode, Node *_rnode) ; + + void clear() { + rnode = lnode = 0; + fvector = 0; + cost = 0.0; + } +}; + +typedef std::vector<Path*>::const_iterator const_Path_iterator; +} +#endif diff --git a/perl/CRFPP.pm b/perl/CRFPP.pm new file mode 100644 index 0000000..a71c7a4 --- /dev/null +++ b/perl/CRFPP.pm @@ -0,0 +1,166 @@ +# This file was automatically generated by SWIG (http://www.swig.org). +# Version 1.3.40 +# +# Do not make changes to this file unless you know what you are doing--modify +# the SWIG interface file instead. + +package CRFPP; +use base qw(Exporter); +use base qw(DynaLoader); +package CRFPPc; +bootstrap CRFPP; +package CRFPP; +@EXPORT = qw(); + +# ---------- BASE METHODS ------------- + +package CRFPP; + +sub TIEHASH { + my ($classname,$obj) = @_; + return bless $obj, $classname; +} + +sub CLEAR { } + +sub FIRSTKEY { } + +sub NEXTKEY { } + +sub FETCH { + my ($self,$field) = @_; + my $member_func = "swig_${field}_get"; + $self->$member_func(); +} + +sub STORE { + my ($self,$field,$newval) = @_; + my $member_func = "swig_${field}_set"; + $self->$member_func($newval); +} + +sub this { + my $ptr = shift; + return tied(%$ptr); +} + + +# ------- FUNCTION WRAPPERS -------- + +package CRFPP; + + +############# Class : CRFPP::Model ############## + +package CRFPP::Model; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( CRFPP ); +%OWNER = (); +%ITERATORS = (); +*createTagger = *CRFPPc::Model_createTagger; +*what = *CRFPPc::Model_what; +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + CRFPPc::delete_Model($self); + delete $OWNER{$self}; + } +} + +sub new { + my $pkg = shift; + my $self = CRFPPc::new_Model(@_); + bless $self, $pkg if defined($self); +} + +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +############# Class : CRFPP::Tagger ############## + +package CRFPP::Tagger; +use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); +@ISA = qw( CRFPP ); +%OWNER = (); +%ITERATORS = (); +*set_vlevel = *CRFPPc::Tagger_set_vlevel; +*vlevel = *CRFPPc::Tagger_vlevel; +*set_cost_factor = *CRFPPc::Tagger_set_cost_factor; +*cost_factor = *CRFPPc::Tagger_cost_factor; +*set_nbest = *CRFPPc::Tagger_set_nbest; +*nbest = *CRFPPc::Tagger_nbest; +*add = *CRFPPc::Tagger_add; +*size = *CRFPPc::Tagger_size; +*xsize = *CRFPPc::Tagger_xsize; +*dsize = *CRFPPc::Tagger_dsize; +*result = *CRFPPc::Tagger_result; +*answer = *CRFPPc::Tagger_answer; +*y = *CRFPPc::Tagger_y; +*y2 = *CRFPPc::Tagger_y2; +*yname = *CRFPPc::Tagger_yname; +*x = *CRFPPc::Tagger_x; +*ysize = *CRFPPc::Tagger_ysize; +*prob = *CRFPPc::Tagger_prob; +*set_penalty = *CRFPPc::Tagger_set_penalty; +*penalty = *CRFPPc::Tagger_penalty; +*alpha = *CRFPPc::Tagger_alpha; +*beta = *CRFPPc::Tagger_beta; +*emission_cost = *CRFPPc::Tagger_emission_cost; +*next_transition_cost = *CRFPPc::Tagger_next_transition_cost; +*prev_transition_cost = *CRFPPc::Tagger_prev_transition_cost; +*best_cost = *CRFPPc::Tagger_best_cost; +*Z = *CRFPPc::Tagger_Z; +*empty = *CRFPPc::Tagger_empty; +*clear = *CRFPPc::Tagger_clear; +*next = *CRFPPc::Tagger_next; +*parse = *CRFPPc::Tagger_parse; +*what = *CRFPPc::Tagger_what; +sub DESTROY { + return unless $_[0]->isa('HASH'); + my $self = tied(%{$_[0]}); + return unless defined $self; + delete $ITERATORS{$self}; + if (exists $OWNER{$self}) { + CRFPPc::delete_Tagger($self); + delete $OWNER{$self}; + } +} + +sub new { + my $pkg = shift; + my $self = CRFPPc::new_Tagger(@_); + bless $self, $pkg if defined($self); +} + +sub DISOWN { + my $self = shift; + my $ptr = tied(%$self); + delete $OWNER{$ptr}; +} + +sub ACQUIRE { + my $self = shift; + my $ptr = tied(%$self); + $OWNER{$ptr} = 1; +} + + +# ------- VARIABLE STUBS -------- + +package CRFPP; + +*VERSION = *CRFPPc::VERSION; +1; diff --git a/perl/CRFPP_wrap.cxx b/perl/CRFPP_wrap.cxx new file mode 100644 index 0000000..7b549f2 --- /dev/null +++ b/perl/CRFPP_wrap.cxx @@ -0,0 +1,4363 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGPERL +#define SWIG_CASTRANK_MODE + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template<typename T> class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); + SwigValueWrapper(const SwigValueWrapper<T>& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template <typename T> T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + +/* ----------------------------------------------------------------------------- + * swigrun.swg + * + * This file contains generic C API SWIG runtime support for pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* This should only be incremented when either the layout of swig_type_info changes, + or for whatever reason, the runtime changes incompatibly */ +#define SWIG_RUNTIME_VERSION "4" + +/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ +#ifdef SWIG_TYPE_TABLE +# define SWIG_QUOTE_STRING(x) #x +# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) +# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) +#else +# define SWIG_TYPE_TABLE_NAME +#endif + +/* + You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for + creating a static or dynamic library from the SWIG runtime code. + In 99.9% of the cases, SWIG just needs to declare them as 'static'. + + But only do this if strictly necessary, ie, if you have problems + with your compiler or suchlike. +*/ + +#ifndef SWIGRUNTIME +# define SWIGRUNTIME SWIGINTERN +#endif + +#ifndef SWIGRUNTIMEINLINE +# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE +#endif + +/* Generic buffer size */ +#ifndef SWIG_BUFFER_SIZE +# define SWIG_BUFFER_SIZE 1024 +#endif + +/* Flags for pointer conversions */ +#define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 + +/* Flags for new pointer objects */ +#define SWIG_POINTER_OWN 0x1 + + +/* + Flags/methods for returning states. + + The SWIG conversion methods, as ConvertPtr, return and integer + that tells if the conversion was successful or not. And if not, + an error code can be returned (see swigerrors.swg for the codes). + + Use the following macros/flags to set or process the returning + states. + + In old versions of SWIG, code such as the following was usually written: + + if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { + // success code + } else { + //fail code + } + + Now you can be more explicit: + + int res = SWIG_ConvertPtr(obj,vptr,ty.flags); + if (SWIG_IsOK(res)) { + // success code + } else { + // fail code + } + + which is the same really, but now you can also do + + Type *ptr; + int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); + if (SWIG_IsOK(res)) { + // success code + if (SWIG_IsNewObj(res) { + ... + delete *ptr; + } else { + ... + } + } else { + // fail code + } + + I.e., now SWIG_ConvertPtr can return new objects and you can + identify the case and take care of the deallocation. Of course that + also requires SWIG_ConvertPtr to return new result values, such as + + int SWIG_ConvertPtr(obj, ptr,...) { + if (<obj is ok>) { + if (<need new object>) { + *ptr = <ptr to new allocated object>; + return SWIG_NEWOBJ; + } else { + *ptr = <ptr to old object>; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } + } + + Of course, returning the plain '0(success)/-1(fail)' still works, but you can be + more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the + SWIG errors code. + + Finally, if the SWIG_CASTRANK_MODE is enabled, the result code + allows to return the 'cast rank', for example, if you have this + + int food(double) + int fooi(int); + + and you call + + food(1) // cast rank '1' (1 -> 1.0) + fooi(1) // cast rank '0' + + just use the SWIG_AddCast()/SWIG_CheckState() +*/ + +#define SWIG_OK (0) +#define SWIG_ERROR (-1) +#define SWIG_IsOK(r) (r >= 0) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) + +/* The CastRankLimit says how many bits are used for the cast rank */ +#define SWIG_CASTRANKLIMIT (1 << 8) +/* The NewMask denotes the object was created (using new/malloc) */ +#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) +/* The TmpMask is for in/out typemaps that use temporal objects */ +#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) +/* Simple returning values */ +#define SWIG_BADOBJ (SWIG_ERROR) +#define SWIG_OLDOBJ (SWIG_OK) +#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) +#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) +/* Check, add and del mask methods */ +#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) +#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) +#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) +#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) +#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) +#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) + +/* Cast-Rank Mode */ +#if defined(SWIG_CASTRANK_MODE) +# ifndef SWIG_TypeRank +# define SWIG_TypeRank unsigned long +# endif +# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ +# define SWIG_MAXCASTRANK (2) +# endif +# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) +# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) +SWIGINTERNINLINE int SWIG_AddCast(int r) { + return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; +} +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +} +#else /* no cast-rank mode */ +# define SWIG_AddCast +# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) +#endif + + +#include <string.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void *(*swig_converter_func)(void *, int *); +typedef struct swig_type_info *(*swig_dycast_func)(void **); + +/* Structure to store information on one type */ +typedef struct swig_type_info { + const char *name; /* mangled name of this type */ + const char *str; /* human readable name of this type */ + swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ + struct swig_cast_info *cast; /* linked list of types that can cast into this type */ + void *clientdata; /* language specific type data */ + int owndata; /* flag if the structure owns the clientdata */ +} swig_type_info; + +/* Structure to store a type and conversion function used for casting */ +typedef struct swig_cast_info { + swig_type_info *type; /* pointer to type that is equivalent to this type */ + swig_converter_func converter; /* function to cast the void pointers */ + struct swig_cast_info *next; /* pointer to next cast in linked list */ + struct swig_cast_info *prev; /* pointer to the previous cast */ +} swig_cast_info; + +/* Structure used to store module information + * Each module generates one structure like this, and the runtime collects + * all of these structures and stores them in a circularly linked list.*/ +typedef struct swig_module_info { + swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ + size_t size; /* Number of types in this module */ + struct swig_module_info *next; /* Pointer to next element in circularly linked list */ + swig_type_info **type_initial; /* Array of initially generated type structures */ + swig_cast_info **cast_initial; /* Array of initially generated casting structures */ + void *clientdata; /* Language specific module data */ +} swig_module_info; + +/* + Compare two type names skipping the space characters, therefore + "char*" == "char *" and "Class<int>" == "Class<int >", etc. + + Return 0 when the two name types are equivalent, as in + strncmp, but skipping ' '. +*/ +SWIGRUNTIME int +SWIG_TypeNameComp(const char *f1, const char *l1, + const char *f2, const char *l2) { + for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { + while ((*f1 == ' ') && (f1 != l1)) ++f1; + while ((*f2 == ' ') && (f2 != l2)) ++f2; + if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; + } + return (int)((l1 - f1) - (l2 - f2)); +} + +/* + Check type equivalence in a name list like <name1>|<name2>|... + Return 0 if not equal, 1 if equal +*/ +SWIGRUNTIME int +SWIG_TypeEquiv(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + +/* + Check type equivalence in a name list like <name1>|<name2>|... + Return 0 if equal, -1 if nb < tb, 1 if nb > tb +*/ +SWIGRUNTIME int +SWIG_TypeCompare(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + + +/* + Check the typename +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (strcmp(iter->type->name, c) == 0) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (iter->type == from) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Cast a pointer up an inheritance hierarchy +*/ +SWIGRUNTIMEINLINE void * +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +} + +/* + Dynamic pointer casting. Down an inheritance hierarchy +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { + swig_type_info *lastty = ty; + if (!ty || !ty->dcast) return ty; + while (ty && (ty->dcast)) { + ty = (*ty->dcast)(ptr); + if (ty) lastty = ty; + } + return lastty; +} + +/* + Return the name associated with this type +*/ +SWIGRUNTIMEINLINE const char * +SWIG_TypeName(const swig_type_info *ty) { + return ty->name; +} + +/* + Return the pretty name associated with this type, + that is an unmangled type name in a form presentable to the user. +*/ +SWIGRUNTIME const char * +SWIG_TypePrettyName(const swig_type_info *type) { + /* The "str" field contains the equivalent pretty names of the + type, separated by vertical-bar characters. We choose + to print the last name, as it is often (?) the most + specific. */ + if (!type) return NULL; + if (type->str != NULL) { + const char *last_name = type->str; + const char *s; + for (s = type->str; *s; s++) + if (*s == '|') last_name = s+1; + return last_name; + } + else + return type->name; +} + +/* + Set the clientdata field for a type +*/ +SWIGRUNTIME void +SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { + swig_cast_info *cast = ti->cast; + /* if (ti->clientdata == clientdata) return; */ + ti->clientdata = clientdata; + + while (cast) { + if (!cast->converter) { + swig_type_info *tc = cast->type; + if (!tc->clientdata) { + SWIG_TypeClientData(tc, clientdata); + } + } + cast = cast->next; + } +} +SWIGRUNTIME void +SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { + SWIG_TypeClientData(ti, clientdata); + ti->owndata = 1; +} + +/* + Search for a swig_type_info structure only by mangled name + Search is a O(log #types) + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + swig_module_info *iter = start; + do { + if (iter->size) { + register size_t l = 0; + register size_t r = iter->size - 1; + do { + /* since l+r >= 0, we can (>> 1) instead (/ 2) */ + register size_t i = (l + r) >> 1; + const char *iname = iter->types[i]->name; + if (iname) { + register int compare = strcmp(name, iname); + if (compare == 0) { + return iter->types[i]; + } else if (compare < 0) { + if (i) { + r = i - 1; + } else { + break; + } + } else if (compare > 0) { + l = i + 1; + } + } else { + break; /* should never happen */ + } + } while (l <= r); + } + iter = iter->next; + } while (iter != end); + return 0; +} + +/* + Search for a swig_type_info structure for either a mangled name or a human readable name. + It first searches the mangled names of the types, which is a O(log #types) + If a type is not found it then searches the human readable names, which is O(#types). + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + /* STEP 1: Search the name field using binary search */ + swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); + if (ret) { + return ret; + } else { + /* STEP 2: If the type hasn't been found, do a complete search + of the str field (the human readable name) */ + swig_module_info *iter = start; + do { + register size_t i = 0; + for (; i < iter->size; ++i) { + if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) + return iter->types[i]; + } + iter = iter->next; + } while (iter != end); + } + + /* neither found a match */ + return 0; +} + +/* + Pack binary data into a string +*/ +SWIGRUNTIME char * +SWIG_PackData(char *c, void *ptr, size_t sz) { + static const char hex[17] = "0123456789abcdef"; + register const unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register unsigned char uu = *u; + *(c++) = hex[(uu & 0xf0) >> 4]; + *(c++) = hex[uu & 0xf]; + } + return c; +} + +/* + Unpack binary data from a string +*/ +SWIGRUNTIME const char * +SWIG_UnpackData(const char *c, void *ptr, size_t sz) { + register unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register char d = *(c++); + register unsigned char uu; + if ((d >= '0') && (d <= '9')) + uu = ((d - '0') << 4); + else if ((d >= 'a') && (d <= 'f')) + uu = ((d - ('a'-10)) << 4); + else + return (char *) 0; + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu |= (d - '0'); + else if ((d >= 'a') && (d <= 'f')) + uu |= (d - ('a'-10)); + else + return (char *) 0; + *u = uu; + } + return c; +} + +/* + Pack 'void *' into a string buffer. +*/ +SWIGRUNTIME char * +SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { + char *r = buff; + if ((2*sizeof(void *) + 2) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,&ptr,sizeof(void *)); + if (strlen(name) + 1 > (bsz - (r - buff))) return 0; + strcpy(r,name); + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + *ptr = (void *) 0; + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sizeof(void *)); +} + +SWIGRUNTIME char * +SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { + char *r = buff; + size_t lname = (name ? strlen(name) : 0); + if ((2*sz + 2 + lname) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + if (lname) { + strncpy(r,name,lname+1); + } else { + *r = 0; + } + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + memset(ptr,0,sz); + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sz); +} + +#ifdef __cplusplus +} +#endif + +/* Errors in SWIG */ +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 +#define SWIG_SystemError -10 +#define SWIG_AttributeError -11 +#define SWIG_MemoryError -12 +#define SWIG_NullReferenceError -13 + + + +#ifdef __cplusplus +/* Needed on some windows machines---since MS plays funny games with the header files under C++ */ +#include <math.h> +#include <stdlib.h> +extern "C" { +#endif +#include "EXTERN.h" +#include "perl.h" +#include "XSUB.h" + +/* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */ + +/* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */ +#ifndef PERL_REVISION +# if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION)) +# define PERL_PATCHLEVEL_H_IMPLICIT +# include <patchlevel.h> +# endif +# if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL))) +# include <could_not_find_Perl_patchlevel.h> +# endif +# ifndef PERL_REVISION +# define PERL_REVISION (5) +# define PERL_VERSION PATCHLEVEL +# define PERL_SUBVERSION SUBVERSION +# endif +#endif + +#if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE) +#define PerlIO_exportFILE(fh,fl) (FILE*)(fh) +#endif + +#ifndef SvIOK_UV +# define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv))) +#endif + +#ifndef SvUOK +# define SvUOK(sv) SvIOK_UV(sv) +#endif + +#if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5))) +# define PL_sv_undef sv_undef +# define PL_na na +# define PL_errgv errgv +# define PL_sv_no sv_no +# define PL_sv_yes sv_yes +# define PL_markstack_ptr markstack_ptr +#endif + +#ifndef IVSIZE +# ifdef LONGSIZE +# define IVSIZE LONGSIZE +# else +# define IVSIZE 4 /* A bold guess, but the best we can make. */ +# endif +#endif + +#ifndef INT2PTR +# if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) +# define PTRV UV +# define INT2PTR(any,d) (any)(d) +# else +# if PTRSIZE == LONGSIZE +# define PTRV unsigned long +# else +# define PTRV unsigned +# endif +# define INT2PTR(any,d) (any)(PTRV)(d) +# endif + +# define NUM2PTR(any,d) (any)(PTRV)(d) +# define PTR2IV(p) INT2PTR(IV,p) +# define PTR2UV(p) INT2PTR(UV,p) +# define PTR2NV(p) NUM2PTR(NV,p) + +# if PTRSIZE == LONGSIZE +# define PTR2ul(p) (unsigned long)(p) +# else +# define PTR2ul(p) INT2PTR(unsigned long,p) +# endif +#endif /* !INT2PTR */ + +#ifndef SvPV_nolen +# define SvPV_nolen(x) SvPV(x,PL_na) +#endif + +#ifndef get_sv +# define get_sv perl_get_sv +#endif + +#ifndef ERRSV +# define ERRSV get_sv("@",FALSE) +#endif + +#ifndef pTHX_ +#define pTHX_ +#endif + +#include <string.h> +#ifdef __cplusplus +} +#endif + +/* ----------------------------------------------------------------------------- + * error manipulation + * ----------------------------------------------------------------------------- */ + +SWIGINTERN const char* +SWIG_Perl_ErrorType(int code) { + const char* type = 0; + switch(code) { + case SWIG_MemoryError: + type = "MemoryError"; + break; + case SWIG_IOError: + type = "IOError"; + break; + case SWIG_RuntimeError: + type = "RuntimeError"; + break; + case SWIG_IndexError: + type = "IndexError"; + break; + case SWIG_TypeError: + type = "TypeError"; + break; + case SWIG_DivisionByZero: + type = "ZeroDivisionError"; + break; + case SWIG_OverflowError: + type = "OverflowError"; + break; + case SWIG_SyntaxError: + type = "SyntaxError"; + break; + case SWIG_ValueError: + type = "ValueError"; + break; + case SWIG_SystemError: + type = "SystemError"; + break; + case SWIG_AttributeError: + type = "AttributeError"; + break; + default: + type = "RuntimeError"; + } + return type; +} + + + + +/* ----------------------------------------------------------------------------- + * perlrun.swg + * + * This file contains the runtime support for Perl modules + * and includes code for managing global variables and pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +#ifdef PERL_OBJECT +#define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl), +#define SWIG_PERL_OBJECT_CALL pPerl, +#else +#define SWIG_PERL_OBJECT_DECL +#define SWIG_PERL_OBJECT_CALL +#endif + +/* Common SWIG API */ + +/* for raw pointers */ +#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags) +#define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own) +#define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags) + +/* for raw packed data */ +#define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type) +#define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type) + +/* for class or struct pointers */ +#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) +#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) + +/* for C or C++ function pointers */ +#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) +#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) + +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type) + + +/* Runtime API */ + +#define SWIG_GetModule(clientdata) SWIG_Perl_GetModule() +#define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer) + + +/* Error manipulation */ + +#define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code) +#define SWIG_Error(code, msg) sv_setpvf(GvSV(PL_errgv),"%s %s\n", SWIG_ErrorType(code), msg) +#define SWIG_fail goto fail + +/* Perl-specific SWIG API */ + +#define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags) +#define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type) +#define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str) + + +#define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1) +#define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1) +#define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2) +#define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2) + +/* ----------------------------------------------------------------------------- + * pointers/data manipulation + * ----------------------------------------------------------------------------- */ + +/* For backward compatibility only */ +#define SWIG_POINTER_EXCEPTION 0 + +#ifdef __cplusplus +extern "C" { +#endif + +#define SWIG_OWNER SWIG_POINTER_OWN +#define SWIG_SHADOW SWIG_OWNER << 1 + +#define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL + +/* SWIG Perl macros */ + +/* Macro to declare an XS function */ +#ifndef XSPROTO +# define XSPROTO(name) void name(pTHX_ CV* cv) +#endif + +/* Macro to call an XS function */ +#ifdef PERL_OBJECT +# define SWIG_CALLXS(_name) _name(cv,pPerl) +#else +# ifndef MULTIPLICITY +# define SWIG_CALLXS(_name) _name(cv) +# else +# define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) +# endif +#endif + +#ifdef PERL_OBJECT +#define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this; + +#ifdef __cplusplus +extern "C" { +#endif +typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); +#ifdef __cplusplus +} +#endif + +#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) +#define SWIGCLASS_STATIC + +#else /* PERL_OBJECT */ + +#define MAGIC_PPERL +#define SWIGCLASS_STATIC static SWIGUNUSED + +#ifndef MULTIPLICITY +#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) + +#ifdef __cplusplus +extern "C" { +#endif +typedef int (*SwigMagicFunc)(SV *, MAGIC *); +#ifdef __cplusplus +} +#endif + +#else /* MULTIPLICITY */ + +#define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) + +#ifdef __cplusplus +extern "C" { +#endif +typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); +#ifdef __cplusplus +} +#endif + +#endif /* MULTIPLICITY */ +#endif /* PERL_OBJECT */ + +/* Workaround for bug in perl 5.6.x croak and earlier */ +#if (PERL_VERSION < 8) +# ifdef PERL_OBJECT +# define SWIG_croak_null() SWIG_Perl_croak_null(pPerl) +static void SWIG_Perl_croak_null(CPerlObj *pPerl) +# else +static void SWIG_croak_null() +# endif +{ + SV *err=ERRSV; +# if (PERL_VERSION < 6) + croak("%_", err); +# else + if (SvOK(err) && !SvROK(err)) croak("%_", err); + croak(Nullch); +# endif +} +#else +# define SWIG_croak_null() croak(Nullch) +#endif + + +/* + Define how strict is the cast between strings and integers/doubles + when overloading between these types occurs. + + The default is making it as strict as possible by using SWIG_AddCast + when needed. + + You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to + disable the SWIG_AddCast, making the casting between string and + numbers less strict. + + In the end, we try to solve the overloading between strings and + numerical types in the more natural way, but if you can avoid it, + well, avoid it using %rename, for example. +*/ +#ifndef SWIG_PERL_NO_STRICT_STR2NUM +# ifndef SWIG_PERL_STRICT_STR2NUM +# define SWIG_PERL_STRICT_STR2NUM +# endif +#endif +#ifdef SWIG_PERL_STRICT_STR2NUM +/* string takes precedence */ +#define SWIG_Str2NumCast(x) SWIG_AddCast(x) +#else +/* number takes precedence */ +#define SWIG_Str2NumCast(x) x +#endif + + + +#include <stdlib.h> + +SWIGRUNTIME const char * +SWIG_Perl_TypeProxyName(const swig_type_info *type) { + if (!type) return NULL; + if (type->clientdata != NULL) { + return (const char*) type->clientdata; + } + else { + return type->name; + } +} + +/* Identical to SWIG_TypeCheck, except for strcmp comparison */ +SWIGRUNTIME swig_cast_info * +SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if ( (!iter->type->clientdata && (strcmp(iter->type->name, c) == 0)) || + (iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0)) ) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* Function for getting a pointer value */ + +SWIGRUNTIME int +SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) { + swig_cast_info *tc; + void *voidptr = (void *)0; + SV *tsv = 0; + + if (own) + *own = 0; + + /* If magical, apply more magic */ + if (SvGMAGICAL(sv)) + mg_get(sv); + + /* Check to see if this is an object */ + if (sv_isobject(sv)) { + IV tmp = 0; + tsv = (SV*) SvRV(sv); + if ((SvTYPE(tsv) == SVt_PVHV)) { + MAGIC *mg; + if (SvMAGICAL(tsv)) { + mg = mg_find(tsv,'P'); + if (mg) { + sv = mg->mg_obj; + if (sv_isobject(sv)) { + tsv = (SV*)SvRV(sv); + tmp = SvIV(tsv); + } + } + } else { + return SWIG_ERROR; + } + } else { + tmp = SvIV(tsv); + } + voidptr = INT2PTR(void *,tmp); + } else if (! SvOK(sv)) { /* Check for undef */ + *(ptr) = (void *) 0; + return SWIG_OK; + } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ + if (!SvROK(sv)) { + *(ptr) = (void *) 0; + return SWIG_OK; + } else { + return SWIG_ERROR; + } + } else { /* Don't know what it is */ + return SWIG_ERROR; + } + if (_t) { + /* Now see if the types match */ + char *_c = HvNAME(SvSTASH(SvRV(sv))); + tc = SWIG_TypeProxyCheck(_c,_t); + if (!tc) { + return SWIG_ERROR; + } + { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,voidptr,&newmemory); + if (newmemory == SWIG_CAST_NEW_MEMORY) { + assert(own); + if (own) + *own = *own | SWIG_CAST_NEW_MEMORY; + } + } + } else { + *ptr = voidptr; + } + + /* + * DISOWN implementation: we need a perl guru to check this one. + */ + if (tsv && (flags & SWIG_POINTER_DISOWN)) { + /* + * almost copy paste code from below SWIG_POINTER_OWN setting + */ + SV *obj = sv; + HV *stash = SvSTASH(SvRV(obj)); + GV *gv = *(GV**) hv_fetch(stash, "OWNER", 5, TRUE); + if (isGV(gv)) { + HV *hv = GvHVn(gv); + /* + * To set ownership (see below), a newSViv(1) entry is added. + * Hence, to remove ownership, we delete the entry. + */ + if (hv_exists_ent(hv, obj, 0)) { + hv_delete_ent(hv, obj, 0, 0); + } + } + } + return SWIG_OK; +} + +SWIGRUNTIME int +SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) { + return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0); +} + +SWIGRUNTIME void +SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) { + if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { + SV *self; + SV *obj=newSV(0); + HV *hash=newHV(); + HV *stash; + sv_setref_pv(obj, (char *) SWIG_Perl_TypeProxyName(t), ptr); + stash=SvSTASH(SvRV(obj)); + if (flags & SWIG_POINTER_OWN) { + HV *hv; + GV *gv=*(GV**)hv_fetch(stash, "OWNER", 5, TRUE); + if (!isGV(gv)) + gv_init(gv, stash, "OWNER", 5, FALSE); + hv=GvHVn(gv); + hv_store_ent(hv, obj, newSViv(1), 0); + } + sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0); + SvREFCNT_dec(obj); + self=newRV_noinc((SV *)hash); + sv_setsv(sv, self); + SvREFCNT_dec((SV *)self); + sv_bless(sv, stash); + } + else { + sv_setref_pv(sv, (char *) SWIG_Perl_TypeProxyName(t), ptr); + } +} + +SWIGRUNTIMEINLINE SV * +SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) { + SV *result = sv_newmortal(); + SWIG_MakePtr(result, ptr, t, flags); + return result; +} + +SWIGRUNTIME void +SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) { + char result[1024]; + char *r = result; + if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + strcpy(r,SWIG_Perl_TypeProxyName(type)); + sv_setpv(sv, result); +} + +SWIGRUNTIME SV * +SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) { + SV *result = sv_newmortal(); + SWIG_Perl_MakePackedObj(result, ptr, sz, type); + return result; +} + +/* Convert a packed value value */ +SWIGRUNTIME int +SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) { + swig_cast_info *tc; + const char *c = 0; + + if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; + c = SvPV_nolen(obj); + /* Pointer values must start with leading underscore */ + if (*c != '_') return SWIG_ERROR; + c++; + c = SWIG_UnpackData(c,ptr,sz); + if (ty) { + tc = SWIG_TypeCheck(c,ty); + if (!tc) return SWIG_ERROR; + } + return SWIG_OK; +} + + +/* Macros for low-level exception handling */ +#define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } + + +typedef XSPROTO(SwigPerlWrapper); +typedef SwigPerlWrapper *SwigPerlWrapperPtr; + +/* Structure for command table */ +typedef struct { + const char *name; + SwigPerlWrapperPtr wrapper; +} swig_command_info; + +/* Information for constant table */ + +#define SWIG_INT 1 +#define SWIG_FLOAT 2 +#define SWIG_STRING 3 +#define SWIG_POINTER 4 +#define SWIG_BINARY 5 + +/* Constant information structure */ +typedef struct swig_constant_info { + int type; + const char *name; + long lvalue; + double dvalue; + void *pvalue; + swig_type_info **ptype; +} swig_constant_info; + + +/* Structure for variable table */ +typedef struct { + const char *name; + SwigMagicFunc set; + SwigMagicFunc get; + swig_type_info **type; +} swig_variable_info; + +/* Magic variable code */ +#ifndef PERL_OBJECT +#define swig_create_magic(s,a,b,c) _swig_create_magic(s,a,b,c) + #ifndef MULTIPLICITY + SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) + #else + SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) + #endif +#else +# define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c) +SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) +#endif +{ + MAGIC *mg; + sv_magic(sv,sv,'U',(char *) name,strlen(name)); + mg = mg_find(sv,'U'); + mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); + mg->mg_virtual->svt_get = (SwigMagicFunc) get; + mg->mg_virtual->svt_set = (SwigMagicFunc) set; + mg->mg_virtual->svt_len = 0; + mg->mg_virtual->svt_clear = 0; + mg->mg_virtual->svt_free = 0; +} + + +SWIGRUNTIME swig_module_info * +SWIG_Perl_GetModule(void) { + static void *type_pointer = (void *)0; + SV *pointer; + + /* first check if pointer already created */ + if (!type_pointer) { + pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI); + if (pointer && SvOK(pointer)) { + type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); + } + } + + return (swig_module_info *) type_pointer; +} + +SWIGRUNTIME void +SWIG_Perl_SetModule(swig_module_info *module) { + SV *pointer; + + /* create a new pointer */ + pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI); + sv_setiv(pointer, PTR2IV(module)); +} + +#ifdef __cplusplus +} +#endif + +/* Workaround perl5 global namespace pollution. Note that undefining library + * functions like fopen will not solve the problem on all platforms as fopen + * might be a macro on Windows but not necessarily on other operating systems. */ +#ifdef do_open + #undef do_open +#endif +#ifdef do_close + #undef do_close +#endif +#ifdef do_exec + #undef do_exec +#endif +#ifdef scalar + #undef scalar +#endif +#ifdef list + #undef list +#endif +#ifdef apply + #undef apply +#endif +#ifdef convert + #undef convert +#endif +#ifdef Error + #undef Error +#endif +#ifdef form + #undef form +#endif +#ifdef vform + #undef vform +#endif +#ifdef LABEL + #undef LABEL +#endif +#ifdef METHOD + #undef METHOD +#endif +#ifdef Move + #undef Move +#endif +#ifdef yylex + #undef yylex +#endif +#ifdef yyparse + #undef yyparse +#endif +#ifdef yyerror + #undef yyerror +#endif +#ifdef invert + #undef invert +#endif +#ifdef ref + #undef ref +#endif +#ifdef read + #undef read +#endif +#ifdef write + #undef write +#endif +#ifdef eof + #undef eof +#endif +#ifdef bool + #undef bool +#endif +#ifdef close + #undef close +#endif +#ifdef rewind + #undef rewind +#endif +#ifdef free + #undef free +#endif +#ifdef malloc + #undef malloc +#endif +#ifdef calloc + #undef calloc +#endif +#ifdef Stat + #undef Stat +#endif +#ifdef check + #undef check +#endif +#ifdef seekdir + #undef seekdir +#endif +#ifdef open + #undef open +#endif +#ifdef readdir + #undef readdir +#endif +#ifdef bind + #undef bind +#endif + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else + + + + #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) + + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_CRFPP__Model swig_types[0] +#define SWIGTYPE_p_CRFPP__Tagger swig_types[1] +#define SWIGTYPE_p_char swig_types[2] +static swig_type_info *swig_types[4]; +static swig_module_info swig_module = {swig_types, 3, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#define SWIG_init boot_CRFPP + +#define SWIG_name "CRFPPc::boot_CRFPP" +#define SWIG_prefix "CRFPPc::" + +#define SWIGVERSION 0x010340 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) + + +#include <stdexcept> + + +#ifdef __cplusplus +extern "C" +#endif +#ifndef PERL_OBJECT +#ifndef MULTIPLICITY +SWIGEXPORT void SWIG_init (CV* cv); +#else +SWIGEXPORT void SWIG_init (pTHXo_ CV* cv); +#endif +#else +SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *); +#endif + + +#include "crfpp.h" + + + +void delete_CRFPP_Model (CRFPP::Model *t) { + delete t; + t = 0; +} + +CRFPP::Model* new_CRFPP_Model(const char *arg) { + CRFPP::Model *tagger = CRFPP::createModel(arg); + if (!tagger) throw CRFPP::getLastError(); + return tagger; +} + +void delete_CRFPP_Tagger (CRFPP::Tagger *t) { + delete t; + t = 0; +} + +CRFPP::Tagger* new_CRFPP_Tagger (const char *arg) { + CRFPP::Tagger *tagger = CRFPP::createTagger(arg); + if (!tagger) throw CRFPP::getLastError(); + return tagger; +} + + + +SWIGINTERNINLINE SV * +SWIG_FromCharPtrAndSize(const char* carray, size_t size) +{ + SV *obj = sv_newmortal(); + if (carray) { + sv_setpvn(obj, carray, size); + } else { + sv_setsv(obj, &PL_sv_undef); + } + return obj; +} + + +SWIGINTERNINLINE SV * +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + + +SWIGINTERN swig_type_info* +SWIG_pchar_descriptor(void) +{ + static int init = 0; + static swig_type_info* info = 0; + if (!init) { + info = SWIG_TypeQuery("_p_char"); + init = 1; + } + return info; +} + + +SWIGINTERN int +SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc) +{ + if (SvMAGICAL(obj)) { + SV *tmp = sv_newmortal(); + SvSetSV(tmp, obj); + obj = tmp; + } + if (SvPOK(obj)) { + STRLEN len = 0; + char *cstr = SvPV(obj, len); + size_t size = len + 1; + if (cptr) { + if (alloc) { + if (*alloc == SWIG_NEWOBJ) { + *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size))); + } else { + *cptr = cstr; + *alloc = SWIG_OLDOBJ; + } + } + } + if (psize) *psize = size; + return SWIG_OK; + } else { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + if (pchar_descriptor) { + char* vptr = 0; + if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { + if (cptr) *cptr = vptr; + if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; + if (alloc) *alloc = SWIG_OLDOBJ; + return SWIG_OK; + } + } + } + return SWIG_TypeError; +} + + + + + +#include <limits.h> +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif +#endif + + +SWIGINTERN int +SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) +{ + if (SvNIOK(obj)) { + if (val) *val = SvNV(obj); + return SWIG_OK; + } else if (SvIOK(obj)) { + if (val) *val = (double) SvIV(obj); + return SWIG_AddCast(SWIG_OK); + } else { + const char *nptr = SvPV_nolen(obj); + if (nptr) { + char *endptr; + double v = strtod(nptr, &endptr); + if (errno == ERANGE) { + errno = 0; + return SWIG_OverflowError; + } else { + if (*endptr == '\0') { + if (val) *val = v; + return SWIG_Str2NumCast(SWIG_OK); + } + } + } + } + return SWIG_TypeError; +} + + +#include <float.h> + + +#include <math.h> + + +SWIGINTERNINLINE int +SWIG_CanCastAsInteger(double *d, double min, double max) { + double x = *d; + if ((min <= x && x <= max)) { + double fx = floor(x); + double cx = ceil(x); + double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ + if ((errno == EDOM) || (errno == ERANGE)) { + errno = 0; + } else { + double summ, reps, diff; + if (rd < x) { + diff = x - rd; + } else if (rd > x) { + diff = rd - x; + } else { + return 1; + } + summ = rd + x; + reps = diff/summ; + if (reps < 8*DBL_EPSILON) { + *d = rd; + return 1; + } + } + } + return 0; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) +{ + if (SvUOK(obj)) { + if (val) *val = SvUV(obj); + return SWIG_OK; + } else if (SvIOK(obj)) { + long v = SvIV(obj); + if (v >= 0) { + if (val) *val = v; + return SWIG_OK; + } else { + return SWIG_OverflowError; + } + } else { + int dispatch = 0; + const char *nptr = SvPV_nolen(obj); + if (nptr) { + char *endptr; + unsigned long v; + errno = 0; + v = strtoul(nptr, &endptr,0); + if (errno == ERANGE) { + errno = 0; + return SWIG_OverflowError; + } else { + if (*endptr == '\0') { + if (val) *val = v; + return SWIG_Str2NumCast(SWIG_OK); + } + } + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { + if (val) *val = (unsigned long)(d); + return res; + } + } + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_int SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned int *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UINT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned int >(v); + } + } + return res; +} + + +SWIGINTERNINLINE SV * +SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value) +{ + SV *obj = sv_newmortal(); + sv_setuv(obj, (UV) value); + return obj; +} + + +SWIGINTERNINLINE SV * +SWIG_From_unsigned_SS_int SWIG_PERL_DECL_ARGS_1(unsigned int value) +{ + return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value); +} + + +SWIGINTERN int +SWIG_AsVal_float SWIG_PERL_DECL_ARGS_2(SV * obj, float *val) +{ + double v; + int res = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj, &v); + if (SWIG_IsOK(res)) { + if ((v < -FLT_MAX || v > FLT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< float >(v); + } + } + return res; +} + + +SWIGINTERNINLINE SV * +SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value) +{ + SV *obj = sv_newmortal(); + sv_setnv(obj, value); + return obj; +} + + +SWIGINTERNINLINE SV * +SWIG_From_float SWIG_PERL_DECL_ARGS_1(float value) +{ + return SWIG_From_double SWIG_PERL_CALL_ARGS_1(value); +} + + +SWIGINTERNINLINE int +SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); + if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); + return res; +} + + +SWIGINTERNINLINE SV * +SWIG_From_size_t SWIG_PERL_DECL_ARGS_1(size_t value) +{ + return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long >(value)); +} + + +SWIGINTERNINLINE SV * +SWIG_From_bool SWIG_PERL_DECL_ARGS_1(bool value) +{ + SV *obj = sv_newmortal(); + if (value) { + sv_setsv(obj, &PL_sv_yes); + } else { + sv_setsv(obj, &PL_sv_no); + } + return obj; +} + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef PERL_OBJECT +#define MAGIC_CLASS _wrap_CRFPP_var:: +class _wrap_CRFPP_var : public CPerlObj { +public: +#else +#define MAGIC_CLASS +#endif +SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) { + MAGIC_PPERL + croak("Value is read-only."); + return 0; +} + + +#ifdef PERL_OBJECT +}; +#endif + +#ifdef __cplusplus +} +#endif + +#ifdef __cplusplus +extern "C" { +#endif +XS(_wrap_Model_createTagger) { + { + CRFPP::Model *arg1 = (CRFPP::Model *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + CRFPP::Tagger *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Model_createTagger(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Model, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Model_createTagger" "', argument " "1"" of type '" "CRFPP::Model const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Model * >(argp1); + { + try { + result = (CRFPP::Tagger *)((CRFPP::Model const *)arg1)->createTagger(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CRFPP__Tagger, 0 | SWIG_SHADOW); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Model_what) { + { + CRFPP::Model *arg1 = (CRFPP::Model *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Model_what(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Model, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Model_what" "', argument " "1"" of type '" "CRFPP::Model *""'"); + } + arg1 = reinterpret_cast< CRFPP::Model * >(argp1); + { + try { + result = (char *)(arg1)->what(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_Model) { + { + CRFPP::Model *arg1 = (CRFPP::Model *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_Model(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Model, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Model" "', argument " "1"" of type '" "CRFPP::Model *""'"); + } + arg1 = reinterpret_cast< CRFPP::Model * >(argp1); + { + try { + delete arg1; + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_Model) { + { + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int argvi = 0; + CRFPP::Model *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_Model(arg);"); + } + res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Model" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + { + try { + result = (CRFPP::Model *)new_CRFPP_Model((char const *)arg1); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CRFPP__Model, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + XSRETURN(argvi); + fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_set_vlevel) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: Tagger_set_vlevel(self,vlevel);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_set_vlevel" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_set_vlevel" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + { + try { + (arg1)->set_vlevel(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = sv_newmortal(); + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_vlevel) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + unsigned int result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_vlevel(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_vlevel" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (unsigned int)((CRFPP::Tagger const *)arg1)->vlevel(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_set_cost_factor) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + float arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + float val2 ; + int ecode2 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: Tagger_set_cost_factor(self,cost_factor);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_set_cost_factor" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_float SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_set_cost_factor" "', argument " "2"" of type '" "float""'"); + } + arg2 = static_cast< float >(val2); + { + try { + (arg1)->set_cost_factor(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = sv_newmortal(); + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_cost_factor) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + float result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_cost_factor(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_cost_factor" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (float)((CRFPP::Tagger const *)arg1)->cost_factor(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_float SWIG_PERL_CALL_ARGS_1(static_cast< float >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_set_nbest) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: Tagger_set_nbest(self,nbest);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_set_nbest" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_set_nbest" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + (arg1)->set_nbest(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = sv_newmortal(); + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_nbest) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + size_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_nbest(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_nbest" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->nbest(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_add) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: Tagger_add(self,str);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_add" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Tagger_add" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + { + try { + result = (bool)(arg1)->add((char const *)arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_size) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + size_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_size(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_size" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->size(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_xsize) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + size_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_xsize(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_xsize" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->xsize(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_dsize) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + size_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_dsize(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_dsize" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->dsize(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_result) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + int argvi = 0; + size_t result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: Tagger_result(self,i);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_result" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_result" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = ((CRFPP::Tagger const *)arg1)->result(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_answer) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + int argvi = 0; + size_t result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: Tagger_answer(self,i);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_answer" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_answer" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = ((CRFPP::Tagger const *)arg1)->answer(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_y) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + int argvi = 0; + size_t result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: Tagger_y(self,i);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_y" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_y" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = ((CRFPP::Tagger const *)arg1)->y(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_y2) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: Tagger_y2(self,i);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_y2" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_y2" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->y2(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_yname) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: Tagger_yname(self,i);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_yname" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_yname" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->yname(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_x) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: Tagger_x(self,i,j);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_x" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_x" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_x" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->x(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_ysize) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + size_t result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_ysize(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_ysize" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->ysize(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_prob__SWIG_0) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + int argvi = 0; + double result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: Tagger_prob(self,i,j);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_prob" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_prob" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_prob" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_prob__SWIG_1) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + int argvi = 0; + double result; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: Tagger_prob(self,i);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_prob" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_prob" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; + + + XSRETURN(argvi); + fail: + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_prob__SWIG_2) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + double result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_prob(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_prob" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_prob) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + if (items == 3) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + { + int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_3; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 3; + if (_rank == _rankm) goto dispatch; + } + } + check_3: + + dispatch: + switch(_index) { + case 1: + ++PL_markstack_ptr; SWIG_CALLXS(_wrap_Tagger_prob__SWIG_2); return; + case 2: + ++PL_markstack_ptr; SWIG_CALLXS(_wrap_Tagger_prob__SWIG_1); return; + case 3: + ++PL_markstack_ptr; SWIG_CALLXS(_wrap_Tagger_prob__SWIG_0); return; + } + } + + croak("No matching function for overloaded 'Tagger_prob'"); + XSRETURN(0); +} + + +XS(_wrap_Tagger_set_penalty) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + double arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + double val4 ; + int ecode4 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: Tagger_set_penalty(self,i,j,penalty);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_set_penalty" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_set_penalty" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_set_penalty" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Tagger_set_penalty" "', argument " "4"" of type '" "double""'"); + } + arg4 = static_cast< double >(val4); + { + try { + (arg1)->set_penalty(arg2,arg3,arg4); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = sv_newmortal(); + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_penalty) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + int argvi = 0; + double result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: Tagger_penalty(self,i,j);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_penalty" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_penalty" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_penalty" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->penalty(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_alpha) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + int argvi = 0; + double result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: Tagger_alpha(self,i,j);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_alpha" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_alpha" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_alpha" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->alpha(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_beta) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + int argvi = 0; + double result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: Tagger_beta(self,i,j);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_beta" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_beta" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_beta" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->beta(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_emission_cost) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + int argvi = 0; + double result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: Tagger_emission_cost(self,i,j);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_emission_cost" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_emission_cost" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_emission_cost" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->emission_cost(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_next_transition_cost) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + size_t val4 ; + int ecode4 = 0 ; + int argvi = 0; + double result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: Tagger_next_transition_cost(self,i,j,k);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_next_transition_cost" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_next_transition_cost" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_next_transition_cost" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Tagger_next_transition_cost" "', argument " "4"" of type '" "size_t""'"); + } + arg4 = static_cast< size_t >(val4); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->next_transition_cost(arg2,arg3,arg4); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_prev_transition_cost) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + size_t val4 ; + int ecode4 = 0 ; + int argvi = 0; + double result; + dXSARGS; + + if ((items < 4) || (items > 4)) { + SWIG_croak("Usage: Tagger_prev_transition_cost(self,i,j,k);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_prev_transition_cost" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_prev_transition_cost" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_prev_transition_cost" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Tagger_prev_transition_cost" "', argument " "4"" of type '" "size_t""'"); + } + arg4 = static_cast< size_t >(val4); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prev_transition_cost(arg2,arg3,arg4); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; + + + + + XSRETURN(argvi); + fail: + + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_best_cost) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + int argvi = 0; + double result; + dXSARGS; + + if ((items < 3) || (items > 3)) { + SWIG_croak("Usage: Tagger_best_cost(self,i,j);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_best_cost" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_best_cost" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_best_cost" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->best_cost(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; + + + + XSRETURN(argvi); + fail: + + + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_Z) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + double result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_Z(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_Z" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->Z(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_parse__SWIG_0) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_parse(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_parse" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)(arg1)->parse(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_empty) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_empty(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_empty" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)((CRFPP::Tagger const *)arg1)->empty(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_clear) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_clear(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_clear" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)(arg1)->clear(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_next) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + bool result; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_next(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_next" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)(arg1)->next(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_parse__SWIG_1) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 2) || (items > 2)) { + SWIG_croak("Usage: Tagger_parse(self,str);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_parse" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Tagger_parse" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + { + try { + result = (char *)(arg1)->parse((char const *)arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + XSRETURN(argvi); + fail: + + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + SWIG_croak_null(); + } +} + + +XS(_wrap_Tagger_parse) { + dXSARGS; + + { + unsigned long _index = 0; + SWIG_TypeRank _rank = 0; + if (items == 1) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 1; + if (_rank == _rankm) goto dispatch; + } + } + check_1: + + if (items == 2) { + SWIG_TypeRank _ranki = 0; + SWIG_TypeRank _rankm = 0; + SWIG_TypeRank _pi = 1; + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + { + int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + _ranki += _v*_pi; + _rankm += _pi; + _pi *= SWIG_MAXCASTRANK; + if (!_index || (_ranki < _rank)) { + _rank = _ranki; _index = 2; + if (_rank == _rankm) goto dispatch; + } + } + check_2: + + dispatch: + switch(_index) { + case 1: + ++PL_markstack_ptr; SWIG_CALLXS(_wrap_Tagger_parse__SWIG_0); return; + case 2: + ++PL_markstack_ptr; SWIG_CALLXS(_wrap_Tagger_parse__SWIG_1); return; + } + } + + croak("No matching function for overloaded 'Tagger_parse'"); + XSRETURN(0); +} + + +XS(_wrap_Tagger_what) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + char *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: Tagger_what(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_what" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (char *)(arg1)->what(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_delete_Tagger) { + { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int argvi = 0; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: delete_Tagger(self);"); + } + res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRFPP__Tagger, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Tagger" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + delete arg1; + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = sv_newmortal(); + + XSRETURN(argvi); + fail: + + SWIG_croak_null(); + } +} + + +XS(_wrap_new_Tagger) { + { + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + int argvi = 0; + CRFPP::Tagger *result = 0 ; + dXSARGS; + + if ((items < 1) || (items > 1)) { + SWIG_croak("Usage: new_Tagger(arg);"); + } + res1 = SWIG_AsCharPtrAndSize(ST(0), &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Tagger" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + { + try { + result = (CRFPP::Tagger *)new_CRFPP_Tagger((char const *)arg1); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CRFPP__Tagger, SWIG_OWNER | SWIG_SHADOW); argvi++ ; + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + XSRETURN(argvi); + fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + SWIG_croak_null(); + } +} + + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static swig_type_info _swigt__p_CRFPP__Model = {"_p_CRFPP__Model", "CRFPP::Model *", 0, 0, (void*)"CRFPP::Model", 0}; +static swig_type_info _swigt__p_CRFPP__Tagger = {"_p_CRFPP__Tagger", "CRFPP::Tagger *", 0, 0, (void*)"CRFPP::Tagger", 0}; +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_CRFPP__Model, + &_swigt__p_CRFPP__Tagger, + &_swigt__p_char, +}; + +static swig_cast_info _swigc__p_CRFPP__Model[] = { {&_swigt__p_CRFPP__Model, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_CRFPP__Tagger[] = { {&_swigt__p_CRFPP__Tagger, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_CRFPP__Model, + _swigc__p_CRFPP__Tagger, + _swigc__p_char, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +static swig_constant_info swig_constants[] = { +{0,0,0,0,0,0} +}; +#ifdef __cplusplus +} +#endif +static swig_variable_info swig_variables[] = { +{0,0,0,0} +}; +static swig_command_info swig_commands[] = { +{"CRFPPc::Model_createTagger", _wrap_Model_createTagger}, +{"CRFPPc::Model_what", _wrap_Model_what}, +{"CRFPPc::delete_Model", _wrap_delete_Model}, +{"CRFPPc::new_Model", _wrap_new_Model}, +{"CRFPPc::Tagger_set_vlevel", _wrap_Tagger_set_vlevel}, +{"CRFPPc::Tagger_vlevel", _wrap_Tagger_vlevel}, +{"CRFPPc::Tagger_set_cost_factor", _wrap_Tagger_set_cost_factor}, +{"CRFPPc::Tagger_cost_factor", _wrap_Tagger_cost_factor}, +{"CRFPPc::Tagger_set_nbest", _wrap_Tagger_set_nbest}, +{"CRFPPc::Tagger_nbest", _wrap_Tagger_nbest}, +{"CRFPPc::Tagger_add", _wrap_Tagger_add}, +{"CRFPPc::Tagger_size", _wrap_Tagger_size}, +{"CRFPPc::Tagger_xsize", _wrap_Tagger_xsize}, +{"CRFPPc::Tagger_dsize", _wrap_Tagger_dsize}, +{"CRFPPc::Tagger_result", _wrap_Tagger_result}, +{"CRFPPc::Tagger_answer", _wrap_Tagger_answer}, +{"CRFPPc::Tagger_y", _wrap_Tagger_y}, +{"CRFPPc::Tagger_y2", _wrap_Tagger_y2}, +{"CRFPPc::Tagger_yname", _wrap_Tagger_yname}, +{"CRFPPc::Tagger_x", _wrap_Tagger_x}, +{"CRFPPc::Tagger_ysize", _wrap_Tagger_ysize}, +{"CRFPPc::Tagger_prob", _wrap_Tagger_prob}, +{"CRFPPc::Tagger_set_penalty", _wrap_Tagger_set_penalty}, +{"CRFPPc::Tagger_penalty", _wrap_Tagger_penalty}, +{"CRFPPc::Tagger_alpha", _wrap_Tagger_alpha}, +{"CRFPPc::Tagger_beta", _wrap_Tagger_beta}, +{"CRFPPc::Tagger_emission_cost", _wrap_Tagger_emission_cost}, +{"CRFPPc::Tagger_next_transition_cost", _wrap_Tagger_next_transition_cost}, +{"CRFPPc::Tagger_prev_transition_cost", _wrap_Tagger_prev_transition_cost}, +{"CRFPPc::Tagger_best_cost", _wrap_Tagger_best_cost}, +{"CRFPPc::Tagger_Z", _wrap_Tagger_Z}, +{"CRFPPc::Tagger_empty", _wrap_Tagger_empty}, +{"CRFPPc::Tagger_clear", _wrap_Tagger_clear}, +{"CRFPPc::Tagger_next", _wrap_Tagger_next}, +{"CRFPPc::Tagger_parse", _wrap_Tagger_parse}, +{"CRFPPc::Tagger_what", _wrap_Tagger_what}, +{"CRFPPc::delete_Tagger", _wrap_delete_Tagger}, +{"CRFPPc::new_Tagger", _wrap_new_Tagger}, +{0,0} +}; +/* ----------------------------------------------------------------------------- + * Type initialization: + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to + * swig_cast_info structures and swig_cast_info structures store pointers back + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of + * swig_module, and does all the lookup, filling in the swig_module.types + * array with the correct data and linking the correct swig_cast_info + * structures together. + * + * The generated swig_type_info structures are assigned staticly to an initial + * array. We just loop through that array, and handle each type individually. + * First we lookup if this type has been already loaded, and if so, use the + * loaded structure instead of the generated one. Then we have to fill in the + * cast linked list. The cast data is initially stored in something like a + * two-dimensional array. Each row corresponds to a type (there are the same + * number of rows as there are in the swig_type_initial array). Each entry in + * a column is one of the swig_cast_info structures for that type. + * The cast_initial array is actually an array of arrays, because each row has + * a variable number of columns. So to actually build the cast linked list, + * we find the array of casts associated with the type, and loop through it + * adding the casts to the list. The one last trick we need to do is making + * sure the type pointer in the swig_cast_info struct is correct. + * + * First off, we lookup the cast->type name to see if it is already loaded. + * There are three cases to handle: + * 1) If the cast->type has already been loaded AND the type we are adding + * casting info to has not been loaded (it is in this module), THEN we + * replace the cast->type pointer with the type pointer that has already + * been loaded. + * 2) If BOTH types (the one we are adding casting info to, and the + * cast->type) are loaded, THEN the cast info has already been loaded by + * the previous module so we just ignore it. + * 3) Finally, if cast->type has not already been loaded, then we add that + * swig_cast_info to the linked list (because the cast->type) pointer will + * be correct. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* c-mode */ +#endif +#endif + +#if 0 +#define SWIGRUNTIME_DEBUG +#endif + + +SWIGRUNTIME void +SWIG_InitializeModule(void *clientdata) { + size_t i; + swig_module_info *module_head, *iter; + int found, init; + + clientdata = clientdata; + + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } + + /* Try and load any already created modules */ + module_head = SWIG_GetModule(clientdata); + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ + swig_module.next = module_head->next; + module_head->next = &swig_module; + } + + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + + /* Now work on filling in swig_module.types */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: size %d\n", swig_module.size); +#endif + for (i = 0; i < swig_module.size; ++i) { + swig_type_info *type = 0; + swig_type_info *ret; + swig_cast_info *cast; + +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); +#endif + + /* if there is another module already loaded */ + if (swig_module.next != &swig_module) { + type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); + } + if (type) { + /* Overwrite clientdata field */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found type %s\n", type->name); +#endif + if (swig_module.type_initial[i]->clientdata) { + type->clientdata = swig_module.type_initial[i]->clientdata; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); +#endif + } + } else { + type = swig_module.type_initial[i]; + } + + /* Insert casting types */ + cast = swig_module.cast_initial[i]; + while (cast->type) { + /* Don't need to add information already in the list */ + ret = 0; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); +#endif + if (swig_module.next != &swig_module) { + ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); +#ifdef SWIGRUNTIME_DEBUG + if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); +#endif + } + if (ret) { + if (type == swig_module.type_initial[i]) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: skip old type %s\n", ret->name); +#endif + cast->type = ret; + ret = 0; + } else { + /* Check for casting already in the list */ + swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); +#ifdef SWIGRUNTIME_DEBUG + if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); +#endif + if (!ocast) ret = 0; + } + } + + if (!ret) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); +#endif + if (type->cast) { + type->cast->prev = cast; + cast->next = type->cast; + } + type->cast = cast; + } + cast++; + } + /* Set entry in modules->types array equal to the type */ + swig_module.types[i] = type; + } + swig_module.types[i] = 0; + +#ifdef SWIGRUNTIME_DEBUG + printf("**** SWIG_InitializeModule: Cast List ******\n"); + for (i = 0; i < swig_module.size; ++i) { + int j = 0; + swig_cast_info *cast = swig_module.cast_initial[i]; + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); + while (cast->type) { + printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); + cast++; + ++j; + } + printf("---- Total casts: %d\n",j); + } + printf("**** SWIG_InitializeModule: Cast List ******\n"); +#endif +} + +/* This function will propagate the clientdata field of type to +* any new swig_type_info structures that have been added into the list +* of equivalent types. It is like calling +* SWIG_TypeClientData(type, clientdata) a second time. +*/ +SWIGRUNTIME void +SWIG_PropagateClientData(void) { + size_t i; + swig_cast_info *equiv; + static int init_run = 0; + + if (init_run) return; + init_run = 1; + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { + equiv = swig_module.types[i]->cast; + while (equiv) { + if (!equiv->converter) { + if (equiv->type && !equiv->type->clientdata) + SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); + } + equiv = equiv->next; + } + } + } +} + +#ifdef __cplusplus +#if 0 +{ + /* c-mode */ +#endif +} +#endif + + + +#ifdef __cplusplus +extern "C" +#endif + +XS(SWIG_init) { + dXSARGS; + int i; + + SWIG_InitializeModule(0); + + /* Install commands */ + for (i = 0; swig_commands[i].name; i++) { + newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__); + } + + /* Install variables */ + for (i = 0; swig_variables[i].name; i++) { + SV *sv; + sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); + if (swig_variables[i].type) { + SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); + } else { + sv_setiv(sv,(IV) 0); + } + swig_create_magic(sv, (char *) swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); + } + + /* Install constant */ + for (i = 0; swig_constants[i].type; i++) { + SV *sv; + sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); + switch(swig_constants[i].type) { + case SWIG_INT: + sv_setiv(sv, (IV) swig_constants[i].lvalue); + break; + case SWIG_FLOAT: + sv_setnv(sv, (double) swig_constants[i].dvalue); + break; + case SWIG_STRING: + sv_setpv(sv, (char *) swig_constants[i].pvalue); + break; + case SWIG_POINTER: + SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0); + break; + case SWIG_BINARY: + SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); + break; + default: + break; + } + SvREADONLY_on(sv); + } + + SWIG_TypeClientData(SWIGTYPE_p_CRFPP__Model, (void*) "CRFPP::Model"); + SWIG_TypeClientData(SWIGTYPE_p_CRFPP__Tagger, (void*) "CRFPP::Tagger"); + /*@SWIG:/usr/share/swig1.3/perl5/perltypemaps.swg,65,%set_constant@*/ do { + SV *sv = get_sv((char*) SWIG_prefix "VERSION", TRUE | 0x2 | GV_ADDMULTI); + sv_setsv(sv, SWIG_FromCharPtr("0.55")); + SvREADONLY_on(sv); + } while(0) /*@SWIG@*/; + ST(0) = &PL_sv_yes; + XSRETURN(1); +} + diff --git a/perl/Makefile.PL b/perl/Makefile.PL new file mode 100644 index 0000000..ca5b000 --- /dev/null +++ b/perl/Makefile.PL @@ -0,0 +1,10 @@ +use ExtUtils::MakeMaker; +WriteMakefile( + 'NAME' => 'CRFPP', + 'CC' => 'c++', + 'LD' => 'c++', + 'INC' => '', + 'LIBS' => '-lpthread -lcrfpp', +# 'VERSION' => '0.46', + 'OBJECT' => 'CRFPP_wrap.o' +); diff --git a/perl/Makefile.old b/perl/Makefile.old new file mode 100644 index 0000000..1eef3c4 --- /dev/null +++ b/perl/Makefile.old @@ -0,0 +1,931 @@ +# This Makefile is for the CRFPP extension to perl. +# +# It was generated automatically by MakeMaker version +# 6.56 (Revision: 65600) from the contents of +# Makefile.PL. Don't edit this file, edit Makefile.PL instead. +# +# ANY CHANGES MADE HERE WILL BE LOST! +# +# MakeMaker ARGV: () +# + +# MakeMaker Parameters: + +# BUILD_REQUIRES => { } +# CC => q[c++] +# INC => q[] +# LD => q[c++] +# LIBS => q[-lpthread -lcrfpp] +# NAME => q[CRFPP] +# OBJECT => q[CRFPP_wrap.o] +# PREREQ_PM => { } + +# --- MakeMaker post_initialize section: + + +# --- MakeMaker const_config section: + +# These definitions are from config.sh (via /usr/lib/perl/5.12/Config.pm). +# They may have been overridden via Makefile.PL or on the command line. +AR = ar +CC = c++ +CCCDLFLAGS = -fPIC +CCDLFLAGS = -Wl,-E +DLEXT = so +DLSRC = dl_dlopen.xs +EXE_EXT = +FULL_AR = /usr/bin/ar +LD = c++ +LDDLFLAGS = -shared -O2 -g -L/usr/local/lib -fstack-protector +LDFLAGS = -fstack-protector -L/usr/local/lib +LIBC = +LIB_EXT = .a +OBJ_EXT = .o +OSNAME = linux +OSVERS = 2.6.24-28-server +RANLIB = : +SITELIBEXP = /usr/local/share/perl/5.12.4 +SITEARCHEXP = /usr/local/lib/perl/5.12.4 +SO = so +VENDORARCHEXP = /usr/lib/perl5 +VENDORLIBEXP = /usr/share/perl5 + + +# --- MakeMaker constants section: +AR_STATIC_ARGS = cr +DIRFILESEP = / +DFSEP = $(DIRFILESEP) +NAME = CRFPP +NAME_SYM = CRFPP +VERSION = +VERSION_MACRO = VERSION +VERSION_SYM = +DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\" +XS_VERSION = +XS_VERSION_MACRO = XS_VERSION +XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\" +INST_ARCHLIB = blib/arch +INST_SCRIPT = blib/script +INST_BIN = blib/bin +INST_LIB = blib/lib +INST_MAN1DIR = blib/man1 +INST_MAN3DIR = blib/man3 +MAN1EXT = 1p +MAN3EXT = 3pm +INSTALLDIRS = site +DESTDIR = +PREFIX = /usr +PERLPREFIX = $(PREFIX) +SITEPREFIX = $(PREFIX)/local +VENDORPREFIX = $(PREFIX) +INSTALLPRIVLIB = $(PERLPREFIX)/share/perl/5.12 +DESTINSTALLPRIVLIB = $(DESTDIR)$(INSTALLPRIVLIB) +INSTALLSITELIB = $(SITEPREFIX)/share/perl/5.12.4 +DESTINSTALLSITELIB = $(DESTDIR)$(INSTALLSITELIB) +INSTALLVENDORLIB = $(VENDORPREFIX)/share/perl5 +DESTINSTALLVENDORLIB = $(DESTDIR)$(INSTALLVENDORLIB) +INSTALLARCHLIB = $(PERLPREFIX)/lib/perl/5.12 +DESTINSTALLARCHLIB = $(DESTDIR)$(INSTALLARCHLIB) +INSTALLSITEARCH = $(SITEPREFIX)/lib/perl/5.12.4 +DESTINSTALLSITEARCH = $(DESTDIR)$(INSTALLSITEARCH) +INSTALLVENDORARCH = $(VENDORPREFIX)/lib/perl5 +DESTINSTALLVENDORARCH = $(DESTDIR)$(INSTALLVENDORARCH) +INSTALLBIN = $(PERLPREFIX)/bin +DESTINSTALLBIN = $(DESTDIR)$(INSTALLBIN) +INSTALLSITEBIN = $(SITEPREFIX)/bin +DESTINSTALLSITEBIN = $(DESTDIR)$(INSTALLSITEBIN) +INSTALLVENDORBIN = $(VENDORPREFIX)/bin +DESTINSTALLVENDORBIN = $(DESTDIR)$(INSTALLVENDORBIN) +INSTALLSCRIPT = $(PERLPREFIX)/bin +DESTINSTALLSCRIPT = $(DESTDIR)$(INSTALLSCRIPT) +INSTALLSITESCRIPT = $(SITEPREFIX)/bin +DESTINSTALLSITESCRIPT = $(DESTDIR)$(INSTALLSITESCRIPT) +INSTALLVENDORSCRIPT = $(VENDORPREFIX)/bin +DESTINSTALLVENDORSCRIPT = $(DESTDIR)$(INSTALLVENDORSCRIPT) +INSTALLMAN1DIR = $(PERLPREFIX)/share/man/man1 +DESTINSTALLMAN1DIR = $(DESTDIR)$(INSTALLMAN1DIR) +INSTALLSITEMAN1DIR = $(SITEPREFIX)/man/man1 +DESTINSTALLSITEMAN1DIR = $(DESTDIR)$(INSTALLSITEMAN1DIR) +INSTALLVENDORMAN1DIR = $(VENDORPREFIX)/share/man/man1 +DESTINSTALLVENDORMAN1DIR = $(DESTDIR)$(INSTALLVENDORMAN1DIR) +INSTALLMAN3DIR = $(PERLPREFIX)/share/man/man3 +DESTINSTALLMAN3DIR = $(DESTDIR)$(INSTALLMAN3DIR) +INSTALLSITEMAN3DIR = $(SITEPREFIX)/man/man3 +DESTINSTALLSITEMAN3DIR = $(DESTDIR)$(INSTALLSITEMAN3DIR) +INSTALLVENDORMAN3DIR = $(VENDORPREFIX)/share/man/man3 +DESTINSTALLVENDORMAN3DIR = $(DESTDIR)$(INSTALLVENDORMAN3DIR) +PERL_LIB = /usr/share/perl/5.12 +PERL_ARCHLIB = /usr/lib/perl/5.12 +LIBPERL_A = libperl.a +FIRST_MAKEFILE = Makefile +MAKEFILE_OLD = Makefile.old +MAKE_APERL_FILE = Makefile.aperl +PERLMAINCC = $(CC) +PERL_INC = /usr/lib/perl/5.12/CORE +PERL = /usr/bin/perl +FULLPERL = /usr/bin/perl +ABSPERL = $(PERL) +PERLRUN = $(PERL) +FULLPERLRUN = $(FULLPERL) +ABSPERLRUN = $(ABSPERL) +PERLRUNINST = $(PERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" +FULLPERLRUNINST = $(FULLPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" +ABSPERLRUNINST = $(ABSPERLRUN) "-I$(INST_ARCHLIB)" "-I$(INST_LIB)" +PERL_CORE = 0 +PERM_DIR = 755 +PERM_RW = 644 +PERM_RWX = 755 + +MAKEMAKER = /usr/share/perl/5.12/ExtUtils/MakeMaker.pm +MM_VERSION = 6.56 +MM_REVISION = 65600 + +# FULLEXT = Pathname for extension directory (eg Foo/Bar/Oracle). +# BASEEXT = Basename part of FULLEXT. May be just equal FULLEXT. (eg Oracle) +# PARENT_NAME = NAME without BASEEXT and no trailing :: (eg Foo::Bar) +# DLBASE = Basename part of dynamic library. May be just equal BASEEXT. +MAKE = make +FULLEXT = CRFPP +BASEEXT = CRFPP +PARENT_NAME = +DLBASE = $(BASEEXT) +VERSION_FROM = +INC = +OBJECT = CRFPP_wrap$(OBJ_EXT) +LDFROM = $(OBJECT) +LINKTYPE = dynamic +BOOTDEP = + +# Handy lists of source code files: +XS_FILES = +C_FILES = CRFPP_wrap.cxx +O_FILES = CRFPP_wrap.o +H_FILES = +MAN1PODS = +MAN3PODS = + +# Where is the Config information that we are using/depend on +CONFIGDEP = $(PERL_ARCHLIB)$(DFSEP)Config.pm $(PERL_INC)$(DFSEP)config.h + +# Where to build things +INST_LIBDIR = $(INST_LIB) +INST_ARCHLIBDIR = $(INST_ARCHLIB) + +INST_AUTODIR = $(INST_LIB)/auto/$(FULLEXT) +INST_ARCHAUTODIR = $(INST_ARCHLIB)/auto/$(FULLEXT) + +INST_STATIC = $(INST_ARCHAUTODIR)/$(BASEEXT)$(LIB_EXT) +INST_DYNAMIC = $(INST_ARCHAUTODIR)/$(DLBASE).$(DLEXT) +INST_BOOT = $(INST_ARCHAUTODIR)/$(BASEEXT).bs + +# Extra linker info +EXPORT_LIST = +PERL_ARCHIVE = +PERL_ARCHIVE_AFTER = + + +TO_INST_PM = CRFPP.pm + +PM_TO_BLIB = CRFPP.pm \ + $(INST_LIB)/CRFPP.pm + + +# --- MakeMaker platform_constants section: +MM_Unix_VERSION = 6.56 +PERL_MALLOC_DEF = -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc + + +# --- MakeMaker tool_autosplit section: +# Usage: $(AUTOSPLITFILE) FileToSplit AutoDirToSplitInto +AUTOSPLITFILE = $(ABSPERLRUN) -e 'use AutoSplit; autosplit($$ARGV[0], $$ARGV[1], 0, 1, 1)' -- + + + +# --- MakeMaker tool_xsubpp section: + +XSUBPPDIR = /usr/share/perl/5.12/ExtUtils +XSUBPP = $(XSUBPPDIR)$(DFSEP)xsubpp +XSUBPPRUN = $(PERLRUN) $(XSUBPP) +XSPROTOARG = +XSUBPPDEPS = /usr/share/perl/5.12/ExtUtils/typemap $(XSUBPP) +XSUBPPARGS = -typemap /usr/share/perl/5.12/ExtUtils/typemap +XSUBPP_EXTRA_ARGS = + + +# --- MakeMaker tools_other section: +SHELL = /bin/sh +CHMOD = chmod +CP = cp +MV = mv +NOOP = $(TRUE) +NOECHO = @ +RM_F = rm -f +RM_RF = rm -rf +TEST_F = test -f +TOUCH = touch +UMASK_NULL = umask 0 +DEV_NULL = > /dev/null 2>&1 +MKPATH = $(ABSPERLRUN) -MExtUtils::Command -e 'mkpath' -- +EQUALIZE_TIMESTAMP = $(ABSPERLRUN) -MExtUtils::Command -e 'eqtime' -- +FALSE = false +TRUE = true +ECHO = echo +ECHO_N = echo -n +UNINST = 0 +VERBINST = 0 +MOD_INSTALL = $(ABSPERLRUN) -MExtUtils::Install -e 'install([ from_to => {@ARGV}, verbose => '\''$(VERBINST)'\'', uninstall_shadows => '\''$(UNINST)'\'', dir_mode => '\''$(PERM_DIR)'\'' ]);' -- +DOC_INSTALL = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'perllocal_install' -- +UNINSTALL = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'uninstall' -- +WARN_IF_OLD_PACKLIST = $(ABSPERLRUN) -MExtUtils::Command::MM -e 'warn_if_old_packlist' -- +MACROSTART = +MACROEND = +USEMAKEFILE = -f +FIXIN = $(ABSPERLRUN) -MExtUtils::MY -e 'MY->fixin(shift)' -- + + +# --- MakeMaker makemakerdflt section: +makemakerdflt : all + $(NOECHO) $(NOOP) + + +# --- MakeMaker dist section: +TAR = tar +TARFLAGS = cvf +ZIP = zip +ZIPFLAGS = -r +COMPRESS = gzip --best +SUFFIX = .gz +SHAR = shar +PREOP = $(NOECHO) $(NOOP) +POSTOP = $(NOECHO) $(NOOP) +TO_UNIX = $(NOECHO) $(NOOP) +CI = ci -u +RCS_LABEL = rcs -Nv$(VERSION_SYM): -q +DIST_CP = best +DIST_DEFAULT = tardist +DISTNAME = CRFPP +DISTVNAME = CRFPP- + + +# --- MakeMaker macro section: + + +# --- MakeMaker depend section: + + +# --- MakeMaker cflags section: + +CCFLAGS = -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 +OPTIMIZE = -O2 -g +PERLTYPE = +MPOLLUTE = + + +# --- MakeMaker const_loadlibs section: + +# CRFPP might depend on some other libraries: +# See ExtUtils::Liblist for details +# +EXTRALIBS = -lcrfpp +LDLOADLIBS = -lpthread -lcrfpp +BSLOADLIBS = + + +# --- MakeMaker const_cccmd section: +CCCMD = $(CC) -c $(PASTHRU_INC) $(INC) \ + $(CCFLAGS) $(OPTIMIZE) \ + $(PERLTYPE) $(MPOLLUTE) $(DEFINE_VERSION) \ + $(XS_DEFINE_VERSION) + +# --- MakeMaker post_constants section: + + +# --- MakeMaker pasthru section: + +PASTHRU = LIBPERL_A="$(LIBPERL_A)"\ + LINKTYPE="$(LINKTYPE)"\ + OPTIMIZE="$(OPTIMIZE)"\ + PREFIX="$(PREFIX)"\ + PASTHRU_INC="$(PASTHRU_INC)" + + +# --- MakeMaker special_targets section: +.SUFFIXES : .xs .c .C .cpp .i .s .cxx .cc $(OBJ_EXT) + +.PHONY: all config static dynamic test linkext manifest blibdirs clean realclean disttest distdir + + + +# --- MakeMaker c_o section: + +.c.i: + cc -E -c $(PASTHRU_INC) $(INC) \ + $(CCFLAGS) $(OPTIMIZE) \ + $(PERLTYPE) $(MPOLLUTE) $(DEFINE_VERSION) \ + $(XS_DEFINE_VERSION) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.c > $*.i + +.c.s: + $(CCCMD) -S $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.c + +.c$(OBJ_EXT): + $(CCCMD) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.c + +.cpp$(OBJ_EXT): + $(CCCMD) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.cpp + +.cxx$(OBJ_EXT): + $(CCCMD) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.cxx + +.cc$(OBJ_EXT): + $(CCCMD) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.cc + +.C$(OBJ_EXT): + $(CCCMD) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.C + + +# --- MakeMaker xs_c section: + +.xs.c: + $(XSUBPPRUN) $(XSPROTOARG) $(XSUBPPARGS) $(XSUBPP_EXTRA_ARGS) $*.xs > $*.xsc && $(MV) $*.xsc $*.c + + +# --- MakeMaker xs_o section: + +.xs$(OBJ_EXT): + $(XSUBPPRUN) $(XSPROTOARG) $(XSUBPPARGS) $*.xs > $*.xsc && $(MV) $*.xsc $*.c + $(CCCMD) $(CCCDLFLAGS) "-I$(PERL_INC)" $(PASTHRU_DEFINE) $(DEFINE) $*.c + + +# --- MakeMaker top_targets section: +all :: pure_all manifypods + $(NOECHO) $(NOOP) + + +pure_all :: config pm_to_blib subdirs linkext + $(NOECHO) $(NOOP) + +subdirs :: $(MYEXTLIB) + $(NOECHO) $(NOOP) + +config :: $(FIRST_MAKEFILE) blibdirs + $(NOECHO) $(NOOP) + +help : + perldoc ExtUtils::MakeMaker + + +# --- MakeMaker blibdirs section: +blibdirs : $(INST_LIBDIR)$(DFSEP).exists $(INST_ARCHLIB)$(DFSEP).exists $(INST_AUTODIR)$(DFSEP).exists $(INST_ARCHAUTODIR)$(DFSEP).exists $(INST_BIN)$(DFSEP).exists $(INST_SCRIPT)$(DFSEP).exists $(INST_MAN1DIR)$(DFSEP).exists $(INST_MAN3DIR)$(DFSEP).exists + $(NOECHO) $(NOOP) + +# Backwards compat with 6.18 through 6.25 +blibdirs.ts : blibdirs + $(NOECHO) $(NOOP) + +$(INST_LIBDIR)$(DFSEP).exists :: Makefile.PL + $(NOECHO) $(MKPATH) $(INST_LIBDIR) + $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_LIBDIR) + $(NOECHO) $(TOUCH) $(INST_LIBDIR)$(DFSEP).exists + +$(INST_ARCHLIB)$(DFSEP).exists :: Makefile.PL + $(NOECHO) $(MKPATH) $(INST_ARCHLIB) + $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_ARCHLIB) + $(NOECHO) $(TOUCH) $(INST_ARCHLIB)$(DFSEP).exists + +$(INST_AUTODIR)$(DFSEP).exists :: Makefile.PL + $(NOECHO) $(MKPATH) $(INST_AUTODIR) + $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_AUTODIR) + $(NOECHO) $(TOUCH) $(INST_AUTODIR)$(DFSEP).exists + +$(INST_ARCHAUTODIR)$(DFSEP).exists :: Makefile.PL + $(NOECHO) $(MKPATH) $(INST_ARCHAUTODIR) + $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_ARCHAUTODIR) + $(NOECHO) $(TOUCH) $(INST_ARCHAUTODIR)$(DFSEP).exists + +$(INST_BIN)$(DFSEP).exists :: Makefile.PL + $(NOECHO) $(MKPATH) $(INST_BIN) + $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_BIN) + $(NOECHO) $(TOUCH) $(INST_BIN)$(DFSEP).exists + +$(INST_SCRIPT)$(DFSEP).exists :: Makefile.PL + $(NOECHO) $(MKPATH) $(INST_SCRIPT) + $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_SCRIPT) + $(NOECHO) $(TOUCH) $(INST_SCRIPT)$(DFSEP).exists + +$(INST_MAN1DIR)$(DFSEP).exists :: Makefile.PL + $(NOECHO) $(MKPATH) $(INST_MAN1DIR) + $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_MAN1DIR) + $(NOECHO) $(TOUCH) $(INST_MAN1DIR)$(DFSEP).exists + +$(INST_MAN3DIR)$(DFSEP).exists :: Makefile.PL + $(NOECHO) $(MKPATH) $(INST_MAN3DIR) + $(NOECHO) $(CHMOD) $(PERM_DIR) $(INST_MAN3DIR) + $(NOECHO) $(TOUCH) $(INST_MAN3DIR)$(DFSEP).exists + + + +# --- MakeMaker linkext section: + +linkext :: $(LINKTYPE) + $(NOECHO) $(NOOP) + + +# --- MakeMaker dlsyms section: + + +# --- MakeMaker dynamic section: + +dynamic :: $(FIRST_MAKEFILE) $(INST_DYNAMIC) $(INST_BOOT) + $(NOECHO) $(NOOP) + + +# --- MakeMaker dynamic_bs section: +BOOTSTRAP = $(BASEEXT).bs + +# As Mkbootstrap might not write a file (if none is required) +# we use touch to prevent make continually trying to remake it. +# The DynaLoader only reads a non-empty file. +$(BOOTSTRAP) : $(FIRST_MAKEFILE) $(BOOTDEP) $(INST_ARCHAUTODIR)$(DFSEP).exists + $(NOECHO) $(ECHO) "Running Mkbootstrap for $(NAME) ($(BSLOADLIBS))" + $(NOECHO) $(PERLRUN) \ + "-MExtUtils::Mkbootstrap" \ + -e "Mkbootstrap('$(BASEEXT)','$(BSLOADLIBS)');" + $(NOECHO) $(TOUCH) $@ + $(CHMOD) $(PERM_RW) $@ + +$(INST_BOOT) : $(BOOTSTRAP) $(INST_ARCHAUTODIR)$(DFSEP).exists + $(NOECHO) $(RM_RF) $@ + - $(CP) $(BOOTSTRAP) $@ + $(CHMOD) $(PERM_RW) $@ + + +# --- MakeMaker dynamic_lib section: + +# This section creates the dynamically loadable $(INST_DYNAMIC) +# from $(OBJECT) and possibly $(MYEXTLIB). +ARMAYBE = : +OTHERLDFLAGS = +INST_DYNAMIC_DEP = +INST_DYNAMIC_FIX = + +$(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)$(DFSEP).exists $(EXPORT_LIST) $(PERL_ARCHIVE) $(PERL_ARCHIVE_AFTER) $(INST_DYNAMIC_DEP) + $(RM_F) $@ + $(LD) $(LDDLFLAGS) $(LDFROM) $(OTHERLDFLAGS) -o $@ $(MYEXTLIB) \ + $(PERL_ARCHIVE) $(LDLOADLIBS) $(PERL_ARCHIVE_AFTER) $(EXPORT_LIST) \ + $(INST_DYNAMIC_FIX) + $(CHMOD) $(PERM_RWX) $@ + + +# --- MakeMaker static section: + +## $(INST_PM) has been moved to the all: target. +## It remains here for awhile to allow for old usage: "make static" +static :: $(FIRST_MAKEFILE) $(INST_STATIC) + $(NOECHO) $(NOOP) + + +# --- MakeMaker static_lib section: + +$(INST_STATIC) : $(OBJECT) $(MYEXTLIB) $(INST_ARCHAUTODIR)$(DFSEP).exists + $(RM_RF) $@ + $(FULL_AR) $(AR_STATIC_ARGS) $@ $(OBJECT) && $(RANLIB) $@ + $(CHMOD) $(PERM_RWX) $@ + $(NOECHO) $(ECHO) "$(EXTRALIBS)" > $(INST_ARCHAUTODIR)/extralibs.ld + + +# --- MakeMaker manifypods section: + +POD2MAN_EXE = $(PERLRUN) "-MExtUtils::Command::MM" -e pod2man "--" +POD2MAN = $(POD2MAN_EXE) + + +manifypods : pure_all + $(NOECHO) $(NOOP) + + + + +# --- MakeMaker processPL section: + + +# --- MakeMaker installbin section: + + +# --- MakeMaker subdirs section: + +# none + +# --- MakeMaker clean_subdirs section: +clean_subdirs : + $(NOECHO) $(NOOP) + + +# --- MakeMaker clean section: + +# Delete temporary files but do not touch installed files. We don't delete +# the Makefile here so a later make realclean still has a makefile to use. + +clean :: clean_subdirs + - $(RM_F) \ + *$(LIB_EXT) core \ + core.[0-9] $(INST_ARCHAUTODIR)/extralibs.all \ + core.[0-9][0-9] $(BASEEXT).bso \ + pm_to_blib.ts core.[0-9][0-9][0-9][0-9] \ + $(BASEEXT).x $(BOOTSTRAP) \ + perl$(EXE_EXT) tmon.out \ + *$(OBJ_EXT) pm_to_blib \ + $(INST_ARCHAUTODIR)/extralibs.ld blibdirs.ts \ + core.[0-9][0-9][0-9][0-9][0-9] *perl.core \ + core.*perl.*.? $(MAKE_APERL_FILE) \ + perl $(BASEEXT).def \ + core.[0-9][0-9][0-9] mon.out \ + lib$(BASEEXT).def perlmain.c \ + perl.exe so_locations \ + $(BASEEXT).exp + - $(RM_RF) \ + blib + - $(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) $(DEV_NULL) + + +# --- MakeMaker realclean_subdirs section: +realclean_subdirs : + $(NOECHO) $(NOOP) + + +# --- MakeMaker realclean section: +# Delete temporary files (via clean) and also delete dist files +realclean purge :: clean realclean_subdirs + - $(RM_F) \ + $(OBJECT) $(MAKEFILE_OLD) \ + $(FIRST_MAKEFILE) + - $(RM_RF) \ + $(DISTVNAME) + + +# --- MakeMaker metafile section: +metafile : create_distdir + $(NOECHO) $(ECHO) Generating META.yml + $(NOECHO) $(ECHO) '--- #YAML:1.0' > META_new.yml + $(NOECHO) $(ECHO) 'name: CRFPP' >> META_new.yml + $(NOECHO) $(ECHO) 'version: ' >> META_new.yml + $(NOECHO) $(ECHO) 'abstract: ~' >> META_new.yml + $(NOECHO) $(ECHO) 'author: []' >> META_new.yml + $(NOECHO) $(ECHO) 'license: unknown' >> META_new.yml + $(NOECHO) $(ECHO) 'distribution_type: module' >> META_new.yml + $(NOECHO) $(ECHO) 'configure_requires:' >> META_new.yml + $(NOECHO) $(ECHO) ' ExtUtils::MakeMaker: 0' >> META_new.yml + $(NOECHO) $(ECHO) 'build_requires:' >> META_new.yml + $(NOECHO) $(ECHO) ' ExtUtils::MakeMaker: 0' >> META_new.yml + $(NOECHO) $(ECHO) 'requires: {}' >> META_new.yml + $(NOECHO) $(ECHO) 'no_index:' >> META_new.yml + $(NOECHO) $(ECHO) ' directory:' >> META_new.yml + $(NOECHO) $(ECHO) ' - t' >> META_new.yml + $(NOECHO) $(ECHO) ' - inc' >> META_new.yml + $(NOECHO) $(ECHO) 'generated_by: ExtUtils::MakeMaker version 6.56' >> META_new.yml + $(NOECHO) $(ECHO) 'meta-spec:' >> META_new.yml + $(NOECHO) $(ECHO) ' url: http://module-build.sourceforge.net/META-spec-v1.4.html' >> META_new.yml + $(NOECHO) $(ECHO) ' version: 1.4' >> META_new.yml + -$(NOECHO) $(MV) META_new.yml $(DISTVNAME)/META.yml + + +# --- MakeMaker signature section: +signature : + cpansign -s + + +# --- MakeMaker dist_basics section: +distclean :: realclean distcheck + $(NOECHO) $(NOOP) + +distcheck : + $(PERLRUN) "-MExtUtils::Manifest=fullcheck" -e fullcheck + +skipcheck : + $(PERLRUN) "-MExtUtils::Manifest=skipcheck" -e skipcheck + +manifest : + $(PERLRUN) "-MExtUtils::Manifest=mkmanifest" -e mkmanifest + +veryclean : realclean + $(RM_F) *~ */*~ *.orig */*.orig *.bak */*.bak *.old */*.old + + + +# --- MakeMaker dist_core section: + +dist : $(DIST_DEFAULT) $(FIRST_MAKEFILE) + $(NOECHO) $(ABSPERLRUN) -l -e 'print '\''Warning: Makefile possibly out of date with $(VERSION_FROM)'\''' \ + -e ' if -e '\''$(VERSION_FROM)'\'' and -M '\''$(VERSION_FROM)'\'' < -M '\''$(FIRST_MAKEFILE)'\'';' -- + +tardist : $(DISTVNAME).tar$(SUFFIX) + $(NOECHO) $(NOOP) + +uutardist : $(DISTVNAME).tar$(SUFFIX) + uuencode $(DISTVNAME).tar$(SUFFIX) $(DISTVNAME).tar$(SUFFIX) > $(DISTVNAME).tar$(SUFFIX)_uu + +$(DISTVNAME).tar$(SUFFIX) : distdir + $(PREOP) + $(TO_UNIX) + $(TAR) $(TARFLAGS) $(DISTVNAME).tar $(DISTVNAME) + $(RM_RF) $(DISTVNAME) + $(COMPRESS) $(DISTVNAME).tar + $(POSTOP) + +zipdist : $(DISTVNAME).zip + $(NOECHO) $(NOOP) + +$(DISTVNAME).zip : distdir + $(PREOP) + $(ZIP) $(ZIPFLAGS) $(DISTVNAME).zip $(DISTVNAME) + $(RM_RF) $(DISTVNAME) + $(POSTOP) + +shdist : distdir + $(PREOP) + $(SHAR) $(DISTVNAME) > $(DISTVNAME).shar + $(RM_RF) $(DISTVNAME) + $(POSTOP) + + +# --- MakeMaker distdir section: +create_distdir : + $(RM_RF) $(DISTVNAME) + $(PERLRUN) "-MExtUtils::Manifest=manicopy,maniread" \ + -e "manicopy(maniread(),'$(DISTVNAME)', '$(DIST_CP)');" + +distdir : create_distdir distmeta + $(NOECHO) $(NOOP) + + + +# --- MakeMaker dist_test section: +disttest : distdir + cd $(DISTVNAME) && $(ABSPERLRUN) Makefile.PL + cd $(DISTVNAME) && $(MAKE) $(PASTHRU) + cd $(DISTVNAME) && $(MAKE) test $(PASTHRU) + + + +# --- MakeMaker dist_ci section: + +ci : + $(PERLRUN) "-MExtUtils::Manifest=maniread" \ + -e "@all = keys %{ maniread() };" \ + -e "print(qq{Executing $(CI) @all\n}); system(qq{$(CI) @all});" \ + -e "print(qq{Executing $(RCS_LABEL) ...\n}); system(qq{$(RCS_LABEL) @all});" + + +# --- MakeMaker distmeta section: +distmeta : create_distdir metafile + $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'eval { maniadd({q{META.yml} => q{Module meta-data (added by MakeMaker)}}) } ' \ + -e ' or print "Could not add META.yml to MANIFEST: $${'\''@'\''}\n"' -- + + + +# --- MakeMaker distsignature section: +distsignature : create_distdir + $(NOECHO) cd $(DISTVNAME) && $(ABSPERLRUN) -MExtUtils::Manifest=maniadd -e 'eval { maniadd({q{SIGNATURE} => q{Public-key signature (added by MakeMaker)}}) } ' \ + -e ' or print "Could not add SIGNATURE to MANIFEST: $${'\''@'\''}\n"' -- + $(NOECHO) cd $(DISTVNAME) && $(TOUCH) SIGNATURE + cd $(DISTVNAME) && cpansign -s + + + +# --- MakeMaker install section: + +install :: pure_install doc_install + $(NOECHO) $(NOOP) + +install_perl :: pure_perl_install doc_perl_install + $(NOECHO) $(NOOP) + +install_site :: pure_site_install doc_site_install + $(NOECHO) $(NOOP) + +install_vendor :: pure_vendor_install doc_vendor_install + $(NOECHO) $(NOOP) + +pure_install :: pure_$(INSTALLDIRS)_install + $(NOECHO) $(NOOP) + +doc_install :: doc_$(INSTALLDIRS)_install + $(NOECHO) $(NOOP) + +pure__install : pure_site_install + $(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site + +doc__install : doc_site_install + $(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site + +pure_perl_install :: all + $(NOECHO) umask 022; $(MOD_INSTALL) \ + $(INST_LIB) $(DESTINSTALLPRIVLIB) \ + $(INST_ARCHLIB) $(DESTINSTALLARCHLIB) \ + $(INST_BIN) $(DESTINSTALLBIN) \ + $(INST_SCRIPT) $(DESTINSTALLSCRIPT) \ + $(INST_MAN1DIR) $(DESTINSTALLMAN1DIR) \ + $(INST_MAN3DIR) $(DESTINSTALLMAN3DIR) + $(NOECHO) $(WARN_IF_OLD_PACKLIST) \ + $(SITEARCHEXP)/auto/$(FULLEXT) + + +pure_site_install :: all + $(NOECHO) umask 02; $(MOD_INSTALL) \ + read $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist \ + write $(DESTINSTALLSITEARCH)/auto/$(FULLEXT)/.packlist \ + $(INST_LIB) $(DESTINSTALLSITELIB) \ + $(INST_ARCHLIB) $(DESTINSTALLSITEARCH) \ + $(INST_BIN) $(DESTINSTALLSITEBIN) \ + $(INST_SCRIPT) $(DESTINSTALLSITESCRIPT) \ + $(INST_MAN1DIR) $(DESTINSTALLSITEMAN1DIR) \ + $(INST_MAN3DIR) $(DESTINSTALLSITEMAN3DIR) + $(NOECHO) $(WARN_IF_OLD_PACKLIST) \ + $(PERL_ARCHLIB)/auto/$(FULLEXT) + +pure_vendor_install :: all + $(NOECHO) umask 022; $(MOD_INSTALL) \ + $(INST_LIB) $(DESTINSTALLVENDORLIB) \ + $(INST_ARCHLIB) $(DESTINSTALLVENDORARCH) \ + $(INST_BIN) $(DESTINSTALLVENDORBIN) \ + $(INST_SCRIPT) $(DESTINSTALLVENDORSCRIPT) \ + $(INST_MAN1DIR) $(DESTINSTALLVENDORMAN1DIR) \ + $(INST_MAN3DIR) $(DESTINSTALLVENDORMAN3DIR) + +doc_perl_install :: all + +doc_site_install :: all + $(NOECHO) $(ECHO) Appending installation info to $(DESTINSTALLSITEARCH)/perllocal.pod + -$(NOECHO) umask 02; $(MKPATH) $(DESTINSTALLSITEARCH) + -$(NOECHO) umask 02; $(DOC_INSTALL) \ + "Module" "$(NAME)" \ + "installed into" "$(INSTALLSITELIB)" \ + LINKTYPE "$(LINKTYPE)" \ + VERSION "$(VERSION)" \ + EXE_FILES "$(EXE_FILES)" \ + >> $(DESTINSTALLSITEARCH)/perllocal.pod + +doc_vendor_install :: all + + +uninstall :: uninstall_from_$(INSTALLDIRS)dirs + $(NOECHO) $(NOOP) + +uninstall_from_perldirs :: + +uninstall_from_sitedirs :: + $(NOECHO) $(UNINSTALL) $(SITEARCHEXP)/auto/$(FULLEXT)/.packlist + +uninstall_from_vendordirs :: + + + +# --- MakeMaker force section: +# Phony target to force checking subdirectories. +FORCE : + $(NOECHO) $(NOOP) + + +# --- MakeMaker perldepend section: + +PERL_HDRS = \ + $(PERL_INC)/EXTERN.h \ + $(PERL_INC)/INTERN.h \ + $(PERL_INC)/XSUB.h \ + $(PERL_INC)/av.h \ + $(PERL_INC)/cc_runtime.h \ + $(PERL_INC)/config.h \ + $(PERL_INC)/cop.h \ + $(PERL_INC)/cv.h \ + $(PERL_INC)/dosish.h \ + $(PERL_INC)/embed.h \ + $(PERL_INC)/embedvar.h \ + $(PERL_INC)/fakethr.h \ + $(PERL_INC)/form.h \ + $(PERL_INC)/gv.h \ + $(PERL_INC)/handy.h \ + $(PERL_INC)/hv.h \ + $(PERL_INC)/intrpvar.h \ + $(PERL_INC)/iperlsys.h \ + $(PERL_INC)/keywords.h \ + $(PERL_INC)/mg.h \ + $(PERL_INC)/nostdio.h \ + $(PERL_INC)/op.h \ + $(PERL_INC)/opcode.h \ + $(PERL_INC)/patchlevel.h \ + $(PERL_INC)/perl.h \ + $(PERL_INC)/perlio.h \ + $(PERL_INC)/perlsdio.h \ + $(PERL_INC)/perlsfio.h \ + $(PERL_INC)/perlvars.h \ + $(PERL_INC)/perly.h \ + $(PERL_INC)/pp.h \ + $(PERL_INC)/pp_proto.h \ + $(PERL_INC)/proto.h \ + $(PERL_INC)/regcomp.h \ + $(PERL_INC)/regexp.h \ + $(PERL_INC)/regnodes.h \ + $(PERL_INC)/scope.h \ + $(PERL_INC)/sv.h \ + $(PERL_INC)/thread.h \ + $(PERL_INC)/unixish.h \ + $(PERL_INC)/util.h + +$(OBJECT) : $(PERL_HDRS) + + +# --- MakeMaker makefile section: + +$(OBJECT) : $(FIRST_MAKEFILE) + +# We take a very conservative approach here, but it's worth it. +# We move Makefile to Makefile.old here to avoid gnu make looping. +$(FIRST_MAKEFILE) : Makefile.PL $(CONFIGDEP) + $(NOECHO) $(ECHO) "Makefile out-of-date with respect to $?" + $(NOECHO) $(ECHO) "Cleaning current config before rebuilding Makefile..." + -$(NOECHO) $(RM_F) $(MAKEFILE_OLD) + -$(NOECHO) $(MV) $(FIRST_MAKEFILE) $(MAKEFILE_OLD) + - $(MAKE) $(USEMAKEFILE) $(MAKEFILE_OLD) clean $(DEV_NULL) + $(PERLRUN) Makefile.PL + $(NOECHO) $(ECHO) "==> Your Makefile has been rebuilt. <==" + $(NOECHO) $(ECHO) "==> Please rerun the $(MAKE) command. <==" + $(FALSE) + + + +# --- MakeMaker staticmake section: + +# --- MakeMaker makeaperl section --- +MAP_TARGET = perl +FULLPERL = /usr/bin/perl + +$(MAP_TARGET) :: static $(MAKE_APERL_FILE) + $(MAKE) $(USEMAKEFILE) $(MAKE_APERL_FILE) $@ + +$(MAKE_APERL_FILE) : $(FIRST_MAKEFILE) pm_to_blib + $(NOECHO) $(ECHO) Writing \"$(MAKE_APERL_FILE)\" for this $(MAP_TARGET) + $(NOECHO) $(PERLRUNINST) \ + Makefile.PL DIR= \ + MAKEFILE=$(MAKE_APERL_FILE) LINKTYPE=static \ + MAKEAPERL=1 NORECURS=1 CCCDLFLAGS= + + +# --- MakeMaker test section: + +TEST_VERBOSE=0 +TEST_TYPE=test_$(LINKTYPE) +TEST_FILE = test.pl +TEST_FILES = +TESTDB_SW = -d + +testdb :: testdb_$(LINKTYPE) + +test :: $(TEST_TYPE) subdirs-test + +subdirs-test :: + $(NOECHO) $(NOOP) + + +test_dynamic :: pure_all + PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-I$(INST_LIB)" "-I$(INST_ARCHLIB)" $(TEST_FILE) + +testdb_dynamic :: pure_all + PERL_DL_NONLAZY=1 $(FULLPERLRUN) $(TESTDB_SW) "-I$(INST_LIB)" "-I$(INST_ARCHLIB)" $(TEST_FILE) + +test_ : test_dynamic + +test_static :: pure_all $(MAP_TARGET) + PERL_DL_NONLAZY=1 ./$(MAP_TARGET) "-I$(INST_LIB)" "-I$(INST_ARCHLIB)" $(TEST_FILE) + +testdb_static :: pure_all $(MAP_TARGET) + PERL_DL_NONLAZY=1 ./$(MAP_TARGET) $(TESTDB_SW) "-I$(INST_LIB)" "-I$(INST_ARCHLIB)" $(TEST_FILE) + + + +# --- MakeMaker ppd section: +# Creates a PPD (Perl Package Description) for a binary distribution. +ppd : + $(NOECHO) $(ECHO) '<SOFTPKG NAME="$(DISTNAME)" VERSION="">' > $(DISTNAME).ppd + $(NOECHO) $(ECHO) ' <ABSTRACT></ABSTRACT>' >> $(DISTNAME).ppd + $(NOECHO) $(ECHO) ' <AUTHOR></AUTHOR>' >> $(DISTNAME).ppd + $(NOECHO) $(ECHO) ' <IMPLEMENTATION>' >> $(DISTNAME).ppd + $(NOECHO) $(ECHO) ' <ARCHITECTURE NAME="x86_64-linux-gnu-thread-multi-5.12" />' >> $(DISTNAME).ppd + $(NOECHO) $(ECHO) ' <CODEBASE HREF="" />' >> $(DISTNAME).ppd + $(NOECHO) $(ECHO) ' </IMPLEMENTATION>' >> $(DISTNAME).ppd + $(NOECHO) $(ECHO) '</SOFTPKG>' >> $(DISTNAME).ppd + + +# --- MakeMaker pm_to_blib section: + +pm_to_blib : $(FIRST_MAKEFILE) $(TO_INST_PM) + $(NOECHO) $(ABSPERLRUN) -MExtUtils::Install -e 'pm_to_blib({@ARGV}, '\''$(INST_LIB)/auto'\'', q[$(PM_FILTER)], '\''$(PERM_DIR)'\'')' -- \ + CRFPP.pm $(INST_LIB)/CRFPP.pm + $(NOECHO) $(TOUCH) pm_to_blib + + +# --- MakeMaker selfdocument section: + + +# --- MakeMaker postamble section: + + +# End. diff --git a/perl/README b/perl/README new file mode 100644 index 0000000..58ab1ee --- /dev/null +++ b/perl/README @@ -0,0 +1,12 @@ +CRF++ perl module + +1. Installation + + % perl Makefile.PL + % make + % su + # make install + +2. How to use? + + See 'test.pl' as a sample program diff --git a/perl/test.pl b/perl/test.pl new file mode 100755 index 0000000..aeca5b9 --- /dev/null +++ b/perl/test.pl @@ -0,0 +1,72 @@ +#!/usr/bin/perl + +use lib "../src/.libs"; +use lib $ENV{PWD} . "/blib/lib"; +use lib $ENV{PWD} . "/blib/arch"; +use CRFPP; + +print $CRFPP::VERSION, "\n"; + +# -v 3: access deep information like alpha,beta,prob +# -nN: enable nbest output. N should be >= 2 +my $tagger = new CRFPP::Tagger("-m ../model -v 3 -n2"); + +# clear internal context +$tagger->clear(); + +# add context +$tagger->add("Confidence NN"); +$tagger->add("in IN"); +$tagger->add("the DT"); +$tagger->add("pound NN"); +$tagger->add("is VBZ"); +$tagger->add("widely RB"); +$tagger->add("expected VBN"); +$tagger->add("to TO"); +$tagger->add("take VB"); +$tagger->add("another DT"); +$tagger->add("sharp JJ"); +$tagger->add("dive NN"); +$tagger->add("if IN"); +$tagger->add("trade NN"); +$tagger->add("figures NNS"); +$tagger->add("for IN"); +$tagger->add("September NNP"); + +print "column size: " , $tagger->xsize() , "\n"; +print "token size: " , $tagger->size() , "\n"; +print "tag size: " , $tagger->ysize() , "\n"; + +print "tagset information:" , "\n"; +for (my $i = 0; $i < $tagger->ysize(); ++$i) { + print "tag " , $i , " " , $tagger->yname($i) , "\n"; +} + +# parse and change internal stated as 'parsed' +die if (!$tagger->parse()); + +print "conditional prob=" , $tagger->prob(), " log(Z)=" , $tagger->Z() , "\n"; + +for (my $i = 0; $i < $tagger->size(); ++$i) { + for (my $j = 0; $j < $tagger->xsize(); ++$j) { + print $tagger->x($i, $j) , "\t"; + } + print $tagger->y2($i) , "\t"; + print "\n"; + print "Details"; + for (my $j = 0; $j < $tagger->ysize(); ++$j) { + print "\t" , $tagger->yname($j) , "/prob=" , $tagger->prob($i,$j) + ,"/alpha=" , $tagger->alpha($i, $j) + ,"/beta=" , $tagger->beta($i, $j); + } + print "\n"; +} + +print "nbest outputs:" , "\n"; +for (my $n = 0; $n < 10; ++$n) { + last if (! $tagger->next()); + print "nbest n=" , $n , "\tconditional prob=" , $tagger->prob() , "\n"; + # you can access any information using $tagger->y()... +} + +print "Done" , "\n"; diff --git a/python/CRFPP.py b/python/CRFPP.py new file mode 100644 index 0000000..98ff213 --- /dev/null +++ b/python/CRFPP.py @@ -0,0 +1,135 @@ +# This file was automatically generated by SWIG (http://www.swig.org). +# Version 1.3.40 +# +# Do not make changes to this file unless you know what you are doing--modify +# the SWIG interface file instead. +# This file is compatible with both classic and new-style classes. + +from sys import version_info +if version_info >= (2,6,0): + def swig_import_helper(): + from os.path import dirname + import imp + fp = None + try: + fp, pathname, description = imp.find_module('_CRFPP', [dirname(__file__)]) + except ImportError: + import _CRFPP + return _CRFPP + if fp is not None: + try: + _mod = imp.load_module('_CRFPP', fp, pathname, description) + finally: + fp.close() + return _mod + _CRFPP = swig_import_helper() + del swig_import_helper +else: + import _CRFPP +del version_info +try: + _swig_property = property +except NameError: + pass # Python < 2.2 doesn't have 'property'. +def _swig_setattr_nondynamic(self,class_type,name,value,static=1): + if (name == "thisown"): return self.this.own(value) + if (name == "this"): + if type(value).__name__ == 'SwigPyObject': + self.__dict__[name] = value + return + method = class_type.__swig_setmethods__.get(name,None) + if method: return method(self,value) + if (not static) or hasattr(self,name): + self.__dict__[name] = value + else: + raise AttributeError("You cannot add attributes to %s" % self) + +def _swig_setattr(self,class_type,name,value): + return _swig_setattr_nondynamic(self,class_type,name,value,0) + +def _swig_getattr(self,class_type,name): + if (name == "thisown"): return self.this.own() + method = class_type.__swig_getmethods__.get(name,None) + if method: return method(self) + raise AttributeError(name) + +def _swig_repr(self): + try: strthis = "proxy of " + self.this.__repr__() + except: strthis = "" + return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) + +try: + _object = object + _newclass = 1 +except AttributeError: + class _object : pass + _newclass = 0 + + +class Model(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, Model, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, Model, name) + __repr__ = _swig_repr + def createTagger(self): return _CRFPP.Model_createTagger(self) + def what(self): return _CRFPP.Model_what(self) + __swig_destroy__ = _CRFPP.delete_Model + __del__ = lambda self : None; + def __init__(self, *args): + this = _CRFPP.new_Model(*args) + try: self.this.append(this) + except: self.this = this +Model_swigregister = _CRFPP.Model_swigregister +Model_swigregister(Model) + +class Tagger(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, Tagger, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, Tagger, name) + __repr__ = _swig_repr + def set_vlevel(self, *args): return _CRFPP.Tagger_set_vlevel(self, *args) + def vlevel(self): return _CRFPP.Tagger_vlevel(self) + def set_cost_factor(self, *args): return _CRFPP.Tagger_set_cost_factor(self, *args) + def cost_factor(self): return _CRFPP.Tagger_cost_factor(self) + def set_nbest(self, *args): return _CRFPP.Tagger_set_nbest(self, *args) + def nbest(self): return _CRFPP.Tagger_nbest(self) + def add(self, *args): return _CRFPP.Tagger_add(self, *args) + def size(self): return _CRFPP.Tagger_size(self) + def xsize(self): return _CRFPP.Tagger_xsize(self) + def dsize(self): return _CRFPP.Tagger_dsize(self) + def result(self, *args): return _CRFPP.Tagger_result(self, *args) + def answer(self, *args): return _CRFPP.Tagger_answer(self, *args) + def y(self, *args): return _CRFPP.Tagger_y(self, *args) + def y2(self, *args): return _CRFPP.Tagger_y2(self, *args) + def yname(self, *args): return _CRFPP.Tagger_yname(self, *args) + def x(self, *args): return _CRFPP.Tagger_x(self, *args) + def ysize(self): return _CRFPP.Tagger_ysize(self) + def prob(self, *args): return _CRFPP.Tagger_prob(self, *args) + def set_penalty(self, *args): return _CRFPP.Tagger_set_penalty(self, *args) + def penalty(self, *args): return _CRFPP.Tagger_penalty(self, *args) + def alpha(self, *args): return _CRFPP.Tagger_alpha(self, *args) + def beta(self, *args): return _CRFPP.Tagger_beta(self, *args) + def emission_cost(self, *args): return _CRFPP.Tagger_emission_cost(self, *args) + def next_transition_cost(self, *args): return _CRFPP.Tagger_next_transition_cost(self, *args) + def prev_transition_cost(self, *args): return _CRFPP.Tagger_prev_transition_cost(self, *args) + def best_cost(self, *args): return _CRFPP.Tagger_best_cost(self, *args) + def Z(self): return _CRFPP.Tagger_Z(self) + def empty(self): return _CRFPP.Tagger_empty(self) + def clear(self): return _CRFPP.Tagger_clear(self) + def next(self): return _CRFPP.Tagger_next(self) + def parse(self, *args): return _CRFPP.Tagger_parse(self, *args) + def what(self): return _CRFPP.Tagger_what(self) + __swig_destroy__ = _CRFPP.delete_Tagger + __del__ = lambda self : None; + def __init__(self, *args): + this = _CRFPP.new_Tagger(*args) + try: self.this.append(this) + except: self.this = this +Tagger_swigregister = _CRFPP.Tagger_swigregister +Tagger_swigregister(Tagger) + +VERSION = _CRFPP.VERSION + + diff --git a/python/CRFPP_wrap.cxx b/python/CRFPP_wrap.cxx new file mode 100644 index 0000000..a1bbf15 --- /dev/null +++ b/python/CRFPP_wrap.cxx @@ -0,0 +1,5570 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGPYTHON +#define SWIG_PYTHON_DIRECTOR_NO_VTABLE + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template<typename T> class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); + SwigValueWrapper(const SwigValueWrapper<T>& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template <typename T> T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + + +/* Python.h has to appear first */ +#include <Python.h> +#include <stddef.h> + +/* ----------------------------------------------------------------------------- + * swigrun.swg + * + * This file contains generic C API SWIG runtime support for pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* This should only be incremented when either the layout of swig_type_info changes, + or for whatever reason, the runtime changes incompatibly */ +#define SWIG_RUNTIME_VERSION "4" + +/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ +#ifdef SWIG_TYPE_TABLE +# define SWIG_QUOTE_STRING(x) #x +# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) +# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) +#else +# define SWIG_TYPE_TABLE_NAME +#endif + +/* + You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for + creating a static or dynamic library from the SWIG runtime code. + In 99.9% of the cases, SWIG just needs to declare them as 'static'. + + But only do this if strictly necessary, ie, if you have problems + with your compiler or suchlike. +*/ + +#ifndef SWIGRUNTIME +# define SWIGRUNTIME SWIGINTERN +#endif + +#ifndef SWIGRUNTIMEINLINE +# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE +#endif + +/* Generic buffer size */ +#ifndef SWIG_BUFFER_SIZE +# define SWIG_BUFFER_SIZE 1024 +#endif + +/* Flags for pointer conversions */ +#define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 + +/* Flags for new pointer objects */ +#define SWIG_POINTER_OWN 0x1 + + +/* + Flags/methods for returning states. + + The SWIG conversion methods, as ConvertPtr, return and integer + that tells if the conversion was successful or not. And if not, + an error code can be returned (see swigerrors.swg for the codes). + + Use the following macros/flags to set or process the returning + states. + + In old versions of SWIG, code such as the following was usually written: + + if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { + // success code + } else { + //fail code + } + + Now you can be more explicit: + + int res = SWIG_ConvertPtr(obj,vptr,ty.flags); + if (SWIG_IsOK(res)) { + // success code + } else { + // fail code + } + + which is the same really, but now you can also do + + Type *ptr; + int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); + if (SWIG_IsOK(res)) { + // success code + if (SWIG_IsNewObj(res) { + ... + delete *ptr; + } else { + ... + } + } else { + // fail code + } + + I.e., now SWIG_ConvertPtr can return new objects and you can + identify the case and take care of the deallocation. Of course that + also requires SWIG_ConvertPtr to return new result values, such as + + int SWIG_ConvertPtr(obj, ptr,...) { + if (<obj is ok>) { + if (<need new object>) { + *ptr = <ptr to new allocated object>; + return SWIG_NEWOBJ; + } else { + *ptr = <ptr to old object>; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } + } + + Of course, returning the plain '0(success)/-1(fail)' still works, but you can be + more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the + SWIG errors code. + + Finally, if the SWIG_CASTRANK_MODE is enabled, the result code + allows to return the 'cast rank', for example, if you have this + + int food(double) + int fooi(int); + + and you call + + food(1) // cast rank '1' (1 -> 1.0) + fooi(1) // cast rank '0' + + just use the SWIG_AddCast()/SWIG_CheckState() +*/ + +#define SWIG_OK (0) +#define SWIG_ERROR (-1) +#define SWIG_IsOK(r) (r >= 0) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) + +/* The CastRankLimit says how many bits are used for the cast rank */ +#define SWIG_CASTRANKLIMIT (1 << 8) +/* The NewMask denotes the object was created (using new/malloc) */ +#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) +/* The TmpMask is for in/out typemaps that use temporal objects */ +#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) +/* Simple returning values */ +#define SWIG_BADOBJ (SWIG_ERROR) +#define SWIG_OLDOBJ (SWIG_OK) +#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) +#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) +/* Check, add and del mask methods */ +#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) +#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) +#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) +#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) +#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) +#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) + +/* Cast-Rank Mode */ +#if defined(SWIG_CASTRANK_MODE) +# ifndef SWIG_TypeRank +# define SWIG_TypeRank unsigned long +# endif +# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ +# define SWIG_MAXCASTRANK (2) +# endif +# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) +# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) +SWIGINTERNINLINE int SWIG_AddCast(int r) { + return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; +} +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +} +#else /* no cast-rank mode */ +# define SWIG_AddCast +# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) +#endif + + +#include <string.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void *(*swig_converter_func)(void *, int *); +typedef struct swig_type_info *(*swig_dycast_func)(void **); + +/* Structure to store information on one type */ +typedef struct swig_type_info { + const char *name; /* mangled name of this type */ + const char *str; /* human readable name of this type */ + swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ + struct swig_cast_info *cast; /* linked list of types that can cast into this type */ + void *clientdata; /* language specific type data */ + int owndata; /* flag if the structure owns the clientdata */ +} swig_type_info; + +/* Structure to store a type and conversion function used for casting */ +typedef struct swig_cast_info { + swig_type_info *type; /* pointer to type that is equivalent to this type */ + swig_converter_func converter; /* function to cast the void pointers */ + struct swig_cast_info *next; /* pointer to next cast in linked list */ + struct swig_cast_info *prev; /* pointer to the previous cast */ +} swig_cast_info; + +/* Structure used to store module information + * Each module generates one structure like this, and the runtime collects + * all of these structures and stores them in a circularly linked list.*/ +typedef struct swig_module_info { + swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ + size_t size; /* Number of types in this module */ + struct swig_module_info *next; /* Pointer to next element in circularly linked list */ + swig_type_info **type_initial; /* Array of initially generated type structures */ + swig_cast_info **cast_initial; /* Array of initially generated casting structures */ + void *clientdata; /* Language specific module data */ +} swig_module_info; + +/* + Compare two type names skipping the space characters, therefore + "char*" == "char *" and "Class<int>" == "Class<int >", etc. + + Return 0 when the two name types are equivalent, as in + strncmp, but skipping ' '. +*/ +SWIGRUNTIME int +SWIG_TypeNameComp(const char *f1, const char *l1, + const char *f2, const char *l2) { + for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { + while ((*f1 == ' ') && (f1 != l1)) ++f1; + while ((*f2 == ' ') && (f2 != l2)) ++f2; + if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; + } + return (int)((l1 - f1) - (l2 - f2)); +} + +/* + Check type equivalence in a name list like <name1>|<name2>|... + Return 0 if not equal, 1 if equal +*/ +SWIGRUNTIME int +SWIG_TypeEquiv(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + +/* + Check type equivalence in a name list like <name1>|<name2>|... + Return 0 if equal, -1 if nb < tb, 1 if nb > tb +*/ +SWIGRUNTIME int +SWIG_TypeCompare(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + + +/* + Check the typename +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (strcmp(iter->type->name, c) == 0) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (iter->type == from) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Cast a pointer up an inheritance hierarchy +*/ +SWIGRUNTIMEINLINE void * +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +} + +/* + Dynamic pointer casting. Down an inheritance hierarchy +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { + swig_type_info *lastty = ty; + if (!ty || !ty->dcast) return ty; + while (ty && (ty->dcast)) { + ty = (*ty->dcast)(ptr); + if (ty) lastty = ty; + } + return lastty; +} + +/* + Return the name associated with this type +*/ +SWIGRUNTIMEINLINE const char * +SWIG_TypeName(const swig_type_info *ty) { + return ty->name; +} + +/* + Return the pretty name associated with this type, + that is an unmangled type name in a form presentable to the user. +*/ +SWIGRUNTIME const char * +SWIG_TypePrettyName(const swig_type_info *type) { + /* The "str" field contains the equivalent pretty names of the + type, separated by vertical-bar characters. We choose + to print the last name, as it is often (?) the most + specific. */ + if (!type) return NULL; + if (type->str != NULL) { + const char *last_name = type->str; + const char *s; + for (s = type->str; *s; s++) + if (*s == '|') last_name = s+1; + return last_name; + } + else + return type->name; +} + +/* + Set the clientdata field for a type +*/ +SWIGRUNTIME void +SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { + swig_cast_info *cast = ti->cast; + /* if (ti->clientdata == clientdata) return; */ + ti->clientdata = clientdata; + + while (cast) { + if (!cast->converter) { + swig_type_info *tc = cast->type; + if (!tc->clientdata) { + SWIG_TypeClientData(tc, clientdata); + } + } + cast = cast->next; + } +} +SWIGRUNTIME void +SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { + SWIG_TypeClientData(ti, clientdata); + ti->owndata = 1; +} + +/* + Search for a swig_type_info structure only by mangled name + Search is a O(log #types) + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + swig_module_info *iter = start; + do { + if (iter->size) { + register size_t l = 0; + register size_t r = iter->size - 1; + do { + /* since l+r >= 0, we can (>> 1) instead (/ 2) */ + register size_t i = (l + r) >> 1; + const char *iname = iter->types[i]->name; + if (iname) { + register int compare = strcmp(name, iname); + if (compare == 0) { + return iter->types[i]; + } else if (compare < 0) { + if (i) { + r = i - 1; + } else { + break; + } + } else if (compare > 0) { + l = i + 1; + } + } else { + break; /* should never happen */ + } + } while (l <= r); + } + iter = iter->next; + } while (iter != end); + return 0; +} + +/* + Search for a swig_type_info structure for either a mangled name or a human readable name. + It first searches the mangled names of the types, which is a O(log #types) + If a type is not found it then searches the human readable names, which is O(#types). + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + /* STEP 1: Search the name field using binary search */ + swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); + if (ret) { + return ret; + } else { + /* STEP 2: If the type hasn't been found, do a complete search + of the str field (the human readable name) */ + swig_module_info *iter = start; + do { + register size_t i = 0; + for (; i < iter->size; ++i) { + if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) + return iter->types[i]; + } + iter = iter->next; + } while (iter != end); + } + + /* neither found a match */ + return 0; +} + +/* + Pack binary data into a string +*/ +SWIGRUNTIME char * +SWIG_PackData(char *c, void *ptr, size_t sz) { + static const char hex[17] = "0123456789abcdef"; + register const unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register unsigned char uu = *u; + *(c++) = hex[(uu & 0xf0) >> 4]; + *(c++) = hex[uu & 0xf]; + } + return c; +} + +/* + Unpack binary data from a string +*/ +SWIGRUNTIME const char * +SWIG_UnpackData(const char *c, void *ptr, size_t sz) { + register unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register char d = *(c++); + register unsigned char uu; + if ((d >= '0') && (d <= '9')) + uu = ((d - '0') << 4); + else if ((d >= 'a') && (d <= 'f')) + uu = ((d - ('a'-10)) << 4); + else + return (char *) 0; + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu |= (d - '0'); + else if ((d >= 'a') && (d <= 'f')) + uu |= (d - ('a'-10)); + else + return (char *) 0; + *u = uu; + } + return c; +} + +/* + Pack 'void *' into a string buffer. +*/ +SWIGRUNTIME char * +SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { + char *r = buff; + if ((2*sizeof(void *) + 2) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,&ptr,sizeof(void *)); + if (strlen(name) + 1 > (bsz - (r - buff))) return 0; + strcpy(r,name); + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + *ptr = (void *) 0; + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sizeof(void *)); +} + +SWIGRUNTIME char * +SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { + char *r = buff; + size_t lname = (name ? strlen(name) : 0); + if ((2*sz + 2 + lname) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + if (lname) { + strncpy(r,name,lname+1); + } else { + *r = 0; + } + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + memset(ptr,0,sz); + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sz); +} + +#ifdef __cplusplus +} +#endif + +/* Errors in SWIG */ +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 +#define SWIG_SystemError -10 +#define SWIG_AttributeError -11 +#define SWIG_MemoryError -12 +#define SWIG_NullReferenceError -13 + + + +/* Compatibility macros for Python 3 */ +#if PY_VERSION_HEX >= 0x03000000 + +#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) +#define PyInt_Check(x) PyLong_Check(x) +#define PyInt_AsLong(x) PyLong_AsLong(x) +#define PyInt_FromLong(x) PyLong_FromLong(x) +#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) + +#endif + +#ifndef Py_TYPE +# define Py_TYPE(op) ((op)->ob_type) +#endif + +/* SWIG APIs for compatibility of both Python 2 & 3 */ + +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_Python_str_FromFormat PyUnicode_FromFormat +#else +# define SWIG_Python_str_FromFormat PyString_FromFormat +#endif + + +/* Warning: This function will allocate a new string in Python 3, + * so please call SWIG_Python_str_DelForPy3(x) to free the space. + */ +SWIGINTERN char* +SWIG_Python_str_AsChar(PyObject *str) +{ +#if PY_VERSION_HEX >= 0x03000000 + char *cstr; + char *newstr; + Py_ssize_t len; + str = PyUnicode_AsUTF8String(str); + PyBytes_AsStringAndSize(str, &cstr, &len); + newstr = (char *) malloc(len+1); + memcpy(newstr, cstr, len+1); + Py_XDECREF(str); + return newstr; +#else + return PyString_AsString(str); +#endif +} + +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) +#else +# define SWIG_Python_str_DelForPy3(x) +#endif + + +SWIGINTERN PyObject* +SWIG_Python_str_FromChar(const char *c) +{ +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_FromString(c); +#else + return PyString_FromString(c); +#endif +} + +/* Add PyOS_snprintf for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 +# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) +# define PyOS_snprintf _snprintf +# else +# define PyOS_snprintf snprintf +# endif +#endif + +/* A crude PyString_FromFormat implementation for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 + +#ifndef SWIG_PYBUFFER_SIZE +# define SWIG_PYBUFFER_SIZE 1024 +#endif + +static PyObject * +PyString_FromFormat(const char *fmt, ...) { + va_list ap; + char buf[SWIG_PYBUFFER_SIZE * 2]; + int res; + va_start(ap, fmt); + res = vsnprintf(buf, sizeof(buf), fmt, ap); + va_end(ap); + return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); +} +#endif + +/* Add PyObject_Del for old Pythons */ +#if PY_VERSION_HEX < 0x01060000 +# define PyObject_Del(op) PyMem_DEL((op)) +#endif +#ifndef PyObject_DEL +# define PyObject_DEL PyObject_Del +#endif + +/* A crude PyExc_StopIteration exception for old Pythons */ +#if PY_VERSION_HEX < 0x02020000 +# ifndef PyExc_StopIteration +# define PyExc_StopIteration PyExc_RuntimeError +# endif +# ifndef PyObject_GenericGetAttr +# define PyObject_GenericGetAttr 0 +# endif +#endif + +/* Py_NotImplemented is defined in 2.1 and up. */ +#if PY_VERSION_HEX < 0x02010000 +# ifndef Py_NotImplemented +# define Py_NotImplemented PyExc_RuntimeError +# endif +#endif + +/* A crude PyString_AsStringAndSize implementation for old Pythons */ +#if PY_VERSION_HEX < 0x02010000 +# ifndef PyString_AsStringAndSize +# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} +# endif +#endif + +/* PySequence_Size for old Pythons */ +#if PY_VERSION_HEX < 0x02000000 +# ifndef PySequence_Size +# define PySequence_Size PySequence_Length +# endif +#endif + +/* PyBool_FromLong for old Pythons */ +#if PY_VERSION_HEX < 0x02030000 +static +PyObject *PyBool_FromLong(long ok) +{ + PyObject *result = ok ? Py_True : Py_False; + Py_INCREF(result); + return result; +} +#endif + +/* Py_ssize_t for old Pythons */ +/* This code is as recommended by: */ +/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ +#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) +typedef int Py_ssize_t; +# define PY_SSIZE_T_MAX INT_MAX +# define PY_SSIZE_T_MIN INT_MIN +#endif + +/* ----------------------------------------------------------------------------- + * error manipulation + * ----------------------------------------------------------------------------- */ + +SWIGRUNTIME PyObject* +SWIG_Python_ErrorType(int code) { + PyObject* type = 0; + switch(code) { + case SWIG_MemoryError: + type = PyExc_MemoryError; + break; + case SWIG_IOError: + type = PyExc_IOError; + break; + case SWIG_RuntimeError: + type = PyExc_RuntimeError; + break; + case SWIG_IndexError: + type = PyExc_IndexError; + break; + case SWIG_TypeError: + type = PyExc_TypeError; + break; + case SWIG_DivisionByZero: + type = PyExc_ZeroDivisionError; + break; + case SWIG_OverflowError: + type = PyExc_OverflowError; + break; + case SWIG_SyntaxError: + type = PyExc_SyntaxError; + break; + case SWIG_ValueError: + type = PyExc_ValueError; + break; + case SWIG_SystemError: + type = PyExc_SystemError; + break; + case SWIG_AttributeError: + type = PyExc_AttributeError; + break; + default: + type = PyExc_RuntimeError; + } + return type; +} + + +SWIGRUNTIME void +SWIG_Python_AddErrorMsg(const char* mesg) +{ + PyObject *type = 0; + PyObject *value = 0; + PyObject *traceback = 0; + + if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); + if (value) { + char *tmp; + PyObject *old_str = PyObject_Str(value); + PyErr_Clear(); + Py_XINCREF(type); + + PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(old_str); + Py_DECREF(value); + } else { + PyErr_SetString(PyExc_RuntimeError, mesg); + } +} + +#if defined(SWIG_PYTHON_NO_THREADS) +# if defined(SWIG_PYTHON_THREADS) +# undef SWIG_PYTHON_THREADS +# endif +#endif +#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ +# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) +# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ +# define SWIG_PYTHON_USE_GIL +# endif +# endif +# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ +# ifndef SWIG_PYTHON_INITIALIZE_THREADS +# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() +# endif +# ifdef __cplusplus /* C++ code */ + class SWIG_Python_Thread_Block { + bool status; + PyGILState_STATE state; + public: + void end() { if (status) { PyGILState_Release(state); status = false;} } + SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} + ~SWIG_Python_Thread_Block() { end(); } + }; + class SWIG_Python_Thread_Allow { + bool status; + PyThreadState *save; + public: + void end() { if (status) { PyEval_RestoreThread(save); status = false; }} + SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} + ~SWIG_Python_Thread_Allow() { end(); } + }; +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block +# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow +# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() +# else /* C code */ +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() +# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() +# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) +# endif +# else /* Old thread way, not implemented, user must provide it */ +# if !defined(SWIG_PYTHON_INITIALIZE_THREADS) +# define SWIG_PYTHON_INITIALIZE_THREADS +# endif +# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK +# endif +# if !defined(SWIG_PYTHON_THREAD_END_BLOCK) +# define SWIG_PYTHON_THREAD_END_BLOCK +# endif +# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW +# endif +# if !defined(SWIG_PYTHON_THREAD_END_ALLOW) +# define SWIG_PYTHON_THREAD_END_ALLOW +# endif +# endif +#else /* No thread support */ +# define SWIG_PYTHON_INITIALIZE_THREADS +# define SWIG_PYTHON_THREAD_BEGIN_BLOCK +# define SWIG_PYTHON_THREAD_END_BLOCK +# define SWIG_PYTHON_THREAD_BEGIN_ALLOW +# define SWIG_PYTHON_THREAD_END_ALLOW +#endif + +/* ----------------------------------------------------------------------------- + * Python API portion that goes into the runtime + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* cc-mode */ +#endif +#endif + +/* ----------------------------------------------------------------------------- + * Constant declarations + * ----------------------------------------------------------------------------- */ + +/* Constant Types */ +#define SWIG_PY_POINTER 4 +#define SWIG_PY_BINARY 5 + +/* Constant information structure */ +typedef struct swig_const_info { + int type; + char *name; + long lvalue; + double dvalue; + void *pvalue; + swig_type_info **ptype; +} swig_const_info; + + +/* ----------------------------------------------------------------------------- + * Wrapper of PyInstanceMethod_New() used in Python 3 + * It is exported to the generated module, used for -fastproxy + * ----------------------------------------------------------------------------- */ +SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *self, PyObject *func) +{ +#if PY_VERSION_HEX >= 0x03000000 + return PyInstanceMethod_New(func); +#else + return NULL; +#endif +} + +#ifdef __cplusplus +#if 0 +{ /* cc-mode */ +#endif +} +#endif + + +/* ----------------------------------------------------------------------------- + * See the LICENSE file for information on copyright, usage and redistribution + * of SWIG, and the README file for authors - http://www.swig.org/release.html. + * + * pyrun.swg + * + * This file contains the runtime support for Python modules + * and includes code for managing global variables and pointer + * type checking. + * + * ----------------------------------------------------------------------------- */ + +/* Common SWIG API */ + +/* for raw pointers */ +#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) +#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) +#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) +#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) +#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) +#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) +#define swig_owntype int + +/* for raw packed data */ +#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) + +/* for class or struct pointers */ +#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) +#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) + +/* for C or C++ function pointers */ +#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) +#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) + +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) + + +/* Runtime API */ + +#define SWIG_GetModule(clientdata) SWIG_Python_GetModule() +#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) +#define SWIG_NewClientData(obj) SwigPyClientData_New(obj) + +#define SWIG_SetErrorObj SWIG_Python_SetErrorObj +#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg +#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) +#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) +#define SWIG_fail goto fail + + +/* Runtime API implementation */ + +/* Error manipulation */ + +SWIGINTERN void +SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + PyErr_SetObject(errtype, obj); + Py_DECREF(obj); + SWIG_PYTHON_THREAD_END_BLOCK; +} + +SWIGINTERN void +SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { + SWIG_PYTHON_THREAD_BEGIN_BLOCK; + PyErr_SetString(errtype, (char *) msg); + SWIG_PYTHON_THREAD_END_BLOCK; +} + +#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) + +/* Set a constant value */ + +SWIGINTERN void +SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { + PyDict_SetItemString(d, (char*) name, obj); + Py_DECREF(obj); +} + +/* Append a value to the result obj */ + +SWIGINTERN PyObject* +SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { +#if !defined(SWIG_PYTHON_OUTPUT_TUPLE) + if (!result) { + result = obj; + } else if (result == Py_None) { + Py_DECREF(result); + result = obj; + } else { + if (!PyList_Check(result)) { + PyObject *o2 = result; + result = PyList_New(1); + PyList_SetItem(result, 0, o2); + } + PyList_Append(result,obj); + Py_DECREF(obj); + } + return result; +#else + PyObject* o2; + PyObject* o3; + if (!result) { + result = obj; + } else if (result == Py_None) { + Py_DECREF(result); + result = obj; + } else { + if (!PyTuple_Check(result)) { + o2 = result; + result = PyTuple_New(1); + PyTuple_SET_ITEM(result, 0, o2); + } + o3 = PyTuple_New(1); + PyTuple_SET_ITEM(o3, 0, obj); + o2 = result; + result = PySequence_Concat(o2, o3); + Py_DECREF(o2); + Py_DECREF(o3); + } + return result; +#endif +} + +/* Unpack the argument tuple */ + +SWIGINTERN int +SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) +{ + if (!args) { + if (!min && !max) { + return 1; + } else { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", + name, (min == max ? "" : "at least "), (int)min); + return 0; + } + } + if (!PyTuple_Check(args)) { + PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); + return 0; + } else { + register Py_ssize_t l = PyTuple_GET_SIZE(args); + if (l < min) { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", + name, (min == max ? "" : "at least "), (int)min, (int)l); + return 0; + } else if (l > max) { + PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", + name, (min == max ? "" : "at most "), (int)max, (int)l); + return 0; + } else { + register int i; + for (i = 0; i < l; ++i) { + objs[i] = PyTuple_GET_ITEM(args, i); + } + for (; l < max; ++l) { + objs[l] = 0; + } + return i + 1; + } + } +} + +/* A functor is a function object with one single object argument */ +#if PY_VERSION_HEX >= 0x02020000 +#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); +#else +#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); +#endif + +/* + Helper for static pointer initialization for both C and C++ code, for example + static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); +*/ +#ifdef __cplusplus +#define SWIG_STATIC_POINTER(var) var +#else +#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var +#endif + +/* ----------------------------------------------------------------------------- + * Pointer declarations + * ----------------------------------------------------------------------------- */ + +/* Flags for new pointer objects */ +#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) +#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) + +#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* cc-mode */ +#endif +#endif + +/* How to access Py_None */ +#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# ifndef SWIG_PYTHON_NO_BUILD_NONE +# ifndef SWIG_PYTHON_BUILD_NONE +# define SWIG_PYTHON_BUILD_NONE +# endif +# endif +#endif + +#ifdef SWIG_PYTHON_BUILD_NONE +# ifdef Py_None +# undef Py_None +# define Py_None SWIG_Py_None() +# endif +SWIGRUNTIMEINLINE PyObject * +_SWIG_Py_None(void) +{ + PyObject *none = Py_BuildValue((char*)""); + Py_DECREF(none); + return none; +} +SWIGRUNTIME PyObject * +SWIG_Py_None(void) +{ + static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); + return none; +} +#endif + +/* The python void return value */ + +SWIGRUNTIMEINLINE PyObject * +SWIG_Py_Void(void) +{ + PyObject *none = Py_None; + Py_INCREF(none); + return none; +} + +/* SwigPyClientData */ + +typedef struct { + PyObject *klass; + PyObject *newraw; + PyObject *newargs; + PyObject *destroy; + int delargs; + int implicitconv; +} SwigPyClientData; + +SWIGRUNTIMEINLINE int +SWIG_Python_CheckImplicit(swig_type_info *ty) +{ + SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; + return data ? data->implicitconv : 0; +} + +SWIGRUNTIMEINLINE PyObject * +SWIG_Python_ExceptionType(swig_type_info *desc) { + SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; + PyObject *klass = data ? data->klass : 0; + return (klass ? klass : PyExc_RuntimeError); +} + + +SWIGRUNTIME SwigPyClientData * +SwigPyClientData_New(PyObject* obj) +{ + if (!obj) { + return 0; + } else { + SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); + /* the klass element */ + data->klass = obj; + Py_INCREF(data->klass); + /* the newraw method and newargs arguments used to create a new raw instance */ + if (PyClass_Check(obj)) { + data->newraw = 0; + data->newargs = obj; + Py_INCREF(obj); + } else { +#if (PY_VERSION_HEX < 0x02020000) + data->newraw = 0; +#else + data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); +#endif + if (data->newraw) { + Py_INCREF(data->newraw); + data->newargs = PyTuple_New(1); + PyTuple_SetItem(data->newargs, 0, obj); + } else { + data->newargs = obj; + } + Py_INCREF(data->newargs); + } + /* the destroy method, aka as the C++ delete method */ + data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); + if (PyErr_Occurred()) { + PyErr_Clear(); + data->destroy = 0; + } + if (data->destroy) { + int flags; + Py_INCREF(data->destroy); + flags = PyCFunction_GET_FLAGS(data->destroy); +#ifdef METH_O + data->delargs = !(flags & (METH_O)); +#else + data->delargs = 0; +#endif + } else { + data->delargs = 0; + } + data->implicitconv = 0; + return data; + } +} + +SWIGRUNTIME void +SwigPyClientData_Del(SwigPyClientData* data) +{ + Py_XDECREF(data->newraw); + Py_XDECREF(data->newargs); + Py_XDECREF(data->destroy); +} + +/* =============== SwigPyObject =====================*/ + +typedef struct { + PyObject_HEAD + void *ptr; + swig_type_info *ty; + int own; + PyObject *next; +} SwigPyObject; + +SWIGRUNTIME PyObject * +SwigPyObject_long(SwigPyObject *v) +{ + return PyLong_FromVoidPtr(v->ptr); +} + +SWIGRUNTIME PyObject * +SwigPyObject_format(const char* fmt, SwigPyObject *v) +{ + PyObject *res = NULL; + PyObject *args = PyTuple_New(1); + if (args) { + if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { + PyObject *ofmt = SWIG_Python_str_FromChar(fmt); + if (ofmt) { +#if PY_VERSION_HEX >= 0x03000000 + res = PyUnicode_Format(ofmt,args); +#else + res = PyString_Format(ofmt,args); +#endif + Py_DECREF(ofmt); + } + Py_DECREF(args); + } + } + return res; +} + +SWIGRUNTIME PyObject * +SwigPyObject_oct(SwigPyObject *v) +{ + return SwigPyObject_format("%o",v); +} + +SWIGRUNTIME PyObject * +SwigPyObject_hex(SwigPyObject *v) +{ + return SwigPyObject_format("%x",v); +} + +SWIGRUNTIME PyObject * +#ifdef METH_NOARGS +SwigPyObject_repr(SwigPyObject *v) +#else +SwigPyObject_repr(SwigPyObject *v, PyObject *args) +#endif +{ + const char *name = SWIG_TypePrettyName(v->ty); + PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, v); + if (v->next) { +#ifdef METH_NOARGS + PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); +#else + PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); +#endif +#if PY_VERSION_HEX >= 0x03000000 + PyObject *joined = PyUnicode_Concat(repr, nrep); + Py_DecRef(repr); + Py_DecRef(nrep); + repr = joined; +#else + PyString_ConcatAndDel(&repr,nrep); +#endif + } + return repr; +} + +SWIGRUNTIME int +SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) +{ + char *str; +#ifdef METH_NOARGS + PyObject *repr = SwigPyObject_repr(v); +#else + PyObject *repr = SwigPyObject_repr(v, NULL); +#endif + if (repr) { + str = SWIG_Python_str_AsChar(repr); + fputs(str, fp); + SWIG_Python_str_DelForPy3(str); + Py_DECREF(repr); + return 0; + } else { + return 1; + } +} + +SWIGRUNTIME PyObject * +SwigPyObject_str(SwigPyObject *v) +{ + char result[SWIG_BUFFER_SIZE]; + return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? + SWIG_Python_str_FromChar(result) : 0; +} + +SWIGRUNTIME int +SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) +{ + void *i = v->ptr; + void *j = w->ptr; + return (i < j) ? -1 : ((i > j) ? 1 : 0); +} + +/* Added for Python 3.x, would it also be useful for Python 2.x? */ +SWIGRUNTIME PyObject* +SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) +{ + PyObject* res; + if( op != Py_EQ && op != Py_NE ) { + Py_INCREF(Py_NotImplemented); + return Py_NotImplemented; + } + if( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ) + res = Py_True; + else + res = Py_False; + Py_INCREF(res); + return res; +} + + +SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); + +SWIGRUNTIME PyTypeObject* +SwigPyObject_type(void) { + static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); + return type; +} + +SWIGRUNTIMEINLINE int +SwigPyObject_Check(PyObject *op) { + return (Py_TYPE(op) == SwigPyObject_type()) + || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); +} + +SWIGRUNTIME PyObject * +SwigPyObject_New(void *ptr, swig_type_info *ty, int own); + +SWIGRUNTIME void +SwigPyObject_dealloc(PyObject *v) +{ + SwigPyObject *sobj = (SwigPyObject *) v; + PyObject *next = sobj->next; + if (sobj->own == SWIG_POINTER_OWN) { + swig_type_info *ty = sobj->ty; + SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; + PyObject *destroy = data ? data->destroy : 0; + if (destroy) { + /* destroy is always a VARARGS method */ + PyObject *res; + if (data->delargs) { + /* we need to create a temporary object to carry the destroy operation */ + PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); + res = SWIG_Python_CallFunctor(destroy, tmp); + Py_DECREF(tmp); + } else { + PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); + PyObject *mself = PyCFunction_GET_SELF(destroy); + res = ((*meth)(mself, v)); + } + Py_XDECREF(res); + } +#if !defined(SWIG_PYTHON_SILENT_MEMLEAK) + else { + const char *name = SWIG_TypePrettyName(ty); + printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); + } +#endif + } + Py_XDECREF(next); + PyObject_DEL(v); +} + +SWIGRUNTIME PyObject* +SwigPyObject_append(PyObject* v, PyObject* next) +{ + SwigPyObject *sobj = (SwigPyObject *) v; +#ifndef METH_O + PyObject *tmp = 0; + if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; + next = tmp; +#endif + if (!SwigPyObject_Check(next)) { + return NULL; + } + sobj->next = next; + Py_INCREF(next); + return SWIG_Py_Void(); +} + +SWIGRUNTIME PyObject* +#ifdef METH_NOARGS +SwigPyObject_next(PyObject* v) +#else +SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *) v; + if (sobj->next) { + Py_INCREF(sobj->next); + return sobj->next; + } else { + return SWIG_Py_Void(); + } +} + +SWIGINTERN PyObject* +#ifdef METH_NOARGS +SwigPyObject_disown(PyObject *v) +#else +SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *)v; + sobj->own = 0; + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject* +#ifdef METH_NOARGS +SwigPyObject_acquire(PyObject *v) +#else +SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) +#endif +{ + SwigPyObject *sobj = (SwigPyObject *)v; + sobj->own = SWIG_POINTER_OWN; + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject* +SwigPyObject_own(PyObject *v, PyObject *args) +{ + PyObject *val = 0; +#if (PY_VERSION_HEX < 0x02020000) + if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) +#else + if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) +#endif + { + return NULL; + } + else + { + SwigPyObject *sobj = (SwigPyObject *)v; + PyObject *obj = PyBool_FromLong(sobj->own); + if (val) { +#ifdef METH_NOARGS + if (PyObject_IsTrue(val)) { + SwigPyObject_acquire(v); + } else { + SwigPyObject_disown(v); + } +#else + if (PyObject_IsTrue(val)) { + SwigPyObject_acquire(v,args); + } else { + SwigPyObject_disown(v,args); + } +#endif + } + return obj; + } +} + +#ifdef METH_O +static PyMethodDef +swigobject_methods[] = { + {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, + {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, + {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, + {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, + {0, 0, 0, 0} +}; +#else +static PyMethodDef +swigobject_methods[] = { + {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, + {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, + {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, + {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, + {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, + {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, + {0, 0, 0, 0} +}; +#endif + +#if PY_VERSION_HEX < 0x02020000 +SWIGINTERN PyObject * +SwigPyObject_getattr(SwigPyObject *sobj,char *name) +{ + return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); +} +#endif + +SWIGRUNTIME PyTypeObject* +_PySwigObject_type(void) { + static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; + + static PyNumberMethods SwigPyObject_as_number = { + (binaryfunc)0, /*nb_add*/ + (binaryfunc)0, /*nb_subtract*/ + (binaryfunc)0, /*nb_multiply*/ + /* nb_divide removed in Python 3 */ +#if PY_VERSION_HEX < 0x03000000 + (binaryfunc)0, /*nb_divide*/ +#endif + (binaryfunc)0, /*nb_remainder*/ + (binaryfunc)0, /*nb_divmod*/ + (ternaryfunc)0,/*nb_power*/ + (unaryfunc)0, /*nb_negative*/ + (unaryfunc)0, /*nb_positive*/ + (unaryfunc)0, /*nb_absolute*/ + (inquiry)0, /*nb_nonzero*/ + 0, /*nb_invert*/ + 0, /*nb_lshift*/ + 0, /*nb_rshift*/ + 0, /*nb_and*/ + 0, /*nb_xor*/ + 0, /*nb_or*/ +#if PY_VERSION_HEX < 0x03000000 + 0, /*nb_coerce*/ +#endif + (unaryfunc)SwigPyObject_long, /*nb_int*/ +#if PY_VERSION_HEX < 0x03000000 + (unaryfunc)SwigPyObject_long, /*nb_long*/ +#else + 0, /*nb_reserved*/ +#endif + (unaryfunc)0, /*nb_float*/ +#if PY_VERSION_HEX < 0x03000000 + (unaryfunc)SwigPyObject_oct, /*nb_oct*/ + (unaryfunc)SwigPyObject_hex, /*nb_hex*/ +#endif +#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ +#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ +#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ +#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ + 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ +#endif + }; + + static PyTypeObject swigpyobject_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp + = { + /* PyObject header changed in Python 3 */ +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(&PyType_Type, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + (char *)"SwigPyObject", /* tp_name */ + sizeof(SwigPyObject), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor)SwigPyObject_dealloc, /* tp_dealloc */ + (printfunc)SwigPyObject_print, /* tp_print */ +#if PY_VERSION_HEX < 0x02020000 + (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ +#else + (getattrfunc)0, /* tp_getattr */ +#endif + (setattrfunc)0, /* tp_setattr */ +#if PY_VERSION_HEX >= 0x03000000 + 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ +#else + (cmpfunc)SwigPyObject_compare, /* tp_compare */ +#endif + (reprfunc)SwigPyObject_repr, /* tp_repr */ + &SwigPyObject_as_number, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)SwigPyObject_str, /* tp_str */ + PyObject_GenericGetAttr, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT, /* tp_flags */ + swigobject_doc, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + (richcmpfunc)SwigPyObject_richcompare, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0, /* tp_iter */ + 0, /* tp_iternext */ + swigobject_methods, /* tp_methods */ + 0, /* tp_members */ + 0, /* tp_getset */ + 0, /* tp_base */ + 0, /* tp_dict */ + 0, /* tp_descr_get */ + 0, /* tp_descr_set */ + 0, /* tp_dictoffset */ + 0, /* tp_init */ + 0, /* tp_alloc */ + 0, /* tp_new */ + 0, /* tp_free */ + 0, /* tp_is_gc */ + 0, /* tp_bases */ + 0, /* tp_mro */ + 0, /* tp_cache */ + 0, /* tp_subclasses */ + 0, /* tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#ifdef COUNT_ALLOCS + 0,0,0,0 /* tp_alloc -> tp_next */ +#endif + }; + swigpyobject_type = tmp; + /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */ +#if PY_VERSION_HEX < 0x03000000 + swigpyobject_type.ob_type = &PyType_Type; +#endif + type_init = 1; + } + return &swigpyobject_type; +} + +SWIGRUNTIME PyObject * +SwigPyObject_New(void *ptr, swig_type_info *ty, int own) +{ + SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); + if (sobj) { + sobj->ptr = ptr; + sobj->ty = ty; + sobj->own = own; + sobj->next = 0; + } + return (PyObject *)sobj; +} + +/* ----------------------------------------------------------------------------- + * Implements a simple Swig Packed type, and use it instead of string + * ----------------------------------------------------------------------------- */ + +typedef struct { + PyObject_HEAD + void *pack; + swig_type_info *ty; + size_t size; +} SwigPyPacked; + +SWIGRUNTIME int +SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) +{ + char result[SWIG_BUFFER_SIZE]; + fputs("<Swig Packed ", fp); + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { + fputs("at ", fp); + fputs(result, fp); + } + fputs(v->ty->name,fp); + fputs(">", fp); + return 0; +} + +SWIGRUNTIME PyObject * +SwigPyPacked_repr(SwigPyPacked *v) +{ + char result[SWIG_BUFFER_SIZE]; + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { + return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); + } else { + return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name); + } +} + +SWIGRUNTIME PyObject * +SwigPyPacked_str(SwigPyPacked *v) +{ + char result[SWIG_BUFFER_SIZE]; + if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ + return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); + } else { + return SWIG_Python_str_FromChar(v->ty->name); + } +} + +SWIGRUNTIME int +SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) +{ + size_t i = v->size; + size_t j = w->size; + int s = (i < j) ? -1 : ((i > j) ? 1 : 0); + return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); +} + +SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); + +SWIGRUNTIME PyTypeObject* +SwigPyPacked_type(void) { + static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); + return type; +} + +SWIGRUNTIMEINLINE int +SwigPyPacked_Check(PyObject *op) { + return ((op)->ob_type == _PySwigPacked_type()) + || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); +} + +SWIGRUNTIME void +SwigPyPacked_dealloc(PyObject *v) +{ + if (SwigPyPacked_Check(v)) { + SwigPyPacked *sobj = (SwigPyPacked *) v; + free(sobj->pack); + } + PyObject_DEL(v); +} + +SWIGRUNTIME PyTypeObject* +_PySwigPacked_type(void) { + static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; + static PyTypeObject swigpypacked_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp + = { + /* PyObject header changed in Python 3 */ +#if PY_VERSION_HEX>=0x03000000 + PyVarObject_HEAD_INIT(&PyType_Type, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* ob_size */ +#endif + (char *)"SwigPyPacked", /* tp_name */ + sizeof(SwigPyPacked), /* tp_basicsize */ + 0, /* tp_itemsize */ + (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ + (printfunc)SwigPyPacked_print, /* tp_print */ + (getattrfunc)0, /* tp_getattr */ + (setattrfunc)0, /* tp_setattr */ +#if PY_VERSION_HEX>=0x03000000 + 0, /* tp_reserved in 3.0.1 */ +#else + (cmpfunc)SwigPyPacked_compare, /* tp_compare */ +#endif + (reprfunc)SwigPyPacked_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + (hashfunc)0, /* tp_hash */ + (ternaryfunc)0, /* tp_call */ + (reprfunc)SwigPyPacked_str, /* tp_str */ + PyObject_GenericGetAttr, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + Py_TPFLAGS_DEFAULT, /* tp_flags */ + swigpacked_doc, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0, /* tp_iter */ + 0, /* tp_iternext */ + 0, /* tp_methods */ + 0, /* tp_members */ + 0, /* tp_getset */ + 0, /* tp_base */ + 0, /* tp_dict */ + 0, /* tp_descr_get */ + 0, /* tp_descr_set */ + 0, /* tp_dictoffset */ + 0, /* tp_init */ + 0, /* tp_alloc */ + 0, /* tp_new */ + 0, /* tp_free */ + 0, /* tp_is_gc */ + 0, /* tp_bases */ + 0, /* tp_mro */ + 0, /* tp_cache */ + 0, /* tp_subclasses */ + 0, /* tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#ifdef COUNT_ALLOCS + 0,0,0,0 /* tp_alloc -> tp_next */ +#endif + }; + swigpypacked_type = tmp; + /* for Python 3 the ob_type already assigned in PyVarObject_HEAD_INIT() */ +#if PY_VERSION_HEX < 0x03000000 + swigpypacked_type.ob_type = &PyType_Type; +#endif + type_init = 1; + } + return &swigpypacked_type; +} + +SWIGRUNTIME PyObject * +SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) +{ + SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); + if (sobj) { + void *pack = malloc(size); + if (pack) { + memcpy(pack, ptr, size); + sobj->pack = pack; + sobj->ty = ty; + sobj->size = size; + } else { + PyObject_DEL((PyObject *) sobj); + sobj = 0; + } + } + return (PyObject *) sobj; +} + +SWIGRUNTIME swig_type_info * +SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) +{ + if (SwigPyPacked_Check(obj)) { + SwigPyPacked *sobj = (SwigPyPacked *)obj; + if (sobj->size != size) return 0; + memcpy(ptr, sobj->pack, size); + return sobj->ty; + } else { + return 0; + } +} + +/* ----------------------------------------------------------------------------- + * pointers/data manipulation + * ----------------------------------------------------------------------------- */ + +SWIGRUNTIMEINLINE PyObject * +_SWIG_This(void) +{ + return SWIG_Python_str_FromChar("this"); +} + +SWIGRUNTIME PyObject * +SWIG_This(void) +{ + static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); + return swig_this; +} + +/* #define SWIG_PYTHON_SLOW_GETSET_THIS */ + +/* TODO: I don't know how to implement the fast getset in Python 3 right now */ +#if PY_VERSION_HEX>=0x03000000 +#define SWIG_PYTHON_SLOW_GETSET_THIS +#endif + +SWIGRUNTIME SwigPyObject * +SWIG_Python_GetSwigThis(PyObject *pyobj) +{ + if (SwigPyObject_Check(pyobj)) { + return (SwigPyObject *) pyobj; + } else { + PyObject *obj = 0; +#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) + if (PyInstance_Check(pyobj)) { + obj = _PyInstance_Lookup(pyobj, SWIG_This()); + } else { + PyObject **dictptr = _PyObject_GetDictPtr(pyobj); + if (dictptr != NULL) { + PyObject *dict = *dictptr; + obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; + } else { +#ifdef PyWeakref_CheckProxy + if (PyWeakref_CheckProxy(pyobj)) { + PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); + return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; + } +#endif + obj = PyObject_GetAttr(pyobj,SWIG_This()); + if (obj) { + Py_DECREF(obj); + } else { + if (PyErr_Occurred()) PyErr_Clear(); + return 0; + } + } + } +#else + obj = PyObject_GetAttr(pyobj,SWIG_This()); + if (obj) { + Py_DECREF(obj); + } else { + if (PyErr_Occurred()) PyErr_Clear(); + return 0; + } +#endif + if (obj && !SwigPyObject_Check(obj)) { + /* a PyObject is called 'this', try to get the 'real this' + SwigPyObject from it */ + return SWIG_Python_GetSwigThis(obj); + } + return (SwigPyObject *)obj; + } +} + +/* Acquire a pointer value */ + +SWIGRUNTIME int +SWIG_Python_AcquirePtr(PyObject *obj, int own) { + if (own == SWIG_POINTER_OWN) { + SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); + if (sobj) { + int oldown = sobj->own; + sobj->own = own; + return oldown; + } + } + return 0; +} + +/* Convert a pointer value */ + +SWIGRUNTIME int +SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { + if (!obj) return SWIG_ERROR; + if (obj == Py_None) { + if (ptr) *ptr = 0; + return SWIG_OK; + } else { + SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); + if (own) + *own = 0; + while (sobj) { + void *vptr = sobj->ptr; + if (ty) { + swig_type_info *to = sobj->ty; + if (to == ty) { + /* no type cast needed */ + if (ptr) *ptr = vptr; + break; + } else { + swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); + if (!tc) { + sobj = (SwigPyObject *)sobj->next; + } else { + if (ptr) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + if (newmemory == SWIG_CAST_NEW_MEMORY) { + assert(own); + if (own) + *own = *own | SWIG_CAST_NEW_MEMORY; + } + } + break; + } + } + } else { + if (ptr) *ptr = vptr; + break; + } + } + if (sobj) { + if (own) + *own = *own | sobj->own; + if (flags & SWIG_POINTER_DISOWN) { + sobj->own = 0; + } + return SWIG_OK; + } else { + int res = SWIG_ERROR; + if (flags & SWIG_POINTER_IMPLICIT_CONV) { + SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; + if (data && !data->implicitconv) { + PyObject *klass = data->klass; + if (klass) { + PyObject *impconv; + data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ + impconv = SWIG_Python_CallFunctor(klass, obj); + data->implicitconv = 0; + if (PyErr_Occurred()) { + PyErr_Clear(); + impconv = 0; + } + if (impconv) { + SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); + if (iobj) { + void *vptr; + res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); + if (SWIG_IsOK(res)) { + if (ptr) { + *ptr = vptr; + /* transfer the ownership to 'ptr' */ + iobj->own = 0; + res = SWIG_AddCast(res); + res = SWIG_AddNewMask(res); + } else { + res = SWIG_AddCast(res); + } + } + } + Py_DECREF(impconv); + } + } + } + } + return res; + } + } +} + +/* Convert a function ptr value */ + +SWIGRUNTIME int +SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { + if (!PyCFunction_Check(obj)) { + return SWIG_ConvertPtr(obj, ptr, ty, 0); + } else { + void *vptr = 0; + + /* here we get the method pointer for callbacks */ + const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); + const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; + if (desc) + desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; + if (!desc) + return SWIG_ERROR; + if (ty) { + swig_cast_info *tc = SWIG_TypeCheck(desc,ty); + if (tc) { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,vptr,&newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + } else { + return SWIG_ERROR; + } + } else { + *ptr = vptr; + } + return SWIG_OK; + } +} + +/* Convert a packed value value */ + +SWIGRUNTIME int +SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { + swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); + if (!to) return SWIG_ERROR; + if (ty) { + if (to != ty) { + /* check type cast? */ + swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); + if (!tc) return SWIG_ERROR; + } + } + return SWIG_OK; +} + +/* ----------------------------------------------------------------------------- + * Create a new pointer object + * ----------------------------------------------------------------------------- */ + +/* + Create a new instance object, without calling __init__, and set the + 'this' attribute. +*/ + +SWIGRUNTIME PyObject* +SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) +{ +#if (PY_VERSION_HEX >= 0x02020000) + PyObject *inst = 0; + PyObject *newraw = data->newraw; + if (newraw) { + inst = PyObject_Call(newraw, data->newargs, NULL); + if (inst) { +#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) + PyObject **dictptr = _PyObject_GetDictPtr(inst); + if (dictptr != NULL) { + PyObject *dict = *dictptr; + if (dict == NULL) { + dict = PyDict_New(); + *dictptr = dict; + PyDict_SetItem(dict, SWIG_This(), swig_this); + } + } +#else + PyObject *key = SWIG_This(); + PyObject_SetAttr(inst, key, swig_this); +#endif + } + } else { +#if PY_VERSION_HEX >= 0x03000000 + inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); + PyObject_SetAttr(inst, SWIG_This(), swig_this); + Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; +#else + PyObject *dict = PyDict_New(); + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); +#endif + } + return inst; +#else +#if (PY_VERSION_HEX >= 0x02010000) + PyObject *inst; + PyObject *dict = PyDict_New(); + PyDict_SetItem(dict, SWIG_This(), swig_this); + inst = PyInstance_NewRaw(data->newargs, dict); + Py_DECREF(dict); + return (PyObject *) inst; +#else + PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); + if (inst == NULL) { + return NULL; + } + inst->in_class = (PyClassObject *)data->newargs; + Py_INCREF(inst->in_class); + inst->in_dict = PyDict_New(); + if (inst->in_dict == NULL) { + Py_DECREF(inst); + return NULL; + } +#ifdef Py_TPFLAGS_HAVE_WEAKREFS + inst->in_weakreflist = NULL; +#endif +#ifdef Py_TPFLAGS_GC + PyObject_GC_Init(inst); +#endif + PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); + return (PyObject *) inst; +#endif +#endif +} + +SWIGRUNTIME void +SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) +{ + PyObject *dict; +#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) + PyObject **dictptr = _PyObject_GetDictPtr(inst); + if (dictptr != NULL) { + dict = *dictptr; + if (dict == NULL) { + dict = PyDict_New(); + *dictptr = dict; + } + PyDict_SetItem(dict, SWIG_This(), swig_this); + return; + } +#endif + dict = PyObject_GetAttrString(inst, (char*)"__dict__"); + PyDict_SetItem(dict, SWIG_This(), swig_this); + Py_DECREF(dict); +} + + +SWIGINTERN PyObject * +SWIG_Python_InitShadowInstance(PyObject *args) { + PyObject *obj[2]; + if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { + return NULL; + } else { + SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); + if (sthis) { + SwigPyObject_append((PyObject*) sthis, obj[1]); + } else { + SWIG_Python_SetSwigThis(obj[0], obj[1]); + } + return SWIG_Py_Void(); + } +} + +/* Create a new pointer object */ + +SWIGRUNTIME PyObject * +SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { + if (!ptr) { + return SWIG_Py_Void(); + } else { + int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; + PyObject *robj = SwigPyObject_New(ptr, type, own); + SwigPyClientData *clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; + if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { + PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); + if (inst) { + Py_DECREF(robj); + robj = inst; + } + } + return robj; + } +} + +/* Create a new packed object */ + +SWIGRUNTIMEINLINE PyObject * +SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { + return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); +} + +/* -----------------------------------------------------------------------------* + * Get type list + * -----------------------------------------------------------------------------*/ + +#ifdef SWIG_LINK_RUNTIME +void *SWIG_ReturnGlobalTypeList(void *); +#endif + +SWIGRUNTIME swig_module_info * +SWIG_Python_GetModule(void) { + static void *type_pointer = (void *)0; + /* first check if module already created */ + if (!type_pointer) { +#ifdef SWIG_LINK_RUNTIME + type_pointer = SWIG_ReturnGlobalTypeList((void *)0); +#else + type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, + (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); + if (PyErr_Occurred()) { + PyErr_Clear(); + type_pointer = (void *)0; + } +#endif + } + return (swig_module_info *) type_pointer; +} + +#if PY_MAJOR_VERSION < 2 +/* PyModule_AddObject function was introduced in Python 2.0. The following function + is copied out of Python/modsupport.c in python version 2.3.4 */ +SWIGINTERN int +PyModule_AddObject(PyObject *m, char *name, PyObject *o) +{ + PyObject *dict; + if (!PyModule_Check(m)) { + PyErr_SetString(PyExc_TypeError, + "PyModule_AddObject() needs module as first arg"); + return SWIG_ERROR; + } + if (!o) { + PyErr_SetString(PyExc_TypeError, + "PyModule_AddObject() needs non-NULL value"); + return SWIG_ERROR; + } + + dict = PyModule_GetDict(m); + if (dict == NULL) { + /* Internal error -- modules must have a dict! */ + PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", + PyModule_GetName(m)); + return SWIG_ERROR; + } + if (PyDict_SetItemString(dict, name, o)) + return SWIG_ERROR; + Py_DECREF(o); + return SWIG_OK; +} +#endif + +SWIGRUNTIME void +SWIG_Python_DestroyModule(void *vptr) +{ + swig_module_info *swig_module = (swig_module_info *) vptr; + swig_type_info **types = swig_module->types; + size_t i; + for (i =0; i < swig_module->size; ++i) { + swig_type_info *ty = types[i]; + if (ty->owndata) { + SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; + if (data) SwigPyClientData_Del(data); + } + } + Py_DECREF(SWIG_This()); +} + +SWIGRUNTIME void +SWIG_Python_SetModule(swig_module_info *swig_module) { + static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ + +#if PY_VERSION_HEX >= 0x03000000 + /* Add a dummy module object into sys.modules */ + PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); +#else + PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, + swig_empty_runtime_method_table); +#endif + PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); + if (pointer && module) { + PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); + } else { + Py_XDECREF(pointer); + } +} + +/* The python cached type query */ +SWIGRUNTIME PyObject * +SWIG_Python_TypeCache(void) { + static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); + return cache; +} + +SWIGRUNTIME swig_type_info * +SWIG_Python_TypeQuery(const char *type) +{ + PyObject *cache = SWIG_Python_TypeCache(); + PyObject *key = SWIG_Python_str_FromChar(type); + PyObject *obj = PyDict_GetItem(cache, key); + swig_type_info *descriptor; + if (obj) { + descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); + } else { + swig_module_info *swig_module = SWIG_Python_GetModule(); + descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); + if (descriptor) { + obj = PyCObject_FromVoidPtr(descriptor, NULL); + PyDict_SetItem(cache, key, obj); + Py_DECREF(obj); + } + } + Py_DECREF(key); + return descriptor; +} + +/* + For backward compatibility only +*/ +#define SWIG_POINTER_EXCEPTION 0 +#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) +#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) + +SWIGRUNTIME int +SWIG_Python_AddErrMesg(const char* mesg, int infront) +{ + if (PyErr_Occurred()) { + PyObject *type = 0; + PyObject *value = 0; + PyObject *traceback = 0; + PyErr_Fetch(&type, &value, &traceback); + if (value) { + char *tmp; + PyObject *old_str = PyObject_Str(value); + Py_XINCREF(type); + PyErr_Clear(); + if (infront) { + PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); + } else { + PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); + } + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(old_str); + } + return 1; + } else { + return 0; + } +} + +SWIGRUNTIME int +SWIG_Python_ArgFail(int argnum) +{ + if (PyErr_Occurred()) { + /* add information about failing argument */ + char mesg[256]; + PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); + return SWIG_Python_AddErrMesg(mesg, 1); + } else { + return 0; + } +} + +SWIGRUNTIMEINLINE const char * +SwigPyObject_GetDesc(PyObject *self) +{ + SwigPyObject *v = (SwigPyObject *)self; + swig_type_info *ty = v ? v->ty : 0; + return ty ? ty->str : (char*)""; +} + +SWIGRUNTIME void +SWIG_Python_TypeError(const char *type, PyObject *obj) +{ + if (type) { +#if defined(SWIG_COBJECT_TYPES) + if (obj && SwigPyObject_Check(obj)) { + const char *otype = (const char *) SwigPyObject_GetDesc(obj); + if (otype) { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", + type, otype); + return; + } + } else +#endif + { + const char *otype = (obj ? obj->ob_type->tp_name : 0); + if (otype) { + PyObject *str = PyObject_Str(obj); + const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; + if (cstr) { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", + type, otype, cstr); + SWIG_Python_str_DelForPy3(cstr); + } else { + PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", + type, otype); + } + Py_XDECREF(str); + return; + } + } + PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); + } else { + PyErr_Format(PyExc_TypeError, "unexpected type is received"); + } +} + + +/* Convert a pointer value, signal an exception on a type mismatch */ +SWIGRUNTIME void * +SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { + void *result; + if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { + PyErr_Clear(); +#if SWIG_POINTER_EXCEPTION + if (flags) { + SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); + SWIG_Python_ArgFail(argnum); + } +#endif + } + return result; +} + + +#ifdef __cplusplus +#if 0 +{ /* cc-mode */ +#endif +} +#endif + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else + + + + #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) + + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_CRFPP__Model swig_types[0] +#define SWIGTYPE_p_CRFPP__Tagger swig_types[1] +#define SWIGTYPE_p_char swig_types[2] +static swig_type_info *swig_types[4]; +static swig_module_info swig_module = {swig_types, 3, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#if (PY_VERSION_HEX <= 0x02000000) +# if !defined(SWIG_PYTHON_CLASSIC) +# error "This python version requires swig to be run with the '-classic' option" +# endif +#endif + +/*----------------------------------------------- + @(target):= _CRFPP.so + ------------------------------------------------*/ +#if PY_VERSION_HEX >= 0x03000000 +# define SWIG_init PyInit__CRFPP + +#else +# define SWIG_init init_CRFPP + +#endif +#define SWIG_name "_CRFPP" + +#define SWIGVERSION 0x010340 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) + + +#include <stdexcept> + + +namespace swig { + class SwigPtr_PyObject { + protected: + PyObject *_obj; + + public: + SwigPtr_PyObject() :_obj(0) + { + } + + SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) + { + Py_XINCREF(_obj); + } + + SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) + { + if (initial_ref) { + Py_XINCREF(_obj); + } + } + + SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) + { + Py_XINCREF(item._obj); + Py_XDECREF(_obj); + _obj = item._obj; + return *this; + } + + ~SwigPtr_PyObject() + { + Py_XDECREF(_obj); + } + + operator PyObject *() const + { + return _obj; + } + + PyObject *operator->() const + { + return _obj; + } + }; +} + + +namespace swig { + struct SwigVar_PyObject : SwigPtr_PyObject { + SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } + + SwigVar_PyObject & operator = (PyObject* obj) + { + Py_XDECREF(_obj); + _obj = obj; + return *this; + } + }; +} + + +#include "crfpp.h" + + + +void delete_CRFPP_Model (CRFPP::Model *t) { + delete t; + t = 0; +} + +CRFPP::Model* new_CRFPP_Model(const char *arg) { + CRFPP::Model *tagger = CRFPP::createModel(arg); + if (!tagger) throw CRFPP::getLastError(); + return tagger; +} + +void delete_CRFPP_Tagger (CRFPP::Tagger *t) { + delete t; + t = 0; +} + +CRFPP::Tagger* new_CRFPP_Tagger (const char *arg) { + CRFPP::Tagger *tagger = CRFPP::createTagger(arg); + if (!tagger) throw CRFPP::getLastError(); + return tagger; +} + + + +SWIGINTERN swig_type_info* +SWIG_pchar_descriptor(void) +{ + static int init = 0; + static swig_type_info* info = 0; + if (!init) { + info = SWIG_TypeQuery("_p_char"); + init = 1; + } + return info; +} + + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtrAndSize(const char* carray, size_t size) +{ + if (carray) { + if (size > INT_MAX) { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + return pchar_descriptor ? + SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); + } else { +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); +#else + return PyString_FromStringAndSize(carray, static_cast< int >(size)); +#endif + } + } else { + return SWIG_Py_Void(); + } +} + + +SWIGINTERNINLINE PyObject * +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + + +SWIGINTERN int +SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) +{ +#if PY_VERSION_HEX>=0x03000000 + if (PyUnicode_Check(obj)) +#else + if (PyString_Check(obj)) +#endif + { + char *cstr; Py_ssize_t len; +#if PY_VERSION_HEX>=0x03000000 + if (!alloc && cptr) { + /* We can't allow converting without allocation, since the internal + representation of string in Python 3 is UCS-2/UCS-4 but we require + a UTF-8 representation. + TODO(bhy) More detailed explanation */ + return SWIG_RuntimeError; + } + obj = PyUnicode_AsUTF8String(obj); + PyBytes_AsStringAndSize(obj, &cstr, &len); + if(alloc) *alloc = SWIG_NEWOBJ; +#else + PyString_AsStringAndSize(obj, &cstr, &len); +#endif + if (cptr) { + if (alloc) { + /* + In python the user should not be able to modify the inner + string representation. To warranty that, if you define + SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string + buffer is always returned. + + The default behavior is just to return the pointer value, + so, be careful. + */ +#if defined(SWIG_PYTHON_SAFE_CSTRINGS) + if (*alloc != SWIG_OLDOBJ) +#else + if (*alloc == SWIG_NEWOBJ) +#endif + { + *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); + *alloc = SWIG_NEWOBJ; + } + else { + *cptr = cstr; + *alloc = SWIG_OLDOBJ; + } + } else { + #if PY_VERSION_HEX>=0x03000000 + assert(0); /* Should never reach here in Python 3 */ + #endif + *cptr = SWIG_Python_str_AsChar(obj); + } + } + if (psize) *psize = len + 1; +#if PY_VERSION_HEX>=0x03000000 + Py_XDECREF(obj); +#endif + return SWIG_OK; + } else { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + if (pchar_descriptor) { + void* vptr = 0; + if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { + if (cptr) *cptr = (char *) vptr; + if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; + if (alloc) *alloc = SWIG_OLDOBJ; + return SWIG_OK; + } + } + } + return SWIG_TypeError; +} + + + + + +#include <limits.h> +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif +#endif + + +SWIGINTERN int +SWIG_AsVal_double (PyObject *obj, double *val) +{ + int res = SWIG_TypeError; + if (PyFloat_Check(obj)) { + if (val) *val = PyFloat_AsDouble(obj); + return SWIG_OK; + } else if (PyInt_Check(obj)) { + if (val) *val = PyInt_AsLong(obj); + return SWIG_OK; + } else if (PyLong_Check(obj)) { + double v = PyLong_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + double d = PyFloat_AsDouble(obj); + if (!PyErr_Occurred()) { + if (val) *val = d; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + long v = PyLong_AsLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); + } else { + PyErr_Clear(); + } + } + } +#endif + return res; +} + + +#include <float.h> + + +#include <math.h> + + +SWIGINTERNINLINE int +SWIG_CanCastAsInteger(double *d, double min, double max) { + double x = *d; + if ((min <= x && x <= max)) { + double fx = floor(x); + double cx = ceil(x); + double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ + if ((errno == EDOM) || (errno == ERANGE)) { + errno = 0; + } else { + double summ, reps, diff; + if (rd < x) { + diff = x - rd; + } else if (rd > x) { + diff = rd - x; + } else { + return 1; + } + summ = rd + x; + reps = diff/summ; + if (reps < 8*DBL_EPSILON) { + *d = rd; + return 1; + } + } + } + return 0; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) +{ + if (PyInt_Check(obj)) { + long v = PyInt_AsLong(obj); + if (v >= 0) { + if (val) *val = v; + return SWIG_OK; + } else { + return SWIG_OverflowError; + } + } else if (PyLong_Check(obj)) { + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_OK; + } else { + PyErr_Clear(); + } + } +#ifdef SWIG_PYTHON_CAST_MODE + { + int dispatch = 0; + unsigned long v = PyLong_AsUnsignedLong(obj); + if (!PyErr_Occurred()) { + if (val) *val = v; + return SWIG_AddCast(SWIG_OK); + } else { + PyErr_Clear(); + } + if (!dispatch) { + double d; + int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); + if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { + if (val) *val = (unsigned long)(d); + return res; + } + } + } +#endif + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UINT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned int >(v); + } + } + return res; +} + + + #define SWIG_From_long PyInt_FromLong + + +SWIGINTERNINLINE PyObject* +SWIG_From_unsigned_SS_long (unsigned long value) +{ + return (value > LONG_MAX) ? + PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_unsigned_SS_int (unsigned int value) +{ + return SWIG_From_unsigned_SS_long (value); +} + + +SWIGINTERN int +SWIG_AsVal_float (PyObject * obj, float *val) +{ + double v; + int res = SWIG_AsVal_double (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < -FLT_MAX || v > FLT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< float >(v); + } + } + return res; +} + + + #define SWIG_From_double PyFloat_FromDouble + + +SWIGINTERNINLINE PyObject * +SWIG_From_float (float value) +{ + return SWIG_From_double (value); +} + + +SWIGINTERNINLINE int +SWIG_AsVal_size_t (PyObject * obj, size_t *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); + if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); + return res; +} + + +SWIGINTERNINLINE PyObject * +SWIG_From_size_t (size_t value) +{ + return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); +} + + +SWIGINTERNINLINE PyObject* + SWIG_From_bool (bool value) +{ + return PyBool_FromLong(value ? 1 : 0); +} + +#ifdef __cplusplus +extern "C" { +#endif +SWIGINTERN PyObject *_wrap_Model_createTagger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Model *arg1 = (CRFPP::Model *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + CRFPP::Tagger *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:Model_createTagger",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Model, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Model_createTagger" "', argument " "1"" of type '" "CRFPP::Model const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Model * >(argp1); + { + try { + result = (CRFPP::Tagger *)((CRFPP::Model const *)arg1)->createTagger(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Model_what(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Model *arg1 = (CRFPP::Model *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:Model_what",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Model, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Model_what" "', argument " "1"" of type '" "CRFPP::Model *""'"); + } + arg1 = reinterpret_cast< CRFPP::Model * >(argp1); + { + try { + result = (char *)(arg1)->what(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_Model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Model *arg1 = (CRFPP::Model *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_Model",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Model, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Model" "', argument " "1"" of type '" "CRFPP::Model *""'"); + } + arg1 = reinterpret_cast< CRFPP::Model * >(argp1); + { + try { + delete arg1; + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_Model(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + PyObject * obj0 = 0 ; + CRFPP::Model *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_Model",&obj0)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Model" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + { + try { + result = (CRFPP::Model *)new_CRFPP_Model((char const *)arg1); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CRFPP__Model, SWIG_POINTER_NEW | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *Model_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_CRFPP__Model, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *_wrap_Tagger_set_vlevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:Tagger_set_vlevel",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_set_vlevel" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_set_vlevel" "', argument " "2"" of type '" "unsigned int""'"); + } + arg2 = static_cast< unsigned int >(val2); + { + try { + (arg1)->set_vlevel(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_vlevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + unsigned int result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_vlevel",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_vlevel" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (unsigned int)((CRFPP::Tagger const *)arg1)->vlevel(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_set_cost_factor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + float arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + float val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:Tagger_set_cost_factor",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_set_cost_factor" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_float(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_set_cost_factor" "', argument " "2"" of type '" "float""'"); + } + arg2 = static_cast< float >(val2); + { + try { + (arg1)->set_cost_factor(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_cost_factor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + float result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_cost_factor",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_cost_factor" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (float)((CRFPP::Tagger const *)arg1)->cost_factor(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_float(static_cast< float >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_set_nbest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:Tagger_set_nbest",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_set_nbest" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_set_nbest" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + (arg1)->set_nbest(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_nbest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + size_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_nbest",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_nbest" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->nbest(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"OO:Tagger_add",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_add" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Tagger_add" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + { + try { + result = (bool)(arg1)->add((char const *)arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + size_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_size",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_size" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->size(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_xsize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + size_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_xsize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_xsize" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->xsize(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_dsize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + size_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_dsize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_dsize" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->dsize(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_result(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + size_t result; + + if (!PyArg_ParseTuple(args,(char *)"OO:Tagger_result",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_result" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_result" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = ((CRFPP::Tagger const *)arg1)->result(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_answer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + size_t result; + + if (!PyArg_ParseTuple(args,(char *)"OO:Tagger_answer",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_answer" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_answer" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = ((CRFPP::Tagger const *)arg1)->answer(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_y(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + size_t result; + + if (!PyArg_ParseTuple(args,(char *)"OO:Tagger_y",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_y" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_y" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = ((CRFPP::Tagger const *)arg1)->y(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_y2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:Tagger_y2",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_y2" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_y2" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->y2(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_yname(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:Tagger_yname",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_yname" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_yname" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->yname(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_x(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOO:Tagger_x",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_x" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_x" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_x" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->x(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_ysize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + size_t result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_ysize",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_ysize" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->ysize(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_size_t(static_cast< size_t >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_prob__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:Tagger_prob",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_prob" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_prob" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_prob" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_prob__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OO:Tagger_prob",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_prob" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_prob" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_prob__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_prob",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_prob" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_prob(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_Tagger_prob__SWIG_2(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_size_t(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_Tagger_prob__SWIG_1(self, args); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_size_t(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_size_t(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_Tagger_prob__SWIG_0(self, args); + } + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Tagger_prob'.\n" + " Possible C/C++ prototypes are:\n" + " prob(CRFPP::Tagger const *,size_t,size_t)\n" + " prob(CRFPP::Tagger const *,size_t)\n" + " prob(CRFPP::Tagger const *)\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_set_penalty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + double arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + double val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:Tagger_set_penalty",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_set_penalty" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_set_penalty" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_set_penalty" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_double(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Tagger_set_penalty" "', argument " "4"" of type '" "double""'"); + } + arg4 = static_cast< double >(val4); + { + try { + (arg1)->set_penalty(arg2,arg3,arg4); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_penalty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:Tagger_penalty",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_penalty" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_penalty" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_penalty" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->penalty(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:Tagger_alpha",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_alpha" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_alpha" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_alpha" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->alpha(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_beta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:Tagger_beta",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_beta" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_beta" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_beta" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->beta(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_emission_cost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:Tagger_emission_cost",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_emission_cost" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_emission_cost" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_emission_cost" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->emission_cost(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_next_transition_cost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + size_t val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:Tagger_next_transition_cost",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_next_transition_cost" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_next_transition_cost" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_next_transition_cost" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Tagger_next_transition_cost" "', argument " "4"" of type '" "size_t""'"); + } + arg4 = static_cast< size_t >(val4); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->next_transition_cost(arg2,arg3,arg4); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_prev_transition_cost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + size_t val4 ; + int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOOO:Tagger_prev_transition_cost",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_prev_transition_cost" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_prev_transition_cost" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_prev_transition_cost" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t(obj3, &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Tagger_prev_transition_cost" "', argument " "4"" of type '" "size_t""'"); + } + arg4 = static_cast< size_t >(val4); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prev_transition_cost(arg2,arg3,arg4); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_best_cost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"OOO:Tagger_best_cost",&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_best_cost" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Tagger_best_cost" "', argument " "2"" of type '" "size_t""'"); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(obj2, &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Tagger_best_cost" "', argument " "3"" of type '" "size_t""'"); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->best_cost(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_Z(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + double result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_Z",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_Z" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->Z(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_double(static_cast< double >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_parse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_parse",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_parse" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)(arg1)->parse(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_empty",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_empty" "', argument " "1"" of type '" "CRFPP::Tagger const *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)((CRFPP::Tagger const *)arg1)->empty(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_clear",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_clear" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)(arg1)->clear(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + bool result; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_next",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_next" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)(arg1)->next(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_From_bool(static_cast< bool >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_parse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"OO:Tagger_parse",&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_parse" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Tagger_parse" "', argument " "2"" of type '" "char const *""'"); + } + arg2 = reinterpret_cast< char * >(buf2); + { + try { + result = (char *)(arg1)->parse((char const *)arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return resultobj; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_parse(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + if (!PyTuple_Check(args)) SWIG_fail; + argc = (int)PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 2); ii++) { + argv[ii] = PyTuple_GET_ITEM(args,ii); + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_Tagger_parse__SWIG_0(self, args); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_Tagger_parse__SWIG_1(self, args); + } + } + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'Tagger_parse'.\n" + " Possible C/C++ prototypes are:\n" + " parse(CRFPP::Tagger *)\n" + " parse(CRFPP::Tagger *,char const *)\n"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Tagger_what(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + char *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:Tagger_what",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Tagger_what" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (char *)(arg1)->what(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_FromCharPtr((const char *)result); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_Tagger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject * obj0 = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:delete_Tagger",&obj0)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRFPP__Tagger, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Tagger" "', argument " "1"" of type '" "CRFPP::Tagger *""'"); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + delete arg1; + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_Tagger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + PyObject * obj0 = 0 ; + CRFPP::Tagger *result = 0 ; + + if (!PyArg_ParseTuple(args,(char *)"O:new_Tagger",&obj0)) SWIG_fail; + res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Tagger" "', argument " "1"" of type '" "char const *""'"); + } + arg1 = reinterpret_cast< char * >(buf1); + { + try { + result = (CRFPP::Tagger *)new_CRFPP_Tagger((char const *)arg1); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CRFPP__Tagger, SWIG_POINTER_NEW | 0 ); + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return resultobj; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return NULL; +} + + +SWIGINTERN PyObject *Tagger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_CRFPP__Tagger, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +static PyMethodDef SwigMethods[] = { + { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, + { (char *)"Model_createTagger", _wrap_Model_createTagger, METH_VARARGS, NULL}, + { (char *)"Model_what", _wrap_Model_what, METH_VARARGS, NULL}, + { (char *)"delete_Model", _wrap_delete_Model, METH_VARARGS, NULL}, + { (char *)"new_Model", _wrap_new_Model, METH_VARARGS, NULL}, + { (char *)"Model_swigregister", Model_swigregister, METH_VARARGS, NULL}, + { (char *)"Tagger_set_vlevel", _wrap_Tagger_set_vlevel, METH_VARARGS, NULL}, + { (char *)"Tagger_vlevel", _wrap_Tagger_vlevel, METH_VARARGS, NULL}, + { (char *)"Tagger_set_cost_factor", _wrap_Tagger_set_cost_factor, METH_VARARGS, NULL}, + { (char *)"Tagger_cost_factor", _wrap_Tagger_cost_factor, METH_VARARGS, NULL}, + { (char *)"Tagger_set_nbest", _wrap_Tagger_set_nbest, METH_VARARGS, NULL}, + { (char *)"Tagger_nbest", _wrap_Tagger_nbest, METH_VARARGS, NULL}, + { (char *)"Tagger_add", _wrap_Tagger_add, METH_VARARGS, NULL}, + { (char *)"Tagger_size", _wrap_Tagger_size, METH_VARARGS, NULL}, + { (char *)"Tagger_xsize", _wrap_Tagger_xsize, METH_VARARGS, NULL}, + { (char *)"Tagger_dsize", _wrap_Tagger_dsize, METH_VARARGS, NULL}, + { (char *)"Tagger_result", _wrap_Tagger_result, METH_VARARGS, NULL}, + { (char *)"Tagger_answer", _wrap_Tagger_answer, METH_VARARGS, NULL}, + { (char *)"Tagger_y", _wrap_Tagger_y, METH_VARARGS, NULL}, + { (char *)"Tagger_y2", _wrap_Tagger_y2, METH_VARARGS, NULL}, + { (char *)"Tagger_yname", _wrap_Tagger_yname, METH_VARARGS, NULL}, + { (char *)"Tagger_x", _wrap_Tagger_x, METH_VARARGS, NULL}, + { (char *)"Tagger_ysize", _wrap_Tagger_ysize, METH_VARARGS, NULL}, + { (char *)"Tagger_prob", _wrap_Tagger_prob, METH_VARARGS, NULL}, + { (char *)"Tagger_set_penalty", _wrap_Tagger_set_penalty, METH_VARARGS, NULL}, + { (char *)"Tagger_penalty", _wrap_Tagger_penalty, METH_VARARGS, NULL}, + { (char *)"Tagger_alpha", _wrap_Tagger_alpha, METH_VARARGS, NULL}, + { (char *)"Tagger_beta", _wrap_Tagger_beta, METH_VARARGS, NULL}, + { (char *)"Tagger_emission_cost", _wrap_Tagger_emission_cost, METH_VARARGS, NULL}, + { (char *)"Tagger_next_transition_cost", _wrap_Tagger_next_transition_cost, METH_VARARGS, NULL}, + { (char *)"Tagger_prev_transition_cost", _wrap_Tagger_prev_transition_cost, METH_VARARGS, NULL}, + { (char *)"Tagger_best_cost", _wrap_Tagger_best_cost, METH_VARARGS, NULL}, + { (char *)"Tagger_Z", _wrap_Tagger_Z, METH_VARARGS, NULL}, + { (char *)"Tagger_empty", _wrap_Tagger_empty, METH_VARARGS, NULL}, + { (char *)"Tagger_clear", _wrap_Tagger_clear, METH_VARARGS, NULL}, + { (char *)"Tagger_next", _wrap_Tagger_next, METH_VARARGS, NULL}, + { (char *)"Tagger_parse", _wrap_Tagger_parse, METH_VARARGS, NULL}, + { (char *)"Tagger_what", _wrap_Tagger_what, METH_VARARGS, NULL}, + { (char *)"delete_Tagger", _wrap_delete_Tagger, METH_VARARGS, NULL}, + { (char *)"new_Tagger", _wrap_new_Tagger, METH_VARARGS, NULL}, + { (char *)"Tagger_swigregister", Tagger_swigregister, METH_VARARGS, NULL}, + { NULL, NULL, 0, NULL } +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static swig_type_info _swigt__p_CRFPP__Model = {"_p_CRFPP__Model", "CRFPP::Model *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_CRFPP__Tagger = {"_p_CRFPP__Tagger", "CRFPP::Tagger *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_CRFPP__Model, + &_swigt__p_CRFPP__Tagger, + &_swigt__p_char, +}; + +static swig_cast_info _swigc__p_CRFPP__Model[] = { {&_swigt__p_CRFPP__Model, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_CRFPP__Tagger[] = { {&_swigt__p_CRFPP__Tagger, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_CRFPP__Model, + _swigc__p_CRFPP__Tagger, + _swigc__p_char, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +static swig_const_info swig_const_table[] = { +{0, 0, 0, 0.0, 0, 0}}; + +#ifdef __cplusplus +} +#endif +/* ----------------------------------------------------------------------------- + * Type initialization: + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to + * swig_cast_info structures and swig_cast_info structures store pointers back + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of + * swig_module, and does all the lookup, filling in the swig_module.types + * array with the correct data and linking the correct swig_cast_info + * structures together. + * + * The generated swig_type_info structures are assigned staticly to an initial + * array. We just loop through that array, and handle each type individually. + * First we lookup if this type has been already loaded, and if so, use the + * loaded structure instead of the generated one. Then we have to fill in the + * cast linked list. The cast data is initially stored in something like a + * two-dimensional array. Each row corresponds to a type (there are the same + * number of rows as there are in the swig_type_initial array). Each entry in + * a column is one of the swig_cast_info structures for that type. + * The cast_initial array is actually an array of arrays, because each row has + * a variable number of columns. So to actually build the cast linked list, + * we find the array of casts associated with the type, and loop through it + * adding the casts to the list. The one last trick we need to do is making + * sure the type pointer in the swig_cast_info struct is correct. + * + * First off, we lookup the cast->type name to see if it is already loaded. + * There are three cases to handle: + * 1) If the cast->type has already been loaded AND the type we are adding + * casting info to has not been loaded (it is in this module), THEN we + * replace the cast->type pointer with the type pointer that has already + * been loaded. + * 2) If BOTH types (the one we are adding casting info to, and the + * cast->type) are loaded, THEN the cast info has already been loaded by + * the previous module so we just ignore it. + * 3) Finally, if cast->type has not already been loaded, then we add that + * swig_cast_info to the linked list (because the cast->type) pointer will + * be correct. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* c-mode */ +#endif +#endif + +#if 0 +#define SWIGRUNTIME_DEBUG +#endif + + +SWIGRUNTIME void +SWIG_InitializeModule(void *clientdata) { + size_t i; + swig_module_info *module_head, *iter; + int found, init; + + clientdata = clientdata; + + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } + + /* Try and load any already created modules */ + module_head = SWIG_GetModule(clientdata); + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ + swig_module.next = module_head->next; + module_head->next = &swig_module; + } + + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + + /* Now work on filling in swig_module.types */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: size %d\n", swig_module.size); +#endif + for (i = 0; i < swig_module.size; ++i) { + swig_type_info *type = 0; + swig_type_info *ret; + swig_cast_info *cast; + +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); +#endif + + /* if there is another module already loaded */ + if (swig_module.next != &swig_module) { + type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); + } + if (type) { + /* Overwrite clientdata field */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found type %s\n", type->name); +#endif + if (swig_module.type_initial[i]->clientdata) { + type->clientdata = swig_module.type_initial[i]->clientdata; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); +#endif + } + } else { + type = swig_module.type_initial[i]; + } + + /* Insert casting types */ + cast = swig_module.cast_initial[i]; + while (cast->type) { + /* Don't need to add information already in the list */ + ret = 0; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); +#endif + if (swig_module.next != &swig_module) { + ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); +#ifdef SWIGRUNTIME_DEBUG + if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); +#endif + } + if (ret) { + if (type == swig_module.type_initial[i]) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: skip old type %s\n", ret->name); +#endif + cast->type = ret; + ret = 0; + } else { + /* Check for casting already in the list */ + swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); +#ifdef SWIGRUNTIME_DEBUG + if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); +#endif + if (!ocast) ret = 0; + } + } + + if (!ret) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); +#endif + if (type->cast) { + type->cast->prev = cast; + cast->next = type->cast; + } + type->cast = cast; + } + cast++; + } + /* Set entry in modules->types array equal to the type */ + swig_module.types[i] = type; + } + swig_module.types[i] = 0; + +#ifdef SWIGRUNTIME_DEBUG + printf("**** SWIG_InitializeModule: Cast List ******\n"); + for (i = 0; i < swig_module.size; ++i) { + int j = 0; + swig_cast_info *cast = swig_module.cast_initial[i]; + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); + while (cast->type) { + printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); + cast++; + ++j; + } + printf("---- Total casts: %d\n",j); + } + printf("**** SWIG_InitializeModule: Cast List ******\n"); +#endif +} + +/* This function will propagate the clientdata field of type to +* any new swig_type_info structures that have been added into the list +* of equivalent types. It is like calling +* SWIG_TypeClientData(type, clientdata) a second time. +*/ +SWIGRUNTIME void +SWIG_PropagateClientData(void) { + size_t i; + swig_cast_info *equiv; + static int init_run = 0; + + if (init_run) return; + init_run = 1; + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { + equiv = swig_module.types[i]->cast; + while (equiv) { + if (!equiv->converter) { + if (equiv->type && !equiv->type->clientdata) + SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); + } + equiv = equiv->next; + } + } + } +} + +#ifdef __cplusplus +#if 0 +{ + /* c-mode */ +#endif +} +#endif + + + +#ifdef __cplusplus +extern "C" { +#endif + + /* Python-specific SWIG API */ +#define SWIG_newvarlink() SWIG_Python_newvarlink() +#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) +#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) + + /* ----------------------------------------------------------------------------- + * global variable support code. + * ----------------------------------------------------------------------------- */ + + typedef struct swig_globalvar { + char *name; /* Name of global variable */ + PyObject *(*get_attr)(void); /* Return the current value */ + int (*set_attr)(PyObject *); /* Set the value */ + struct swig_globalvar *next; + } swig_globalvar; + + typedef struct swig_varlinkobject { + PyObject_HEAD + swig_globalvar *vars; + } swig_varlinkobject; + + SWIGINTERN PyObject * + swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { +#if PY_VERSION_HEX >= 0x03000000 + return PyUnicode_InternFromString("<Swig global variables>"); +#else + return PyString_FromString("<Swig global variables>"); +#endif + } + + SWIGINTERN PyObject * + swig_varlink_str(swig_varlinkobject *v) { +#if PY_VERSION_HEX >= 0x03000000 + PyObject *str = PyUnicode_InternFromString("("); + PyObject *tail; + PyObject *joined; + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + tail = PyUnicode_FromString(var->name); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + if (var->next) { + tail = PyUnicode_InternFromString(", "); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; + } + } + tail = PyUnicode_InternFromString(")"); + joined = PyUnicode_Concat(str, tail); + Py_DecRef(str); + Py_DecRef(tail); + str = joined; +#else + PyObject *str = PyString_FromString("("); + swig_globalvar *var; + for (var = v->vars; var; var=var->next) { + PyString_ConcatAndDel(&str,PyString_FromString(var->name)); + if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); + } + PyString_ConcatAndDel(&str,PyString_FromString(")")); +#endif + return str; + } + + SWIGINTERN int + swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { + char *tmp; + PyObject *str = swig_varlink_str(v); + fprintf(fp,"Swig global variables "); + fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); + SWIG_Python_str_DelForPy3(tmp); + Py_DECREF(str); + return 0; + } + + SWIGINTERN void + swig_varlink_dealloc(swig_varlinkobject *v) { + swig_globalvar *var = v->vars; + while (var) { + swig_globalvar *n = var->next; + free(var->name); + free(var); + var = n; + } + } + + SWIGINTERN PyObject * + swig_varlink_getattr(swig_varlinkobject *v, char *n) { + PyObject *res = NULL; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->get_attr)(); + break; + } + var = var->next; + } + if (res == NULL && !PyErr_Occurred()) { + PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + } + return res; + } + + SWIGINTERN int + swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { + int res = 1; + swig_globalvar *var = v->vars; + while (var) { + if (strcmp(var->name,n) == 0) { + res = (*var->set_attr)(p); + break; + } + var = var->next; + } + if (res == 1 && !PyErr_Occurred()) { + PyErr_SetString(PyExc_NameError,"Unknown C global variable"); + } + return res; + } + + SWIGINTERN PyTypeObject* + swig_varlink_type(void) { + static char varlink__doc__[] = "Swig var link object"; + static PyTypeObject varlink_type; + static int type_init = 0; + if (!type_init) { + const PyTypeObject tmp + = { + /* PyObject header changed in Python 3 */ +#if PY_VERSION_HEX >= 0x03000000 + PyVarObject_HEAD_INIT(&PyType_Type, 0) +#else + PyObject_HEAD_INIT(NULL) + 0, /* Number of items in variable part (ob_size) */ +#endif + (char *)"swigvarlink", /* Type name (tp_name) */ + sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ + 0, /* Itemsize (tp_itemsize) */ + (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ + (printfunc) swig_varlink_print, /* Print (tp_print) */ + (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ + (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ + 0, /* tp_compare */ + (reprfunc) swig_varlink_repr, /* tp_repr */ + 0, /* tp_as_number */ + 0, /* tp_as_sequence */ + 0, /* tp_as_mapping */ + 0, /* tp_hash */ + 0, /* tp_call */ + (reprfunc) swig_varlink_str, /* tp_str */ + 0, /* tp_getattro */ + 0, /* tp_setattro */ + 0, /* tp_as_buffer */ + 0, /* tp_flags */ + varlink__doc__, /* tp_doc */ + 0, /* tp_traverse */ + 0, /* tp_clear */ + 0, /* tp_richcompare */ + 0, /* tp_weaklistoffset */ +#if PY_VERSION_HEX >= 0x02020000 + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ +#endif +#if PY_VERSION_HEX >= 0x02030000 + 0, /* tp_del */ +#endif +#ifdef COUNT_ALLOCS + 0,0,0,0 /* tp_alloc -> tp_next */ +#endif + }; + varlink_type = tmp; + /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */ +#if PY_VERSION_HEX < 0x03000000 + varlink_type.ob_type = &PyType_Type; +#endif + type_init = 1; + } + return &varlink_type; + } + + /* Create a variable linking object for use later */ + SWIGINTERN PyObject * + SWIG_Python_newvarlink(void) { + swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); + if (result) { + result->vars = 0; + } + return ((PyObject*) result); + } + + SWIGINTERN void + SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { + swig_varlinkobject *v = (swig_varlinkobject *) p; + swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); + if (gv) { + size_t size = strlen(name)+1; + gv->name = (char *)malloc(size); + if (gv->name) { + strncpy(gv->name,name,size); + gv->get_attr = get_attr; + gv->set_attr = set_attr; + gv->next = v->vars; + } + } + v->vars = gv; + } + + SWIGINTERN PyObject * + SWIG_globals(void) { + static PyObject *_SWIG_globals = 0; + if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); + return _SWIG_globals; + } + + /* ----------------------------------------------------------------------------- + * constants/methods manipulation + * ----------------------------------------------------------------------------- */ + + /* Install Constants */ + SWIGINTERN void + SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { + PyObject *obj = 0; + size_t i; + for (i = 0; constants[i].type; ++i) { + switch(constants[i].type) { + case SWIG_PY_POINTER: + obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); + break; + case SWIG_PY_BINARY: + obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); + break; + default: + obj = 0; + break; + } + if (obj) { + PyDict_SetItemString(d, constants[i].name, obj); + Py_DECREF(obj); + } + } + } + + /* -----------------------------------------------------------------------------*/ + /* Fix SwigMethods to carry the callback ptrs when needed */ + /* -----------------------------------------------------------------------------*/ + + SWIGINTERN void + SWIG_Python_FixMethods(PyMethodDef *methods, + swig_const_info *const_table, + swig_type_info **types, + swig_type_info **types_initial) { + size_t i; + for (i = 0; methods[i].ml_name; ++i) { + const char *c = methods[i].ml_doc; + if (c && (c = strstr(c, "swig_ptr: "))) { + int j; + swig_const_info *ci = 0; + const char *name = c + 10; + for (j = 0; const_table[j].type; ++j) { + if (strncmp(const_table[j].name, name, + strlen(const_table[j].name)) == 0) { + ci = &(const_table[j]); + break; + } + } + if (ci) { + size_t shift = (ci->ptype) - types; + swig_type_info *ty = types_initial[shift]; + size_t ldoc = (c - methods[i].ml_doc); + size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; + char *ndoc = (char*)malloc(ldoc + lptr + 10); + if (ndoc) { + char *buff = ndoc; + void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; + if (ptr) { + strncpy(buff, methods[i].ml_doc, ldoc); + buff += ldoc; + strncpy(buff, "swig_ptr: ", 10); + buff += 10; + SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); + methods[i].ml_doc = ndoc; + } + } + } + } + } + } + +#ifdef __cplusplus +} +#endif + +/* -----------------------------------------------------------------------------* + * Partial Init method + * -----------------------------------------------------------------------------*/ + +#ifdef __cplusplus +extern "C" +#endif + +SWIGEXPORT +#if PY_VERSION_HEX >= 0x03000000 +PyObject* +#else +void +#endif +SWIG_init(void) { + PyObject *m, *d; +#if PY_VERSION_HEX >= 0x03000000 + static struct PyModuleDef SWIG_module = { + PyModuleDef_HEAD_INIT, + (char *) SWIG_name, + NULL, + -1, + SwigMethods, + NULL, + NULL, + NULL, + NULL + }; +#endif + + /* Fix SwigMethods to carry the callback ptrs when needed */ + SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); + +#if PY_VERSION_HEX >= 0x03000000 + m = PyModule_Create(&SWIG_module); +#else + m = Py_InitModule((char *) SWIG_name, SwigMethods); +#endif + d = PyModule_GetDict(m); + + SWIG_InitializeModule(0); + SWIG_InstallConstants(d,swig_const_table); + + + SWIG_Python_SetConstant(d, "VERSION",SWIG_FromCharPtr("0.55")); +#if PY_VERSION_HEX >= 0x03000000 + return m; +#else + return; +#endif +} + diff --git a/python/README b/python/README new file mode 100644 index 0000000..c68e74d --- /dev/null +++ b/python/README @@ -0,0 +1,17 @@ +CRF++ python module + +$Id: README,v 1.1.1.1 2005/12/03 14:18:50 taku-ku Exp $; + +1. Installation + + % python setup.py build + % su + # python setup.py install + + You can change the install directory with the --prefix option. For example: + + % python setup.py install --prefix=/tmp/pybuild/foobar + +2. How to use? + + see 'test.py' as a sample program. diff --git a/python/setup.py b/python/setup.py new file mode 100755 index 0000000..348f77f --- /dev/null +++ b/python/setup.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +from distutils.core import setup,Extension,os +import string + +setup(name = "mecab-python", + py_modules=["CRFPP"], + ext_modules = [Extension("_CRFPP", + ["CRFPP_wrap.cxx",], + libraries=["crfpp", "pthread"]) + ]) diff --git a/python/test.py b/python/test.py new file mode 100755 index 0000000..2ebdb11 --- /dev/null +++ b/python/test.py @@ -0,0 +1,68 @@ +#!/usr/bin/ruby + +import CRFPP +import sys + +try: + # -v 3: access deep information like alpha,beta,prob + # -nN: enable nbest output. N should be >= 2 + tagger = CRFPP.Tagger("-m ../model -v 3 -n2") + + # clear internal context + tagger.clear() + + # add context + tagger.add("Confidence NN") + tagger.add("in IN") + tagger.add("the DT") + tagger.add("pound NN") + tagger.add("is VBZ") + tagger.add("widely RB") + tagger.add("expected VBN") + tagger.add("to TO") + tagger.add("take VB") + tagger.add("another DT") + tagger.add("sharp JJ") + tagger.add("dive NN") + tagger.add("if IN") + tagger.add("trade NN") + tagger.add("figures NNS") + tagger.add("for IN") + tagger.add("September NNP") + + print "column size: " , tagger.xsize() + print "token size: " , tagger.size() + print "tag size: " , tagger.ysize() + + print "tagset information:" + ysize = tagger.ysize() + for i in range(0, ysize-1): + print "tag " , i , " " , tagger.yname(i) + + # parse and change internal stated as 'parsed' + tagger.parse() + + print "conditional prob=" , tagger.prob(), " log(Z)=" , tagger.Z() + + size = tagger.size() + xsize = tagger.xsize() + for i in range(0, (size - 1)): + for j in range(0, (xsize-1)): + print tagger.x(i, j) , "\t", + print tagger.y2(i) , "\t", + print "Details", + for j in range(0, (ysize-1)): + print "\t" , tagger.yname(j) , "/prob=" , tagger.prob(i,j),"/alpha=" , tagger.alpha(i, j),"/beta=" , tagger.beta(i, j), + print "\n", + + print "nbest outputs:" + for n in range(0, 9): + if (not tagger.next()): + continue + print "nbest n=" , n , "\tconditional prob=" , tagger.prob() + # you can access any information using tagger.y()... + + print "Done" + +except RuntimeError, e: + print "RuntimeError: ", e, diff --git a/ruby/CRFPP_wrap.cpp b/ruby/CRFPP_wrap.cpp new file mode 100644 index 0000000..dd204ce --- /dev/null +++ b/ruby/CRFPP_wrap.cpp @@ -0,0 +1,4217 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.40 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGRUBY + + +#ifdef __cplusplus +/* SwigValueWrapper is described in swig.swg */ +template<typename T> class SwigValueWrapper { + struct SwigMovePointer { + T *ptr; + SwigMovePointer(T *p) : ptr(p) { } + ~SwigMovePointer() { delete ptr; } + SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } + } pointer; + SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); + SwigValueWrapper(const SwigValueWrapper<T>& rhs); +public: + SwigValueWrapper() : pointer(0) { } + SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } + operator T&() const { return *pointer.ptr; } + T *operator&() { return pointer.ptr; } +}; + +template <typename T> T SwigValueInit() { + return T(); +} +#endif + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + +/* ----------------------------------------------------------------------------- + * swigrun.swg + * + * This file contains generic C API SWIG runtime support for pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* This should only be incremented when either the layout of swig_type_info changes, + or for whatever reason, the runtime changes incompatibly */ +#define SWIG_RUNTIME_VERSION "4" + +/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ +#ifdef SWIG_TYPE_TABLE +# define SWIG_QUOTE_STRING(x) #x +# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) +# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) +#else +# define SWIG_TYPE_TABLE_NAME +#endif + +/* + You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for + creating a static or dynamic library from the SWIG runtime code. + In 99.9% of the cases, SWIG just needs to declare them as 'static'. + + But only do this if strictly necessary, ie, if you have problems + with your compiler or suchlike. +*/ + +#ifndef SWIGRUNTIME +# define SWIGRUNTIME SWIGINTERN +#endif + +#ifndef SWIGRUNTIMEINLINE +# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE +#endif + +/* Generic buffer size */ +#ifndef SWIG_BUFFER_SIZE +# define SWIG_BUFFER_SIZE 1024 +#endif + +/* Flags for pointer conversions */ +#define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 + +/* Flags for new pointer objects */ +#define SWIG_POINTER_OWN 0x1 + + +/* + Flags/methods for returning states. + + The SWIG conversion methods, as ConvertPtr, return and integer + that tells if the conversion was successful or not. And if not, + an error code can be returned (see swigerrors.swg for the codes). + + Use the following macros/flags to set or process the returning + states. + + In old versions of SWIG, code such as the following was usually written: + + if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { + // success code + } else { + //fail code + } + + Now you can be more explicit: + + int res = SWIG_ConvertPtr(obj,vptr,ty.flags); + if (SWIG_IsOK(res)) { + // success code + } else { + // fail code + } + + which is the same really, but now you can also do + + Type *ptr; + int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); + if (SWIG_IsOK(res)) { + // success code + if (SWIG_IsNewObj(res) { + ... + delete *ptr; + } else { + ... + } + } else { + // fail code + } + + I.e., now SWIG_ConvertPtr can return new objects and you can + identify the case and take care of the deallocation. Of course that + also requires SWIG_ConvertPtr to return new result values, such as + + int SWIG_ConvertPtr(obj, ptr,...) { + if (<obj is ok>) { + if (<need new object>) { + *ptr = <ptr to new allocated object>; + return SWIG_NEWOBJ; + } else { + *ptr = <ptr to old object>; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } + } + + Of course, returning the plain '0(success)/-1(fail)' still works, but you can be + more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the + SWIG errors code. + + Finally, if the SWIG_CASTRANK_MODE is enabled, the result code + allows to return the 'cast rank', for example, if you have this + + int food(double) + int fooi(int); + + and you call + + food(1) // cast rank '1' (1 -> 1.0) + fooi(1) // cast rank '0' + + just use the SWIG_AddCast()/SWIG_CheckState() +*/ + +#define SWIG_OK (0) +#define SWIG_ERROR (-1) +#define SWIG_IsOK(r) (r >= 0) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) + +/* The CastRankLimit says how many bits are used for the cast rank */ +#define SWIG_CASTRANKLIMIT (1 << 8) +/* The NewMask denotes the object was created (using new/malloc) */ +#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) +/* The TmpMask is for in/out typemaps that use temporal objects */ +#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) +/* Simple returning values */ +#define SWIG_BADOBJ (SWIG_ERROR) +#define SWIG_OLDOBJ (SWIG_OK) +#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) +#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) +/* Check, add and del mask methods */ +#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) +#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) +#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) +#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) +#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) +#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) + +/* Cast-Rank Mode */ +#if defined(SWIG_CASTRANK_MODE) +# ifndef SWIG_TypeRank +# define SWIG_TypeRank unsigned long +# endif +# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ +# define SWIG_MAXCASTRANK (2) +# endif +# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) +# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) +SWIGINTERNINLINE int SWIG_AddCast(int r) { + return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; +} +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +} +#else /* no cast-rank mode */ +# define SWIG_AddCast +# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) +#endif + + +#include <string.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void *(*swig_converter_func)(void *, int *); +typedef struct swig_type_info *(*swig_dycast_func)(void **); + +/* Structure to store information on one type */ +typedef struct swig_type_info { + const char *name; /* mangled name of this type */ + const char *str; /* human readable name of this type */ + swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ + struct swig_cast_info *cast; /* linked list of types that can cast into this type */ + void *clientdata; /* language specific type data */ + int owndata; /* flag if the structure owns the clientdata */ +} swig_type_info; + +/* Structure to store a type and conversion function used for casting */ +typedef struct swig_cast_info { + swig_type_info *type; /* pointer to type that is equivalent to this type */ + swig_converter_func converter; /* function to cast the void pointers */ + struct swig_cast_info *next; /* pointer to next cast in linked list */ + struct swig_cast_info *prev; /* pointer to the previous cast */ +} swig_cast_info; + +/* Structure used to store module information + * Each module generates one structure like this, and the runtime collects + * all of these structures and stores them in a circularly linked list.*/ +typedef struct swig_module_info { + swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ + size_t size; /* Number of types in this module */ + struct swig_module_info *next; /* Pointer to next element in circularly linked list */ + swig_type_info **type_initial; /* Array of initially generated type structures */ + swig_cast_info **cast_initial; /* Array of initially generated casting structures */ + void *clientdata; /* Language specific module data */ +} swig_module_info; + +/* + Compare two type names skipping the space characters, therefore + "char*" == "char *" and "Class<int>" == "Class<int >", etc. + + Return 0 when the two name types are equivalent, as in + strncmp, but skipping ' '. +*/ +SWIGRUNTIME int +SWIG_TypeNameComp(const char *f1, const char *l1, + const char *f2, const char *l2) { + for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { + while ((*f1 == ' ') && (f1 != l1)) ++f1; + while ((*f2 == ' ') && (f2 != l2)) ++f2; + if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; + } + return (int)((l1 - f1) - (l2 - f2)); +} + +/* + Check type equivalence in a name list like <name1>|<name2>|... + Return 0 if not equal, 1 if equal +*/ +SWIGRUNTIME int +SWIG_TypeEquiv(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + +/* + Check type equivalence in a name list like <name1>|<name2>|... + Return 0 if equal, -1 if nb < tb, 1 if nb > tb +*/ +SWIGRUNTIME int +SWIG_TypeCompare(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + + +/* + Check the typename +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (strcmp(iter->type->name, c) == 0) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (iter->type == from) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Cast a pointer up an inheritance hierarchy +*/ +SWIGRUNTIMEINLINE void * +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +} + +/* + Dynamic pointer casting. Down an inheritance hierarchy +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { + swig_type_info *lastty = ty; + if (!ty || !ty->dcast) return ty; + while (ty && (ty->dcast)) { + ty = (*ty->dcast)(ptr); + if (ty) lastty = ty; + } + return lastty; +} + +/* + Return the name associated with this type +*/ +SWIGRUNTIMEINLINE const char * +SWIG_TypeName(const swig_type_info *ty) { + return ty->name; +} + +/* + Return the pretty name associated with this type, + that is an unmangled type name in a form presentable to the user. +*/ +SWIGRUNTIME const char * +SWIG_TypePrettyName(const swig_type_info *type) { + /* The "str" field contains the equivalent pretty names of the + type, separated by vertical-bar characters. We choose + to print the last name, as it is often (?) the most + specific. */ + if (!type) return NULL; + if (type->str != NULL) { + const char *last_name = type->str; + const char *s; + for (s = type->str; *s; s++) + if (*s == '|') last_name = s+1; + return last_name; + } + else + return type->name; +} + +/* + Set the clientdata field for a type +*/ +SWIGRUNTIME void +SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { + swig_cast_info *cast = ti->cast; + /* if (ti->clientdata == clientdata) return; */ + ti->clientdata = clientdata; + + while (cast) { + if (!cast->converter) { + swig_type_info *tc = cast->type; + if (!tc->clientdata) { + SWIG_TypeClientData(tc, clientdata); + } + } + cast = cast->next; + } +} +SWIGRUNTIME void +SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { + SWIG_TypeClientData(ti, clientdata); + ti->owndata = 1; +} + +/* + Search for a swig_type_info structure only by mangled name + Search is a O(log #types) + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + swig_module_info *iter = start; + do { + if (iter->size) { + register size_t l = 0; + register size_t r = iter->size - 1; + do { + /* since l+r >= 0, we can (>> 1) instead (/ 2) */ + register size_t i = (l + r) >> 1; + const char *iname = iter->types[i]->name; + if (iname) { + register int compare = strcmp(name, iname); + if (compare == 0) { + return iter->types[i]; + } else if (compare < 0) { + if (i) { + r = i - 1; + } else { + break; + } + } else if (compare > 0) { + l = i + 1; + } + } else { + break; /* should never happen */ + } + } while (l <= r); + } + iter = iter->next; + } while (iter != end); + return 0; +} + +/* + Search for a swig_type_info structure for either a mangled name or a human readable name. + It first searches the mangled names of the types, which is a O(log #types) + If a type is not found it then searches the human readable names, which is O(#types). + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + /* STEP 1: Search the name field using binary search */ + swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); + if (ret) { + return ret; + } else { + /* STEP 2: If the type hasn't been found, do a complete search + of the str field (the human readable name) */ + swig_module_info *iter = start; + do { + register size_t i = 0; + for (; i < iter->size; ++i) { + if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) + return iter->types[i]; + } + iter = iter->next; + } while (iter != end); + } + + /* neither found a match */ + return 0; +} + +/* + Pack binary data into a string +*/ +SWIGRUNTIME char * +SWIG_PackData(char *c, void *ptr, size_t sz) { + static const char hex[17] = "0123456789abcdef"; + register const unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register unsigned char uu = *u; + *(c++) = hex[(uu & 0xf0) >> 4]; + *(c++) = hex[uu & 0xf]; + } + return c; +} + +/* + Unpack binary data from a string +*/ +SWIGRUNTIME const char * +SWIG_UnpackData(const char *c, void *ptr, size_t sz) { + register unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register char d = *(c++); + register unsigned char uu; + if ((d >= '0') && (d <= '9')) + uu = ((d - '0') << 4); + else if ((d >= 'a') && (d <= 'f')) + uu = ((d - ('a'-10)) << 4); + else + return (char *) 0; + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu |= (d - '0'); + else if ((d >= 'a') && (d <= 'f')) + uu |= (d - ('a'-10)); + else + return (char *) 0; + *u = uu; + } + return c; +} + +/* + Pack 'void *' into a string buffer. +*/ +SWIGRUNTIME char * +SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { + char *r = buff; + if ((2*sizeof(void *) + 2) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,&ptr,sizeof(void *)); + if (strlen(name) + 1 > (bsz - (r - buff))) return 0; + strcpy(r,name); + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + *ptr = (void *) 0; + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sizeof(void *)); +} + +SWIGRUNTIME char * +SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { + char *r = buff; + size_t lname = (name ? strlen(name) : 0); + if ((2*sz + 2 + lname) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + if (lname) { + strncpy(r,name,lname+1); + } else { + *r = 0; + } + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + memset(ptr,0,sz); + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sz); +} + +#ifdef __cplusplus +} +#endif + +/* Errors in SWIG */ +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 +#define SWIG_SystemError -10 +#define SWIG_AttributeError -11 +#define SWIG_MemoryError -12 +#define SWIG_NullReferenceError -13 + + + +#include <ruby.h> + +/* Remove global macros defined in Ruby's win32.h */ +#ifdef write +# undef write +#endif +#ifdef read +# undef read +#endif +#ifdef bind +# undef bind +#endif +#ifdef close +# undef close +#endif +#ifdef connect +# undef connect +#endif + + +/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */ +#ifndef NUM2LL +#define NUM2LL(x) NUM2LONG((x)) +#endif +#ifndef LL2NUM +#define LL2NUM(x) INT2NUM((long) (x)) +#endif +#ifndef ULL2NUM +#define ULL2NUM(x) UINT2NUM((unsigned long) (x)) +#endif + +/* Ruby 1.7 doesn't (yet) define NUM2ULL() */ +#ifndef NUM2ULL +#ifdef HAVE_LONG_LONG +#define NUM2ULL(x) rb_num2ull((x)) +#else +#define NUM2ULL(x) NUM2ULONG(x) +#endif +#endif + +/* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */ +/* Define these for older versions so we can just write code the new way */ +#ifndef RSTRING_LEN +# define RSTRING_LEN(x) RSTRING(x)->len +#endif +#ifndef RSTRING_PTR +# define RSTRING_PTR(x) RSTRING(x)->ptr +#endif +#ifndef RSTRING_END +# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x)) +#endif +#ifndef RARRAY_LEN +# define RARRAY_LEN(x) RARRAY(x)->len +#endif +#ifndef RARRAY_PTR +# define RARRAY_PTR(x) RARRAY(x)->ptr +#endif +#ifndef RFLOAT_VALUE +# define RFLOAT_VALUE(x) RFLOAT(x)->value +#endif +#ifndef DOUBLE2NUM +# define DOUBLE2NUM(x) rb_float_new(x) +#endif +#ifndef RHASH_TBL +# define RHASH_TBL(x) (RHASH(x)->tbl) +#endif +#ifndef RHASH_ITER_LEV +# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev) +#endif +#ifndef RHASH_IFNONE +# define RHASH_IFNONE(x) (RHASH(x)->ifnone) +#endif +#ifndef RHASH_SIZE +# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries) +#endif +#ifndef RHASH_EMPTY_P +# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0) +#endif +#ifndef RSTRUCT_LEN +# define RSTRUCT_LEN(x) RSTRUCT(x)->len +#endif +#ifndef RSTRUCT_PTR +# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr +#endif + + + +/* + * Need to be very careful about how these macros are defined, especially + * when compiling C++ code or C code with an ANSI C compiler. + * + * VALUEFUNC(f) is a macro used to typecast a C function that implements + * a Ruby method so that it can be passed as an argument to API functions + * like rb_define_method() and rb_define_singleton_method(). + * + * VOIDFUNC(f) is a macro used to typecast a C function that implements + * either the "mark" or "free" stuff for a Ruby Data object, so that it + * can be passed as an argument to API functions like Data_Wrap_Struct() + * and Data_Make_Struct(). + */ + +#ifdef __cplusplus +# ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */ +# define PROTECTFUNC(f) ((VALUE (*)()) f) +# define VALUEFUNC(f) ((VALUE (*)()) f) +# define VOIDFUNC(f) ((void (*)()) f) +# else +# ifndef ANYARGS /* These definitions should work for Ruby 1.6 */ +# define PROTECTFUNC(f) ((VALUE (*)()) f) +# define VALUEFUNC(f) ((VALUE (*)()) f) +# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) +# else /* These definitions should work for Ruby 1.7+ */ +# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f) +# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f) +# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f) +# endif +# endif +#else +# define VALUEFUNC(f) (f) +# define VOIDFUNC(f) (f) +#endif + +/* Don't use for expressions have side effect */ +#ifndef RB_STRING_VALUE +#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s))) +#endif +#ifndef StringValue +#define StringValue(s) RB_STRING_VALUE(s) +#endif +#ifndef StringValuePtr +#define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s)) +#endif +#ifndef StringValueLen +#define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s)) +#endif +#ifndef SafeStringValue +#define SafeStringValue(v) do {\ + StringValue(v);\ + rb_check_safe_str(v);\ +} while (0) +#endif + +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC +#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1) +#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new") +#endif + +static VALUE _mSWIG = Qnil; + +/* ----------------------------------------------------------------------------- + * error manipulation + * ----------------------------------------------------------------------------- */ + + +/* Define some additional error types */ +#define SWIG_ObjectPreviouslyDeletedError -100 + + +/* Define custom exceptions for errors that do not map to existing Ruby + exceptions. Note this only works for C++ since a global cannot be + initialized by a funtion in C. For C, fallback to rb_eRuntimeError.*/ + +SWIGINTERN VALUE +getNullReferenceError(void) { + static int init = 0; + static VALUE rb_eNullReferenceError ; + if (!init) { + init = 1; + rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError); + } + return rb_eNullReferenceError; +} + +SWIGINTERN VALUE +getObjectPreviouslyDeletedError(void) { + static int init = 0; + static VALUE rb_eObjectPreviouslyDeleted ; + if (!init) { + init = 1; + rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError); + } + return rb_eObjectPreviouslyDeleted; +} + + +SWIGINTERN VALUE +SWIG_Ruby_ErrorType(int SWIG_code) { + VALUE type; + switch (SWIG_code) { + case SWIG_MemoryError: + type = rb_eNoMemError; + break; + case SWIG_IOError: + type = rb_eIOError; + break; + case SWIG_RuntimeError: + type = rb_eRuntimeError; + break; + case SWIG_IndexError: + type = rb_eIndexError; + break; + case SWIG_TypeError: + type = rb_eTypeError; + break; + case SWIG_DivisionByZero: + type = rb_eZeroDivError; + break; + case SWIG_OverflowError: + type = rb_eRangeError; + break; + case SWIG_SyntaxError: + type = rb_eSyntaxError; + break; + case SWIG_ValueError: + type = rb_eArgError; + break; + case SWIG_SystemError: + type = rb_eFatal; + break; + case SWIG_AttributeError: + type = rb_eRuntimeError; + break; + case SWIG_NullReferenceError: + type = getNullReferenceError(); + break; + case SWIG_ObjectPreviouslyDeletedError: + type = getObjectPreviouslyDeletedError(); + break; + case SWIG_UnknownError: + type = rb_eRuntimeError; + break; + default: + type = rb_eRuntimeError; + } + return type; +} + + +/* This function is called when a user inputs a wrong argument to + a method. + */ +SWIGINTERN +const char* Ruby_Format_TypeError( const char* msg, + const char* type, + const char* name, + const int argn, + VALUE input ) +{ + char buf[128]; + VALUE str; + VALUE asStr; + if ( msg && *msg ) + { + str = rb_str_new2(msg); + } + else + { + str = rb_str_new(NULL, 0); + } + + str = rb_str_cat2( str, "Expected argument " ); + sprintf( buf, "%d of type ", argn-1 ); + str = rb_str_cat2( str, buf ); + str = rb_str_cat2( str, type ); + str = rb_str_cat2( str, ", but got " ); + str = rb_str_cat2( str, rb_obj_classname(input) ); + str = rb_str_cat2( str, " " ); + asStr = rb_inspect(input); + if ( RSTRING_LEN(asStr) > 30 ) + { + str = rb_str_cat( str, StringValuePtr(asStr), 30 ); + str = rb_str_cat2( str, "..." ); + } + else + { + str = rb_str_append( str, asStr ); + } + + if ( name ) + { + str = rb_str_cat2( str, "\n\tin SWIG method '" ); + str = rb_str_cat2( str, name ); + str = rb_str_cat2( str, "'" ); + } + + return StringValuePtr( str ); +} + +/* This function is called when an overloaded method fails */ +SWIGINTERN +void Ruby_Format_OverloadedError( + const int argc, + const int maxargs, + const char* method, + const char* prototypes + ) +{ + const char* msg = "Wrong # of arguments"; + if ( argc <= maxargs ) msg = "Wrong arguments"; + rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n" + "Possible C/C++ prototypes are:\n%s", + msg, method, prototypes); +} + +/* ----------------------------------------------------------------------------- + * See the LICENSE file for information on copyright, usage and redistribution + * of SWIG, and the README file for authors - http://www.swig.org/release.html. + * + * rubytracking.swg + * + * This file contains support for tracking mappings from + * Ruby objects to C++ objects. This functionality is needed + * to implement mark functions for Ruby's mark and sweep + * garbage collector. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#endif + +/* Ruby 1.8 actually assumes the first case. */ +#if SIZEOF_VOIDP == SIZEOF_LONG +# define SWIG2NUM(v) LONG2NUM((unsigned long)v) +# define NUM2SWIG(x) (unsigned long)NUM2LONG(x) +#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG +# define SWIG2NUM(v) LL2NUM((unsigned long long)v) +# define NUM2SWIG(x) (unsigned long long)NUM2LL(x) +#else +# error sizeof(void*) is not the same as long or long long +#endif + + +/* Global Ruby hash table to store Trackings from C/C++ + structs to Ruby Objects. +*/ +static VALUE swig_ruby_trackings = Qnil; + +/* Global variable that stores a reference to the ruby + hash table delete function. */ +static ID swig_ruby_hash_delete; + +/* Setup a Ruby hash table to store Trackings */ +SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) { + /* Create a ruby hash table to store Trackings from C++ + objects to Ruby objects. */ + + /* Try to see if some other .so has already created a + tracking hash table, which we keep hidden in an instance var + in the SWIG module. + This is done to allow multiple DSOs to share the same + tracking table. + */ + ID trackings_id = rb_intern( "@__trackings__" ); + VALUE verbose = rb_gv_get("VERBOSE"); + rb_gv_set("VERBOSE", Qfalse); + swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id ); + rb_gv_set("VERBOSE", verbose); + + /* No, it hasn't. Create one ourselves */ + if ( swig_ruby_trackings == Qnil ) + { + swig_ruby_trackings = rb_hash_new(); + rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings ); + } + + /* Now store a reference to the hash table delete function + so that we only have to look it up once.*/ + swig_ruby_hash_delete = rb_intern("delete"); +} + +/* Get a Ruby number to reference a pointer */ +SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) { + /* We cast the pointer to an unsigned long + and then store a reference to it using + a Ruby number object. */ + + /* Convert the pointer to a Ruby number */ + return SWIG2NUM(ptr); +} + +/* Get a Ruby number to reference an object */ +SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) { + /* We cast the object to an unsigned long + and then store a reference to it using + a Ruby number object. */ + + /* Convert the Object to a Ruby number */ + return SWIG2NUM(object); +} + +/* Get a Ruby object from a previously stored reference */ +SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) { + /* The provided Ruby number object is a reference + to the Ruby object we want.*/ + + /* Convert the Ruby number to a Ruby object */ + return NUM2SWIG(reference); +} + +/* Add a Tracking from a C/C++ struct to a Ruby object */ +SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) { + /* In a Ruby hash table we store the pointer and + the associated Ruby object. The trick here is + that we cannot store the Ruby object directly - if + we do then it cannot be garbage collected. So + instead we typecast it as a unsigned long and + convert it to a Ruby number object.*/ + + /* Get a reference to the pointer as a Ruby number */ + VALUE key = SWIG_RubyPtrToReference(ptr); + + /* Get a reference to the Ruby object as a Ruby number */ + VALUE value = SWIG_RubyObjectToReference(object); + + /* Store the mapping to the global hash table. */ + rb_hash_aset(swig_ruby_trackings, key, value); +} + +/* Get the Ruby object that owns the specified C/C++ struct */ +SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) { + /* Get a reference to the pointer as a Ruby number */ + VALUE key = SWIG_RubyPtrToReference(ptr); + + /* Now lookup the value stored in the global hash table */ + VALUE value = rb_hash_aref(swig_ruby_trackings, key); + + if (value == Qnil) { + /* No object exists - return nil. */ + return Qnil; + } + else { + /* Convert this value to Ruby object */ + return SWIG_RubyReferenceToObject(value); + } +} + +/* Remove a Tracking from a C/C++ struct to a Ruby object. It + is very important to remove objects once they are destroyed + since the same memory address may be reused later to create + a new object. */ +SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) { + /* Get a reference to the pointer as a Ruby number */ + VALUE key = SWIG_RubyPtrToReference(ptr); + + /* Delete the object from the hash table by calling Ruby's + do this we need to call the Hash.delete method.*/ + rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key); +} + +/* This is a helper method that unlinks a Ruby object from its + underlying C++ object. This is needed if the lifetime of the + Ruby object is longer than the C++ object */ +SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) { + VALUE object = SWIG_RubyInstanceFor(ptr); + + if (object != Qnil) { + DATA_PTR(object) = 0; + } +} + + +#ifdef __cplusplus +} +#endif + +/* ----------------------------------------------------------------------------- + * Ruby API portion that goes into the runtime + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGINTERN VALUE +SWIG_Ruby_AppendOutput(VALUE target, VALUE o) { + if (NIL_P(target)) { + target = o; + } else { + if (TYPE(target) != T_ARRAY) { + VALUE o2 = target; + target = rb_ary_new(); + rb_ary_push(target, o2); + } + rb_ary_push(target, o); + } + return target; +} + +/* For ruby1.8.4 and earlier. */ +#ifndef RUBY_INIT_STACK + RUBY_EXTERN void Init_stack(VALUE* addr); +# define RUBY_INIT_STACK \ + VALUE variable_in_this_stack_frame; \ + Init_stack(&variable_in_this_stack_frame); +#endif + + +#ifdef __cplusplus +} +#endif + + +/* ----------------------------------------------------------------------------- + * See the LICENSE file for information on copyright, usage and redistribution + * of SWIG, and the README file for authors - http://www.swig.org/release.html. + * + * rubyrun.swg + * + * This file contains the runtime support for Ruby modules + * and includes code for managing global variables and pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* For backward compatibility only */ +#define SWIG_POINTER_EXCEPTION 0 + +/* for raw pointers */ +#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0) +#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own) +#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags) +#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own) +#define swig_owntype ruby_owntype + +/* for raw packed data */ +#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags) +#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) + +/* for class or struct pointers */ +#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) +#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) + +/* for C or C++ function pointers */ +#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) +#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) + +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type) + + +/* Runtime API */ + +#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule() +#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer) + + +/* Error manipulation */ + +#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code) +#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg) +#define SWIG_fail goto fail + + +/* Ruby-specific SWIG API */ + +#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime() +#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty) +#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty) +#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value) +#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty) + +#include "assert.h" + +/* ----------------------------------------------------------------------------- + * pointers/data manipulation + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + VALUE klass; + VALUE mImpl; + void (*mark)(void *); + void (*destroy)(void *); + int trackObjects; +} swig_class; + + +/* Global pointer used to keep some internal SWIG stuff */ +static VALUE _cSWIG_Pointer = Qnil; +static VALUE swig_runtime_data_type_pointer = Qnil; + +/* Global IDs used to keep some internal SWIG stuff */ +static ID swig_arity_id = 0; +static ID swig_call_id = 0; + +/* + If your swig extension is to be run within an embedded ruby and has + director callbacks, you should set -DRUBY_EMBEDDED during compilation. + This will reset ruby's stack frame on each entry point from the main + program the first time a virtual director function is invoked (in a + non-recursive way). + If this is not done, you run the risk of Ruby trashing the stack. +*/ + +#ifdef RUBY_EMBEDDED + +# define SWIG_INIT_STACK \ + if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \ + ++swig_virtual_calls; +# define SWIG_RELEASE_STACK --swig_virtual_calls; +# define Ruby_DirectorTypeMismatchException(x) \ + rb_raise( rb_eTypeError, x ); return c_result; + + static unsigned int swig_virtual_calls = 0; + +#else /* normal non-embedded extension */ + +# define SWIG_INIT_STACK +# define SWIG_RELEASE_STACK +# define Ruby_DirectorTypeMismatchException(x) \ + throw Swig::DirectorTypeMismatchException( x ); + +#endif /* RUBY_EMBEDDED */ + + +SWIGRUNTIME VALUE +getExceptionClass(void) { + static int init = 0; + static VALUE rubyExceptionClass ; + if (!init) { + init = 1; + rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception")); + } + return rubyExceptionClass; +} + +/* This code checks to see if the Ruby object being raised as part + of an exception inherits from the Ruby class Exception. If so, + the object is simply returned. If not, then a new Ruby exception + object is created and that will be returned to Ruby.*/ +SWIGRUNTIME VALUE +SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) { + VALUE exceptionClass = getExceptionClass(); + if (rb_obj_is_kind_of(obj, exceptionClass)) { + return obj; + } else { + return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj)); + } +} + +/* Initialize Ruby runtime support */ +SWIGRUNTIME void +SWIG_Ruby_InitRuntime(void) +{ + if (_mSWIG == Qnil) { + _mSWIG = rb_define_module("SWIG"); + swig_call_id = rb_intern("call"); + swig_arity_id = rb_intern("arity"); + } +} + +/* Define Ruby class for C type */ +SWIGRUNTIME void +SWIG_Ruby_define_class(swig_type_info *type) +{ + VALUE klass; + char *klass_name = (char *) malloc(4 + strlen(type->name) + 1); + sprintf(klass_name, "TYPE%s", type->name); + if (NIL_P(_cSWIG_Pointer)) { + _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject); + rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new"); + } + klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); + free((void *) klass_name); +} + +/* Create a new pointer object */ +SWIGRUNTIME VALUE +SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags) +{ + int own = flags & SWIG_POINTER_OWN; + int track; + char *klass_name; + swig_class *sklass; + VALUE klass; + VALUE obj; + + if (!ptr) + return Qnil; + + if (type->clientdata) { + sklass = (swig_class *) type->clientdata; + + /* Are we tracking this class and have we already returned this Ruby object? */ + track = sklass->trackObjects; + if (track) { + obj = SWIG_RubyInstanceFor(ptr); + + /* Check the object's type and make sure it has the correct type. + It might not in cases where methods do things like + downcast methods. */ + if (obj != Qnil) { + VALUE value = rb_iv_get(obj, "@__swigtype__"); + char* type_name = RSTRING_PTR(value); + + if (strcmp(type->name, type_name) == 0) { + return obj; + } + } + } + + /* Create a new Ruby object */ + obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), + ( own ? VOIDFUNC(sklass->destroy) : + (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 ) + ), ptr); + + /* If tracking is on for this class then track this object. */ + if (track) { + SWIG_RubyAddTracking(ptr, obj); + } + } else { + klass_name = (char *) malloc(4 + strlen(type->name) + 1); + sprintf(klass_name, "TYPE%s", type->name); + klass = rb_const_get(_mSWIG, rb_intern(klass_name)); + free((void *) klass_name); + obj = Data_Wrap_Struct(klass, 0, 0, ptr); + } + rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); + + return obj; +} + +/* Create a new class instance (always owned) */ +SWIGRUNTIME VALUE +SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type) +{ + VALUE obj; + swig_class *sklass = (swig_class *) type->clientdata; + obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0); + rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); + return obj; +} + +/* Get type mangle from class name */ +SWIGRUNTIMEINLINE char * +SWIG_Ruby_MangleStr(VALUE obj) +{ + VALUE stype = rb_iv_get(obj, "@__swigtype__"); + return StringValuePtr(stype); +} + +/* Acquire a pointer value */ +typedef void (*ruby_owntype)(void*); + +SWIGRUNTIME ruby_owntype +SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) { + if (obj) { + ruby_owntype oldown = RDATA(obj)->dfree; + RDATA(obj)->dfree = own; + return oldown; + } else { + return 0; + } +} + +/* Convert a pointer value */ +SWIGRUNTIME int +SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own) +{ + char *c; + swig_cast_info *tc; + void *vptr = 0; + + /* Grab the pointer */ + if (NIL_P(obj)) { + *ptr = 0; + return SWIG_OK; + } else { + if (TYPE(obj) != T_DATA) { + return SWIG_ERROR; + } + Data_Get_Struct(obj, void, vptr); + } + + if (own) *own = RDATA(obj)->dfree; + + /* Check to see if the input object is giving up ownership + of the underlying C struct or C++ object. If so then we + need to reset the destructor since the Ruby object no + longer owns the underlying C++ object.*/ + if (flags & SWIG_POINTER_DISOWN) { + /* Is tracking on for this class? */ + int track = 0; + if (ty && ty->clientdata) { + swig_class *sklass = (swig_class *) ty->clientdata; + track = sklass->trackObjects; + } + + if (track) { + /* We are tracking objects for this class. Thus we change the destructor + * to SWIG_RubyRemoveTracking. This allows us to + * remove the mapping from the C++ to Ruby object + * when the Ruby object is garbage collected. If we don't + * do this, then it is possible we will return a reference + * to a Ruby object that no longer exists thereby crashing Ruby. */ + RDATA(obj)->dfree = SWIG_RubyRemoveTracking; + } else { + RDATA(obj)->dfree = 0; + } + } + + /* Do type-checking if type info was provided */ + if (ty) { + if (ty->clientdata) { + if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) { + if (vptr == 0) { + /* The object has already been deleted */ + return SWIG_ObjectPreviouslyDeletedError; + } + *ptr = vptr; + return SWIG_OK; + } + } + if ((c = SWIG_MangleStr(obj)) == NULL) { + return SWIG_ERROR; + } + tc = SWIG_TypeCheck(c, ty); + if (!tc) { + return SWIG_ERROR; + } else { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc, vptr, &newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + } + } else { + *ptr = vptr; + } + + return SWIG_OK; +} + +/* Check convert */ +SWIGRUNTIMEINLINE int +SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty) +{ + char *c = SWIG_MangleStr(obj); + if (!c) return 0; + return SWIG_TypeCheck(c,ty) != 0; +} + +SWIGRUNTIME VALUE +SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) { + char result[1024]; + char *r = result; + if ((2*sz + 1 + strlen(type->name)) > 1000) return 0; + *(r++) = '_'; + r = SWIG_PackData(r, ptr, sz); + strcpy(r, type->name); + return rb_str_new2(result); +} + +/* Convert a packed value value */ +SWIGRUNTIME int +SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) { + swig_cast_info *tc; + const char *c; + + if (TYPE(obj) != T_STRING) goto type_error; + c = StringValuePtr(obj); + /* Pointer values must start with leading underscore */ + if (*c != '_') goto type_error; + c++; + c = SWIG_UnpackData(c, ptr, sz); + if (ty) { + tc = SWIG_TypeCheck(c, ty); + if (!tc) goto type_error; + } + return SWIG_OK; + + type_error: + return SWIG_ERROR; +} + +SWIGRUNTIME swig_module_info * +SWIG_Ruby_GetModule(void) +{ + VALUE pointer; + swig_module_info *ret = 0; + VALUE verbose = rb_gv_get("VERBOSE"); + + /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */ + rb_gv_set("VERBOSE", Qfalse); + + /* first check if pointer already created */ + pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME); + if (pointer != Qnil) { + Data_Get_Struct(pointer, swig_module_info, ret); + } + + /* reinstate warnings */ + rb_gv_set("VERBOSE", verbose); + return ret; +} + +SWIGRUNTIME void +SWIG_Ruby_SetModule(swig_module_info *pointer) +{ + /* register a new class */ + VALUE cl = rb_define_class("swig_runtime_data", rb_cObject); + /* create and store the structure pointer to a global variable */ + swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer); + rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer); +} + +/* This function can be used to check whether a proc or method or similarly + callable function has been passed. Usually used in a %typecheck, like: + + %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) { + $result = SWIG_Ruby_isCallable( $input ); + } + */ +SWIGINTERN +int SWIG_Ruby_isCallable( VALUE proc ) +{ + if ( rb_respond_to( proc, swig_call_id ) == Qtrue ) + return 1; + return 0; +} + +/* This function can be used to check the arity (number of arguments) + a proc or method can take. Usually used in a %typecheck. + Valid arities will be that equal to minimal or those < 0 + which indicate a variable number of parameters at the end. + */ +SWIGINTERN +int SWIG_Ruby_arity( VALUE proc, int minimal ) +{ + if ( rb_respond_to( proc, swig_arity_id ) == Qtrue ) + { + VALUE num = rb_funcall( proc, swig_arity_id, 0 ); + int arity = NUM2INT(num); + if ( arity < 0 && (arity+1) < -minimal ) return 1; + if ( arity == minimal ) return 1; + return 1; + } + return 0; +} + + +#ifdef __cplusplus +} +#endif + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else + + + + #define SWIG_exception(code, msg) do { SWIG_Error(code, msg);; } while(0) + + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_CRFPP__Model swig_types[0] +#define SWIGTYPE_p_CRFPP__Tagger swig_types[1] +#define SWIGTYPE_p_char swig_types[2] +static swig_type_info *swig_types[4]; +static swig_module_info swig_module = {swig_types, 3, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#define SWIG_init Init_CRFPP +#define SWIG_name "CRFPP" + +static VALUE mCRFPP; + +#define SWIG_RUBY_THREAD_BEGIN_BLOCK +#define SWIG_RUBY_THREAD_END_BLOCK + + +#define SWIGVERSION 0x010340 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) + + +#include <stdexcept> + + +#include "crfpp.h" + + + +void delete_CRFPP_Model (CRFPP::Model *t) { + delete t; + t = 0; +} + +CRFPP::Model* new_CRFPP_Model(const char *arg) { + CRFPP::Model *tagger = CRFPP::createModel(arg); + if (!tagger) throw CRFPP::getLastError(); + return tagger; +} + +void delete_CRFPP_Tagger (CRFPP::Tagger *t) { + delete t; + t = 0; +} + +CRFPP::Tagger* new_CRFPP_Tagger (const char *arg) { + CRFPP::Tagger *tagger = CRFPP::createTagger(arg); + if (!tagger) throw CRFPP::getLastError(); + return tagger; +} + + + +SWIGINTERN swig_type_info* +SWIG_pchar_descriptor(void) +{ + static int init = 0; + static swig_type_info* info = 0; + if (!init) { + info = SWIG_TypeQuery("_p_char"); + init = 1; + } + return info; +} + + +SWIGINTERNINLINE VALUE +SWIG_FromCharPtrAndSize(const char* carray, size_t size) +{ + if (carray) { + if (size > LONG_MAX) { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + return pchar_descriptor ? + SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil; + } else { + return rb_str_new(carray, static_cast< long >(size)); + } + } else { + return Qnil; + } +} + + +SWIGINTERNINLINE VALUE +SWIG_FromCharPtr(const char *cptr) +{ + return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); +} + + +SWIGINTERN int +SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc) +{ + if (TYPE(obj) == T_STRING) { + #if defined(StringValuePtr) + char *cstr = StringValuePtr(obj); + #else + char *cstr = STR2CSTR(obj); + #endif + size_t size = RSTRING_LEN(obj) + 1; + if (cptr) { + if (alloc) { + if (*alloc == SWIG_NEWOBJ) { + *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size))); + } else { + *cptr = cstr; + *alloc = SWIG_OLDOBJ; + } + } + } + if (psize) *psize = size; + return SWIG_OK; + } else { + swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); + if (pchar_descriptor) { + void* vptr = 0; + if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { + if (cptr) *cptr = (char *)vptr; + if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0; + if (alloc) *alloc = SWIG_OLDOBJ; + return SWIG_OK; + } + } + } + return SWIG_TypeError; +} + + + + + +#include <limits.h> +#if !defined(SWIG_NO_LLONG_MAX) +# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) +# define LLONG_MAX __LONG_LONG_MAX__ +# define LLONG_MIN (-LLONG_MAX - 1LL) +# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) +# endif +#endif + + +SWIGINTERN VALUE +SWIG_ruby_failed(void) +{ + return Qnil; +} + + +/*@SWIG:/usr/share/swig1.3/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/ +SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args) +{ + VALUE obj = args[0]; + VALUE type = TYPE(obj); + unsigned long *res = (unsigned long *)(args[1]); + *res = type == T_FIXNUM ? NUM2ULONG(obj) : rb_big2ulong(obj); + return obj; +} +/*@SWIG@*/ + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val) +{ + VALUE type = TYPE(obj); + if ((type == T_FIXNUM) || (type == T_BIGNUM)) { + unsigned long v; + VALUE a[2]; + a[0] = obj; + a[1] = (VALUE)(&v); + if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { + if (val) *val = v; + return SWIG_OK; + } + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, &v); + if (SWIG_IsOK(res)) { + if ((v > UINT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< unsigned int >(v); + } + } + return res; +} + + + #define SWIG_From_long LONG2NUM + + +SWIGINTERNINLINE VALUE +SWIG_From_unsigned_SS_long (unsigned long value) +{ + return ULONG2NUM(value); +} + + +SWIGINTERNINLINE VALUE +SWIG_From_unsigned_SS_int (unsigned int value) +{ + return SWIG_From_unsigned_SS_long (value); +} + + +#include <float.h> + + +/*@SWIG:/usr/share/swig1.3/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/ +SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args) +{ + VALUE obj = args[0]; + VALUE type = TYPE(obj); + double *res = (double *)(args[1]); + *res = NUM2DBL(obj); + return obj; +} +/*@SWIG@*/ + +SWIGINTERN int +SWIG_AsVal_double (VALUE obj, double *val) +{ + VALUE type = TYPE(obj); + if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) { + double v; + VALUE a[2]; + a[0] = obj; + a[1] = (VALUE)(&v); + if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) { + if (val) *val = v; + return SWIG_OK; + } + } + return SWIG_TypeError; +} + + +SWIGINTERN int +SWIG_AsVal_float (VALUE obj, float *val) +{ + double v; + int res = SWIG_AsVal_double (obj, &v); + if (SWIG_IsOK(res)) { + if ((v < -FLT_MAX || v > FLT_MAX)) { + return SWIG_OverflowError; + } else { + if (val) *val = static_cast< float >(v); + } + } + return res; +} + + + #define SWIG_From_double rb_float_new + + +SWIGINTERNINLINE VALUE +SWIG_From_float (float value) +{ + return SWIG_From_double (value); +} + + +SWIGINTERNINLINE int +SWIG_AsVal_size_t (VALUE obj, size_t *val) +{ + unsigned long v; + int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); + if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); + return res; +} + + +SWIGINTERNINLINE VALUE +SWIG_From_size_t (size_t value) +{ + return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); +} + + +SWIGINTERNINLINE VALUE +SWIG_From_bool (bool value) +{ + return value ? Qtrue : Qfalse; +} + +swig_class SwigClassModel; + +SWIGINTERN VALUE +_wrap_Model_createTagger(int argc, VALUE *argv, VALUE self) { + CRFPP::Model *arg1 = (CRFPP::Model *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + CRFPP::Tagger *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Model, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Model const *","createTagger", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Model * >(argp1); + { + try { + result = (CRFPP::Tagger *)((CRFPP::Model const *)arg1)->createTagger(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Model_what(int argc, VALUE *argv, VALUE self) { + CRFPP::Model *arg1 = (CRFPP::Model *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + char *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Model, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Model *","what", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Model * >(argp1); + { + try { + result = (char *)(arg1)->what(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_FromCharPtr((const char *)result); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN void +free_CRFPP_Model(CRFPP::Model *arg1) { + delete arg1; +} + +#ifdef HAVE_RB_DEFINE_ALLOC_FUNC +SWIGINTERN VALUE +_wrap_Model_allocate(VALUE self) { +#else + SWIGINTERN VALUE + _wrap_Model_allocate(int argc, VALUE *argv, VALUE self) { +#endif + + + VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CRFPP__Model); +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC + rb_obj_call_init(vresult, argc, argv); +#endif + return vresult; + } + + +SWIGINTERN VALUE +_wrap_new_Model(int argc, VALUE *argv, VALUE self) { + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + CRFPP::Model *result = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CRFPP::Model", 1, argv[0] )); + } + arg1 = reinterpret_cast< char * >(buf1); + { + try { + result = (CRFPP::Model *)new_CRFPP_Model((char const *)arg1); + DATA_PTR(self) = result; + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return self; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return Qnil; +} + + +swig_class SwigClassTagger; + +SWIGINTERN VALUE +_wrap_Tagger_set_vlevel(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + unsigned int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int val2 ; + int ecode2 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger *","set_vlevel", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","set_vlevel", 2, argv[0] )); + } + arg2 = static_cast< unsigned int >(val2); + { + try { + (arg1)->set_vlevel(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_vlevel(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + unsigned int result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","vlevel", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (unsigned int)((CRFPP::Tagger const *)arg1)->vlevel(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_set_cost_factor(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + float arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + float val2 ; + int ecode2 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger *","set_cost_factor", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_float(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","set_cost_factor", 2, argv[0] )); + } + arg2 = static_cast< float >(val2); + { + try { + (arg1)->set_cost_factor(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_cost_factor(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + float result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","cost_factor", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (float)((CRFPP::Tagger const *)arg1)->cost_factor(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_float(static_cast< float >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_set_nbest(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger *","set_nbest", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","set_nbest", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + { + try { + (arg1)->set_nbest(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_nbest(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","nbest", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->nbest(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_size_t(static_cast< size_t >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_add(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger *","add", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","add", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + { + try { + result = (bool)(arg1)->add((char const *)arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_bool(static_cast< bool >(result)); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return Qnil; +} + + + +/* + Document-method: CRFPP::Tagger.size + + call-seq: + size -> size_t + +Size or Length of the Tagger. +*/ +SWIGINTERN VALUE +_wrap_Tagger_size(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","size", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->size(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_size_t(static_cast< size_t >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_xsize(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","xsize", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->xsize(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_size_t(static_cast< size_t >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_dsize(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","dsize", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->dsize(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_size_t(static_cast< size_t >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_result(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","result", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","result", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = ((CRFPP::Tagger const *)arg1)->result(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_size_t(static_cast< size_t >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_answer(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","answer", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","answer", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = ((CRFPP::Tagger const *)arg1)->answer(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_size_t(static_cast< size_t >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_y(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","y", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","y", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = ((CRFPP::Tagger const *)arg1)->y(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_size_t(static_cast< size_t >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_y2(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + char *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","y2", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","y2", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->y2(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_FromCharPtr((const char *)result); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_yname(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + char *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","yname", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","yname", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->yname(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_FromCharPtr((const char *)result); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_x(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + char *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","x", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","x", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(argv[1], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","x", 3, argv[1] )); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (char *)((CRFPP::Tagger const *)arg1)->x(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_FromCharPtr((const char *)result); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_ysize(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","ysize", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = ((CRFPP::Tagger const *)arg1)->ysize(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_size_t(static_cast< size_t >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_prob__SWIG_0(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + double result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","prob", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","prob", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(argv[1], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","prob", 3, argv[1] )); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_double(static_cast< double >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_prob__SWIG_1(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + double result; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","prob", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","prob", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_double(static_cast< double >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_prob__SWIG_2(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + double result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","prob", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prob(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_double(static_cast< double >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_Tagger_prob(int nargs, VALUE *args, VALUE self) { + int argc; + VALUE argv[4]; + int ii; + + argc = nargs + 1; + argv[0] = self; + if (argc > 4) SWIG_fail; + for (ii = 1; (ii < argc); ++ii) { + argv[ii] = args[ii-1]; + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_Tagger_prob__SWIG_2(nargs, args, self); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_size_t(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_Tagger_prob__SWIG_1(nargs, args, self); + } + } + } + if (argc == 3) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + if (_v) { + { + int res = SWIG_AsVal_size_t(argv[1], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + { + int res = SWIG_AsVal_size_t(argv[2], NULL); + _v = SWIG_CheckState(res); + } + if (_v) { + return _wrap_Tagger_prob__SWIG_0(nargs, args, self); + } + } + } + } + +fail: + Ruby_Format_OverloadedError( argc, 4, "Tagger.prob", + " double Tagger.prob(size_t i, size_t j)\n" + " double Tagger.prob(size_t i)\n" + " double Tagger.prob()\n"); + + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_set_penalty(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + double arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + double val4 ; + int ecode4 = 0 ; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger *","set_penalty", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","set_penalty", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(argv[1], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","set_penalty", 3, argv[1] )); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_double(argv[2], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","set_penalty", 4, argv[2] )); + } + arg4 = static_cast< double >(val4); + { + try { + (arg1)->set_penalty(arg2,arg3,arg4); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_penalty(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + double result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","penalty", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","penalty", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(argv[1], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","penalty", 3, argv[1] )); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->penalty(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_double(static_cast< double >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_alpha(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + double result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","alpha", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","alpha", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(argv[1], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","alpha", 3, argv[1] )); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->alpha(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_double(static_cast< double >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_beta(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + double result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","beta", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","beta", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(argv[1], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","beta", 3, argv[1] )); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->beta(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_double(static_cast< double >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_emission_cost(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + double result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","emission_cost", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","emission_cost", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(argv[1], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","emission_cost", 3, argv[1] )); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->emission_cost(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_double(static_cast< double >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_next_transition_cost(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + size_t val4 ; + int ecode4 = 0 ; + double result; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","next_transition_cost", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","next_transition_cost", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(argv[1], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","next_transition_cost", 3, argv[1] )); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t(argv[2], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","next_transition_cost", 4, argv[2] )); + } + arg4 = static_cast< size_t >(val4); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->next_transition_cost(arg2,arg3,arg4); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_double(static_cast< double >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_prev_transition_cost(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + size_t arg4 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + size_t val4 ; + int ecode4 = 0 ; + double result; + VALUE vresult = Qnil; + + if ((argc < 3) || (argc > 3)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","prev_transition_cost", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","prev_transition_cost", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(argv[1], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","prev_transition_cost", 3, argv[1] )); + } + arg3 = static_cast< size_t >(val3); + ecode4 = SWIG_AsVal_size_t(argv[2], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","prev_transition_cost", 4, argv[2] )); + } + arg4 = static_cast< size_t >(val4); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->prev_transition_cost(arg2,arg3,arg4); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_double(static_cast< double >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_best_cost(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + size_t arg2 ; + size_t arg3 ; + void *argp1 = 0 ; + int res1 = 0 ; + size_t val2 ; + int ecode2 = 0 ; + size_t val3 ; + int ecode3 = 0 ; + double result; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","best_cost", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + ecode2 = SWIG_AsVal_size_t(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","best_cost", 2, argv[0] )); + } + arg2 = static_cast< size_t >(val2); + ecode3 = SWIG_AsVal_size_t(argv[1], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","best_cost", 3, argv[1] )); + } + arg3 = static_cast< size_t >(val3); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->best_cost(arg2,arg3); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_double(static_cast< double >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_Z(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + double result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","Z", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (double)((CRFPP::Tagger const *)arg1)->Z(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_double(static_cast< double >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_parse__SWIG_0(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger *","parse", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)(arg1)->parse(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_bool(static_cast< bool >(result)); + return vresult; +fail: + return Qnil; +} + + + +/* + Document-method: CRFPP::Tagger.empty + + call-seq: + empty -> bool + +Check if Tagger is empty. +*/ +SWIGINTERN VALUE +_wrap_Tagger_empty(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger const *","empty", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)((CRFPP::Tagger const *)arg1)->empty(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_bool(static_cast< bool >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_clear(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger *","clear", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)(arg1)->clear(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_bool(static_cast< bool >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_next(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger *","next", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (bool)(arg1)->next(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_From_bool(static_cast< bool >(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_parse__SWIG_1(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + char *arg2 = (char *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + char *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger *","parse", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","parse", 2, argv[0] )); + } + arg2 = reinterpret_cast< char * >(buf2); + { + try { + result = (char *)(arg1)->parse((char const *)arg2); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_FromCharPtr((const char *)result); + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) delete[] buf2; + return Qnil; +} + + +SWIGINTERN VALUE _wrap_Tagger_parse(int nargs, VALUE *args, VALUE self) { + int argc; + VALUE argv[3]; + int ii; + + argc = nargs + 1; + argv[0] = self; + if (argc > 3) SWIG_fail; + for (ii = 1; (ii < argc); ++ii) { + argv[ii] = args[ii-1]; + } + if (argc == 1) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_Tagger_parse__SWIG_0(nargs, args, self); + } + } + if (argc == 2) { + int _v; + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CRFPP__Tagger, 0); + _v = SWIG_CheckState(res); + if (_v) { + int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); + _v = SWIG_CheckState(res); + if (_v) { + return _wrap_Tagger_parse__SWIG_1(nargs, args, self); + } + } + } + +fail: + Ruby_Format_OverloadedError( argc, 3, "Tagger.parse", + " char const * Tagger.parse()\n" + " char const * Tagger.parse(char const *str)\n"); + + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_Tagger_what(int argc, VALUE *argv, VALUE self) { + CRFPP::Tagger *arg1 = (CRFPP::Tagger *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + char *result = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_CRFPP__Tagger, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CRFPP::Tagger *","what", 1, self )); + } + arg1 = reinterpret_cast< CRFPP::Tagger * >(argp1); + { + try { + result = (char *)(arg1)->what(); + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + vresult = SWIG_FromCharPtr((const char *)result); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN void +free_CRFPP_Tagger(CRFPP::Tagger *arg1) { + delete arg1; +} + +#ifdef HAVE_RB_DEFINE_ALLOC_FUNC +SWIGINTERN VALUE +_wrap_Tagger_allocate(VALUE self) { +#else + SWIGINTERN VALUE + _wrap_Tagger_allocate(int argc, VALUE *argv, VALUE self) { +#endif + + + VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_CRFPP__Tagger); +#ifndef HAVE_RB_DEFINE_ALLOC_FUNC + rb_obj_call_init(vresult, argc, argv); +#endif + return vresult; + } + + +SWIGINTERN VALUE +_wrap_new_Tagger(int argc, VALUE *argv, VALUE self) { + char *arg1 = (char *) 0 ; + int res1 ; + char *buf1 = 0 ; + int alloc1 = 0 ; + CRFPP::Tagger *result = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","CRFPP::Tagger", 1, argv[0] )); + } + arg1 = reinterpret_cast< char * >(buf1); + { + try { + result = (CRFPP::Tagger *)new_CRFPP_Tagger((char const *)arg1); + DATA_PTR(self) = result; + } + catch (char *e) { + SWIG_exception (SWIG_RuntimeError, e); + } + catch (const char *e) { + SWIG_exception (SWIG_RuntimeError, (char*)e); + } + } + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return self; +fail: + if (alloc1 == SWIG_NEWOBJ) delete[] buf1; + return Qnil; +} + + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static swig_type_info _swigt__p_CRFPP__Model = {"_p_CRFPP__Model", "CRFPP::Model *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_CRFPP__Tagger = {"_p_CRFPP__Tagger", "CRFPP::Tagger *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_CRFPP__Model, + &_swigt__p_CRFPP__Tagger, + &_swigt__p_char, +}; + +static swig_cast_info _swigc__p_CRFPP__Model[] = { {&_swigt__p_CRFPP__Model, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_CRFPP__Tagger[] = { {&_swigt__p_CRFPP__Tagger, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_CRFPP__Model, + _swigc__p_CRFPP__Tagger, + _swigc__p_char, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +/* ----------------------------------------------------------------------------- + * Type initialization: + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to + * swig_cast_info structures and swig_cast_info structures store pointers back + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of + * swig_module, and does all the lookup, filling in the swig_module.types + * array with the correct data and linking the correct swig_cast_info + * structures together. + * + * The generated swig_type_info structures are assigned staticly to an initial + * array. We just loop through that array, and handle each type individually. + * First we lookup if this type has been already loaded, and if so, use the + * loaded structure instead of the generated one. Then we have to fill in the + * cast linked list. The cast data is initially stored in something like a + * two-dimensional array. Each row corresponds to a type (there are the same + * number of rows as there are in the swig_type_initial array). Each entry in + * a column is one of the swig_cast_info structures for that type. + * The cast_initial array is actually an array of arrays, because each row has + * a variable number of columns. So to actually build the cast linked list, + * we find the array of casts associated with the type, and loop through it + * adding the casts to the list. The one last trick we need to do is making + * sure the type pointer in the swig_cast_info struct is correct. + * + * First off, we lookup the cast->type name to see if it is already loaded. + * There are three cases to handle: + * 1) If the cast->type has already been loaded AND the type we are adding + * casting info to has not been loaded (it is in this module), THEN we + * replace the cast->type pointer with the type pointer that has already + * been loaded. + * 2) If BOTH types (the one we are adding casting info to, and the + * cast->type) are loaded, THEN the cast info has already been loaded by + * the previous module so we just ignore it. + * 3) Finally, if cast->type has not already been loaded, then we add that + * swig_cast_info to the linked list (because the cast->type) pointer will + * be correct. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* c-mode */ +#endif +#endif + +#if 0 +#define SWIGRUNTIME_DEBUG +#endif + + +SWIGRUNTIME void +SWIG_InitializeModule(void *clientdata) { + size_t i; + swig_module_info *module_head, *iter; + int found, init; + + clientdata = clientdata; + + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } + + /* Try and load any already created modules */ + module_head = SWIG_GetModule(clientdata); + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ + swig_module.next = module_head->next; + module_head->next = &swig_module; + } + + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + + /* Now work on filling in swig_module.types */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: size %d\n", swig_module.size); +#endif + for (i = 0; i < swig_module.size; ++i) { + swig_type_info *type = 0; + swig_type_info *ret; + swig_cast_info *cast; + +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); +#endif + + /* if there is another module already loaded */ + if (swig_module.next != &swig_module) { + type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); + } + if (type) { + /* Overwrite clientdata field */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found type %s\n", type->name); +#endif + if (swig_module.type_initial[i]->clientdata) { + type->clientdata = swig_module.type_initial[i]->clientdata; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); +#endif + } + } else { + type = swig_module.type_initial[i]; + } + + /* Insert casting types */ + cast = swig_module.cast_initial[i]; + while (cast->type) { + + /* Don't need to add information already in the list */ + ret = 0; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); +#endif + if (swig_module.next != &swig_module) { + ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); +#ifdef SWIGRUNTIME_DEBUG + if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); +#endif + } + if (ret) { + if (type == swig_module.type_initial[i]) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: skip old type %s\n", ret->name); +#endif + cast->type = ret; + ret = 0; + } else { + /* Check for casting already in the list */ + swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); +#ifdef SWIGRUNTIME_DEBUG + if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); +#endif + if (!ocast) ret = 0; + } + } + + if (!ret) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); +#endif + if (type->cast) { + type->cast->prev = cast; + cast->next = type->cast; + } + type->cast = cast; + } + cast++; + } + /* Set entry in modules->types array equal to the type */ + swig_module.types[i] = type; + } + swig_module.types[i] = 0; + +#ifdef SWIGRUNTIME_DEBUG + printf("**** SWIG_InitializeModule: Cast List ******\n"); + for (i = 0; i < swig_module.size; ++i) { + int j = 0; + swig_cast_info *cast = swig_module.cast_initial[i]; + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); + while (cast->type) { + printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); + cast++; + ++j; + } + printf("---- Total casts: %d\n",j); + } + printf("**** SWIG_InitializeModule: Cast List ******\n"); +#endif +} + +/* This function will propagate the clientdata field of type to +* any new swig_type_info structures that have been added into the list +* of equivalent types. It is like calling +* SWIG_TypeClientData(type, clientdata) a second time. +*/ +SWIGRUNTIME void +SWIG_PropagateClientData(void) { + size_t i; + swig_cast_info *equiv; + static int init_run = 0; + + if (init_run) return; + init_run = 1; + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { + equiv = swig_module.types[i]->cast; + while (equiv) { + if (!equiv->converter) { + if (equiv->type && !equiv->type->clientdata) + SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); + } + equiv = equiv->next; + } + } + } +} + +#ifdef __cplusplus +#if 0 +{ /* c-mode */ +#endif +} +#endif + +/* + +*/ +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void Init_CRFPP(void) { + size_t i; + + SWIG_InitRuntime(); + mCRFPP = rb_define_module("CRFPP"); + + SWIG_InitializeModule(0); + for (i = 0; i < swig_module.size; i++) { + SWIG_define_class(swig_module.types[i]); + } + + SWIG_RubyInitializeTrackings(); + + SwigClassModel.klass = rb_define_class_under(mCRFPP, "Model", rb_cObject); + SWIG_TypeClientData(SWIGTYPE_p_CRFPP__Model, (void *) &SwigClassModel); + rb_define_alloc_func(SwigClassModel.klass, _wrap_Model_allocate); + rb_define_method(SwigClassModel.klass, "initialize", VALUEFUNC(_wrap_new_Model), -1); + rb_define_method(SwigClassModel.klass, "createTagger", VALUEFUNC(_wrap_Model_createTagger), -1); + rb_define_method(SwigClassModel.klass, "what", VALUEFUNC(_wrap_Model_what), -1); + SwigClassModel.mark = 0; + SwigClassModel.destroy = (void (*)(void *)) free_CRFPP_Model; + SwigClassModel.trackObjects = 0; + + SwigClassTagger.klass = rb_define_class_under(mCRFPP, "Tagger", rb_cObject); + SWIG_TypeClientData(SWIGTYPE_p_CRFPP__Tagger, (void *) &SwigClassTagger); + rb_define_alloc_func(SwigClassTagger.klass, _wrap_Tagger_allocate); + rb_define_method(SwigClassTagger.klass, "initialize", VALUEFUNC(_wrap_new_Tagger), -1); + rb_define_method(SwigClassTagger.klass, "set_vlevel", VALUEFUNC(_wrap_Tagger_set_vlevel), -1); + rb_define_method(SwigClassTagger.klass, "vlevel", VALUEFUNC(_wrap_Tagger_vlevel), -1); + rb_define_method(SwigClassTagger.klass, "set_cost_factor", VALUEFUNC(_wrap_Tagger_set_cost_factor), -1); + rb_define_method(SwigClassTagger.klass, "cost_factor", VALUEFUNC(_wrap_Tagger_cost_factor), -1); + rb_define_method(SwigClassTagger.klass, "set_nbest", VALUEFUNC(_wrap_Tagger_set_nbest), -1); + rb_define_method(SwigClassTagger.klass, "nbest", VALUEFUNC(_wrap_Tagger_nbest), -1); + rb_define_method(SwigClassTagger.klass, "add", VALUEFUNC(_wrap_Tagger_add), -1); + rb_define_method(SwigClassTagger.klass, "size", VALUEFUNC(_wrap_Tagger_size), -1); + rb_define_method(SwigClassTagger.klass, "xsize", VALUEFUNC(_wrap_Tagger_xsize), -1); + rb_define_method(SwigClassTagger.klass, "dsize", VALUEFUNC(_wrap_Tagger_dsize), -1); + rb_define_method(SwigClassTagger.klass, "result", VALUEFUNC(_wrap_Tagger_result), -1); + rb_define_method(SwigClassTagger.klass, "answer", VALUEFUNC(_wrap_Tagger_answer), -1); + rb_define_method(SwigClassTagger.klass, "y", VALUEFUNC(_wrap_Tagger_y), -1); + rb_define_method(SwigClassTagger.klass, "y2", VALUEFUNC(_wrap_Tagger_y2), -1); + rb_define_method(SwigClassTagger.klass, "yname", VALUEFUNC(_wrap_Tagger_yname), -1); + rb_define_method(SwigClassTagger.klass, "x", VALUEFUNC(_wrap_Tagger_x), -1); + rb_define_method(SwigClassTagger.klass, "ysize", VALUEFUNC(_wrap_Tagger_ysize), -1); + rb_define_method(SwigClassTagger.klass, "prob", VALUEFUNC(_wrap_Tagger_prob), -1); + rb_define_method(SwigClassTagger.klass, "set_penalty", VALUEFUNC(_wrap_Tagger_set_penalty), -1); + rb_define_method(SwigClassTagger.klass, "penalty", VALUEFUNC(_wrap_Tagger_penalty), -1); + rb_define_method(SwigClassTagger.klass, "alpha", VALUEFUNC(_wrap_Tagger_alpha), -1); + rb_define_method(SwigClassTagger.klass, "beta", VALUEFUNC(_wrap_Tagger_beta), -1); + rb_define_method(SwigClassTagger.klass, "emission_cost", VALUEFUNC(_wrap_Tagger_emission_cost), -1); + rb_define_method(SwigClassTagger.klass, "next_transition_cost", VALUEFUNC(_wrap_Tagger_next_transition_cost), -1); + rb_define_method(SwigClassTagger.klass, "prev_transition_cost", VALUEFUNC(_wrap_Tagger_prev_transition_cost), -1); + rb_define_method(SwigClassTagger.klass, "best_cost", VALUEFUNC(_wrap_Tagger_best_cost), -1); + rb_define_method(SwigClassTagger.klass, "Z", VALUEFUNC(_wrap_Tagger_Z), -1); + rb_define_method(SwigClassTagger.klass, "empty", VALUEFUNC(_wrap_Tagger_empty), -1); + rb_define_method(SwigClassTagger.klass, "clear", VALUEFUNC(_wrap_Tagger_clear), -1); + rb_define_method(SwigClassTagger.klass, "next", VALUEFUNC(_wrap_Tagger_next), -1); + rb_define_method(SwigClassTagger.klass, "parse", VALUEFUNC(_wrap_Tagger_parse), -1); + rb_define_method(SwigClassTagger.klass, "what", VALUEFUNC(_wrap_Tagger_what), -1); + SwigClassTagger.mark = 0; + SwigClassTagger.destroy = (void (*)(void *)) free_CRFPP_Tagger; + SwigClassTagger.trackObjects = 0; + rb_define_const(mCRFPP, "VERSION", SWIG_FromCharPtr("0.55")); +} + diff --git a/ruby/Makefile b/ruby/Makefile new file mode 100644 index 0000000..4825f44 --- /dev/null +++ b/ruby/Makefile @@ -0,0 +1,157 @@ + +SHELL = /bin/sh + +#### Start of system configuration section. #### + +srcdir = . +topdir = /usr/lib/ruby/1.8/x86_64-linux +hdrdir = $(topdir) +VPATH = $(srcdir):$(topdir):$(hdrdir) +exec_prefix = $(prefix) +prefix = $(DESTDIR)/usr +sharedstatedir = $(prefix)/com +mandir = $(prefix)/share/man +psdir = $(docdir) +oldincludedir = $(DESTDIR)/usr/include +localedir = $(datarootdir)/locale +bindir = $(exec_prefix)/bin +libexecdir = $(prefix)/lib/ruby1.8 +sitedir = $(DESTDIR)/usr/local/lib/site_ruby +htmldir = $(docdir) +vendorarchdir = $(vendorlibdir)/$(sitearch) +includedir = $(prefix)/include +infodir = $(prefix)/share/info +vendorlibdir = $(vendordir)/$(ruby_version) +sysconfdir = $(DESTDIR)/etc +libdir = $(exec_prefix)/lib +sbindir = $(exec_prefix)/sbin +rubylibdir = $(libdir)/ruby/$(ruby_version) +docdir = $(datarootdir)/doc/$(PACKAGE) +dvidir = $(docdir) +vendordir = $(libdir)/ruby/vendor_ruby +datarootdir = $(prefix)/share +pdfdir = $(docdir) +archdir = $(rubylibdir)/$(arch) +sitearchdir = $(sitelibdir)/$(sitearch) +datadir = $(datarootdir) +localstatedir = $(DESTDIR)/var +sitelibdir = $(sitedir)/$(ruby_version) + +CC = gcc +LIBRUBY = $(LIBRUBY_SO) +LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a +LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME) +LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static + +RUBY_EXTCONF_H = +CFLAGS = -fPIC -fno-strict-aliasing -g -g -O2 -fPIC $(cflags) +INCFLAGS = -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. +DEFS = +CPPFLAGS = -DHAVE_CRFPP_H +CXXFLAGS = $(CFLAGS) +ldflags = -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic +dldflags = +archflag = +DLDFLAGS = $(ldflags) $(dldflags) $(archflag) +LDSHARED = $(CC) -shared +AR = ar +EXEEXT = + +RUBY_INSTALL_NAME = ruby1.8 +RUBY_SO_NAME = ruby1.8 +arch = x86_64-linux +sitearch = x86_64-linux +ruby_version = 1.8 +ruby = /usr/bin/ruby1.8 +RUBY = $(ruby) +RM = rm -f +MAKEDIRS = mkdir -p +INSTALL = /usr/bin/install -c +INSTALL_PROG = $(INSTALL) -m 0755 +INSTALL_DATA = $(INSTALL) -m 644 +COPY = cp + +#### End of system configuration section. #### + +preload = + +libpath = . $(libdir) +LIBPATH = -L. -L$(libdir) +DEFFILE = + +CLEANFILES = mkmf.log +DISTCLEANFILES = + +extout = +extout_prefix = +target_prefix = +LOCAL_LIBS = +LIBS = $(LIBRUBYARG_SHARED) -lpthread -lcrfpp -lpthread -lrt -ldl -lcrypt -lm -lc +SRCS = CRFPP_wrap.cpp +OBJS = CRFPP_wrap.o +TARGET = CRFPP +DLLIB = $(TARGET).so +EXTSTATIC = +STATIC_LIB = + +BINDIR = $(bindir) +RUBYCOMMONDIR = $(sitedir)$(target_prefix) +RUBYLIBDIR = $(sitelibdir)$(target_prefix) +RUBYARCHDIR = $(sitearchdir)$(target_prefix) + +TARGET_SO = $(DLLIB) +CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map +CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak + +all: $(DLLIB) +static: $(STATIC_LIB) + +clean: + @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) + +distclean: clean + @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log + @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES) + +realclean: distclean +install: install-so install-rb + +install-so: $(RUBYARCHDIR) +install-so: $(RUBYARCHDIR)/$(DLLIB) +$(RUBYARCHDIR)/$(DLLIB): $(DLLIB) + $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR) +install-rb: pre-install-rb install-rb-default +install-rb-default: pre-install-rb-default +pre-install-rb: Makefile +pre-install-rb-default: Makefile +$(RUBYARCHDIR): + $(MAKEDIRS) $@ + +site-install: site-install-so site-install-rb +site-install-so: install-so +site-install-rb: install-rb + +.SUFFIXES: .c .m .cc .cxx .cpp .C .o + +.cc.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.cxx.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.cpp.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.C.o: + $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< + +.c.o: + $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $< + +$(DLLIB): $(OBJS) Makefile + @-$(RM) $@ + $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS) + + + +$(OBJS): ruby.h defines.h diff --git a/ruby/README b/ruby/README new file mode 100644 index 0000000..5dde4c9 --- /dev/null +++ b/ruby/README @@ -0,0 +1,14 @@ +CRF++ ruby module + +$Id: README,v 1.1.1.1 2005/12/03 14:18:52 taku-ku Exp $; + +1. Installation + + % ruby extconf.rb + % make + % su + # make install + +2. How to use? + + See 'test.rb' as a sample program. diff --git a/ruby/extconf.rb b/ruby/extconf.rb new file mode 100644 index 0000000..f667b72 --- /dev/null +++ b/ruby/extconf.rb @@ -0,0 +1,7 @@ +require 'mkmf' + +crfpp_config = with_config('crfpp-config', 'crfpp-config') +use_crfpp_config = enable_config('crfpp-config') +have_library("crfpp") +have_library("pthread") +have_header('crfpp.h') && create_makefile('CRFPP') diff --git a/ruby/test.rb b/ruby/test.rb new file mode 100755 index 0000000..a8a6a1e --- /dev/null +++ b/ruby/test.rb @@ -0,0 +1,74 @@ +#!/usr/bin/ruby + +require 'CRFPP' + +begin + # -v 3: access deep information like alpha,beta,prob + # -nN: enable nbest output. N should be >= 2 + tagger = CRFPP::Tagger.new("-m ../model -v 3 -n2") + + # clear internal context + tagger.clear() + + # add context + tagger.add("Confidence NN") + tagger.add("in IN") + tagger.add("the DT") + tagger.add("pound NN") + tagger.add("is VBZ") + tagger.add("widely RB") + tagger.add("expected VBN") + tagger.add("to TO") + tagger.add("take VB") + tagger.add("another DT") + tagger.add("sharp JJ") + tagger.add("dive NN") + tagger.add("if IN") + tagger.add("trade NN") + tagger.add("figures NNS") + tagger.add("for IN") + tagger.add("September NNP") + + print "column size: " , tagger.xsize() , "\n" + print "token size: " , tagger.size() , "\n" + print "tag size: " , tagger.ysize() , "\n" + + print "tagset information:" , "\n" + ysize = tagger.ysize() + for i in 0..(ysize-1) + print "tag " , i , " " , tagger.yname(i) , "\n" + end + + # parse and change internal stated as 'parsed' + die if !tagger.parse() + + print "conditional prob=" , tagger.prob(), " log(Z)=" , tagger.Z() , "\n" + + size = tagger.size() + xsize = tagger.xsize() + for i in 0..(size - 1) + for j in 0..(xsize-1) + print tagger.x(i, j) , "\t" + end + print tagger.y2(i) , "\t" + print "\n" + print "Details" + for j in 0..(ysize-1) + print "\t" , tagger.yname(j) , "/prob=" , tagger.prob(i,j),"/alpha=" , tagger.alpha(i, j),"/beta=" , tagger.beta(i, j) + print "\n" + end + end + + + print "nbest outputs:" , "\n" + for n in 0..9 + last if !tagger.next() + print "nbest n=" , n , "\tconditional prob=" , tagger.prob() , "\n" + # you can access any information using tagger.y()... + end + +print "Done" , "\n" + +rescue + print "RuntimeError: ", $!, "\n" +end diff --git a/scoped_ptr.h b/scoped_ptr.h new file mode 100644 index 0000000..85424fd --- /dev/null +++ b/scoped_ptr.h @@ -0,0 +1,97 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: scoped_ptr.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_SCOPED_PTR_H_ +#define CRFPP_SCOPED_PTR_H_ + +#include <cstring> +#include <string> + +namespace CRFPP { + +template<class T> class scoped_ptr { + private: + T * ptr_; + scoped_ptr(scoped_ptr const &); + scoped_ptr & operator=(scoped_ptr const &); + typedef scoped_ptr<T> this_type; + + public: + typedef T element_type; + explicit scoped_ptr(T * p = 0): ptr_(p) {} + virtual ~scoped_ptr() { delete ptr_; } + void reset(T * p = 0) { + delete ptr_; + ptr_ = p; + } + T & operator*() const { return *ptr_; } + T * operator->() const { return ptr_; } + T * get() const { return ptr_; } +}; + +template<class T, int N> class scoped_fixed_array { + private: + T * ptr_; + size_t size_; + scoped_fixed_array(scoped_fixed_array const &); + scoped_fixed_array & operator= (scoped_fixed_array const &); + typedef scoped_fixed_array<T, N> this_type; + + public: + typedef T element_type; + explicit scoped_fixed_array() + : ptr_(new T[N]), size_(N) {} + virtual ~scoped_fixed_array() { delete [] ptr_; } + size_t size() const { return size_; } + T & operator*() const { return *ptr_; } + T * operator->() const { return ptr_; } + T * get() const { return ptr_; } + T & operator[](size_t i) const { return ptr_[i]; } +}; + +template<class T> class scoped_array { + private: + T * ptr_; + scoped_array(scoped_array const &); + scoped_array & operator=(scoped_array const &); + typedef scoped_array<T> this_type; + + public: + typedef T element_type; + explicit scoped_array(T * p = 0): ptr_(p) {} + virtual ~scoped_array() { delete [] ptr_; } + void reset(T * p = 0) { + delete [] ptr_; + ptr_ = p; + } + T & operator*() const { return *ptr_; } + T * operator->() const { return ptr_; } + T * get() const { return ptr_; } + T & operator[](size_t i) const { return ptr_[i]; } +}; + +class scoped_string: public scoped_array<char> { + public: + explicit scoped_string() { reset_string(""); } + explicit scoped_string(const std::string &str) { + reset_string(str); + } + + void reset_string(const std::string &str) { + char *p = new char[str.size() + 1]; + strcpy(p, str.c_str()); + reset(p); + } + + void reset_string(const char *str) { + char *p = new char[strlen(str) + 1]; + strcpy(p, str); + reset(p); + } +}; +} +#endif diff --git a/sdk/example.cpp b/sdk/example.cpp new file mode 100644 index 0000000..3fdb975 --- /dev/null +++ b/sdk/example.cpp @@ -0,0 +1,79 @@ +#include <iostream> +#include "crfpp.h" + +// c++ -O3 example.cpp -lcrfpp + +int main(int argc, char **argv) { + + // -v 3: access deep information like alpha,beta,prob + // -nN: enable nbest output. N should be >= 2 + CRFPP::Tagger *tagger = + CRFPP::createTagger("-m model -v 3 -n2"); + + if (!tagger) { + std::cerr << CRFPP::getTaggerError() << std::endl; + return -1; + } + + // clear internal context + tagger->clear(); + + // add context + tagger->add("Confidence NN"); + tagger->add("in IN"); + tagger->add("the DT"); + tagger->add("pound NN"); + tagger->add("is VBZ"); + tagger->add("widely RB"); + tagger->add("expected VBN"); + tagger->add("to TO"); + tagger->add("take VB"); + tagger->add("another DT"); + tagger->add("sharp JJ"); + tagger->add("dive NN"); + tagger->add("if IN"); + tagger->add("trade NN"); + tagger->add("figures NNS"); + tagger->add("for IN"); + tagger->add("September NNP"); + + std::cout << "column size: " << tagger->xsize() << std::endl; + std::cout << "token size: " << tagger->size() << std::endl; + std::cout << "tag size: " << tagger->ysize() << std::endl; + + std::cout << "tagset information:" << std::endl; + for (size_t i = 0; i < tagger->ysize(); ++i) { + std::cout << "tag " << i << " " << tagger->yname(i) << std::endl; + } + + // parse and change internal stated as 'parsed' + if (! tagger->parse()) return -1; + + std::cout << "conditional prob=" << tagger->prob() + << " log(Z)=" << tagger->Z() << std::endl; + + for (size_t i = 0; i < tagger->size(); ++i) { + for (size_t j = 0; j < tagger->xsize(); ++j) { + std::cout << tagger->x(i, j) << '\t'; + } + std::cout << tagger->y2(i) << '\t'; + std::cout << std::endl; + + std::cout << "Details"; + for (size_t j = 0; j < tagger->ysize(); ++j) { + std::cout << '\t' << tagger->yname(j) << "/prob=" << tagger->prob(i,j) + << "/alpha=" << tagger->alpha(i, j) + << "/beta=" << tagger->beta(i, j); + } + std::cout << std::endl; + } + + // when -n20 is specified, you can access nbest outputs + std::cout << "nbest outputs:" << std::endl; + for (size_t n = 0; n < 10; ++n) { + if (! tagger->next()) break; + std::cout << "nbest n=" << n << "\tconditional prob=" << tagger->prob() << std::endl; + // you can access any information using tagger->y()... + } + std::cout << "Done" << std::endl; +} diff --git a/stamp-h b/stamp-h new file mode 100644 index 0000000..9788f70 --- /dev/null +++ b/stamp-h @@ -0,0 +1 @@ +timestamp diff --git a/stamp-h.in b/stamp-h.in new file mode 100644 index 0000000..9788f70 --- /dev/null +++ b/stamp-h.in @@ -0,0 +1 @@ +timestamp diff --git a/stamp-h1 b/stamp-h1 new file mode 100644 index 0000000..4547fe1 --- /dev/null +++ b/stamp-h1 @@ -0,0 +1 @@ +timestamp for config.h diff --git a/stream_wrapper.h b/stream_wrapper.h new file mode 100644 index 0000000..73b9655 --- /dev/null +++ b/stream_wrapper.h @@ -0,0 +1,57 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: stream_wrapper.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_STREAM_WRAPPER_H_ +#define CRFPP_STREAM_WRAPPER_H_ + +#include <iostream> +#include <fstream> +#include <cstring> +#include "common.h" + +namespace CRFPP { + +class istream_wrapper { + private: + std::istream* is; + public: + std::istream &operator*() const { return *is; } + std::istream *operator->() const { return is; } + std::istream *get() { return is; } + explicit istream_wrapper(const char* filename): is(0) { + if (std::strcmp(filename, "-") == 0) + is = &std::cin; + else + is = new std::ifstream(WPATH(filename)); + } + + ~istream_wrapper() { + if (is != &std::cin) delete is; + } +}; + +class ostream_wrapper { + private: + std::ostream* os; + public: + std::ostream &operator*() const { return *os; } + std::ostream *operator->() const { return os; } + std::ostream *get() { return os; } + explicit ostream_wrapper(const char* filename): os(0) { + if (std::strcmp(filename, "-") == 0) + os = &std::cout; + else + os = new std::ofstream(WPATH(filename)); + } + + ~ostream_wrapper() { + if (os != &std::cout) delete os; + } +}; +} + +#endif diff --git a/swig/CRFPP.i b/swig/CRFPP.i new file mode 100644 index 0000000..57de8a0 --- /dev/null +++ b/swig/CRFPP.i @@ -0,0 +1,52 @@ +%module CRFPP +%include exception.i +%{ +#include "crfpp.h" +%} + +%newobject surface; + +%exception { + try { $action } + catch (char *e) { SWIG_exception (SWIG_RuntimeError, e); } + catch (const char *e) { SWIG_exception (SWIG_RuntimeError, (char*)e); } +} + +%feature("notabstract") CRFPP::Model; +%feature("notabstract") CRFPP::Tagger; +%ignore CRFPP::createModel; +%ignore CRFPP::createTagger; +%ignore CRFPP::getTaggerError; +%ignore CRFPP::getLastError; + +%extend CRFPP::Model { Model(const char *arg); } +%extend CRFPP::Tagger { Tagger(const char *arg); } + +%{ + +void delete_CRFPP_Model (CRFPP::Model *t) { + delete t; + t = 0; +} + +CRFPP::Model* new_CRFPP_Model(const char *arg) { + CRFPP::Model *tagger = CRFPP::createModel(arg); + if (!tagger) throw CRFPP::getLastError(); + return tagger; +} + +void delete_CRFPP_Tagger (CRFPP::Tagger *t) { + delete t; + t = 0; +} + +CRFPP::Tagger* new_CRFPP_Tagger (const char *arg) { + CRFPP::Tagger *tagger = CRFPP::createTagger(arg); + if (!tagger) throw CRFPP::getLastError(); + return tagger; +} + +%} + +%include ../crfpp.h +%include version.h diff --git a/swig/CRFPP_wrap.c b/swig/CRFPP_wrap.c new file mode 100644 index 0000000..1f6476f --- /dev/null +++ b/swig/CRFPP_wrap.c @@ -0,0 +1,1914 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.38 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#define SWIGPERL +#define SWIG_CASTRANK_MODE + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + + +/* ----------------------------------------------------------------------------- + * swigrun.swg + * + * This file contains generic C API SWIG runtime support for pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +/* This should only be incremented when either the layout of swig_type_info changes, + or for whatever reason, the runtime changes incompatibly */ +#define SWIG_RUNTIME_VERSION "4" + +/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ +#ifdef SWIG_TYPE_TABLE +# define SWIG_QUOTE_STRING(x) #x +# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) +# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) +#else +# define SWIG_TYPE_TABLE_NAME +#endif + +/* + You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for + creating a static or dynamic library from the SWIG runtime code. + In 99.9% of the cases, SWIG just needs to declare them as 'static'. + + But only do this if strictly necessary, ie, if you have problems + with your compiler or suchlike. +*/ + +#ifndef SWIGRUNTIME +# define SWIGRUNTIME SWIGINTERN +#endif + +#ifndef SWIGRUNTIMEINLINE +# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE +#endif + +/* Generic buffer size */ +#ifndef SWIG_BUFFER_SIZE +# define SWIG_BUFFER_SIZE 1024 +#endif + +/* Flags for pointer conversions */ +#define SWIG_POINTER_DISOWN 0x1 +#define SWIG_CAST_NEW_MEMORY 0x2 + +/* Flags for new pointer objects */ +#define SWIG_POINTER_OWN 0x1 + + +/* + Flags/methods for returning states. + + The SWIG conversion methods, as ConvertPtr, return and integer + that tells if the conversion was successful or not. And if not, + an error code can be returned (see swigerrors.swg for the codes). + + Use the following macros/flags to set or process the returning + states. + + In old versions of SWIG, code such as the following was usually written: + + if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { + // success code + } else { + //fail code + } + + Now you can be more explicit: + + int res = SWIG_ConvertPtr(obj,vptr,ty.flags); + if (SWIG_IsOK(res)) { + // success code + } else { + // fail code + } + + which is the same really, but now you can also do + + Type *ptr; + int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); + if (SWIG_IsOK(res)) { + // success code + if (SWIG_IsNewObj(res) { + ... + delete *ptr; + } else { + ... + } + } else { + // fail code + } + + I.e., now SWIG_ConvertPtr can return new objects and you can + identify the case and take care of the deallocation. Of course that + also requires SWIG_ConvertPtr to return new result values, such as + + int SWIG_ConvertPtr(obj, ptr,...) { + if (<obj is ok>) { + if (<need new object>) { + *ptr = <ptr to new allocated object>; + return SWIG_NEWOBJ; + } else { + *ptr = <ptr to old object>; + return SWIG_OLDOBJ; + } + } else { + return SWIG_BADOBJ; + } + } + + Of course, returning the plain '0(success)/-1(fail)' still works, but you can be + more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the + SWIG errors code. + + Finally, if the SWIG_CASTRANK_MODE is enabled, the result code + allows to return the 'cast rank', for example, if you have this + + int food(double) + int fooi(int); + + and you call + + food(1) // cast rank '1' (1 -> 1.0) + fooi(1) // cast rank '0' + + just use the SWIG_AddCast()/SWIG_CheckState() +*/ + +#define SWIG_OK (0) +#define SWIG_ERROR (-1) +#define SWIG_IsOK(r) (r >= 0) +#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) + +/* The CastRankLimit says how many bits are used for the cast rank */ +#define SWIG_CASTRANKLIMIT (1 << 8) +/* The NewMask denotes the object was created (using new/malloc) */ +#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) +/* The TmpMask is for in/out typemaps that use temporal objects */ +#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) +/* Simple returning values */ +#define SWIG_BADOBJ (SWIG_ERROR) +#define SWIG_OLDOBJ (SWIG_OK) +#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) +#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) +/* Check, add and del mask methods */ +#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) +#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) +#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) +#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) +#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) +#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) + +/* Cast-Rank Mode */ +#if defined(SWIG_CASTRANK_MODE) +# ifndef SWIG_TypeRank +# define SWIG_TypeRank unsigned long +# endif +# ifndef SWIG_MAXCASTRANK /* Default cast allowed */ +# define SWIG_MAXCASTRANK (2) +# endif +# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) +# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) +SWIGINTERNINLINE int SWIG_AddCast(int r) { + return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; +} +SWIGINTERNINLINE int SWIG_CheckState(int r) { + return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; +} +#else /* no cast-rank mode */ +# define SWIG_AddCast +# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) +#endif + + +#include <string.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void *(*swig_converter_func)(void *, int *); +typedef struct swig_type_info *(*swig_dycast_func)(void **); + +/* Structure to store information on one type */ +typedef struct swig_type_info { + const char *name; /* mangled name of this type */ + const char *str; /* human readable name of this type */ + swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ + struct swig_cast_info *cast; /* linked list of types that can cast into this type */ + void *clientdata; /* language specific type data */ + int owndata; /* flag if the structure owns the clientdata */ +} swig_type_info; + +/* Structure to store a type and conversion function used for casting */ +typedef struct swig_cast_info { + swig_type_info *type; /* pointer to type that is equivalent to this type */ + swig_converter_func converter; /* function to cast the void pointers */ + struct swig_cast_info *next; /* pointer to next cast in linked list */ + struct swig_cast_info *prev; /* pointer to the previous cast */ +} swig_cast_info; + +/* Structure used to store module information + * Each module generates one structure like this, and the runtime collects + * all of these structures and stores them in a circularly linked list.*/ +typedef struct swig_module_info { + swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ + size_t size; /* Number of types in this module */ + struct swig_module_info *next; /* Pointer to next element in circularly linked list */ + swig_type_info **type_initial; /* Array of initially generated type structures */ + swig_cast_info **cast_initial; /* Array of initially generated casting structures */ + void *clientdata; /* Language specific module data */ +} swig_module_info; + +/* + Compare two type names skipping the space characters, therefore + "char*" == "char *" and "Class<int>" == "Class<int >", etc. + + Return 0 when the two name types are equivalent, as in + strncmp, but skipping ' '. +*/ +SWIGRUNTIME int +SWIG_TypeNameComp(const char *f1, const char *l1, + const char *f2, const char *l2) { + for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { + while ((*f1 == ' ') && (f1 != l1)) ++f1; + while ((*f2 == ' ') && (f2 != l2)) ++f2; + if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; + } + return (int)((l1 - f1) - (l2 - f2)); +} + +/* + Check type equivalence in a name list like <name1>|<name2>|... + Return 0 if not equal, 1 if equal +*/ +SWIGRUNTIME int +SWIG_TypeEquiv(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + +/* + Check type equivalence in a name list like <name1>|<name2>|... + Return 0 if equal, -1 if nb < tb, 1 if nb > tb +*/ +SWIGRUNTIME int +SWIG_TypeCompare(const char *nb, const char *tb) { + int equiv = 0; + const char* te = tb + strlen(tb); + const char* ne = nb; + while (!equiv && *ne) { + for (nb = ne; *ne; ++ne) { + if (*ne == '|') break; + } + equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; + if (*ne) ++ne; + } + return equiv; +} + + +/* + Check the typename +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (strcmp(iter->type->name, c) == 0) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison +*/ +SWIGRUNTIME swig_cast_info * +SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if (iter->type == from) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* + Cast a pointer up an inheritance hierarchy +*/ +SWIGRUNTIMEINLINE void * +SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +} + +/* + Dynamic pointer casting. Down an inheritance hierarchy +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { + swig_type_info *lastty = ty; + if (!ty || !ty->dcast) return ty; + while (ty && (ty->dcast)) { + ty = (*ty->dcast)(ptr); + if (ty) lastty = ty; + } + return lastty; +} + +/* + Return the name associated with this type +*/ +SWIGRUNTIMEINLINE const char * +SWIG_TypeName(const swig_type_info *ty) { + return ty->name; +} + +/* + Return the pretty name associated with this type, + that is an unmangled type name in a form presentable to the user. +*/ +SWIGRUNTIME const char * +SWIG_TypePrettyName(const swig_type_info *type) { + /* The "str" field contains the equivalent pretty names of the + type, separated by vertical-bar characters. We choose + to print the last name, as it is often (?) the most + specific. */ + if (!type) return NULL; + if (type->str != NULL) { + const char *last_name = type->str; + const char *s; + for (s = type->str; *s; s++) + if (*s == '|') last_name = s+1; + return last_name; + } + else + return type->name; +} + +/* + Set the clientdata field for a type +*/ +SWIGRUNTIME void +SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { + swig_cast_info *cast = ti->cast; + /* if (ti->clientdata == clientdata) return; */ + ti->clientdata = clientdata; + + while (cast) { + if (!cast->converter) { + swig_type_info *tc = cast->type; + if (!tc->clientdata) { + SWIG_TypeClientData(tc, clientdata); + } + } + cast = cast->next; + } +} +SWIGRUNTIME void +SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { + SWIG_TypeClientData(ti, clientdata); + ti->owndata = 1; +} + +/* + Search for a swig_type_info structure only by mangled name + Search is a O(log #types) + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_MangledTypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + swig_module_info *iter = start; + do { + if (iter->size) { + register size_t l = 0; + register size_t r = iter->size - 1; + do { + /* since l+r >= 0, we can (>> 1) instead (/ 2) */ + register size_t i = (l + r) >> 1; + const char *iname = iter->types[i]->name; + if (iname) { + register int compare = strcmp(name, iname); + if (compare == 0) { + return iter->types[i]; + } else if (compare < 0) { + if (i) { + r = i - 1; + } else { + break; + } + } else if (compare > 0) { + l = i + 1; + } + } else { + break; /* should never happen */ + } + } while (l <= r); + } + iter = iter->next; + } while (iter != end); + return 0; +} + +/* + Search for a swig_type_info structure for either a mangled name or a human readable name. + It first searches the mangled names of the types, which is a O(log #types) + If a type is not found it then searches the human readable names, which is O(#types). + + We start searching at module start, and finish searching when start == end. + Note: if start == end at the beginning of the function, we go all the way around + the circular list. +*/ +SWIGRUNTIME swig_type_info * +SWIG_TypeQueryModule(swig_module_info *start, + swig_module_info *end, + const char *name) { + /* STEP 1: Search the name field using binary search */ + swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); + if (ret) { + return ret; + } else { + /* STEP 2: If the type hasn't been found, do a complete search + of the str field (the human readable name) */ + swig_module_info *iter = start; + do { + register size_t i = 0; + for (; i < iter->size; ++i) { + if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) + return iter->types[i]; + } + iter = iter->next; + } while (iter != end); + } + + /* neither found a match */ + return 0; +} + +/* + Pack binary data into a string +*/ +SWIGRUNTIME char * +SWIG_PackData(char *c, void *ptr, size_t sz) { + static const char hex[17] = "0123456789abcdef"; + register const unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register unsigned char uu = *u; + *(c++) = hex[(uu & 0xf0) >> 4]; + *(c++) = hex[uu & 0xf]; + } + return c; +} + +/* + Unpack binary data from a string +*/ +SWIGRUNTIME const char * +SWIG_UnpackData(const char *c, void *ptr, size_t sz) { + register unsigned char *u = (unsigned char *) ptr; + register const unsigned char *eu = u + sz; + for (; u != eu; ++u) { + register char d = *(c++); + register unsigned char uu; + if ((d >= '0') && (d <= '9')) + uu = ((d - '0') << 4); + else if ((d >= 'a') && (d <= 'f')) + uu = ((d - ('a'-10)) << 4); + else + return (char *) 0; + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu |= (d - '0'); + else if ((d >= 'a') && (d <= 'f')) + uu |= (d - ('a'-10)); + else + return (char *) 0; + *u = uu; + } + return c; +} + +/* + Pack 'void *' into a string buffer. +*/ +SWIGRUNTIME char * +SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { + char *r = buff; + if ((2*sizeof(void *) + 2) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,&ptr,sizeof(void *)); + if (strlen(name) + 1 > (bsz - (r - buff))) return 0; + strcpy(r,name); + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + *ptr = (void *) 0; + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sizeof(void *)); +} + +SWIGRUNTIME char * +SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { + char *r = buff; + size_t lname = (name ? strlen(name) : 0); + if ((2*sz + 2 + lname) > bsz) return 0; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + if (lname) { + strncpy(r,name,lname+1); + } else { + *r = 0; + } + return buff; +} + +SWIGRUNTIME const char * +SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { + if (*c != '_') { + if (strcmp(c,"NULL") == 0) { + memset(ptr,0,sz); + return name; + } else { + return 0; + } + } + return SWIG_UnpackData(++c,ptr,sz); +} + +#ifdef __cplusplus +} +#endif + +/* Errors in SWIG */ +#define SWIG_UnknownError -1 +#define SWIG_IOError -2 +#define SWIG_RuntimeError -3 +#define SWIG_IndexError -4 +#define SWIG_TypeError -5 +#define SWIG_DivisionByZero -6 +#define SWIG_OverflowError -7 +#define SWIG_SyntaxError -8 +#define SWIG_ValueError -9 +#define SWIG_SystemError -10 +#define SWIG_AttributeError -11 +#define SWIG_MemoryError -12 +#define SWIG_NullReferenceError -13 + + + +#ifdef __cplusplus +/* Needed on some windows machines---since MS plays funny games with the header files under C++ */ +#include <math.h> +#include <stdlib.h> +extern "C" { +#endif +#include "EXTERN.h" +#include "perl.h" +#include "XSUB.h" + +/* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */ + +/* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */ +#ifndef PERL_REVISION +# if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION)) +# define PERL_PATCHLEVEL_H_IMPLICIT +# include <patchlevel.h> +# endif +# if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL))) +# include <could_not_find_Perl_patchlevel.h> +# endif +# ifndef PERL_REVISION +# define PERL_REVISION (5) +# define PERL_VERSION PATCHLEVEL +# define PERL_SUBVERSION SUBVERSION +# endif +#endif + +#if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE) +#define PerlIO_exportFILE(fh,fl) (FILE*)(fh) +#endif + +#ifndef SvIOK_UV +# define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv))) +#endif + +#ifndef SvUOK +# define SvUOK(sv) SvIOK_UV(sv) +#endif + +#if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5))) +# define PL_sv_undef sv_undef +# define PL_na na +# define PL_errgv errgv +# define PL_sv_no sv_no +# define PL_sv_yes sv_yes +# define PL_markstack_ptr markstack_ptr +#endif + +#ifndef IVSIZE +# ifdef LONGSIZE +# define IVSIZE LONGSIZE +# else +# define IVSIZE 4 /* A bold guess, but the best we can make. */ +# endif +#endif + +#ifndef INT2PTR +# if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) +# define PTRV UV +# define INT2PTR(any,d) (any)(d) +# else +# if PTRSIZE == LONGSIZE +# define PTRV unsigned long +# else +# define PTRV unsigned +# endif +# define INT2PTR(any,d) (any)(PTRV)(d) +# endif + +# define NUM2PTR(any,d) (any)(PTRV)(d) +# define PTR2IV(p) INT2PTR(IV,p) +# define PTR2UV(p) INT2PTR(UV,p) +# define PTR2NV(p) NUM2PTR(NV,p) + +# if PTRSIZE == LONGSIZE +# define PTR2ul(p) (unsigned long)(p) +# else +# define PTR2ul(p) INT2PTR(unsigned long,p) +# endif +#endif /* !INT2PTR */ + +#ifndef SvPV_nolen +# define SvPV_nolen(x) SvPV(x,PL_na) +#endif + +#ifndef get_sv +# define get_sv perl_get_sv +#endif + +#ifndef ERRSV +# define ERRSV get_sv("@",FALSE) +#endif + +#ifndef pTHX_ +#define pTHX_ +#endif + +#include <string.h> +#ifdef __cplusplus +} +#endif + +/* ----------------------------------------------------------------------------- + * error manipulation + * ----------------------------------------------------------------------------- */ + +SWIGINTERN const char* +SWIG_Perl_ErrorType(int code) { + const char* type = 0; + switch(code) { + case SWIG_MemoryError: + type = "MemoryError"; + break; + case SWIG_IOError: + type = "IOError"; + break; + case SWIG_RuntimeError: + type = "RuntimeError"; + break; + case SWIG_IndexError: + type = "IndexError"; + break; + case SWIG_TypeError: + type = "TypeError"; + break; + case SWIG_DivisionByZero: + type = "ZeroDivisionError"; + break; + case SWIG_OverflowError: + type = "OverflowError"; + break; + case SWIG_SyntaxError: + type = "SyntaxError"; + break; + case SWIG_ValueError: + type = "ValueError"; + break; + case SWIG_SystemError: + type = "SystemError"; + break; + case SWIG_AttributeError: + type = "AttributeError"; + break; + default: + type = "RuntimeError"; + } + return type; +} + + + + +/* ----------------------------------------------------------------------------- + * perlrun.swg + * + * This file contains the runtime support for Perl modules + * and includes code for managing global variables and pointer + * type checking. + * ----------------------------------------------------------------------------- */ + +#ifdef PERL_OBJECT +#define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl), +#define SWIG_PERL_OBJECT_CALL pPerl, +#else +#define SWIG_PERL_OBJECT_DECL +#define SWIG_PERL_OBJECT_CALL +#endif + +/* Common SWIG API */ + +/* for raw pointers */ +#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags) +#define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags) + +/* for raw packed data */ +#define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type) +#define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type) + +/* for class or struct pointers */ +#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) +#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) + +/* for C or C++ function pointers */ +#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) +#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) + +/* for C++ member pointers, ie, member methods */ +#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty) +#define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type) + + +/* Runtime API */ + +#define SWIG_GetModule(clientdata) SWIG_Perl_GetModule() +#define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer) + + +/* Error manipulation */ + +#define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code) +#define SWIG_Error(code, msg) sv_setpvf(GvSV(PL_errgv),"%s %s\n", SWIG_ErrorType(code), msg) +#define SWIG_fail goto fail + +/* Perl-specific SWIG API */ + +#define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags) +#define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type) +#define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str) + + +#define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1) +#define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1) +#define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2) +#define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2) + +/* ----------------------------------------------------------------------------- + * pointers/data manipulation + * ----------------------------------------------------------------------------- */ + +/* For backward compatibility only */ +#define SWIG_POINTER_EXCEPTION 0 + +#ifdef __cplusplus +extern "C" { +#endif + +#define SWIG_OWNER SWIG_POINTER_OWN +#define SWIG_SHADOW SWIG_OWNER << 1 + +#define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL + +/* SWIG Perl macros */ + +/* Macro to declare an XS function */ +#ifndef XSPROTO +# define XSPROTO(name) void name(pTHX_ CV* cv) +#endif + +/* Macro to call an XS function */ +#ifdef PERL_OBJECT +# define SWIG_CALLXS(_name) _name(cv,pPerl) +#else +# ifndef MULTIPLICITY +# define SWIG_CALLXS(_name) _name(cv) +# else +# define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) +# endif +#endif + +#ifdef PERL_OBJECT +#define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this; + +#ifdef __cplusplus +extern "C" { +#endif +typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); +#ifdef __cplusplus +} +#endif + +#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) +#define SWIGCLASS_STATIC + +#else /* PERL_OBJECT */ + +#define MAGIC_PPERL +#define SWIGCLASS_STATIC static SWIGUNUSED + +#ifndef MULTIPLICITY +#define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) + +#ifdef __cplusplus +extern "C" { +#endif +typedef int (*SwigMagicFunc)(SV *, MAGIC *); +#ifdef __cplusplus +} +#endif + +#else /* MULTIPLICITY */ + +#define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) + +#ifdef __cplusplus +extern "C" { +#endif +typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); +#ifdef __cplusplus +} +#endif + +#endif /* MULTIPLICITY */ +#endif /* PERL_OBJECT */ + +/* Workaround for bug in perl 5.6.x croak and earlier */ +#if (PERL_VERSION < 8) +# ifdef PERL_OBJECT +# define SWIG_croak_null() SWIG_Perl_croak_null(pPerl) +static void SWIG_Perl_croak_null(CPerlObj *pPerl) +# else +static void SWIG_croak_null() +# endif +{ + SV *err=ERRSV; +# if (PERL_VERSION < 6) + croak("%_", err); +# else + if (SvOK(err) && !SvROK(err)) croak("%_", err); + croak(Nullch); +# endif +} +#else +# define SWIG_croak_null() croak(Nullch) +#endif + + +/* + Define how strict is the cast between strings and integers/doubles + when overloading between these types occurs. + + The default is making it as strict as possible by using SWIG_AddCast + when needed. + + You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to + disable the SWIG_AddCast, making the casting between string and + numbers less strict. + + In the end, we try to solve the overloading between strings and + numerical types in the more natural way, but if you can avoid it, + well, avoid it using %rename, for example. +*/ +#ifndef SWIG_PERL_NO_STRICT_STR2NUM +# ifndef SWIG_PERL_STRICT_STR2NUM +# define SWIG_PERL_STRICT_STR2NUM +# endif +#endif +#ifdef SWIG_PERL_STRICT_STR2NUM +/* string takes precedence */ +#define SWIG_Str2NumCast(x) SWIG_AddCast(x) +#else +/* number takes precedence */ +#define SWIG_Str2NumCast(x) x +#endif + + + +#include <stdlib.h> + +SWIGRUNTIME const char * +SWIG_Perl_TypeProxyName(const swig_type_info *type) { + if (!type) return NULL; + if (type->clientdata != NULL) { + return (const char*) type->clientdata; + } + else { + return type->name; + } +} + +/* Identical to SWIG_TypeCheck, except for strcmp comparison */ +SWIGRUNTIME swig_cast_info * +SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { + if (ty) { + swig_cast_info *iter = ty->cast; + while (iter) { + if ( (!iter->type->clientdata && (strcmp(iter->type->name, c) == 0)) || + (iter->type->clientdata && (strcmp((char*)iter->type->clientdata, c) == 0)) ) { + if (iter == ty->cast) + return iter; + /* Move iter to the top of the linked list */ + iter->prev->next = iter->next; + if (iter->next) + iter->next->prev = iter->prev; + iter->next = ty->cast; + iter->prev = 0; + if (ty->cast) ty->cast->prev = iter; + ty->cast = iter; + return iter; + } + iter = iter->next; + } + } + return 0; +} + +/* Function for getting a pointer value */ + +SWIGRUNTIME int +SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) { + swig_cast_info *tc; + void *voidptr = (void *)0; + SV *tsv = 0; + /* If magical, apply more magic */ + if (SvGMAGICAL(sv)) + mg_get(sv); + + /* Check to see if this is an object */ + if (sv_isobject(sv)) { + IV tmp = 0; + tsv = (SV*) SvRV(sv); + if ((SvTYPE(tsv) == SVt_PVHV)) { + MAGIC *mg; + if (SvMAGICAL(tsv)) { + mg = mg_find(tsv,'P'); + if (mg) { + sv = mg->mg_obj; + if (sv_isobject(sv)) { + tsv = (SV*)SvRV(sv); + tmp = SvIV(tsv); + } + } + } else { + return SWIG_ERROR; + } + } else { + tmp = SvIV(tsv); + } + voidptr = INT2PTR(void *,tmp); + } else if (! SvOK(sv)) { /* Check for undef */ + *(ptr) = (void *) 0; + return SWIG_OK; + } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ + if (!SvROK(sv)) { + *(ptr) = (void *) 0; + return SWIG_OK; + } else { + return SWIG_ERROR; + } + } else { /* Don't know what it is */ + return SWIG_ERROR; + } + if (_t) { + /* Now see if the types match */ + char *_c = HvNAME(SvSTASH(SvRV(sv))); + tc = SWIG_TypeProxyCheck(_c,_t); + if (!tc) { + return SWIG_ERROR; + } + { + int newmemory = 0; + *ptr = SWIG_TypeCast(tc,voidptr,&newmemory); + assert(!newmemory); /* newmemory handling not yet implemented */ + } + } else { + *ptr = voidptr; + } + + /* + * DISOWN implementation: we need a perl guru to check this one. + */ + if (tsv && (flags & SWIG_POINTER_DISOWN)) { + /* + * almost copy paste code from below SWIG_POINTER_OWN setting + */ + SV *obj = sv; + HV *stash = SvSTASH(SvRV(obj)); + GV *gv = *(GV**) hv_fetch(stash, "OWNER", 5, TRUE); + if (isGV(gv)) { + HV *hv = GvHVn(gv); + /* + * To set ownership (see below), a newSViv(1) entry is added. + * Hence, to remove ownership, we delete the entry. + */ + if (hv_exists_ent(hv, obj, 0)) { + hv_delete_ent(hv, obj, 0, 0); + } + } + } + return SWIG_OK; +} + +SWIGRUNTIME void +SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) { + if (ptr && (flags & SWIG_SHADOW)) { + SV *self; + SV *obj=newSV(0); + HV *hash=newHV(); + HV *stash; + sv_setref_pv(obj, (char *) SWIG_Perl_TypeProxyName(t), ptr); + stash=SvSTASH(SvRV(obj)); + if (flags & SWIG_POINTER_OWN) { + HV *hv; + GV *gv=*(GV**)hv_fetch(stash, "OWNER", 5, TRUE); + if (!isGV(gv)) + gv_init(gv, stash, "OWNER", 5, FALSE); + hv=GvHVn(gv); + hv_store_ent(hv, obj, newSViv(1), 0); + } + sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0); + SvREFCNT_dec(obj); + self=newRV_noinc((SV *)hash); + sv_setsv(sv, self); + SvREFCNT_dec((SV *)self); + sv_bless(sv, stash); + } + else { + sv_setref_pv(sv, (char *) SWIG_Perl_TypeProxyName(t), ptr); + } +} + +SWIGRUNTIMEINLINE SV * +SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) { + SV *result = sv_newmortal(); + SWIG_MakePtr(result, ptr, t, flags); + return result; +} + +SWIGRUNTIME void +SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) { + char result[1024]; + char *r = result; + if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; + *(r++) = '_'; + r = SWIG_PackData(r,ptr,sz); + strcpy(r,SWIG_Perl_TypeProxyName(type)); + sv_setpv(sv, result); +} + +SWIGRUNTIME SV * +SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) { + SV *result = sv_newmortal(); + SWIG_Perl_MakePackedObj(result, ptr, sz, type); + return result; +} + +/* Convert a packed value value */ +SWIGRUNTIME int +SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) { + swig_cast_info *tc; + const char *c = 0; + + if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; + c = SvPV_nolen(obj); + /* Pointer values must start with leading underscore */ + if (*c != '_') return SWIG_ERROR; + c++; + c = SWIG_UnpackData(c,ptr,sz); + if (ty) { + tc = SWIG_TypeCheck(c,ty); + if (!tc) return SWIG_ERROR; + } + return SWIG_OK; +} + + +/* Macros for low-level exception handling */ +#define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } + + +typedef XSPROTO(SwigPerlWrapper); +typedef SwigPerlWrapper *SwigPerlWrapperPtr; + +/* Structure for command table */ +typedef struct { + const char *name; + SwigPerlWrapperPtr wrapper; +} swig_command_info; + +/* Information for constant table */ + +#define SWIG_INT 1 +#define SWIG_FLOAT 2 +#define SWIG_STRING 3 +#define SWIG_POINTER 4 +#define SWIG_BINARY 5 + +/* Constant information structure */ +typedef struct swig_constant_info { + int type; + const char *name; + long lvalue; + double dvalue; + void *pvalue; + swig_type_info **ptype; +} swig_constant_info; + + +/* Structure for variable table */ +typedef struct { + const char *name; + SwigMagicFunc set; + SwigMagicFunc get; + swig_type_info **type; +} swig_variable_info; + +/* Magic variable code */ +#ifndef PERL_OBJECT +#define swig_create_magic(s,a,b,c) _swig_create_magic(s,a,b,c) + #ifndef MULTIPLICITY + SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) + #else + SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) + #endif +#else +# define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c) +SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) +#endif +{ + MAGIC *mg; + sv_magic(sv,sv,'U',(char *) name,strlen(name)); + mg = mg_find(sv,'U'); + mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); + mg->mg_virtual->svt_get = (SwigMagicFunc) get; + mg->mg_virtual->svt_set = (SwigMagicFunc) set; + mg->mg_virtual->svt_len = 0; + mg->mg_virtual->svt_clear = 0; + mg->mg_virtual->svt_free = 0; +} + + +SWIGRUNTIME swig_module_info * +SWIG_Perl_GetModule(void) { + static void *type_pointer = (void *)0; + SV *pointer; + + /* first check if pointer already created */ + if (!type_pointer) { + pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI); + if (pointer && SvOK(pointer)) { + type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); + } + } + + return (swig_module_info *) type_pointer; +} + +SWIGRUNTIME void +SWIG_Perl_SetModule(swig_module_info *module) { + SV *pointer; + + /* create a new pointer */ + pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI); + sv_setiv(pointer, PTR2IV(module)); +} + +#ifdef __cplusplus +} +#endif + +/* Workaround perl5 global namespace pollution. Note that undefining library + * functions like fopen will not solve the problem on all platforms as fopen + * might be a macro on Windows but not necessarily on other operating systems. */ +#ifdef do_open + #undef do_open +#endif +#ifdef do_close + #undef do_close +#endif +#ifdef scalar + #undef scalar +#endif +#ifdef list + #undef list +#endif +#ifdef apply + #undef apply +#endif +#ifdef convert + #undef convert +#endif +#ifdef Error + #undef Error +#endif +#ifdef form + #undef form +#endif +#ifdef vform + #undef vform +#endif +#ifdef LABEL + #undef LABEL +#endif +#ifdef METHOD + #undef METHOD +#endif +#ifdef Move + #undef Move +#endif +#ifdef yylex + #undef yylex +#endif +#ifdef yyparse + #undef yyparse +#endif +#ifdef yyerror + #undef yyerror +#endif +#ifdef invert + #undef invert +#endif +#ifdef ref + #undef ref +#endif +#ifdef read + #undef read +#endif +#ifdef write + #undef write +#endif +#ifdef eof + #undef eof +#endif +#ifdef bool + #undef bool +#endif +#ifdef close + #undef close +#endif +#ifdef rewind + #undef rewind +#endif +#ifdef free + #undef free +#endif +#ifdef malloc + #undef malloc +#endif +#ifdef calloc + #undef calloc +#endif +#ifdef Stat + #undef Stat +#endif +#ifdef check + #undef check +#endif +#ifdef seekdir + #undef seekdir +#endif +#ifdef open + #undef open +#endif +#ifdef readdir + #undef readdir +#endif +#ifdef bind + #undef bind +#endif + + + +#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else + + + + #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) + + +/* -------- TYPES TABLE (BEGIN) -------- */ + +#define SWIGTYPE_p_char swig_types[0] +#define SWIGTYPE_p_namespace swig_types[1] +static swig_type_info *swig_types[3]; +static swig_module_info swig_module = {swig_types, 2, 0, 0, 0, 0}; +#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) +#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) + +/* -------- TYPES TABLE (END) -------- */ + +#define SWIG_init boot_CRFPP + +#define SWIG_name "CRFPPc::boot_CRFPP" +#define SWIG_prefix "CRFPPc::" + +#define SWIGVERSION 0x010338 +#define SWIG_VERSION SWIGVERSION + + +#define SWIG_as_voidptr(a) (void *)((const void *)(a)) +#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) + + +#ifdef __cplusplus +extern "C" +#endif +#ifndef PERL_OBJECT +#ifndef MULTIPLICITY +SWIGEXPORT void SWIG_init (CV* cv); +#else +SWIGEXPORT void SWIG_init (pTHXo_ CV* cv); +#endif +#else +SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *); +#endif + + +#include "crfpp.h" + + + +void delete_CRFPP_Tagger (CRFPP::Tagger *t) { + delete t; + t = 0; +} + +CRFPP::Tagger* new_CRFPP_Tagger (const char *arg) { + CRFPP::Tagger *tagger = CRFPP::createTagger(arg); + if (! tagger) throw CRFPP::getTaggerError(); + return tagger; +} + + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef PERL_OBJECT +#define MAGIC_CLASS _wrap_CRFPP_var:: +class _wrap_CRFPP_var : public CPerlObj { +public: +#else +#define MAGIC_CLASS +#endif +SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) { + MAGIC_PPERL + croak("Value is read-only."); + return 0; +} +SWIGCLASS_STATIC int _wrap_CRFPP_set(pTHX_ SV* sv, MAGIC * SWIGUNUSEDPARM(mg)) { + MAGIC_PPERL + { + void *argp = 0; + int res = SWIG_ConvertPtr(sv, &argp, SWIGTYPE_p_namespace, 0 ); + if (!SWIG_IsOK(res)) { + SWIG_exception_fail(SWIG_ArgError(res), "in variable '""CRFPP""' of type '""namespace""'"); + } + if (!argp) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""CRFPP""' of type '""namespace""'"); + } else { + CRFPP = *((namespace *)(argp)); + } + } +fail: + return 1; +} + + +SWIGCLASS_STATIC int _wrap_CRFPP_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { + MAGIC_PPERL + sv_setiv(SvRV(sv), PTR2IV(&CRFPP)); + return 1; +} + + + + +#ifdef PERL_OBJECT +}; +#endif + +#ifdef __cplusplus +} +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ + +static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_namespace = {"_p_namespace", "namespace *", 0, 0, (void*)0, 0}; + +static swig_type_info *swig_type_initial[] = { + &_swigt__p_char, + &_swigt__p_namespace, +}; + +static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_namespace[] = { {&_swigt__p_namespace, 0, 0, 0},{0, 0, 0, 0}}; + +static swig_cast_info *swig_cast_initial[] = { + _swigc__p_char, + _swigc__p_namespace, +}; + + +/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ + +static swig_constant_info swig_constants[] = { +{0,0,0,0,0,0} +}; +#ifdef __cplusplus +} +#endif +static swig_variable_info swig_variables[] = { + { "CRFPPc::CRFPP", MAGIC_CLASS _wrap_CRFPP_set, MAGIC_CLASS _wrap_CRFPP_get,&SWIGTYPE_p_namespace }, +{0,0,0,0} +}; +static swig_command_info swig_commands[] = { +{0,0} +}; +/* ----------------------------------------------------------------------------- + * Type initialization: + * This problem is tough by the requirement that no dynamic + * memory is used. Also, since swig_type_info structures store pointers to + * swig_cast_info structures and swig_cast_info structures store pointers back + * to swig_type_info structures, we need some lookup code at initialization. + * The idea is that swig generates all the structures that are needed. + * The runtime then collects these partially filled structures. + * The SWIG_InitializeModule function takes these initial arrays out of + * swig_module, and does all the lookup, filling in the swig_module.types + * array with the correct data and linking the correct swig_cast_info + * structures together. + * + * The generated swig_type_info structures are assigned staticly to an initial + * array. We just loop through that array, and handle each type individually. + * First we lookup if this type has been already loaded, and if so, use the + * loaded structure instead of the generated one. Then we have to fill in the + * cast linked list. The cast data is initially stored in something like a + * two-dimensional array. Each row corresponds to a type (there are the same + * number of rows as there are in the swig_type_initial array). Each entry in + * a column is one of the swig_cast_info structures for that type. + * The cast_initial array is actually an array of arrays, because each row has + * a variable number of columns. So to actually build the cast linked list, + * we find the array of casts associated with the type, and loop through it + * adding the casts to the list. The one last trick we need to do is making + * sure the type pointer in the swig_cast_info struct is correct. + * + * First off, we lookup the cast->type name to see if it is already loaded. + * There are three cases to handle: + * 1) If the cast->type has already been loaded AND the type we are adding + * casting info to has not been loaded (it is in this module), THEN we + * replace the cast->type pointer with the type pointer that has already + * been loaded. + * 2) If BOTH types (the one we are adding casting info to, and the + * cast->type) are loaded, THEN the cast info has already been loaded by + * the previous module so we just ignore it. + * 3) Finally, if cast->type has not already been loaded, then we add that + * swig_cast_info to the linked list (because the cast->type) pointer will + * be correct. + * ----------------------------------------------------------------------------- */ + +#ifdef __cplusplus +extern "C" { +#if 0 +} /* c-mode */ +#endif +#endif + +#if 0 +#define SWIGRUNTIME_DEBUG +#endif + + +SWIGRUNTIME void +SWIG_InitializeModule(void *clientdata) { + size_t i; + swig_module_info *module_head, *iter; + int found, init; + + clientdata = clientdata; + + /* check to see if the circular list has been setup, if not, set it up */ + if (swig_module.next==0) { + /* Initialize the swig_module */ + swig_module.type_initial = swig_type_initial; + swig_module.cast_initial = swig_cast_initial; + swig_module.next = &swig_module; + init = 1; + } else { + init = 0; + } + + /* Try and load any already created modules */ + module_head = SWIG_GetModule(clientdata); + if (!module_head) { + /* This is the first module loaded for this interpreter */ + /* so set the swig module into the interpreter */ + SWIG_SetModule(clientdata, &swig_module); + module_head = &swig_module; + } else { + /* the interpreter has loaded a SWIG module, but has it loaded this one? */ + found=0; + iter=module_head; + do { + if (iter==&swig_module) { + found=1; + break; + } + iter=iter->next; + } while (iter!= module_head); + + /* if the is found in the list, then all is done and we may leave */ + if (found) return; + /* otherwise we must add out module into the list */ + swig_module.next = module_head->next; + module_head->next = &swig_module; + } + + /* When multiple interpeters are used, a module could have already been initialized in + a different interpreter, but not yet have a pointer in this interpreter. + In this case, we do not want to continue adding types... everything should be + set up already */ + if (init == 0) return; + + /* Now work on filling in swig_module.types */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: size %d\n", swig_module.size); +#endif + for (i = 0; i < swig_module.size; ++i) { + swig_type_info *type = 0; + swig_type_info *ret; + swig_cast_info *cast; + +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); +#endif + + /* if there is another module already loaded */ + if (swig_module.next != &swig_module) { + type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); + } + if (type) { + /* Overwrite clientdata field */ +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found type %s\n", type->name); +#endif + if (swig_module.type_initial[i]->clientdata) { + type->clientdata = swig_module.type_initial[i]->clientdata; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); +#endif + } + } else { + type = swig_module.type_initial[i]; + } + + /* Insert casting types */ + cast = swig_module.cast_initial[i]; + while (cast->type) { + /* Don't need to add information already in the list */ + ret = 0; +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); +#endif + if (swig_module.next != &swig_module) { + ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); +#ifdef SWIGRUNTIME_DEBUG + if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); +#endif + } + if (ret) { + if (type == swig_module.type_initial[i]) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: skip old type %s\n", ret->name); +#endif + cast->type = ret; + ret = 0; + } else { + /* Check for casting already in the list */ + swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); +#ifdef SWIGRUNTIME_DEBUG + if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); +#endif + if (!ocast) ret = 0; + } + } + + if (!ret) { +#ifdef SWIGRUNTIME_DEBUG + printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); +#endif + if (type->cast) { + type->cast->prev = cast; + cast->next = type->cast; + } + type->cast = cast; + } + cast++; + } + /* Set entry in modules->types array equal to the type */ + swig_module.types[i] = type; + } + swig_module.types[i] = 0; + +#ifdef SWIGRUNTIME_DEBUG + printf("**** SWIG_InitializeModule: Cast List ******\n"); + for (i = 0; i < swig_module.size; ++i) { + int j = 0; + swig_cast_info *cast = swig_module.cast_initial[i]; + printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); + while (cast->type) { + printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); + cast++; + ++j; + } + printf("---- Total casts: %d\n",j); + } + printf("**** SWIG_InitializeModule: Cast List ******\n"); +#endif +} + +/* This function will propagate the clientdata field of type to +* any new swig_type_info structures that have been added into the list +* of equivalent types. It is like calling +* SWIG_TypeClientData(type, clientdata) a second time. +*/ +SWIGRUNTIME void +SWIG_PropagateClientData(void) { + size_t i; + swig_cast_info *equiv; + static int init_run = 0; + + if (init_run) return; + init_run = 1; + + for (i = 0; i < swig_module.size; i++) { + if (swig_module.types[i]->clientdata) { + equiv = swig_module.types[i]->cast; + while (equiv) { + if (!equiv->converter) { + if (equiv->type && !equiv->type->clientdata) + SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); + } + equiv = equiv->next; + } + } + } +} + +#ifdef __cplusplus +#if 0 +{ + /* c-mode */ +#endif +} +#endif + + + +#ifdef __cplusplus +extern "C" +#endif + +XS(SWIG_init) { + dXSARGS; + int i; + + SWIG_InitializeModule(0); + + /* Install commands */ + for (i = 0; swig_commands[i].name; i++) { + newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__); + } + + /* Install variables */ + for (i = 0; swig_variables[i].name; i++) { + SV *sv; + sv = get_sv((char*) swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); + if (swig_variables[i].type) { + SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); + } else { + sv_setiv(sv,(IV) 0); + } + swig_create_magic(sv, (char *) swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); + } + + /* Install constant */ + for (i = 0; swig_constants[i].type; i++) { + SV *sv; + sv = get_sv((char*)swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); + switch(swig_constants[i].type) { + case SWIG_INT: + sv_setiv(sv, (IV) swig_constants[i].lvalue); + break; + case SWIG_FLOAT: + sv_setnv(sv, (double) swig_constants[i].dvalue); + break; + case SWIG_STRING: + sv_setpv(sv, (char *) swig_constants[i].pvalue); + break; + case SWIG_POINTER: + SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0); + break; + case SWIG_BINARY: + SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); + break; + default: + break; + } + SvREADONLY_on(sv); + } + + ST(0) = &PL_sv_yes; + XSRETURN(1); +} + diff --git a/swig/Makefile b/swig/Makefile new file mode 100644 index 0000000..74511b1 --- /dev/null +++ b/swig/Makefile @@ -0,0 +1,36 @@ +SWIG = swig +PREFIX = CRFPP + +all: perl ruby python java + +clean: + rm -f *.pm *.cxx *.py + +perl: + $(SWIG) -perl -shadow -c++ $(PREFIX).i + mv -f $(PREFIX)_wrap.cxx ../perl + mv -f $(PREFIX).pm ../perl + +ruby: + $(SWIG) -ruby -c++ $(PREFIX).i + mv -f $(PREFIX)_wrap.cxx ../ruby/$(PREFIX)_wrap.cpp + +python: + $(SWIG) -python -shadow -c++ $(PREFIX).i + mv -f $(PREFIX)_wrap.cxx ../python + mv -f $(PREFIX).py ../python + +csharp: + $(SWIG) -csharp -namespace CRFPP -c++ $(PREFIX).i + mv -f $(PREFIX)_wrap.cxx ../csharp + mv -f *.cs ../csharp + +java: + $(SWIG) -java -package org.chasen.crfpp -c++ $(PREFIX).i + mkdir -p ../java/org/chasen/crfpp + mv -f $(PREFIX)_wrap.cxx ../java +# rm -fr exception.java SWIGTYPE_*.java + mv -f *.java ../java/org/chasen/crfpp + + + diff --git a/swig/version.h b/swig/version.h new file mode 100644 index 0000000..9a429dc --- /dev/null +++ b/swig/version.h @@ -0,0 +1,3 @@ +namespace CRFPP { +#define VERSION "0.55" +} diff --git a/swig/version.h.in b/swig/version.h.in new file mode 100644 index 0000000..d62209b --- /dev/null +++ b/swig/version.h.in @@ -0,0 +1,3 @@ +namespace CRFPP { +#define VERSION "@VERSION@" +} diff --git a/tagger.cpp b/tagger.cpp new file mode 100644 index 0000000..f48d67e --- /dev/null +++ b/tagger.cpp @@ -0,0 +1,812 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: tagger.cpp 1601 2007-03-31 09:47:18Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#include <iostream> +#include <vector> +#include <iterator> +#include <cmath> +#include <string> +#include <sstream> +#include "stream_wrapper.h" +#include "common.h" +#include "tagger.h" + +namespace { +const char kUnknownError[] = "Unknown Error"; +const size_t kErrorBufferSize = 256; +} // namespace + +#if defined(_WIN32) && !defined(__CYGWIN__) +namespace { +DWORD g_tls_index = TLS_OUT_OF_INDEXES; + +const char *getGlobalError() { + LPVOID data = ::TlsGetValue(g_tls_index); + return data == NULL ? kUnknownError : reinterpret_cast<const char *>(data); +} + +void setGlobalError(const char *str) { + char *data = reinterpret_cast<char *>(::TlsGetValue(g_tls_index)); + if (data == NULL) { + return; + } + strncpy(data, str, kErrorBufferSize - 1); + data[kErrorBufferSize - 1] = '\0'; +} +} // namespace +HINSTANCE DllInstance = 0; + +extern "C" { + BOOL WINAPI DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID) { + LPVOID data = 0; + if (!DllInstance) { + DllInstance = hinst; + } + switch (dwReason) { + case DLL_PROCESS_ATTACH: + if ((g_tls_index = ::TlsAlloc()) == TLS_OUT_OF_INDEXES) { + return FALSE; + } + // Not break in order to initialize the TLS. + case DLL_THREAD_ATTACH: + data = (LPVOID)::LocalAlloc(LPTR, kErrorBufferSize); + if (data) { + ::TlsSetValue(g_tls_index, data); + } + break; + case DLL_THREAD_DETACH: + data = ::TlsGetValue(g_tls_index); + if (data) { + ::LocalFree((HLOCAL)data); + } + break; + case DLL_PROCESS_DETACH: + data = ::TlsGetValue(g_tls_index); + if (data) { + ::LocalFree((HLOCAL)data); + } + ::TlsFree(g_tls_index); + g_tls_index = TLS_OUT_OF_INDEXES; + break; + default: + break; + } + return TRUE; + } +} +#else // _WIN32 + +namespace { +#ifdef HAVE_TLS_KEYWORD +__thread char kErrorBuffer[kErrorBufferSize]; +#else +char kErrorBuffer[kErrorBufferSize]; +#endif +} + +namespace { +const char *getGlobalError() { + return kErrorBuffer; +} + +void setGlobalError(const char *str) { + strncpy(kErrorBuffer, str, kErrorBufferSize - 1); + kErrorBuffer[kErrorBufferSize - 1] = '\0'; +} +} // namespace +#endif + +namespace { +static const CRFPP::Option long_options[] = { + {"model", 'm', 0, "FILE", "set FILE for model file"}, + {"nbest", 'n', "0", "INT", "output n-best results"}, + {"verbose" , 'v', "0", "INT", "set INT for verbose level"}, + {"cost-factor", 'c', "1.0", "FLOAT", "set cost factor"}, + {"output", 'o', 0, "FILE", "use FILE as output file"}, + {"version", 'v', 0, 0, "show the version and exit" }, + {"help", 'h', 0, 0, "show this help and exit" }, + {0, 0, 0, 0, 0} +}; +} + +namespace CRFPP { + +Tagger *ModelImpl::createTagger() const { + if (!feature_index_.get()) { + return 0; + } + TaggerImpl *tagger = new TaggerImpl; + tagger->open(feature_index_.get(), nbest_, vlevel_); + return tagger; +} + +bool TaggerImpl::open(FeatureIndex *feature_index, + Allocator *allocator) { + close(); + mode_ = LEARN; + feature_index_ = feature_index; + allocator_ = allocator; + ysize_ = feature_index_->ysize(); + return true; +} + +bool TaggerImpl::open(FeatureIndex *feature_index, + unsigned int nbest, + unsigned int vlevel) { + close(); + mode_ = TEST_SHARED; + feature_index_ = feature_index; + nbest_ = nbest; + vlevel_ = vlevel; + allocator_ = new Allocator; + ysize_ = feature_index_->ysize(); + return true; +} + +bool ModelImpl::open(const Param ¶m) { + nbest_ = param.get<int>("nbest"); + vlevel_ = param.get<int>("verbose"); + const std::string model = param.get<std::string>("model"); + feature_index_.reset(new DecoderFeatureIndex); + if (!feature_index_->open(model.c_str())) { + WHAT << feature_index_->what(); + feature_index_.reset(0); + return false; + } + const double c = param.get<double>("cost-factor"); + feature_index_->set_cost_factor(c); + return true; +} + +bool ModelImpl::open(int argc, char** argv) { + Param param; + CHECK_FALSE(param.open(argc, argv, long_options)) + << param.what(); + return open(param); +} + +bool ModelImpl::open(const char* arg) { + Param param; + CHECK_FALSE(param.open(arg, long_options)) << param.what(); + return open(param); +} + +bool TaggerImpl::open(const Param ¶m) { + close(); + + if (!param.help_version()) { + close(); + return false; + } + + nbest_ = param.get<int>("nbest"); + vlevel_ = param.get<int>("verbose"); + + std::string model = param.get<std::string>("model"); + + DecoderFeatureIndex *decoder_feature_index = new DecoderFeatureIndex; + feature_index_ = decoder_feature_index; + allocator_ = new Allocator; + + if (!decoder_feature_index->open(model.c_str())) { + WHAT << feature_index_->what(); + close(); + return false; + } + + const double c = param.get<double>("cost-factor"); + + if (c <= 0.0) { + WHAT << "cost factor must be positive"; + close(); + return false; + } + + feature_index_->set_cost_factor(c); + ysize_ = feature_index_->ysize(); + + return true; +} + +bool TaggerImpl::open(int argc, char **argv) { + Param param; + CHECK_FALSE(param.open(argc, argv, long_options)) + << param.what(); + return open(param); +} + +bool TaggerImpl::open(const char *arg) { + Param param; + CHECK_FALSE(param.open(arg, long_options)) << param.what(); + return open(param); +} + +void TaggerImpl::close() { + if (mode_ == TEST) { + delete feature_index_; + delete allocator_; + feature_index_ = 0; + allocator_ = 0; + } else if (mode_ == TEST_SHARED) { + delete allocator_; + allocator_ = 0; + } +} + +bool TaggerImpl::add2(size_t size, const char **column, bool copy) { + const size_t xsize = feature_index_->xsize(); + + if ((mode_ == LEARN && size < xsize + 1) || + ((mode_ == TEST || mode_ == TEST_SHARED) && size < xsize)) { + CHECK_FALSE(false) << "# x is small: size=" + << size << " xsize=" << xsize; + } + + size_t s = x_.size() + 1; + x_.resize(s); + node_.resize(s); + answer_.resize(s); + result_.resize(s); + s = x_.size() - 1; + + if (copy) { + for (size_t k = 0; k < size; ++k) { + x_[s].push_back(allocator_->strdup(column[k])); + } + } else { + for (size_t k = 0; k < size; ++k) { + x_[s].push_back(column[k]); + } + } + + result_[s] = answer_[s] = 0; // dummy + if (mode_ == LEARN) { + size_t r = ysize_; + for (size_t k = 0; k < ysize_; ++k) { + if (std::strcmp(yname(k), column[xsize]) == 0) { + r = k; + } + } + + CHECK_FALSE(r != ysize_) << "cannot find answer: " << column[xsize]; + answer_[s] = r; + } + + node_[s].resize(ysize_); + + return true; +} + +bool TaggerImpl::add(size_t size, const char **column) { + return add2(size, column, true); +} + +bool TaggerImpl::add(const char* line) { + char *p = allocator_->strdup(line); + scoped_fixed_array<const char *, 8192> column; + const size_t size = tokenize2(p, "\t ", column.get(), column.size()); + if (!add2(size, column.get(), false)) { + return false; + } + return true; +} + +bool TaggerImpl::read(std::istream *is) { + scoped_fixed_array<char, 8192> line; + clear(); + + for (;;) { + if (!is->getline(line.get(), line.size())) { + is->clear(std::ios::eofbit|std::ios::badbit); + return true; + } + if (line[0] == '\0' || line[0] == ' ' || line[0] == '\t') { + break; + } + if (!add(line.get())) { + return false; + } + } + + return true; +} + +void TaggerImpl::set_penalty(size_t i, size_t j, double penalty) { + if (penalty_.empty()) { + penalty_.resize(node_.size()); + for (size_t s = 0; s < penalty_.size(); ++s) { + penalty_[s].resize(ysize_); + } + } + penalty_[i][j] = penalty; +} + +double TaggerImpl::penalty(size_t i, size_t j) const { + return penalty_.empty() ? 0.0 : penalty_[i][j]; +} + +bool TaggerImpl::shrink() { + CHECK_FALSE(feature_index_->buildFeatures(this)) + << feature_index_->what(); + std::vector<std::vector<const char *> >(x_).swap(x_); + std::vector<std::vector<Node *> >(node_).swap(node_); + std::vector<unsigned short int>(answer_).swap(answer_); + std::vector<unsigned short int>(result_).swap(result_); + + return true; +} + +bool TaggerImpl::initNbest() { + if (!agenda_.get()) { + agenda_.reset(new std::priority_queue <QueueElement*, + std::vector<QueueElement *>, QueueElementComp>); + nbest_freelist_.reset(new FreeList <QueueElement>(128)); + } + + nbest_freelist_->free(); + while (!agenda_->empty()) { + agenda_->pop(); // make empty + } + + const size_t k = x_.size()-1; + for (size_t i = 0; i < ysize_; ++i) { + QueueElement *eos = nbest_freelist_->alloc(); + eos->node = node_[k][i]; + eos->fx = -node_[k][i]->bestCost; + eos->gx = -node_[k][i]->cost; + eos->next = 0; + agenda_->push(eos); + } + + return true; +} + +bool TaggerImpl::next() { + while (!agenda_->empty()) { + QueueElement *top = agenda_->top(); + agenda_->pop(); + Node *rnode = top->node; + + if (rnode->x == 0) { + for (QueueElement *n = top; n; n = n->next) { + result_[n->node->x] = n->node->y; + } + cost_ = top->gx; + return true; + } + + for (const_Path_iterator it = rnode->lpath.begin(); + it != rnode->lpath.end(); ++it) { + QueueElement *n =nbest_freelist_->alloc(); + n->node = (*it)->lnode; + n->gx = -(*it)->lnode->cost -(*it)->cost + top->gx; + n->fx = -(*it)->lnode->bestCost -(*it)->cost + top->gx; + // | h(x) | | g(x) | + n->next = top; + agenda_->push(n); + } + } + + return 0; +} + +int TaggerImpl::eval() { + int err = 0; + for (size_t i = 0; i < x_.size(); ++i) { + if (answer_[i] != result_[i]) { + ++err; + } + } + return err; +} + +bool TaggerImpl::clear() { + if (mode_ == TEST || mode_ == TEST_SHARED) { + allocator_->clear(); + } + x_.clear(); + node_.clear(); + answer_.clear(); + result_.clear(); + Z_ = cost_ = 0.0; + return true; +} + +void TaggerImpl::buildLattice() { + if (x_.empty()) { + return; + } + + feature_index_->rebuildFeatures(this); + + for (size_t i = 0; i < x_.size(); ++i) { + for (size_t j = 0; j < ysize_; ++j) { + feature_index_->calcCost(node_[i][j]); + const std::vector<Path *> &lpath = node_[i][j]->lpath; + for (const_Path_iterator it = lpath.begin(); it != lpath.end(); ++it) { + feature_index_->calcCost(*it); + } + } + } + + // Add penalty for Dual decomposition. + if (!penalty_.empty()) { + for (size_t i = 0; i < x_.size(); ++i) { + for (size_t j = 0; j < ysize_; ++j) { + node_[i][j]->cost += penalty_[i][j]; + } + } + } +} + +void TaggerImpl::forwardbackward() { + if (x_.empty()) { + return; + } + + for (int i = 0; i < static_cast<int>(x_.size()); ++i) { + for (size_t j = 0; j < ysize_; ++j) { + node_[i][j]->calcAlpha(); + } + } + + for (int i = static_cast<int>(x_.size() - 1); i >= 0; --i) { + for (size_t j = 0; j < ysize_; ++j) { + node_[i][j]->calcBeta(); + } + } + + Z_ = 0.0; + for (size_t j = 0; j < ysize_; ++j) { + Z_ = logsumexp(Z_, node_[0][j]->beta, j == 0); + } + + return; +} + +void TaggerImpl::viterbi() { + for (size_t i = 0; i < x_.size(); ++i) { + for (size_t j = 0; j < ysize_; ++j) { + double bestc = -1e37; + Node *best = 0; + const std::vector<Path *> &lpath = node_[i][j]->lpath; + for (const_Path_iterator it = lpath.begin(); it != lpath.end(); ++it) { + double cost = (*it)->lnode->bestCost +(*it)->cost + + node_[i][j]->cost; + if (cost > bestc) { + bestc = cost; + best = (*it)->lnode; + } + } + node_[i][j]->prev = best; + node_[i][j]->bestCost = best ? bestc : node_[i][j]->cost; + } + } + + double bestc = -1e37; + Node *best = 0; + size_t s = x_.size()-1; + for (size_t j = 0; j < ysize_; ++j) { + if (bestc < node_[s][j]->bestCost) { + best = node_[s][j]; + bestc = node_[s][j]->bestCost; + } + } + + for (Node *n = best; n; n = n->prev) { + result_[n->x] = n->y; + } + + cost_ = -node_[x_.size()-1][result_[x_.size()-1]]->bestCost; +} + +double TaggerImpl::gradient(double *expected) { + if (x_.empty()) return 0.0; + + buildLattice(); + forwardbackward(); + double s = 0.0; + + for (size_t i = 0; i < x_.size(); ++i) { + for (size_t j = 0; j < ysize_; ++j) { + node_[i][j]->calcExpectation(expected, Z_, ysize_); + } + } + + for (size_t i = 0; i < x_.size(); ++i) { + for (const int *f = node_[i][answer_[i]]->fvector; *f != -1; ++f) { + --expected[*f + answer_[i]]; + } + s += node_[i][answer_[i]]->cost; // UNIGRAM cost + const std::vector<Path *> &lpath = node_[i][answer_[i]]->lpath; + for (const_Path_iterator it = lpath.begin(); it != lpath.end(); ++it) { + if ((*it)->lnode->y == answer_[(*it)->lnode->x]) { + for (const int *f = (*it)->fvector; *f != -1; ++f) { + --expected[*f +(*it)->lnode->y * ysize_ +(*it)->rnode->y]; + } + s += (*it)->cost; // BIGRAM COST + break; + } + } + } + + viterbi(); // call for eval() + + return Z_ - s ; +} + +double TaggerImpl::collins(double *collins) { + if (x_.empty()) { + return 0.0; + } + + buildLattice(); + viterbi(); // call for finding argmax y* + double s = 0.0; + + // if correct parse, do not run forward + backward + { + size_t num = 0; + for (size_t i = 0; i < x_.size(); ++i) { + if (answer_[i] == result_[i]) { + ++num; + } + } + + if (num == x_.size()) return 0.0; + } + + for (size_t i = 0; i < x_.size(); ++i) { + // answer + { + s += node_[i][answer_[i]]->cost; + for (const int *f = node_[i][answer_[i]]->fvector; *f != -1; ++f) { + ++collins[*f + answer_[i]]; + } + + const std::vector<Path *> &lpath = node_[i][answer_[i]]->lpath; + for (const_Path_iterator it = lpath.begin(); it != lpath.end(); ++it) { + if ((*it)->lnode->y == answer_[(*it)->lnode->x]) { + for (const int *f = (*it)->fvector; *f != -1; ++f) { + ++collins[*f +(*it)->lnode->y * ysize_ +(*it)->rnode->y]; + } + s += (*it)->cost; + break; + } + } + } + + // result + { + s -= node_[i][result_[i]]->cost; + for (const int *f = node_[i][result_[i]]->fvector; *f != -1; ++f) { + --collins[*f + result_[i]]; + } + + const std::vector<Path *> &lpath = node_[i][result_[i]]->lpath; + for (const_Path_iterator it = lpath.begin(); it != lpath.end(); ++it) { + if ((*it)->lnode->y == result_[(*it)->lnode->x]) { + for (const int *f = (*it)->fvector; *f != -1; ++f) { + --collins[*f +(*it)->lnode->y * ysize_ +(*it)->rnode->y]; + } + s -= (*it)->cost; + break; + } + } + } + } + + return -s; +} + +bool TaggerImpl::parse() { + CHECK_FALSE(feature_index_->buildFeatures(this)) + << feature_index_->what(); + + if (x_.empty()) { + return true; + } + buildLattice(); + if (nbest_ || vlevel_ >= 1) { + forwardbackward(); + } + viterbi(); + if (nbest_) { + initNbest(); + } + + return true; +} + +const char* TaggerImpl::parse(const char* input) { + return parse(input, std::strlen(input)); +} + +const char* TaggerImpl::parse(const char* input, size_t length) { + std::istringstream is(std::string(input, length)); + if (!read(&is) || !parse()) { + return 0; + } + toString(); + return os_.c_str(); +} + +const char* TaggerImpl::parse(const char*input, size_t len1, + char *output, size_t len2) { + std::istringstream is(std::string(input, len1)); + if (x_.empty()) { + return 0; + } + toString(); + if ((os_.size() + 1) < len2) { + memcpy(output, os_.data(), os_.size()); + output[os_.size()] = '\0'; + return output; + } else { + return 0; + } +} + +bool TaggerImpl::parse_stream(std::istream *is, + std::ostream *os) { + if (!read(is) || !parse()) { + return false; + } + if (x_.empty()) { + return true; + } + toString(); + os->write(os_.data(), os_.size()); + return true; +} + +const char* TaggerImpl::toString(char *output, + size_t len) { + const char* p = toString(); + const size_t l = std::min(std::strlen(p), len); + std::strncpy(output, p, l); + return output; +} + +const char* TaggerImpl::toString() { + os_.assign(""); + +#define PRINT \ + for (size_t i = 0; i < x_.size(); ++i) { \ + for (std::vector<const char*>::iterator it = x_[i].begin(); \ + it != x_[i].end(); ++it) \ + os_ << *it << '\t'; \ + os_ << yname(y(i)); \ + if (vlevel_ >= 1) os_ << '/' << prob(i); \ + if (vlevel_ >= 2) { \ + for (size_t j = 0; j < ysize_; ++j) \ + os_ << '\t' << yname(j) << '/' << prob(i, j); \ + } \ + os_ << '\n'; \ + } \ + os_ << '\n'; + + if (nbest_ >= 1) { + for (size_t n = 0; n < nbest_; ++n) { + if (!next()) { + break; + } + os_ << "# " << n << " " << prob() << '\n'; + PRINT; + } + } else { + if (vlevel_ >= 1) { + os_ << "# " << prob() << '\n'; + } + PRINT; + } + + return const_cast<const char*>(os_.c_str()); + +#undef PRINT +} + +Tagger *createTagger(int argc, char **argv) { + TaggerImpl *tagger = new TaggerImpl(); + if (!tagger->open(argc, argv)) { + setGlobalError(tagger->what()); + delete tagger; + return 0; + } + return tagger; +} + +Tagger *createTagger(const char *argv) { + TaggerImpl *tagger = new TaggerImpl(); + if (!tagger->open(argv)) { + setGlobalError(tagger->what()); + delete tagger; + return 0; + } + return tagger; +} + +Model *createModel(int argc, char **argv) { + ModelImpl *model = new ModelImpl(); + if (!model->open(argc, argv)) { + setGlobalError(model->what()); + delete model; + return 0; + } + return model; +} + +Model *createModel(const char *argv) { + ModelImpl *model = new ModelImpl(); + if (!model->open(argv)) { + setGlobalError(model->what()); + delete model; + return 0; + } + return model; +} + +const char *getTaggerError() { + return getGlobalError(); +} + +const char *getLastError() { + return getGlobalError(); +} +} // namespace CRFPP + +int crfpp_test(int argc, char **argv) { + CRFPP::Param param; + + param.open(argc, argv, long_options); + + if (param.get<bool>("version")) { + std::cout << param.version(); + return -1; + } + + if (param.get<bool>("help")) { + std::cout << param.help(); + return -1; + } + + CRFPP::TaggerImpl tagger; + if (!tagger.open(param)) { + std::cerr << tagger.what() << std::endl; + return -1; + } + + std::string output = param.get<std::string>("output"); + if (output.empty()) { + output = "-"; + } + + CRFPP::ostream_wrapper os(output.c_str()); + if (!*os) { + std::cerr << "no such file or directory: " << output << std::endl; + return -1; + } + + const std::vector<std::string>& rest_ = param.rest_args(); + std::vector<std::string> rest = rest_; // trivial copy + if (rest.empty()) { + rest.push_back("-"); + } + + for (size_t i = 0; i < rest.size(); ++i) { + CRFPP::istream_wrapper is(rest[i].c_str()); + if (!*is) { + std::cerr << "no such file or directory: " << rest[i] << std::endl; + return -1; + } + while (*is) { + tagger.parse_stream(is.get(), os.get()); + } + } + + return 0; +} diff --git a/tagger.h b/tagger.h new file mode 100644 index 0000000..0f61aa6 --- /dev/null +++ b/tagger.h @@ -0,0 +1,211 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: tagger.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_TAGGER_H_ +#define CRFPP_TAGGER_H_ + +#include <iostream> +#include <vector> +#include <queue> +#include "param.h" +#include "crfpp.h" +#include "scoped_ptr.h" +#include "feature_index.h" + +namespace CRFPP { + +static inline double toprob(Node *n, double Z) { + return std::exp(n->alpha + n->beta - n->cost - Z); +} + +class Allocator; + +class ModelImpl : public Model { + public: + ModelImpl() : nbest_(0), vlevel_(0) {} + virtual ~ModelImpl() {} + bool open(int argc, char** argv); + bool open(const char* arg); + Tagger *createTagger() const; + const char* what() { return what_.str(); } + + private: + bool open(const Param ¶m); + + whatlog what_; + unsigned int nbest_; + unsigned int vlevel_; + scoped_ptr<DecoderFeatureIndex> feature_index_; +}; + +class TaggerImpl : public Tagger { + public: + explicit TaggerImpl() : mode_(TEST), vlevel_(0), nbest_(0), + ysize_(0), Z_(0), feature_id_(0), + thread_id_(0), feature_index_(0), + allocator_(0) {} + virtual ~TaggerImpl() { close(); } + + Allocator *allocator() const { + return allocator_; + } + + void set_feature_id(size_t id) { feature_id_ = id; } + size_t feature_id() const { return feature_id_; } + void set_thread_id(unsigned short id) { thread_id_ = id; } + unsigned short thread_id() const { return thread_id_; } + Node *node(size_t i, size_t j) const { return node_[i][j]; } + void set_node(Node *n, size_t i, size_t j) { node_[i][j] = n; } + + // for LEARN mode + bool open(FeatureIndex *feature_index, Allocator *allocator); + + // for TEST mode, but feature_index is shared. + bool open(FeatureIndex *feature_index, + unsigned int nvest, unsigned velvel); + + // for TEST mode + bool open(const Param ¶m); + bool open(const char *argv); + bool open(int argc, char **argv); + + + int eval(); + double gradient(double *); + double collins(double *); + bool shrink(); + bool parse_stream(std::istream *is, std::ostream *os); + bool read(std::istream *is); + void close(); + bool add(size_t size, const char **line); + bool add(const char*); + size_t size() const { return x_.size(); } + size_t xsize() const { return feature_index_->xsize(); } + size_t dsize() const { return feature_index_->size(); } + const float *weight_vector() const { return feature_index_->alpha_float(); } + bool empty() const { return x_.empty(); } + size_t ysize() const { return ysize_; } + double cost() const { return cost_; } + double Z() const { return Z_; } + double prob() const { return std::exp(- cost_ - Z_); } + double prob(size_t i, size_t j) const { + return toprob(node_[i][j], Z_); + } + double prob(size_t i) const { + return toprob(node_[i][result_[i]], Z_); + } + void set_penalty(size_t i, size_t j, double penalty); + double penalty(size_t i, size_t j) const; + double alpha(size_t i, size_t j) const { return node_[i][j]->alpha; } + double beta(size_t i, size_t j) const { return node_[i][j]->beta; } + double emission_cost(size_t i, size_t j) const { return node_[i][j]->cost; } + double next_transition_cost(size_t i, size_t j, size_t k) const { + return node_[i][j]->rpath[k]->cost; + } + double prev_transition_cost(size_t i, size_t j, size_t k) const { + return node_[i][j]->lpath[k]->cost; + } + double best_cost(size_t i, size_t j) const { + return node_[i][j]->bestCost; + } + const int *emission_vector(size_t i, size_t j) const { + return const_cast<int *>(node_[i][j]->fvector); + } + const int* next_transition_vector(size_t i, size_t j, size_t k) const { + return node_[i][j]->rpath[k]->fvector; + } + const int* prev_transition_vector(size_t i, size_t j, size_t k) const { + return node_[i][j]->lpath[k]->fvector; + } + size_t answer(size_t i) const { return answer_[i]; } + size_t result(size_t i) const { return result_[i]; } + size_t y(size_t i) const { return result_[i]; } + const char* yname(size_t i) const { return feature_index_->y(i); } + const char* y2(size_t i) const { return yname(result_[i]); } + const char* x(size_t i, size_t j) const { return x_[i][j]; } + const char** x(size_t i) const { + return const_cast<const char **>(&x_[i][0]); + } + const char* toString(); + const char* toString(char *, size_t); + const char* parse(const char*); + const char* parse(const char*, size_t); + const char* parse(const char*, size_t, char*, size_t); + bool parse(); + bool clear(); + bool next(); + + unsigned int vlevel() const { return vlevel_; } + + float cost_factor() const { + return feature_index_ ? feature_index_->cost_factor() : 0.0; + } + + size_t nbest() const { return nbest_; } + + void set_vlevel(unsigned int vlevel) { + vlevel_ = vlevel; + } + + void set_cost_factor(float cost_factor) { + if (cost_factor > 0 && feature_index_) { + feature_index_->set_cost_factor(cost_factor); + } + } + + void set_nbest(size_t nbest) { + nbest_ = nbest; + } + + const char* what() { return what_.str(); } + + private: + void forwardbackward(); + void viterbi(); + void buildLattice(); + bool initNbest(); + bool add2(size_t, const char **, bool); + + struct QueueElement { + Node *node; + QueueElement *next; + double fx; + double gx; + }; + + class QueueElementComp { + public: + const bool operator()(QueueElement *q1, + QueueElement *q2) + { return(q1->fx > q2->fx); } + }; + + enum { TEST, TEST_SHARED, LEARN }; + unsigned int mode_ ; + unsigned int vlevel_; + unsigned int nbest_; + size_t ysize_; + double cost_; + double Z_; + size_t feature_id_; + unsigned short thread_id_; + FeatureIndex *feature_index_; + Allocator *allocator_; + std::vector<std::vector <const char *> > x_; + std::vector<std::vector <Node *> > node_; + std::vector<std::vector<double> > penalty_; + std::vector<unsigned short int> answer_; + std::vector<unsigned short int> result_; + whatlog what_; + string_buffer os_; + + scoped_ptr<std::priority_queue <QueueElement*, std::vector <QueueElement *>, + QueueElementComp> > agenda_; + scoped_ptr<FreeList <QueueElement> > nbest_freelist_; +}; +} +#endif diff --git a/thread.h b/thread.h new file mode 100644 index 0000000..b5c3c37 --- /dev/null +++ b/thread.h @@ -0,0 +1,83 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: thread.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_THREAD_H_ +#define CRFPP_THREAD_H_ + +#ifdef HAVE_PTHREAD_H +#include <pthread.h> +#else +#ifdef _WIN32 +#include <windows.h> +#include <process.h> +#endif +#endif + +#if defined HAVE_PTHREAD_H +#define CRFPP_USE_THREAD 1 +#endif + +#if(defined(_WIN32) && !defined (__CYGWIN__)) +#define CRFPP_USE_THREAD 1 +#define BEGINTHREAD(src, stack, func, arg, flag, id) \ + (HANDLE)_beginthreadex((void *)(src), (unsigned)(stack), \ + (unsigned(_stdcall *)(void *))(func), (void *)(arg), \ + (unsigned)(flag), (unsigned *)(id)) +#endif + +namespace CRFPP { + +class thread { + private: +#ifdef HAVE_PTHREAD_H + pthread_t hnd_; +#else +#ifdef _WIN32 + HANDLE hnd_; +#endif +#endif + + public: + static void* wrapper(void *ptr) { + thread *p = static_cast<thread *>(ptr); + p->run(); + return 0; + } + + virtual void run() {} + + void start() { +#ifdef HAVE_PTHREAD_H + pthread_create(&hnd_, 0, &thread::wrapper, + static_cast<void *>(this)); + +#else +#ifdef _WIN32 + DWORD id; + hnd_ = BEGINTHREAD(0, 0, &thread::wrapper, this, 0, &id); +#else + run(); +#endif +#endif + } + + void join() { +#ifdef HAVE_PTHREAD_H + pthread_join(hnd_, 0); +#else +#ifdef _WIN32 + WaitForSingleObject(hnd_, INFINITE); + CloseHandle(hnd_); +#endif +#endif + } + + virtual ~thread() {} +}; +} + +#endif diff --git a/timer.h b/timer.h new file mode 100644 index 0000000..a51bf9e --- /dev/null +++ b/timer.h @@ -0,0 +1,58 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: timer.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#ifndef CRFPP_TIMER_H_ +#define CRFPP_TIMER_H_ + +#include <ctime> +#include <iostream> +#include <string> +#include <limits> + +namespace CRFPP { + +class timer { + public: + explicit timer() { start_time_ = std::clock(); } + void restart() { start_time_ = std::clock(); } + double elapsed() const { + return static_cast<double>(std::clock() - start_time_) / CLOCKS_PER_SEC; + } + + double elapsed_max() const { + // return (static_cast<double>(std::numeric_limits<std::clock_t>::max()) + // - static_cast<double>(start_time_)) / + // static_cast<double>(CLOCKS_PER_SEC); + return 0.0; + } + + double elapsed_min() const { + return static_cast<double>(1.0 / CLOCKS_PER_SEC); + } + + private: + std::clock_t start_time_; +}; + +class progress_timer : public timer { + public: + explicit progress_timer(std::ostream & os = std::cout) : os_(os) {} + virtual ~progress_timer() { + std::istream::fmtflags old_flags = os_.setf(std::istream::fixed, + std::istream::floatfield); + std::streamsize old_prec = os_.precision(2); + os_ << elapsed() << " s\n" << std::endl; + os_.flags(old_flags); + os_.precision(old_prec); + } + + private: + std::ostream & os_; +}; +} + +#endif diff --git a/winmain.h b/winmain.h new file mode 100644 index 0000000..74d3a02 --- /dev/null +++ b/winmain.h @@ -0,0 +1,69 @@ +// +// CRF++ -- Yet Another CRF toolkit +// +// $Id: common.h 1588 2007-02-12 09:03:39Z taku $; +// +// Copyright(C) 2005-2007 Taku Kudo <taku@chasen.org> +// +#if defined(_WIN32) || defined(__CYGWIN__) + +#include <windows.h> +#include <string> + +namespace { +class CommandLine { + public: + CommandLine(int argc, wchar_t **argv) : argc_(argc), argv_(0) { + argv_ = new char * [argc_]; + for (int i = 0; i < argc_; ++i) { + const std::string arg = WideToUtf8(argv[i]); + argv_[i] = new char[arg.size() + 1]; + ::memcpy(argv_[i], arg.data(), arg.size()); + argv_[i][arg.size()] = '\0'; + } + } + ~CommandLine() { + for (int i = 0; i < argc_; ++i) { + delete [] argv_[i]; + } + delete [] argv_; + } + + int argc() const { return argc_; } + char **argv() const { return argv_; } + + private: + static std::string WideToUtf8(const std::wstring &input) { + const int output_length = ::WideCharToMultiByte(CP_UTF8, 0, + input.c_str(), -1, NULL, 0, + NULL, NULL); + if (output_length == 0) { + return ""; + } + + char *input_encoded = new char[output_length + 1]; + const int result = ::WideCharToMultiByte(CP_UTF8, 0, input.c_str(), -1, + input_encoded, + output_length + 1, NULL, NULL); + std::string output; + if (result > 0) { + output.assign(input_encoded); + } + delete [] input_encoded; + return output; + } + + int argc_; + char **argv_; +}; +} // namespace + +#define main(argc, argv) wmain_to_main_wrapper(argc, argv) + +int wmain_to_main_wrapper(int argc, char **argv); + +int wmain(int argc, wchar_t **argv) { + CommandLine cmd(argc, argv); + return wmain_to_main_wrapper(cmd.argc(), cmd.argv()); +} +#endif