pax_global_header00006660000000000000000000000064126070123500014506gustar00rootroot0000000000000052 comment=43bb2f61059a8a44fbd3e0df2e4182d5c0aa4318 cunit-2.1-3-dfsg/000077500000000000000000000000001260701235000135535ustar00rootroot00000000000000cunit-2.1-3-dfsg/AUTHORS000066400000000000000000000005241260701235000146240ustar00rootroot00000000000000Anil Kumar (AK) Email : anilsaharan@users.sourceforge.net Jerry St.Clair (JDS) Email : jds2@users.sourceforge.net ----------------------------------------------------------- Special thanks to the following contributors to CUnit: K. Cheung and Aurema Pty Ltd. Shortcut code for efficient registration of CUnit tests and suites. cunit-2.1-3-dfsg/COPYING000066400000000000000000000625471260701235000146240ustar00rootroot00000000000000This software package 'CUnit' is Covered under GNU Library General Public License. More about Library GPL can be found at http://www.gnu.org/ (or) in file named LGPL-2 under /usr/share/common-licenses/ directory and is also stated as below. Kindly reflect back the enhancements made to this package to the author/ project page located at http://sourceforge.net/projects/cunit/ or the same may be notified to me. Wishing you good time with CUnit. ----------------------------------- Anil Kumar Email : anilsaharan@users.sourceforge.net Project Page : http://www.sourceforge.net/projects/cunit/ ************************************************************************ GNU LIBRARY GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1991 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 library GPL. It is numbered 2 because it goes with version 2 of the ordinary GPL.] 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 Library General Public License, applies to some specially designated Free Software Foundation software, and to any other libraries whose authors decide to use it. You can use it for your libraries, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the 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 a program 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. Our method of protecting your rights has two steps: (1) copyright the library, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the library. Also, for each distributor's protection, we want to make certain that everyone understands that there is no warranty for this free library. If the library is modified by someone else and passed on, we want its recipients to know that what they have is not the original version, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that companies distributing free software will individually obtain patent licenses, thus in effect transforming the program into proprietary software. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License, which was designed for utility programs. This license, the GNU Library General Public License, applies to certain designated libraries. This license is quite different from the ordinary one; be sure to read it in full, and don't assume that anything in it is the same as in the ordinary license. The reason we have a separate public license for some libraries is that they blur the distinction we usually make between modifying or adding to a program and simply using it. Linking a program with a library, without changing the library, is in some sense simply using the library, and is analogous to running a utility program or application program. However, in a textual and legal sense, the linked executable is a combined work, a derivative of the original library, and the ordinary General Public License treats it as such. Because of this blurred distinction, using the ordinary General Public License for libraries did not effectively promote software sharing, because most developers did not use the libraries. We concluded that weaker conditions might promote sharing better. However, unrestricted linking of non-free programs would deprive the users of those programs of all benefit from the free status of the libraries themselves. This Library General Public License is intended to permit developers of non-free programs to use free libraries, while preserving your freedom as a user of such programs to change the free libraries that are incorporated in them. (We have not seen how to achieve this as regards changes in header files, but we have achieved it as regards changes in the actual functions of the Library.) The hope is that this will lead to faster development of free libraries. 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, while the latter only works together with the library. Note that it is possible for a library to be covered by the ordinary General Public License rather than by this special one. GNU LIBRARY GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Library 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 compile 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) 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. c) 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. d) 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 source code 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 to 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 Library General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library 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. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! cunit-2.1-3-dfsg/CUnit.dsw000066400000000000000000000025511260701235000153170ustar00rootroot00000000000000Microsoft Developer Studio Workspace File, Format Version 6.00 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! ############################################################################### Project: "CUnit"=".\CUnit\CUnit.dsp" - Package Owner=<4> Package=<5> {{{ }}} Package=<4> {{{ }}} ############################################################################### Project: "AutomatedTest"=".\EXAMPLES\AutomatedTest\AutomatedTest.dsp" - Package Owner=<4> Package=<5> {{{ }}} Package=<4> {{{ Begin Project Dependency Project_Dep_Name CUnit End Project Dependency }}} ############################################################################### Project: "BasicTest"=".\EXAMPLES\BasicTest\BasicTest.dsp" - Package Owner=<4> Package=<5> {{{ }}} Package=<4> {{{ Begin Project Dependency Project_Dep_Name CUnit End Project Dependency }}} ############################################################################### Project: "ConsoleTest"=".\Examples\ConsoleTest\ConsoleTest.dsp" - Package Owner=<4> Package=<5> {{{ }}} Package=<4> {{{ Begin Project Dependency Project_Dep_Name CUnit End Project Dependency }}} ############################################################################### Global: Package=<5> {{{ }}} Package=<3> {{{ }}} ############################################################################### cunit-2.1-3-dfsg/CUnit.spec000066400000000000000000000057311260701235000154570ustar00rootroot00000000000000Summary: A unit testing framework for 'C' Name: CUnit Version: 2.1 Release: 3 Source: http://www.sourceforge.net/projects/cunit/CUnit-2.1-3.tar.gz Group: Development/Tools License: GPL URL: http://cunit.sourceforge.net Packager: Jerry St. Clair %description CUnit is a unit testing framework for C. This package installs the CUnit static library, headers, and documentation files. %prep echo "Preparing for Installation." %setup -q -n CUnit-2.1-3 %build echo "Preparing for Building." ./configure --prefix=%{_prefix} --enable-automated --enable-basic --enable-console --enable-curses --enable-examples --enable-test && \ make %install echo "Preparing for Make install." make DESTDIR=$RPM_BUILD_ROOT install %clean %files %defattr(-,root,root) ########### Include Files %{_prefix}/include/CUnit/Automated.h %{_prefix}/include/CUnit/Basic.h %{_prefix}/include/CUnit/Console.h %{_prefix}/include/CUnit/CUError.h %{_prefix}/include/CUnit/CUnit.h %{_prefix}/include/CUnit/CUnit_intl.h %{_prefix}/include/CUnit/CUCurses.h %{_prefix}/include/CUnit/MyMem.h %{_prefix}/include/CUnit/TestDB.h %{_prefix}/include/CUnit/TestRun.h %{_prefix}/include/CUnit/Util.h ########## Library Files %{_prefix}/lib/libcunit.a %{_prefix}/lib/libcunit.so.1.0.1 ########## doc Files %{_prefix}/doc/CUnit/CUnit_doc.css %{_prefix}/doc/CUnit/error_handling.html %{_prefix}/doc/CUnit/fdl.html %{_prefix}/doc/CUnit/index.html %{_prefix}/doc/CUnit/introduction.html %{_prefix}/doc/CUnit/managing_tests.html %{_prefix}/doc/CUnit/running_tests.html %{_prefix}/doc/CUnit/test_registry.html %{_prefix}/doc/CUnit/writing_tests.html %{_prefix}/doc/CUnit/headers/Automated.h %{_prefix}/doc/CUnit/headers/Basic.h %{_prefix}/doc/CUnit/headers/Console.h %{_prefix}/doc/CUnit/headers/CUError.h %{_prefix}/doc/CUnit/headers/CUnit.h %{_prefix}/doc/CUnit/headers/CUnit_intl.h %{_prefix}/doc/CUnit/headers/CUCurses.h %{_prefix}/doc/CUnit/headers/MyMem.h %{_prefix}/doc/CUnit/headers/TestDB.h %{_prefix}/doc/CUnit/headers/TestRun.h %{_prefix}/doc/CUnit/headers/Util.h %{_prefix}/doc/CUnit/headers/Win.h ########## Manpage Files %{_prefix}/man/man3/CUnit.3* ########## Share information and Example Files %{_prefix}/share/CUnit/Examples/Automated/README %{_prefix}/share/CUnit/Examples/Automated/AutomatedTest %{_prefix}/share/CUnit/Examples/Basic/README %{_prefix}/share/CUnit/Examples/Basic/BasicTest %{_prefix}/share/CUnit/Examples/Console/README %{_prefix}/share/CUnit/Examples/Console/ConsoleTest %{_prefix}/share/CUnit/Examples/Curses/README %{_prefix}/share/CUnit/Examples/Curses/CursesTest %{_prefix}/share/CUnit/Test/test_cunit %{_prefix}/share/CUnit/CUnit-List.dtd %{_prefix}/share/CUnit/CUnit-List.xsl %{_prefix}/share/CUnit/CUnit-Run.dtd %{_prefix}/share/CUnit/CUnit-Run.xsl %{_prefix}/share/CUnit/Memory-Dump.dtd %{_prefix}/share/CUnit/Memory-Dump.xsl # Add the change log in ChangeLog file located under source home directory. # The same file is used internally to populate the change log for the RPM creation. cunit-2.1-3-dfsg/CUnit.spec.in000066400000000000000000000062521260701235000160630ustar00rootroot00000000000000Summary: A unit testing framework for 'C' Name: @PACKAGE@ Version: @VERSION@ Release: @RELEASE@ Source: http://www.sourceforge.net/projects/cunit/@PACKAGE@-@VERSION@-@RELEASE@.tar.gz Group: Development/Tools License: GPL URL: http://cunit.sourceforge.net Packager: Jerry St. Clair %description CUnit is a unit testing framework for C. This package installs the CUnit static library, headers, and documentation files. %prep echo "Preparing for Installation." %setup -q -n @PACKAGE@-@VERSION@-@RELEASE@ %build echo "Preparing for Building." ./configure --prefix=%{_prefix} --enable-automated --enable-basic --enable-console --enable-curses --enable-examples --enable-test && \ make %install echo "Preparing for Make install." make DESTDIR=$RPM_BUILD_ROOT install %clean %files %defattr(-,root,root) ########### Include Files %{_prefix}/include/CUnit/Automated.h %{_prefix}/include/CUnit/Basic.h %{_prefix}/include/CUnit/Console.h %{_prefix}/include/CUnit/CUError.h %{_prefix}/include/CUnit/CUnit.h %{_prefix}/include/CUnit/CUnit_intl.h %{_prefix}/include/CUnit/CUCurses.h %{_prefix}/include/CUnit/MyMem.h %{_prefix}/include/CUnit/TestDB.h %{_prefix}/include/CUnit/TestRun.h %{_prefix}/include/CUnit/Util.h ########## Library Files %{_prefix}/lib/libcunit.a %{_prefix}/lib/libcunit.so.@LIBTOOL_SUFFIX@ ########## doc Files %{_prefix}/doc/@PACKAGE@/CUnit_doc.css %{_prefix}/doc/@PACKAGE@/error_handling.html %{_prefix}/doc/@PACKAGE@/fdl.html %{_prefix}/doc/@PACKAGE@/index.html %{_prefix}/doc/@PACKAGE@/introduction.html %{_prefix}/doc/@PACKAGE@/managing_tests.html %{_prefix}/doc/@PACKAGE@/running_tests.html %{_prefix}/doc/@PACKAGE@/test_registry.html %{_prefix}/doc/@PACKAGE@/writing_tests.html %{_prefix}/doc/@PACKAGE@/headers/Automated.h %{_prefix}/doc/@PACKAGE@/headers/Basic.h %{_prefix}/doc/@PACKAGE@/headers/Console.h %{_prefix}/doc/@PACKAGE@/headers/CUError.h %{_prefix}/doc/@PACKAGE@/headers/CUnit.h %{_prefix}/doc/@PACKAGE@/headers/CUnit_intl.h %{_prefix}/doc/@PACKAGE@/headers/CUCurses.h %{_prefix}/doc/@PACKAGE@/headers/MyMem.h %{_prefix}/doc/@PACKAGE@/headers/TestDB.h %{_prefix}/doc/@PACKAGE@/headers/TestRun.h %{_prefix}/doc/@PACKAGE@/headers/Util.h %{_prefix}/doc/@PACKAGE@/headers/Win.h ########## Manpage Files %{_prefix}/man/man3/CUnit.3* ########## Share information and Example Files %{_prefix}/share/@PACKAGE@/Examples/Automated/README %{_prefix}/share/@PACKAGE@/Examples/Automated/AutomatedTest %{_prefix}/share/@PACKAGE@/Examples/Basic/README %{_prefix}/share/@PACKAGE@/Examples/Basic/BasicTest %{_prefix}/share/@PACKAGE@/Examples/Console/README %{_prefix}/share/@PACKAGE@/Examples/Console/ConsoleTest %{_prefix}/share/@PACKAGE@/Examples/Curses/README %{_prefix}/share/@PACKAGE@/Examples/Curses/CursesTest %{_prefix}/share/@PACKAGE@/Test/test_cunit %{_prefix}/share/@PACKAGE@/CUnit-List.dtd %{_prefix}/share/@PACKAGE@/CUnit-List.xsl %{_prefix}/share/@PACKAGE@/CUnit-Run.dtd %{_prefix}/share/@PACKAGE@/CUnit-Run.xsl %{_prefix}/share/@PACKAGE@/Memory-Dump.dtd %{_prefix}/share/@PACKAGE@/Memory-Dump.xsl # Add the change log in ChangeLog file located under source home directory. # The same file is used internally to populate the change log for the RPM creation. cunit-2.1-3-dfsg/CUnit/000077500000000000000000000000001260701235000145755ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Headers/000077500000000000000000000000001260701235000161505ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Headers/Automated.h000066400000000000000000000062611260701235000202510ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Automated Interface (generates HTML Report Files). * * Feb 2002 Initial implementation (AK) * * 13-Feb-2002 Single interface to automated_run_tests. (AK) * * 20-Jul-2004 New interface, doxygen comments. (JDS) */ /** @file * Automated testing interface with xml output (user interface). */ /** @addtogroup Automated * @{ */ #ifndef CUNIT_AUTOMATED_H_SEEN #define CUNIT_AUTOMATED_H_SEEN #include "CUnit.h" #include "TestDB.h" #ifdef __cplusplus extern "C" { #endif CU_EXPORT void CU_automated_run_tests(void); /**< * Runs CUnit tests using the automated interface. * This function sets appropriate callback functions, initializes the * test output files, and calls the appropriate functions to list the * tests and run them. If an output file name root has not been * specified using CU_set_output_filename(), a generic root will be * applied. It is an error to call this function before the CUnit * test registry has been initialized (check by assertion). */ CU_EXPORT CU_ErrorCode CU_list_tests_to_file(void); /**< * Generates an xml file containing a list of all tests in all suites * in the active registry. The output file will be named according to * the most recent call to CU_set_output_filename(), or a default if * not previously set. * * @return An error code indicating the error status. */ CU_EXPORT void CU_set_output_filename(const char* szFilenameRoot); /**< * Sets the root file name for automated test output files. * The strings "-Listing.xml" and "-Results.xml" are appended to the * specified root to generate the filenames. If szFilenameRoot is * empty, the default root ("CUnitAutomated") is used. * * @param szFilenameRoot String containing root to use for file names. */ #ifdef USE_DEPRECATED_CUNIT_NAMES /** Deprecated (version 1). @deprecated Use CU_automated_run_tests(). */ #define automated_run_tests() CU_automated_run_tests() /** Deprecated (version 1). @deprecated Use CU_set_output_filename(). */ #define set_output_filename(x) CU_set_output_filename((x)) #endif /* USE_DEPRECATED_CUNIT_NAMES */ void CU_automated_enable_junit_xml(CU_BOOL bFlag); void CU_automated_package_name_set(const char *pName); const char *CU_automated_package_name_get(); #ifdef __cplusplus } #endif #endif /* CUNIT_AUTOMATED_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/Basic.h000066400000000000000000000076001260701235000173450ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2004-2006 Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Interface for simple test runner. * * 11-Aug-2004 Initial implementation of basic test runner interface. (JDS) */ /** @file * Basic interface with output to stdout. */ /** @addtogroup Basic * @{ */ #ifndef CUNIT_BASIC_H_SEEN #define CUNIT_BASIC_H_SEEN #include "CUnit.h" #include "TestDB.h" #ifdef __cplusplus extern "C" { #endif /** Run modes for the basic interface. */ typedef enum { CU_BRM_NORMAL = 0, /**< Normal mode - failures and run summary are printed [default]. */ CU_BRM_SILENT, /**< Silent mode - no output is printed except framework error messages. */ CU_BRM_VERBOSE /**< Verbose mode - maximum output of run details. */ } CU_BasicRunMode; CU_EXPORT CU_ErrorCode CU_basic_run_tests(void); /**< * Runs all registered CUnit tests using the basic interface. * The default CU_BasicRunMode is used unless it has been * previously changed using CU_basic_set_mode(). The CUnit test * registry must have been initialized before calling this function. * * @return A CU_ErrorCode indicating the framework error condition, including * CUE_NOREGISTRY - Registry has not been initialized. */ CU_EXPORT CU_ErrorCode CU_basic_run_suite(CU_pSuite pSuite); /**< * Runs all tests for a specific suite in the basic interface. * If pSuite is NULL, the function returns without taking any * action. The default CU_BasicRunMode is used unless it has * been changed using CU_basic_set_mode(). * * @param pSuite The CU_Suite to run. * @return A CU_ErrorCode indicating the framework error condition, including * CUE_NOSUITE - pSuite was NULL. */ CU_EXPORT CU_ErrorCode CU_basic_run_test(CU_pSuite pSuite, CU_pTest pTest); /**< * Runs a single test in a specific suite in the basic interface. * If pSuite or pTest is NULL, the function returns without * taking any action. The default CU_BasicRunMode is used unless * it has been changed using CU_basic_set_mode. * * @param pSuite The CU_Suite holding the CU_Test to run. * @param pTest The CU_Test to run. * @return A CU_ErrorCode indicating the framework error condition, including * CUE_NOSUITE - pSuite was NULL. * CUE_NOTEST - pTest was NULL. */ CU_EXPORT void CU_basic_set_mode(CU_BasicRunMode mode); /**< Sets the run mode for the basic interface. * @param mode The new CU_BasicRunMode for subsequent test * runs using the basic interface. */ CU_EXPORT CU_BasicRunMode CU_basic_get_mode(void); /**< Retrieves the current run mode for the basic interface. * @return The current CU_BasicRunMode setting for test * runs using the basic interface. */ CU_EXPORT void CU_basic_show_failures(CU_pFailureRecord pFailure); /**< * Prints a summary of run failures to stdout. * This is provided for user convenience upon request, and does * not take into account the current run mode. The failures are * printed to stdout independent of the most recent run mode. * * @param pFailure List of CU_pFailureRecord's to output. */ #ifdef __cplusplus } #endif #endif /* CUNIT_BASIC_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/CUCurses.h000066400000000000000000000034051260701235000200170ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Contains Interface for curses Run tests. * * Aug 2001 Initial implementation. (AK) * * 09/Aug/2001 Single interface to Console_run_tests. (AK) * * 18-Jul-2004 New interface. (JDS) * * 21-Apr-2005 Changed header name to avoid clash with system curses.h. (JDS) */ /** @file * Curses testing interface with interactive output (user interface). */ /** @addtogroup Curses * @{ */ #ifndef CUNIT_CURSES_H_SEEN #define CUNIT_CURSES_H_SEEN #include "CUnit.h" #include "TestDB.h" #ifdef __cplusplus extern "C" { #endif CU_EXPORT void CU_curses_run_tests(void); /**< Run registered CUnit tests using the curses interface. */ #ifdef USE_DEPRECATED_CUNIT_NAMES /** Deprecated (version 1). @deprecated Use CU_curses_run_tests(). */ #define curses_run_tests() CU_curses_run_tests() #endif #ifdef __cplusplus } #endif #endif /* CUNIT_CURSES_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/CUError.h000066400000000000000000000170651260701235000176530ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Contains CUnit error codes which can be used externally. * * Aug 2001 Initial implementation. (AK) * * 02/Oct/2001 Added proper Eror Codes. (AK) * * 13-Oct-2001 Added Error Codes for Duplicate TestGroup and Test. (AK) * * 03-Aug-2004 Converted error code macros to an enum, doxygen comments, moved * error handing code here, changed file name from Errno.h, added * error codes for file open errors, added error action selection. (JDS) * * 05-Sep-2004 Added internal test interface. (JDS) */ /** @file * Error handling functions (user interface). * CUnit uses a simple (and conventional) error handling strategy. * Functions that can generate errors set (and usually return) an * error code to indicate the run status. The error code can be * inspected using the CU_get_error() function. A descriptive * error message can be retrieved using CU_get_error_msg(). */ /** @addtogroup Framework * @{ */ #ifndef CUNIT_CUERROR_H_SEEN #define CUNIT_CUERROR_H_SEEN #include /*------------------------------------------------------------------------*/ /** CUnit error codes. * If codes are added or removed, be sure to make a change to the * error messages in CUError.c/get_error_desc(). * @see CU_set_error() * @see CU_get_error() * @see CU_get_error_msg() */ typedef enum { /* basic errors */ CUE_SUCCESS = 0, /**< No error condition. */ CUE_NOMEMORY = 1, /**< Memory allocation failed. */ /* Test Registry Level Errors */ CUE_NOREGISTRY = 10, /**< Test registry not initialized. */ CUE_REGISTRY_EXISTS = 11, /**< Attempt to CU_set_registry() without CU_cleanup_registry(). */ /* Test Suite Level Errors */ CUE_NOSUITE = 20, /**< A required CU_pSuite pointer was NULL. */ CUE_NO_SUITENAME = 21, /**< Required CU_Suite name not provided. */ CUE_SINIT_FAILED = 22, /**< Suite initialization failed. */ CUE_SCLEAN_FAILED = 23, /**< Suite cleanup failed. */ CUE_DUP_SUITE = 24, /**< Duplicate suite name not allowed. */ CUE_SUITE_INACTIVE = 25, /**< Test run initiated for an inactive suite. */ /* Test Case Level Errors */ CUE_NOTEST = 30, /**< A required CU_pTest or CU_TestFunc pointer was NULL. */ CUE_NO_TESTNAME = 31, /**< Required CU_Test name not provided. */ CUE_DUP_TEST = 32, /**< Duplicate test case name not allowed. */ CUE_TEST_NOT_IN_SUITE = 33, /**< Test not registered in specified suite. */ CUE_TEST_INACTIVE = 34, /**< Test run initiated for an inactive test. */ /* File handling errors */ CUE_FOPEN_FAILED = 40, /**< An error occurred opening a file. */ CUE_FCLOSE_FAILED = 41, /**< An error occurred closing a file. */ CUE_BAD_FILENAME = 42, /**< A bad filename was requested (NULL, empty, nonexistent, etc.). */ CUE_WRITE_ERROR = 43 /**< An error occurred during a write to a file. */ } CU_ErrorCode; /*------------------------------------------------------------------------*/ /** CUnit error action codes. * These are used to set the action desired when an error * condition is detected in the CUnit framework. * @see CU_set_error_action() * @see CU_get_error_action() */ typedef enum CU_ErrorAction { CUEA_IGNORE, /**< Runs should be continued when an error condition occurs (if possible). */ CUEA_FAIL, /**< Runs should be stopped when an error condition occurs. */ CUEA_ABORT /**< The application should exit() when an error conditions occurs. */ } CU_ErrorAction; /* Error handling & reporting functions. */ #include "CUnit.h" #ifdef __cplusplus extern "C" { #endif CU_EXPORT CU_ErrorCode CU_get_error(void); /**< * Retrieves the current CUnit framework error code. * CUnit implementation functions set the error code to indicate the * status of the most recent operation. In general, the CUnit functions * will clear the code to CUE_SUCCESS, then reset it to a specific error * code if an exception condition is encountered. Some functions * return the code, others leave it to the user to inspect if desired. * * @return The current error condition code. * @see CU_get_error_msg() * @see CU_ErrorCode */ CU_EXPORT const char* CU_get_error_msg(void); /**< * Retrieves a message corresponding to the current framework error code. * CUnit implementation functions set the error code to indicate the * of the most recent operation. In general, the CUnit functions will * clear the code to CUE_SUCCESS, then reset it to a specific error * code if an exception condition is encountered. This function allows * the user to retrieve a descriptive error message corresponding to the * error code set by the last operation. * * @return A message corresponding to the current error condition. * @see CU_get_error() * @see CU_ErrorCode */ CU_EXPORT void CU_set_error_action(CU_ErrorAction action); /**< * Sets the action to take when a framework error condition occurs. * This function should be used to specify the action to take * when an error condition is encountered. The default action is * CUEA_IGNORE, which results in errors being ignored and test runs * being continued (if possible). A value of CUEA_FAIL causes test * runs to stop as soon as an error condition occurs, while * CU_ABORT causes the application to exit on any error. * * @param action CU_ErrorAction indicating the new error action. * @see CU_get_error_action() * @see CU_set_error() * @see CU_ErrorAction */ CU_EXPORT CU_ErrorAction CU_get_error_action(void); /**< * Retrieves the current framework error action code. * * @return The current error action code. * @see CU_set_error_action() * @see CU_set_error() * @see CU_ErrorAction */ #ifdef CUNIT_BUILD_TESTS void test_cunit_CUError(void); #endif /* Internal function - users should not generally call this function */ CU_EXPORT void CU_set_error(CU_ErrorCode error); /**< * Sets the CUnit framework error code. * This function is used internally by CUnit implementation functions * when an error condition occurs within the framework. It should * not generally be called by user code. NOTE that if the current * error action is CUEA_ABORT, then calling this function will * result in exit() being called for the current application. * * @param error CU_ErrorCode indicating the current error condition. * @see CU_get_error() * @see CU_get_error_msg() * @see CU_ErrorCode */ #ifdef __cplusplus } #endif #ifdef USE_DEPRECATED_CUNIT_NAMES /** Deprecated (version 1). @deprecated Use CU_get_error_msg(). */ #define get_error() CU_get_error_msg() #endif /* USE_DEPRECATED_CUNIT_NAMES */ #endif /* CUNIT_CUERROR_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/CUnit.h000066400000000000000000000452001260701235000173440ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * ASSERT Macro definitions and general CUnit configuration definitions. * * 09/Aug/2001 ASSERT definitions. (AK) * * 12/Mar/2003 New Assert definitions. (AK) * * 27/Jul/2003 Modified ASSERT_XXX Macro definitions. (AK) * * 15-Jul-2004 New interface, changed action on assert failure to not * return, provided _FATAL versions of assertions to return * from test function on failure. (JDS) * * 01-Sep-2004 Modified assertions for setjmp/longjmp mechanism of * aborting test runs, added CU_FAIL and CU_PASS macros. (JDS) * * 07-May-2005 Added CU_ prefix to remaining CUnit defines (BOOL, TRUE, * FALSE, MAX_...). Added CU_UNREFERENCED_PARAMETER() define. (JDS) */ /** @file * Basic CUnit include file for user and system code. * Defines macros for assertions for use in user test cases. * Basic system macro definitions also appear here. */ /** @addtogroup Framework * @{ */ #ifndef CUNIT_CUNIT_H_SEEN #define CUNIT_CUNIT_H_SEEN #include #include /** CUnit version number. */ #define CU_VERSION "2.1-2" /* Max string lengths for names (includes terminating NULL. */ /** Maximum length of a test name string. */ #define CU_MAX_TEST_NAME_LENGTH 256 /** Maximim length of a suite name string. */ #define CU_MAX_SUITE_NAME_LENGTH 256 /* Global type Definitions to be used for boolean operators. */ #ifndef CU_BOOL /** Boolean type for CUnit use. */ #define CU_BOOL int #endif #ifndef CU_TRUE /** Boolean TRUE for CUnit use. */ #define CU_TRUE 1 #endif #ifndef CU_FALSE /** Boolean FALSE for CUnit use. */ #define CU_FALSE 0 #endif #ifndef CU_UNREFERENCED_PARAMETER /** Consistent approach to referencing unused parameters. */ #define CU_UNREFERENCED_PARAMETER(x) (void)x #endif #ifndef CU_MAX # define CU_MAX(a,b) (((a) >= (b)) ? (a) : (b)) #endif #ifndef CU_MIN # define CU_MIN(a,b) (((a) >= (b)) ? (b) : (a)) #endif #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__WIN32__) # ifdef CU_DLL # ifdef CU_BUILD_DLL # define CU_EXPORT __declspec(dllexport) # else # define CU_EXPORT __declspec(dllimport) # endif # else # define CU_EXPORT # endif # ifdef _MSC_VER # define snprintf _snprintf # endif #else # define CU_EXPORT #endif /* WIN32 */ #include "CUError.h" #include "TestDB.h" /* not needed here - included for user convenience */ #include "TestRun.h" /* not needed here - include (after BOOL define) for user convenience */ /** Record a pass condition without performing a logical test. */ #define CU_PASS(msg) \ { CU_assertImplementation(CU_TRUE, __LINE__, ("CU_PASS(" #msg ")"), __FILE__, "", CU_FALSE); } /** Simple assertion. * Reports failure with no other action. */ #define CU_ASSERT(value) \ { CU_assertImplementation((value), __LINE__, #value, __FILE__, "", CU_FALSE); } /** Simple assertion. * Reports failure and causes test to abort. */ #define CU_ASSERT_FATAL(value) \ { CU_assertImplementation((value), __LINE__, #value, __FILE__, "", CU_TRUE); } /** Simple assertion. * Reports failure with no other action. */ #define CU_TEST(value) \ { CU_assertImplementation((value), __LINE__, #value, __FILE__, "", CU_FALSE); } /** Simple assertion. * Reports failure and causes test to abort. */ #define CU_TEST_FATAL(value) \ { CU_assertImplementation((value), __LINE__, #value, __FILE__, "", CU_TRUE); } /** Record a failure without performing a logical test. */ #define CU_FAIL(msg) \ { CU_assertImplementation(CU_FALSE, __LINE__, ("CU_FAIL(" #msg ")"), __FILE__, "", CU_FALSE); } /** Record a failure without performing a logical test, and abort test. */ #define CU_FAIL_FATAL(msg) \ { CU_assertImplementation(CU_FALSE, __LINE__, ("CU_FAIL_FATAL(" #msg ")"), __FILE__, "", CU_TRUE); } /** Asserts that value is CU_TRUE. * Reports failure with no other action. */ #define CU_ASSERT_TRUE(value) \ { CU_assertImplementation((value), __LINE__, ("CU_ASSERT_TRUE(" #value ")"), __FILE__, "", CU_FALSE); } /** Asserts that value is CU_TRUE. * Reports failure and causes test to abort. */ #define CU_ASSERT_TRUE_FATAL(value) \ { CU_assertImplementation((value), __LINE__, ("CU_ASSERT_TRUE_FATAL(" #value ")"), __FILE__, "", CU_TRUE); } /** Asserts that value is CU_FALSE. * Reports failure with no other action. */ #define CU_ASSERT_FALSE(value) \ { CU_assertImplementation(!(value), __LINE__, ("CU_ASSERT_FALSE(" #value ")"), __FILE__, "", CU_FALSE); } /** Asserts that value is CU_FALSE. * Reports failure and causes test to abort. */ #define CU_ASSERT_FALSE_FATAL(value) \ { CU_assertImplementation(!(value), __LINE__, ("CU_ASSERT_FALSE_FATAL(" #value ")"), __FILE__, "", CU_TRUE); } /** Asserts that actual == expected. * Reports failure with no other action. */ #define CU_ASSERT_EQUAL(actual, expected) \ { CU_assertImplementation(((actual) == (expected)), __LINE__, ("CU_ASSERT_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that actual == expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation(((actual) == (expected)), __LINE__, ("CU_ASSERT_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that actual != expected. * Reports failure with no other action. */ #define CU_ASSERT_NOT_EQUAL(actual, expected) \ { CU_assertImplementation(((actual) != (expected)), __LINE__, ("CU_ASSERT_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that actual != expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_NOT_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation(((actual) != (expected)), __LINE__, ("CU_ASSERT_NOT_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that pointers actual == expected. * Reports failure with no other action. */ #define CU_ASSERT_PTR_EQUAL(actual, expected) \ { CU_assertImplementation(((void*)(actual) == (void*)(expected)), __LINE__, ("CU_ASSERT_PTR_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that pointers actual == expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_PTR_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation(((void*)(actual) == (void*)(expected)), __LINE__, ("CU_ASSERT_PTR_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that pointers actual != expected. * Reports failure with no other action. */ #define CU_ASSERT_PTR_NOT_EQUAL(actual, expected) \ { CU_assertImplementation(((void*)(actual) != (void*)(expected)), __LINE__, ("CU_ASSERT_PTR_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that pointers actual != expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_PTR_NOT_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation(((void*)(actual) != (void*)(expected)), __LINE__, ("CU_ASSERT_PTR_NOT_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that pointer value is NULL. * Reports failure with no other action. */ #define CU_ASSERT_PTR_NULL(value) \ { CU_assertImplementation((NULL == (void*)(value)), __LINE__, ("CU_ASSERT_PTR_NULL(" #value")"), __FILE__, "", CU_FALSE); } /** Asserts that pointer value is NULL. * Reports failure and causes test to abort. */ #define CU_ASSERT_PTR_NULL_FATAL(value) \ { CU_assertImplementation((NULL == (void*)(value)), __LINE__, ("CU_ASSERT_PTR_NULL_FATAL(" #value")"), __FILE__, "", CU_TRUE); } /** Asserts that pointer value is not NULL. * Reports failure with no other action. */ #define CU_ASSERT_PTR_NOT_NULL(value) \ { CU_assertImplementation((NULL != (void*)(value)), __LINE__, ("CU_ASSERT_PTR_NOT_NULL(" #value")"), __FILE__, "", CU_FALSE); } /** Asserts that pointer value is not NULL. * Reports failure and causes test to abort. */ #define CU_ASSERT_PTR_NOT_NULL_FATAL(value) \ { CU_assertImplementation((NULL != (void*)(value)), __LINE__, ("CU_ASSERT_PTR_NOT_NULL_FATAL(" #value")"), __FILE__, "", CU_TRUE); } /** Asserts that string actual == expected. * Reports failure with no other action. */ #define CU_ASSERT_STRING_EQUAL(actual, expected) \ { CU_assertImplementation(!(strcmp((const char*)(actual), (const char*)(expected))), __LINE__, ("CU_ASSERT_STRING_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that string actual == expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_STRING_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation(!(strcmp((const char*)(actual), (const char*)(expected))), __LINE__, ("CU_ASSERT_STRING_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that string actual != expected. * Reports failure with no other action. */ #define CU_ASSERT_STRING_NOT_EQUAL(actual, expected) \ { CU_assertImplementation((strcmp((const char*)(actual), (const char*)(expected))), __LINE__, ("CU_ASSERT_STRING_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that string actual != expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_STRING_NOT_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation((strcmp((const char*)(actual), (const char*)(expected))), __LINE__, ("CU_ASSERT_STRING_NOT_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that string actual == expected with length specified. * The comparison is limited to count characters. * Reports failure with no other action. */ #define CU_ASSERT_NSTRING_EQUAL(actual, expected, count) \ { CU_assertImplementation(!(strncmp((const char*)(actual), (const char*)(expected), (size_t)(count))), __LINE__, ("CU_ASSERT_NSTRING_EQUAL(" #actual "," #expected "," #count ")"), __FILE__, "", CU_FALSE); } /** Asserts that string actual == expected with length specified. * The comparison is limited to count characters. * Reports failure and causes test to abort. */ #define CU_ASSERT_NSTRING_EQUAL_FATAL(actual, expected, count) \ { CU_assertImplementation(!(strncmp((const char*)(actual), (const char*)(expected), (size_t)(count))), __LINE__, ("CU_ASSERT_NSTRING_EQUAL_FATAL(" #actual "," #expected "," #count ")"), __FILE__, "", CU_TRUE); } /** Asserts that string actual != expected with length specified. * The comparison is limited to count characters. * Reports failure with no other action. */ #define CU_ASSERT_NSTRING_NOT_EQUAL(actual, expected, count) \ { CU_assertImplementation((strncmp((const char*)(actual), (const char*)(expected), (size_t)(count))), __LINE__, ("CU_ASSERT_NSTRING_NOT_EQUAL(" #actual "," #expected "," #count ")"), __FILE__, "", CU_FALSE); } /** Asserts that string actual != expected with length specified. * The comparison is limited to count characters. * Reports failure and causes test to abort. */ #define CU_ASSERT_NSTRING_NOT_EQUAL_FATAL(actual, expected, count) \ { CU_assertImplementation((strncmp((const char*)(actual), (const char*)(expected), (size_t)(count))), __LINE__, ("CU_ASSERT_NSTRING_NOT_EQUAL_FATAL(" #actual "," #expected "," #count ")"), __FILE__, "", CU_TRUE); } /** Asserts that double actual == expected within the specified tolerance. * If actual is within granularity of expected, the assertion passes. * Reports failure with no other action. */ #define CU_ASSERT_DOUBLE_EQUAL(actual, expected, granularity) \ { CU_assertImplementation(((fabs((double)(actual) - (expected)) <= fabs((double)(granularity)))), __LINE__, ("CU_ASSERT_DOUBLE_EQUAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", CU_FALSE); } /** Asserts that double actual == expected within the specified tolerance. * If actual is within granularity of expected, the assertion passes. * Reports failure and causes test to abort. */ #define CU_ASSERT_DOUBLE_EQUAL_FATAL(actual, expected, granularity) \ { CU_assertImplementation(((fabs((double)(actual) - (expected)) <= fabs((double)(granularity)))), __LINE__, ("CU_ASSERT_DOUBLE_EQUAL_FATAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", CU_TRUE); } /** Asserts that double actual != expected within the specified tolerance. * If actual is within granularity of expected, the assertion fails. * Reports failure with no other action. */ #define CU_ASSERT_DOUBLE_NOT_EQUAL(actual, expected, granularity) \ { CU_assertImplementation(((fabs((double)(actual) - (expected)) > fabs((double)(granularity)))), __LINE__, ("CU_ASSERT_DOUBLE_NOT_EQUAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", CU_FALSE); } /** Asserts that double actual != expected within the specified tolerance. * If actual is within granularity of expected, the assertion fails. * Reports failure and causes test to abort. */ #define CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL(actual, expected, granularity) \ { CU_assertImplementation(((fabs((double)(actual) - (expected)) > fabs((double)(granularity)))), __LINE__, ("CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", CU_TRUE); } #ifdef USE_DEPRECATED_CUNIT_NAMES #ifndef BOOL /** Deprecated (version 2.0-2). @deprecated Use CU_BOOL. */ #define BOOL int #endif #ifndef TRUE /** Deprecated (version 2.0-2). @deprecated Use CU_TRUE. */ #define TRUE 1 #endif #ifndef FALSE /** Deprecated (version 2.0-2). @deprecated Use CU_FALSE. */ #define FALSE 0 #endif /** Deprecated (version 2.0-2). @deprecated Use CU_MAX_TEST_NAME_LENGTH. */ #define MAX_TEST_NAME_LENGTH 256 /** Deprecated (version 2.0-2). @deprecated Use CU_MAX_SUITE_NAME_LENGTH. */ #define MAX_SUITE_NAME_LENGTH 256 /** Deprecated (version 1). @deprecated Use CU_ASSERT_FATAL. */ #define ASSERT(value) { if (FALSE == (int)(value)) { CU_assertImplementation((BOOL)value, __LINE__, #value, __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_TRUE_FATAL. */ #define ASSERT_TRUE(value) { if (FALSE == (value)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_TRUE(" #value ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_FALSE_FATAL. */ #define ASSERT_FALSE(value) { if (FALSE != (value)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_FALSE(" #value ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_EQUAL_FATAL. */ #define ASSERT_EQUAL(actual, expected) { if ((actual) != (expected)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_NOT_EQUAL_FATAL. */ #define ASSERT_NOT_EQUAL(actual, expected) { if ((void*)(actual) == (void*)(expected)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_PTR_EQUAL_FATAL. */ #define ASSERT_PTR_EQUAL(actual, expected) { if ((void*)(actual) != (void*)(expected)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_PTR_NOT_EQUAL_FATAL. */ #define ASSERT_PTR_NOT_EQUAL(actual, expected) { if ((void*)(actual) == (void*)(expected)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_PTR_NULL_FATAL. */ #define ASSERT_PTR_NULL(value) { if (NULL != (void*)(value)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_NULL(" #value")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_PTR_NOT_NULL_FATAL. */ #define ASSERT_PTR_NOT_NULL(value) { if (NULL == (void*)(value)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_NOT_NULL(" #value")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_STRING_EQUAL_FATAL. */ #define ASSERT_STRING_EQUAL(actual, expected) { if (strcmp((const char*)actual, (const char*)expected)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_STRING_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_STRING_NOT_EQUAL_FATAL. */ #define ASSERT_STRING_NOT_EQUAL(actual, expected) { if (!strcmp((const char*)actual, (const char*)expected)) { CU_assertImplementation(TRUE, __LINE__, ("ASSERT_STRING_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_NSTRING_EQUAL_FATAL. */ #define ASSERT_NSTRING_EQUAL(actual, expected, count) { if (strncmp((const char*)actual, (const char*)expected, (size_t)count)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_NSTRING_EQUAL(" #actual "," #expected "," #count ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_NSTRING_NOT_EQUAL_FATAL. */ #define ASSERT_NSTRING_NOT_EQUAL(actual, expected, count) { if (!strncmp((const char*)actual, (const char*)expected, (size_t)count)) { CU_assertImplementation(TRUE, __LINE__, ("ASSERT_NSTRING_NOT_EQUAL(" #actual "," #expected "," #count ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_DOUBLE_EQUAL_FATAL. */ #define ASSERT_DOUBLE_EQUAL(actual, expected, granularity) { if ((fabs((double)actual - expected) > fabs((double)granularity))) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_DOUBLE_EQUAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL. */ #define ASSERT_DOUBLE_NOT_EQUAL(actual, expected, granularity) { if ((fabs((double)actual - expected) <= fabs((double)granularity))) { CU_assertImplementation(TRUE, __LINE__, ("ASSERT_DOUBLE_NOT_EQUAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", FALSE); return; }} #endif /* USE_DEPRECATED_CUNIT_NAMES */ #endif /* CUNIT_CUNIT_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/CUnit.h.in000066400000000000000000000453261260701235000177620ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * ASSERT Macro definitions and general CUnit configuration definitions. * * 09/Aug/2001 ASSERT definitions. (AK) * * 12/Mar/2003 New Assert definitions. (AK) * * 27/Jul/2003 Modified ASSERT_XXX Macro definitions. (AK) * * 15-Jul-2004 New interface, changed action on assert failure to not * return, provided _FATAL versions of assertions to return * from test function on failure. (JDS) * * 01-Sep-2004 Modified assertions for setjmp/longjmp mechanism of * aborting test runs, added CU_FAIL and CU_PASS macros. (JDS) * * 07-May-2005 Added CU_ prefix to remaining CUnit defines (BOOL, TRUE, * FALSE, MAX_...). Added CU_UNREFERENCED_PARAMETER() define. (JDS) */ /** @file * Basic CUnit include file for user and system code. * Defines macros for assertions for use in user test cases. * Basic system macro definitions also appear here. */ /** @addtogroup Framework * @{ */ #ifndef CUNIT_CUNIT_H_SEEN #define CUNIT_CUNIT_H_SEEN #include #include /** CUnit version number. */ #define CU_VERSION "@VERSION@-@RELEASE@" /* Max string lengths for names (includes terminating NULL. */ /** Maximum length of a test name string. */ #define CU_MAX_TEST_NAME_LENGTH 256 /** Maximim length of a suite name string. */ #define CU_MAX_SUITE_NAME_LENGTH 256 /* Global type Definitions to be used for boolean operators. */ #ifndef CU_BOOL /** Boolean type for CUnit use. */ #define CU_BOOL int #endif #ifndef CU_TRUE /** Boolean TRUE for CUnit use. */ #define CU_TRUE 1 #endif #ifndef CU_FALSE /** Boolean FALSE for CUnit use. */ #define CU_FALSE 0 #endif #ifndef CU_UNREFERENCED_PARAMETER /** Consistent approach to referencing unused parameters. */ #define CU_UNREFERENCED_PARAMETER(x) (void)x #endif #ifndef CU_MAX # define CU_MAX(a,b) (((a) >= (b)) ? (a) : (b)) #endif #ifndef CU_MIN # define CU_MIN(a,b) (((a) >= (b)) ? (b) : (a)) #endif #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__WIN32__) # ifdef CU_DLL # ifdef CU_BUILD_DLL # define CU_EXPORT __declspec(dllexport) # else # define CU_EXPORT __declspec(dllimport) # endif # else # define CU_EXPORT # endif # ifdef _MSC_VER # define snprintf _snprintf # endif #else # define CU_EXPORT #endif /* WIN32 */ #include "CUError.h" #include "TestDB.h" /* not needed here - included for user convenience */ #include "TestRun.h" /* not needed here - include (after BOOL define) for user convenience */ /** Record a pass condition without performing a logical test. */ #define CU_PASS(msg) \ { CU_assertImplementation(CU_TRUE, __LINE__, ("CU_PASS(" #msg ")"), __FILE__, "", CU_FALSE); } /** Simple assertion. * Reports failure with no other action. */ #define CU_ASSERT(value) \ { CU_assertImplementation((value), __LINE__, #value, __FILE__, "", CU_FALSE); } /** Simple assertion. * Reports failure and causes test to abort. */ #define CU_ASSERT_FATAL(value) \ { CU_assertImplementation((value), __LINE__, #value, __FILE__, "", CU_TRUE); } /** Simple assertion. * Reports failure with no other action. */ #define CU_TEST(value) \ { CU_assertImplementation((value), __LINE__, #value, __FILE__, "", CU_FALSE); } /** Simple assertion. * Reports failure and causes test to abort. */ #define CU_TEST_FATAL(value) \ { CU_assertImplementation((value), __LINE__, #value, __FILE__, "", CU_TRUE); } /** Record a failure without performing a logical test. */ #define CU_FAIL(msg) \ { CU_assertImplementation(CU_FALSE, __LINE__, ("CU_FAIL(" #msg ")"), __FILE__, "", CU_FALSE); } /** Record a failure without performing a logical test, and abort test. */ #define CU_FAIL_FATAL(msg) \ { CU_assertImplementation(CU_FALSE, __LINE__, ("CU_FAIL_FATAL(" #msg ")"), __FILE__, "", CU_TRUE); } /** Asserts that value is CU_TRUE. * Reports failure with no other action. */ #define CU_ASSERT_TRUE(value) \ { CU_assertImplementation((value), __LINE__, ("CU_ASSERT_TRUE(" #value ")"), __FILE__, "", CU_FALSE); } /** Asserts that value is CU_TRUE. * Reports failure and causes test to abort. */ #define CU_ASSERT_TRUE_FATAL(value) \ { CU_assertImplementation((value), __LINE__, ("CU_ASSERT_TRUE_FATAL(" #value ")"), __FILE__, "", CU_TRUE); } /** Asserts that value is CU_FALSE. * Reports failure with no other action. */ #define CU_ASSERT_FALSE(value) \ { CU_assertImplementation(!(value), __LINE__, ("CU_ASSERT_FALSE(" #value ")"), __FILE__, "", CU_FALSE); } /** Asserts that value is CU_FALSE. * Reports failure and causes test to abort. */ #define CU_ASSERT_FALSE_FATAL(value) \ { CU_assertImplementation(!(value), __LINE__, ("CU_ASSERT_FALSE_FATAL(" #value ")"), __FILE__, "", CU_TRUE); } /** Asserts that actual == expected. * Reports failure with no other action. */ #define CU_ASSERT_EQUAL(actual, expected) \ { CU_assertImplementation(((actual) == (expected)), __LINE__, ("CU_ASSERT_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that actual == expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation(((actual) == (expected)), __LINE__, ("CU_ASSERT_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that actual != expected. * Reports failure with no other action. */ #define CU_ASSERT_NOT_EQUAL(actual, expected) \ { CU_assertImplementation(((actual) != (expected)), __LINE__, ("CU_ASSERT_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that actual != expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_NOT_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation(((actual) != (expected)), __LINE__, ("CU_ASSERT_NOT_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that pointers actual == expected. * Reports failure with no other action. */ #define CU_ASSERT_PTR_EQUAL(actual, expected) \ { CU_assertImplementation(((const void*)(actual) == (const void*)(expected)), __LINE__, ("CU_ASSERT_PTR_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that pointers actual == expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_PTR_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation(((const void*)(actual) == (const void*)(expected)), __LINE__, ("CU_ASSERT_PTR_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that pointers actual != expected. * Reports failure with no other action. */ #define CU_ASSERT_PTR_NOT_EQUAL(actual, expected) \ { CU_assertImplementation(((const void*)(actual) != (const void*)(expected)), __LINE__, ("CU_ASSERT_PTR_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that pointers actual != expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_PTR_NOT_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation(((const void*)(actual) != (const void*)(expected)), __LINE__, ("CU_ASSERT_PTR_NOT_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that pointer value is NULL. * Reports failure with no other action. */ #define CU_ASSERT_PTR_NULL(value) \ { CU_assertImplementation((NULL == (const void*)(value)), __LINE__, ("CU_ASSERT_PTR_NULL(" #value")"), __FILE__, "", CU_FALSE); } /** Asserts that pointer value is NULL. * Reports failure and causes test to abort. */ #define CU_ASSERT_PTR_NULL_FATAL(value) \ { CU_assertImplementation((NULL == (const void*)(value)), __LINE__, ("CU_ASSERT_PTR_NULL_FATAL(" #value")"), __FILE__, "", CU_TRUE); } /** Asserts that pointer value is not NULL. * Reports failure with no other action. */ #define CU_ASSERT_PTR_NOT_NULL(value) \ { CU_assertImplementation((NULL != (const void*)(value)), __LINE__, ("CU_ASSERT_PTR_NOT_NULL(" #value")"), __FILE__, "", CU_FALSE); } /** Asserts that pointer value is not NULL. * Reports failure and causes test to abort. */ #define CU_ASSERT_PTR_NOT_NULL_FATAL(value) \ { CU_assertImplementation((NULL != (const void*)(value)), __LINE__, ("CU_ASSERT_PTR_NOT_NULL_FATAL(" #value")"), __FILE__, "", CU_TRUE); } /** Asserts that string actual == expected. * Reports failure with no other action. */ #define CU_ASSERT_STRING_EQUAL(actual, expected) \ { CU_assertImplementation(!(strcmp((const char*)(actual), (const char*)(expected))), __LINE__, ("CU_ASSERT_STRING_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that string actual == expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_STRING_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation(!(strcmp((const char*)(actual), (const char*)(expected))), __LINE__, ("CU_ASSERT_STRING_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that string actual != expected. * Reports failure with no other action. */ #define CU_ASSERT_STRING_NOT_EQUAL(actual, expected) \ { CU_assertImplementation((strcmp((const char*)(actual), (const char*)(expected))), __LINE__, ("CU_ASSERT_STRING_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", CU_FALSE); } /** Asserts that string actual != expected. * Reports failure and causes test to abort. */ #define CU_ASSERT_STRING_NOT_EQUAL_FATAL(actual, expected) \ { CU_assertImplementation((strcmp((const char*)(actual), (const char*)(expected))), __LINE__, ("CU_ASSERT_STRING_NOT_EQUAL_FATAL(" #actual "," #expected ")"), __FILE__, "", CU_TRUE); } /** Asserts that string actual == expected with length specified. * The comparison is limited to count characters. * Reports failure with no other action. */ #define CU_ASSERT_NSTRING_EQUAL(actual, expected, count) \ { CU_assertImplementation(!(strncmp((const char*)(actual), (const char*)(expected), (size_t)(count))), __LINE__, ("CU_ASSERT_NSTRING_EQUAL(" #actual "," #expected "," #count ")"), __FILE__, "", CU_FALSE); } /** Asserts that string actual == expected with length specified. * The comparison is limited to count characters. * Reports failure and causes test to abort. */ #define CU_ASSERT_NSTRING_EQUAL_FATAL(actual, expected, count) \ { CU_assertImplementation(!(strncmp((const char*)(actual), (const char*)(expected), (size_t)(count))), __LINE__, ("CU_ASSERT_NSTRING_EQUAL_FATAL(" #actual "," #expected "," #count ")"), __FILE__, "", CU_TRUE); } /** Asserts that string actual != expected with length specified. * The comparison is limited to count characters. * Reports failure with no other action. */ #define CU_ASSERT_NSTRING_NOT_EQUAL(actual, expected, count) \ { CU_assertImplementation((strncmp((const char*)(actual), (const char*)(expected), (size_t)(count))), __LINE__, ("CU_ASSERT_NSTRING_NOT_EQUAL(" #actual "," #expected "," #count ")"), __FILE__, "", CU_FALSE); } /** Asserts that string actual != expected with length specified. * The comparison is limited to count characters. * Reports failure and causes test to abort. */ #define CU_ASSERT_NSTRING_NOT_EQUAL_FATAL(actual, expected, count) \ { CU_assertImplementation((strncmp((const char*)(actual), (const char*)(expected), (size_t)(count))), __LINE__, ("CU_ASSERT_NSTRING_NOT_EQUAL_FATAL(" #actual "," #expected "," #count ")"), __FILE__, "", CU_TRUE); } /** Asserts that double actual == expected within the specified tolerance. * If actual is within granularity of expected, the assertion passes. * Reports failure with no other action. */ #define CU_ASSERT_DOUBLE_EQUAL(actual, expected, granularity) \ { CU_assertImplementation(((fabs((double)(actual) - (expected)) <= fabs((double)(granularity)))), __LINE__, ("CU_ASSERT_DOUBLE_EQUAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", CU_FALSE); } /** Asserts that double actual == expected within the specified tolerance. * If actual is within granularity of expected, the assertion passes. * Reports failure and causes test to abort. */ #define CU_ASSERT_DOUBLE_EQUAL_FATAL(actual, expected, granularity) \ { CU_assertImplementation(((fabs((double)(actual) - (expected)) <= fabs((double)(granularity)))), __LINE__, ("CU_ASSERT_DOUBLE_EQUAL_FATAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", CU_TRUE); } /** Asserts that double actual != expected within the specified tolerance. * If actual is within granularity of expected, the assertion fails. * Reports failure with no other action. */ #define CU_ASSERT_DOUBLE_NOT_EQUAL(actual, expected, granularity) \ { CU_assertImplementation(((fabs((double)(actual) - (expected)) > fabs((double)(granularity)))), __LINE__, ("CU_ASSERT_DOUBLE_NOT_EQUAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", CU_FALSE); } /** Asserts that double actual != expected within the specified tolerance. * If actual is within granularity of expected, the assertion fails. * Reports failure and causes test to abort. */ #define CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL(actual, expected, granularity) \ { CU_assertImplementation(((fabs((double)(actual) - (expected)) > fabs((double)(granularity)))), __LINE__, ("CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", CU_TRUE); } #ifdef USE_DEPRECATED_CUNIT_NAMES #ifndef BOOL /** Deprecated (version 2.0-2). @deprecated Use CU_BOOL. */ #define BOOL int #endif #ifndef TRUE /** Deprecated (version 2.0-2). @deprecated Use CU_TRUE. */ #define TRUE 1 #endif #ifndef FALSE /** Deprecated (version 2.0-2). @deprecated Use CU_FALSE. */ #define FALSE 0 #endif /** Deprecated (version 2.0-2). @deprecated Use CU_MAX_TEST_NAME_LENGTH. */ #define MAX_TEST_NAME_LENGTH 256 /** Deprecated (version 2.0-2). @deprecated Use CU_MAX_SUITE_NAME_LENGTH. */ #define MAX_SUITE_NAME_LENGTH 256 /** Deprecated (version 1). @deprecated Use CU_ASSERT_FATAL. */ #define ASSERT(value) { if (FALSE == (int)(value)) { CU_assertImplementation((BOOL)value, __LINE__, #value, __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_TRUE_FATAL. */ #define ASSERT_TRUE(value) { if (FALSE == (value)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_TRUE(" #value ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_FALSE_FATAL. */ #define ASSERT_FALSE(value) { if (FALSE != (value)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_FALSE(" #value ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_EQUAL_FATAL. */ #define ASSERT_EQUAL(actual, expected) { if ((actual) != (expected)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_NOT_EQUAL_FATAL. */ #define ASSERT_NOT_EQUAL(actual, expected) { if ((void*)(actual) == (void*)(expected)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_PTR_EQUAL_FATAL. */ #define ASSERT_PTR_EQUAL(actual, expected) { if ((void*)(actual) != (void*)(expected)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_PTR_NOT_EQUAL_FATAL. */ #define ASSERT_PTR_NOT_EQUAL(actual, expected) { if ((void*)(actual) == (void*)(expected)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_PTR_NULL_FATAL. */ #define ASSERT_PTR_NULL(value) { if (NULL != (void*)(value)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_NULL(" #value")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_PTR_NOT_NULL_FATAL. */ #define ASSERT_PTR_NOT_NULL(value) { if (NULL == (void*)(value)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_NOT_NULL(" #value")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_STRING_EQUAL_FATAL. */ #define ASSERT_STRING_EQUAL(actual, expected) { if (strcmp((const char*)actual, (const char*)expected)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_STRING_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_STRING_NOT_EQUAL_FATAL. */ #define ASSERT_STRING_NOT_EQUAL(actual, expected) { if (!strcmp((const char*)actual, (const char*)expected)) { CU_assertImplementation(TRUE, __LINE__, ("ASSERT_STRING_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_NSTRING_EQUAL_FATAL. */ #define ASSERT_NSTRING_EQUAL(actual, expected, count) { if (strncmp((const char*)actual, (const char*)expected, (size_t)count)) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_NSTRING_EQUAL(" #actual "," #expected "," #count ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_NSTRING_NOT_EQUAL_FATAL. */ #define ASSERT_NSTRING_NOT_EQUAL(actual, expected, count) { if (!strncmp((const char*)actual, (const char*)expected, (size_t)count)) { CU_assertImplementation(TRUE, __LINE__, ("ASSERT_NSTRING_NOT_EQUAL(" #actual "," #expected "," #count ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_DOUBLE_EQUAL_FATAL. */ #define ASSERT_DOUBLE_EQUAL(actual, expected, granularity) { if ((fabs((double)actual - expected) > fabs((double)granularity))) { CU_assertImplementation(FALSE, __LINE__, ("ASSERT_DOUBLE_EQUAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", FALSE); return; }} /** Deprecated (version 1). @deprecated Use CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL. */ #define ASSERT_DOUBLE_NOT_EQUAL(actual, expected, granularity) { if ((fabs((double)actual - expected) <= fabs((double)granularity))) { CU_assertImplementation(TRUE, __LINE__, ("ASSERT_DOUBLE_NOT_EQUAL(" #actual "," #expected "," #granularity ")"), __FILE__, "", FALSE); return; }} #endif /* USE_DEPRECATED_CUNIT_NAMES */ #endif /* CUNIT_CUNIT_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/CUnit_intl.h000066400000000000000000000032531260701235000203740ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2006 Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Internationalization support * * 05-May-2006 Initial implementation. (JDS) */ /** @file * Internal CUnit header supporting internationalization of * CUnit framework & interfaces. */ /** @addtogroup Framework * @{ */ #ifndef CUNIT_CUNIT_INTL_H_SEEN #define CUNIT_CUNIT_INTL_H_SEEN /* activate these when source preparation is complete #include #ifndef _ # define _(String) gettext (String) #endif #ifndef gettext_noop # define gettext_noop(String) String #endif #ifndef N_ # define N_(String) gettext_noop (String) #endif */ /* deactivate these when source preparation is complete */ #undef _ #define _(String) (String) #undef N_ #define N_(String) String #undef textdomain #define textdomain(Domain) #undef bindtextdomain #define bindtextdomain(Package, Directory) #endif /* CUNIT_CUNIT_INTL_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/Console.h000066400000000000000000000033501260701235000177240ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Contains Interface for console Run tests. * * Aug 2001 Initial implementation. (AK) * * 09/Aug/2001 Single interface to Console_run_tests. (AK) * * 20-Jul-2004 New interface, doxygen comments. (JDS) */ /** @file * Console interface with interactive output (user interface). */ /** @addtogroup Console * @{ */ #ifndef CUNIT_CONSOLE_H_SEEN #define CUNIT_CONSOLE_H_SEEN #include "CUnit.h" #include "TestDB.h" #ifdef __cplusplus extern "C" { #endif CU_EXPORT void CU_console_run_tests(void); /**< Run registered CUnit tests using the console interface. */ #ifdef USE_DEPRECATED_CUNIT_NAMES /** Deprecated (version 1). @deprecated Use CU_console_run_tests(). */ #define console_run_tests() CU_console_run_tests() #endif /* USE_DEPRECATED_CUNIT_NAMES */ #ifdef __cplusplus } #endif #endif /* CUNIT_CONSOLE_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/Jamfile000066400000000000000000000022621260701235000174440ustar00rootroot00000000000000# # Jamfile to build CUnit - Source Headers Directory # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP CUnit Headers ; CU_HEADERS = Automated.h Basic.h Console.h CUError.h CUnit.h CUCurses.h MyMem.h TestDB.h TestRun.h Util.h Win.h ; if $(INSTALL_DOC_DIR) { InstallCUnitFile $(INSTALL_INC_DIR) : $(CU_HEADERS) ; } cunit-2.1-3-dfsg/CUnit/Headers/Makefile.am000066400000000000000000000014631260701235000202100ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in CUnitIncludedir=${includedir}/CUnit AUTOMATED_INCLUDES = Automated.h BASIC_INCLUDES = Basic.h CONSOLE_INCLUDES = Console.h CURSES_INCLUDES = CUCurses.h FRAMEWORK_INCLUDES = CUError.h CUnit.h CUnit_intl.h MyMem.h TestDB.h TestRun.h Util.h # Default configuration without enabling anything INCLUDE_FILES = ${FRAMEWORK_INCLUDES} if ENABLE_BASIC BASIC_INCLUDE_FILES = $(BASIC_INCLUDES) endif if ENABLE_CONSOLE CONSOLE_INCLUDE_FILES = $(CONSOLE_INCLUDES) endif if ENABLE_AUTOMATED AUTOMATED_INCLUDE_FILES = $(AUTOMATED_INCLUDES) endif if ENABLE_CURSES CURSES_INCLUDE_FILES = $(CURSES_INCLUDES) endif INCLUDE_FILES += $(BASIC_INCLUDE_FILES) $(CONSOLE_INCLUDE_FILES) $(AUTOMATED_INCLUDE_FILES) $(CURSES_INCLUDE_FILES) CUnitInclude_HEADERS = ${INCLUDE_FILES} cunit-2.1-3-dfsg/CUnit/Headers/Makefile.in000066400000000000000000000423271260701235000202250ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = CUnit/Headers DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(srcdir)/CUnit.h.in \ $(am__CUnitInclude_HEADERS_DIST) 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CUnit.h CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__CUnitInclude_HEADERS_DIST = CUError.h CUnit.h CUnit_intl.h MyMem.h \ TestDB.h TestRun.h Util.h Basic.h Console.h Automated.h \ CUCurses.h am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(CUnitIncludedir)" HEADERS = $(CUnitInclude_HEADERS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ CUnitIncludedir = ${includedir}/CUnit AUTOMATED_INCLUDES = Automated.h BASIC_INCLUDES = Basic.h CONSOLE_INCLUDES = Console.h CURSES_INCLUDES = CUCurses.h FRAMEWORK_INCLUDES = CUError.h CUnit.h CUnit_intl.h MyMem.h TestDB.h TestRun.h Util.h # Default configuration without enabling anything INCLUDE_FILES = ${FRAMEWORK_INCLUDES} $(BASIC_INCLUDE_FILES) \ $(CONSOLE_INCLUDE_FILES) $(AUTOMATED_INCLUDE_FILES) \ $(CURSES_INCLUDE_FILES) @ENABLE_BASIC_TRUE@BASIC_INCLUDE_FILES = $(BASIC_INCLUDES) @ENABLE_CONSOLE_TRUE@CONSOLE_INCLUDE_FILES = $(CONSOLE_INCLUDES) @ENABLE_AUTOMATED_TRUE@AUTOMATED_INCLUDE_FILES = $(AUTOMATED_INCLUDES) @ENABLE_CURSES_TRUE@CURSES_INCLUDE_FILES = $(CURSES_INCLUDES) CUnitInclude_HEADERS = ${INCLUDE_FILES} all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu CUnit/Headers/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu CUnit/Headers/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): CUnit.h: $(top_builddir)/config.status $(srcdir)/CUnit.h.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-CUnitIncludeHEADERS: $(CUnitInclude_HEADERS) @$(NORMAL_INSTALL) @list='$(CUnitInclude_HEADERS)'; test -n "$(CUnitIncludedir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(CUnitIncludedir)'"; \ $(MKDIR_P) "$(DESTDIR)$(CUnitIncludedir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(CUnitIncludedir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(CUnitIncludedir)" || exit $$?; \ done uninstall-CUnitIncludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(CUnitInclude_HEADERS)'; test -n "$(CUnitIncludedir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(CUnitIncludedir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(HEADERS) installdirs: for dir in "$(DESTDIR)$(CUnitIncludedir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-CUnitIncludeHEADERS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-CUnitIncludeHEADERS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool cscopelist-am ctags ctags-am distclean \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install \ install-CUnitIncludeHEADERS install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-CUnitIncludeHEADERS uninstall-am # 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: cunit-2.1-3-dfsg/CUnit/Headers/MyMem.h000066400000000000000000000077671260701235000173660ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Contains Memory Related Defines to use internal routines to detect Memory Leak * in Debug Versions * * 18/Jun/2002 Memory Debug Functions. (AK) * * 17-Jul-2004 New interface for global function names. (JDS) * * 05-Sep-2004 Added internal test interface. (JDS) */ /** @file * Memory management functions (user interface). * Two versions of memory allocation/deallocation are available. * If compiled with MEMTRACE defined, CUnit keeps track of all * system allocations & deallocations. The memory record can * then be reported using CU_CREATE_MEMORY_REPORT. Otherwise, * standard system memory allocation is used without tracing. */ /** @addtogroup Framework * @{ */ #ifndef CUNIT_MYMEM_H_SEEN #define CUNIT_MYMEM_H_SEEN #ifdef __cplusplus extern "C" { #endif #ifdef MEMTRACE void* CU_calloc(size_t nmemb, size_t size, unsigned int uiLine, const char* szFileName); void* CU_malloc(size_t size, unsigned int uiLine, const char* szFileName); void CU_free(void *ptr, unsigned int uiLine, const char* szFileName); void* CU_realloc(void *ptr, size_t size, unsigned int uiLine, const char* szFileName); CU_EXPORT void CU_dump_memory_usage(const char*); /** c-allocate with memory tracking. */ #define CU_CALLOC(x, y) CU_calloc((x), (y), __LINE__, __FILE__) /** m-allocate with memory tracking. */ #define CU_MALLOC(x) CU_malloc((x), __LINE__, __FILE__) /** Free with memory tracking. */ #define CU_FREE(x) CU_free((x), __LINE__, __FILE__) /** Reallocate with memory tracking. */ #define CU_REALLOC(x, y) CU_realloc((x), (y), __LINE__, __FILE__) /** Generate report on tracked memory. */ #define CU_CREATE_MEMORY_REPORT(x) CU_dump_memory_usage((x)) /** Generate report on tracked memory (old macro). */ #define CU_DUMP_MEMORY_USAGE(x) CU_dump_memory_usage((x)) #else /* MEMTRACE */ /** Standard calloc() if MEMTRACE not defined. */ #define CU_CALLOC(x, y) calloc((x), (y)) /** Standard malloc() if MEMTRACE not defined. */ #define CU_MALLOC(x) malloc((x)) /** Standard free() if MEMTRACE not defined. */ #define CU_FREE(x) free((x)) /** Standard realloc() if MEMTRACE not defined. */ #define CU_REALLOC(x, y) realloc((x), (y)) /** No-op if MEMTRACE not defined. */ #define CU_CREATE_MEMORY_REPORT(x) /** No-op if MEMTRACE not defined. */ #define CU_DUMP_MEMORY_USAGE(x) #endif /* MEMTRACE */ #ifdef CUNIT_BUILD_TESTS /** Disable memory allocation for testing purposes. */ void test_cunit_deactivate_malloc(void); /** Enable memory allocation for testing purposes. */ void test_cunit_activate_malloc(void); /** Retrieve number of memory events for a given pointer */ unsigned int test_cunit_get_n_memevents(void* pLocation); /** Retrieve number of allocations for a given pointer */ unsigned int test_cunit_get_n_allocations(void* pLocation); /** Retrieve number of deallocations for a given pointer */ unsigned int test_cunit_get_n_deallocations(void* pLocation); void test_cunit_MyMem(void); #endif /* CUNIT_BUILD_TESTS */ #ifdef __cplusplus } #endif #endif /* CUNIT_MYMEM_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/TestDB.h000066400000000000000000001227341260701235000174570ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Contains all the Type Definitions and functions declarations * for the CUnit test database maintenance. * * Aug 2001 Initial implementation. (AK) * * 09/Aug/2001 Added Preprocessor conditionals for the file. (AK) * * 24/aug/2001 Made the linked list from SLL to DLL(doubly linked list). (AK) * * 31-Aug-2004 Restructured to eliminate global variables error_number, * g_pTestRegistry; new interface, support for deprecated * version 1 interface, moved error handling code to * CUError.[ch], moved test run counts and _TestResult out * of TestRegistry to TestRun.h. (JDS) * * 01-Sep-2004 Added jmp_buf to CU_Test. (JDS) * * 05-Sep-2004 Added internal test interface. (JDS) * * 15-Apr-2006 Removed constraint that suites/tests be uniquely named. * Added ability to turn individual tests/suites on or off. * Moved doxygen comments for public API here to header. (JDS) * * 16-Avr-2007 Added setup and teardown functions. (CJN) * */ /** @file * Management functions for tests, suites, and the test registry. * Unit testing in CUnit follows the common structure of unit * tests aggregated in suites, which are themselves aggregated * in a test registry. This module provides functions and * typedef's to support the creation, registration, and manipulation * of test cases, suites, and the registry. */ /** @addtogroup Framework * @{ */ #ifndef CUNIT_TESTDB_H_SEEN #define CUNIT_TESTDB_H_SEEN #include /* jmp_buf */ #include "CUnit.h" #include "CUError.h" #ifdef __cplusplus extern "C" { #endif /*================================================================= * Typedefs and Data Structures *=================================================================*/ typedef int (*CU_InitializeFunc)(void); /**< Signature for suite initialization function. */ typedef int (*CU_CleanupFunc)(void); /**< Signature for suite cleanup function. */ typedef void (*CU_TestFunc)(void); /**< Signature for a testing function in a test case. */ typedef void (*CU_SetUpFunc)(void); /**< Signature for a test SetUp function. */ typedef void (*CU_TearDownFunc)(void); /**< Signature for a test TearDown function. */ /*----------------------------------------------------------------- * CU_Test, CU_pTest *-----------------------------------------------------------------*/ /** CUnit test case data type. * CU_Test is a double linked list of unit tests. Each test has * a name, a callable test function, and a flag for whether the * test is active and thus executed during a test run. A test * also holds links to the next and previous tests in the list, * as well as a jmp_buf reference for use in implementing fatal * assertions.

* * Generally, the linked list includes tests which are associated * with each other in a CU_Suite. As a result, tests are run in * the order in which they are added to a suite (see CU_add_test()). *

* * It is recommended that the name of each CU_Test in a suite have * a unique name. Otherwise, only the first-registered test having * a given name will be accessible by that name. There are no * restrictions on the test function. This means that the same * function could, in principle, be called more than once from * different tests. * * @see CU_Suite * @see CU_TestRegistry */ typedef struct CU_Test { char* pName; /**< Test name. */ CU_BOOL fActive; /**< Flag for whether test is executed during a run. */ CU_TestFunc pTestFunc; /**< Pointer to the test function. */ jmp_buf* pJumpBuf; /**< Jump buffer for setjmp/longjmp test abort mechanism. */ struct CU_Test* pNext; /**< Pointer to the next test in linked list. */ struct CU_Test* pPrev; /**< Pointer to the previous test in linked list. */ } CU_Test; typedef CU_Test* CU_pTest; /**< Pointer to a CUnit test case. */ /*----------------------------------------------------------------- * CU_Suite, CU_pSuite *-----------------------------------------------------------------*/ /** CUnit suite data type. * CU_Suite is a linked list of CU_Test containers. Each suite has * a name, a count of registered unit tests, and a flag for whether * the suite is active during test runs. It also holds pointers to * optional initialization and cleanup functions. If non-NULL, these * are called before and after running the suite's tests, respectively. * In addition, the suite holds a pointer to the head of the linked * list of associated CU_Test objects. Finally, pointers to the next * and previous suites in the linked list are maintained.

* * Generally, the linked list includes suites which are associated with * each other in a CU_TestRegistry. As a result, suites are run in the * order in which they are registered (see CU_add_suite()).

* * It is recommended that name of each CU_Suite in a test registry have * a unique name. Otherwise, only the first-registered suite having a * given name will be accessible by name. There are no restrictions on * the contained tests. This means that the same CU_Test could, in * principle, be run more than once fron different suites. * * @see CU_Test * @see CU_TestRegistry */ typedef struct CU_Suite { char* pName; /**< Suite name. */ CU_BOOL fActive; /**< Flag for whether suite is executed during a run. */ CU_pTest pTest; /**< Pointer to the 1st test in the suite. */ CU_InitializeFunc pInitializeFunc; /**< Pointer to the suite initialization function. */ CU_CleanupFunc pCleanupFunc; /**< Pointer to the suite cleanup function. */ CU_SetUpFunc pSetUpFunc; /**< Pointer to the test SetUp function. */ CU_TearDownFunc pTearDownFunc; /**< Pointer to the test TearDown function. */ unsigned int uiNumberOfTests; /**< Number of tests in the suite. */ struct CU_Suite* pNext; /**< Pointer to the next suite in linked list. */ struct CU_Suite* pPrev; /**< Pointer to the previous suite in linked list. */ unsigned int uiNumberOfTestsFailed; /**< Number of failed tests in the suite. */ unsigned int uiNumberOfTestsSuccess; /**< Number of success tests in the suite. */ } CU_Suite; typedef CU_Suite* CU_pSuite; /**< Pointer to a CUnit suite. */ /*----------------------------------------------------------------- * CU_TestRegistry, CU_pTestRegistry *-----------------------------------------------------------------*/ /** CUnit test registry data type. * CU_TestRegisty is the repository for suites containing unit tests. * The test registry maintains a count of the number of CU_Suite * objects contained in the registry, as well as a count of the total * number of CU_Test objects associated with those suites. It also * holds a pointer to the head of the linked list of CU_Suite objects. *

* * With this structure, the user will normally add suites implictly to * the internal test registry using CU_add_suite(), and then add tests * to each suite using CU_add_test(). Test runs are then initiated * using one of the appropriate functions in TestRun.c via one of the * user interfaces.

* * Automatic creation and destruction of the internal registry and its * objects is available using CU_initialize_registry() and * CU_cleanup_registry(), respectively. For internal and testing * purposes, the internal registry can be retrieved and assigned. * Functions are also provided for creating and destroying independent * registries.

* * Note that earlier versions of CUnit also contained a pointer to a * linked list of CU_FailureRecord objects (termed _TestResults). * This has been removed from theregistry and relocated to TestRun.c. * * @see CU_Test * @see CU_Suite * @see CU_initialize_registry() * @see CU_cleanup_registry() * @see CU_get_registry() * @see CU_set_registry() * @see CU_create_new_registry() * @see CU_destroy_existing_registry() */ typedef struct CU_TestRegistry { #ifdef USE_DEPRECATED_CUNIT_NAMES /** Union to support v1.1-1 member name. */ union { unsigned int uiNumberOfSuites; /**< Number of suites in the test registry. */ unsigned int uiNumberOfGroups; /**< Deprecated (version 1). @deprecated Use uiNumberOfSuites. */ }; unsigned int uiNumberOfTests; /**< Number of tests in the test registry. */ /** Union to support v1.1-1 member name. */ union { CU_pSuite pSuite; /**< Pointer to the 1st suite in the test registry. */ CU_pSuite pGroup; /**< Deprecated (version 1). @deprecated Use pSuite. */ }; #else unsigned int uiNumberOfSuites; /**< Number of registered suites in the registry. */ unsigned int uiNumberOfTests; /**< Total number of registered tests in the registry. */ CU_pSuite pSuite; /**< Pointer to the 1st suite in the test registry. */ #endif } CU_TestRegistry; typedef CU_TestRegistry* CU_pTestRegistry; /**< Pointer to a CUnit test registry. */ /*================================================================= * Public interface functions *=================================================================*/ CU_EXPORT CU_ErrorCode CU_initialize_registry(void); /**< * Initializes the framework test registry. * Any existing registry is freed, including all stored suites * and associated tests. It is not necessary to explicitly call * CU_cleanup_registry() before reinitializing the framework. * The most recent stored test results are also cleared.

* * This function must not be called during a test run (checked * by assertion) * * @return CUE_NOMEMORY if memory for the new registry cannot * be allocated, CUE_SUCCESS otherwise. * @see CU_cleanup_registry * @see CU_get_registry * @see CU_set_registry * @see CU_registry_initialized */ CU_EXPORT void CU_cleanup_registry(void); /**< * Clears the test registry. * The active test registry is freed, including all stored suites * and associated tests. The most recent stored test results are * also cleared. After calling this function, CUnit suites cannot * be added until CU_initialize_registry() or CU_set_registry() is * called. Further, any pointers to suites or test cases held by * the user will be invalidated by calling this function.

* * This function may be called multiple times without generating * an error condition. However, this function must not be * called during a test run (checked by assertion)

. * * @see CU_initialize_registry * @see CU_get_registry * @see CU_set_registry */ CU_EXPORT CU_BOOL CU_registry_initialized(void); /**< * Checks whether the test registry has been initialized. * * @return CU_TRUE if the registry has been initialized, * CU_FALSE otherwise. * @see CU_initialize_registry * @see CU_cleanup_registry */ CU_EXPORT CU_pSuite CU_add_suite(const char *strName, CU_InitializeFunc pInit, CU_CleanupFunc pClean); /**< * Creates a new test suite and adds it to the test registry. * This function creates a new test suite having the specified * name and initialization/cleanup functions and adds it to the * test registry. The new suite will be active and able to be * executed during a test run. The test registry must be * initialized before calling this function (checked by assertion). * pInit and pClean may be NULL, in which case no corresponding * initialization of cleanup function will be called when the suite * is run. strName may be empty ("") but may not be NULL.

* * The return value is a pointer to the newly-created suite, or * NULL if there was a problem with the suite creation or addition. * An error code is also set for the framework. Note that if the * name specified for the new suite is a duplicate, the suite will * be created and added but the error code will be set to CUE_DUP_SUITE. * The duplicate suite will not be accessible by name.

* * NOTE - the CU_pSuite pointer returned should NOT BE FREED BY * THE USER. The suite is freed by the CUnit system when * CU_cleanup_registry() is called. This function must not * be called during a test run (checked by assertion).

* * CU_add_suite() sets the following error codes: * - CUE_SUCCESS if no errors occurred. * - CUE_NOREGISTRY if the registry has not been initialized. * - CUE_NO_SUITENAME if strName is NULL. * - CUE_DUP_SUITE if a suite having strName is already registered. * - CUE_NOMEMORY if a memory allocation failed. * * @param strName Name for the new test suite (non-NULL). * @param pInit Initialization function to call before running suite. * @param pClean Cleanup function to call after running suite. * @return A pointer to the newly-created suite (NULL if creation failed) */ CU_EXPORT CU_pSuite CU_add_suite_with_setup_and_teardown(const char *strName, CU_InitializeFunc pInit, CU_CleanupFunc pClean, CU_SetUpFunc pSetup, CU_TearDownFunc pTear); /**< * The same as CU_add_suite but also adds setup and tear down callbacks for * each test in this suite. * * @param pSetup SetUp function to call before running each test. * @param pTear TearDown function to call after running each test. */ CU_EXPORT CU_ErrorCode CU_set_suite_active(CU_pSuite pSuite, CU_BOOL fNewActive); /**< * Activates or deactivates a suite. * Only activated suites can be executed during a test run. * By default a suite is active upon creation, but can be deactivated * by passing it along with CU_FALSE to this function. The suite * can be reactivated by passing it along with CU_TRUE. The current * value of the active flag is available as pSuite->fActive. If pSuite * is NULL then error code CUE_NOSUITE is returned. * * @param pSuite Pointer to the suite to modify (non-NULL). * @param fNewActive If CU_TRUE then the suite will be activated; * if CU_FALSE it will be deactivated. * @return Returns CUE_NOSUITE if pSuite is NULL, CUE_SUCCESS if all is well. */ CU_EXPORT CU_ErrorCode CU_set_suite_name(CU_pSuite pSuite, const char *strNewName); /**< * Modifies the name of a suite. * This function allows the name associated with a suite to * be changed. It is not recommended that a suite name be changed, * nor should it be necessary under most circumstances. However, * this function is provided for those clients who need to change * a suite's name. The current value of the suite's name * is available as pSuite->pName. CUE_SUCCESS is returned if the * function succeeds in changing the name. CUE_NOSUITE is returned if * pSuite is NULL, and CUE_NO_SUITENAME if strNewName is NULL. * * @param pSuite Pointer to the suite to modify (non-NULL). * @param strNewName Pointer to string containing new suite name (non-NULL). * @return Returns CUE_NOSUITE if pSuite is NULL, CUE_NO_SUITENAME if * strNewName is NULL, and CUE_SUCCESS if all is well. */ CU_EXPORT CU_ErrorCode CU_set_suite_initfunc(CU_pSuite pSuite, CU_InitializeFunc pNewInit); /**< * Modifies the initialization function of a suite. * This function allows the initialization function associated with * a suite to be changed. This is neither recommended nor should it * be necessary under most circumstances. However, this function is * provided for those clients who need to change the function. The * current value of the function is available as pSuite->pInitializeFunc. * CUE_SUCCESS is returned if the function succeeds, or CUE_NOSUITE if * pSuite is NULL. pNewInit may be NULL, which indicates the suite has * no initialization function. * * @param pSuite Pointer to the suite to modify (non-NULL). * @param pNewInit Pointer to function to use to initialize suite. * @return Returns CUE_NOSUITE if pSuite is NULL, and CUE_SUCCESS if * all is well. */ CU_EXPORT CU_ErrorCode CU_set_suite_cleanupfunc(CU_pSuite pSuite, CU_CleanupFunc pNewClean); /**< * Modifies the cleanup function of a suite. * This function allows the cleanup function associated with a suite to * be changed. This is neither recommended nor should it be necessary * under most circumstances. However, this function is provided for those * clients who need to change the function. The current value of the * function is available as pSuite->pCleanupFunc. CUE_SUCCESS is returned * if the function succeeds, or CUE_NOSUITE if pSuite is NULL. pNewClean * may be NULL, which indicates the suite has no cleanup function. * * @param pSuite Pointer to the suite to modify (non-NULL). * @param pNewClean Pointer to function to use to clean up suite. * @return Returns CUE_NOSUITE if pSuite is NULL, and CUE_SUCCESS if * all is well. */ CU_EXPORT CU_pSuite CU_get_suite(const char* strName); /**< * Retrieves the suite having the specified name. * Searches the active test registry and returns a pointer to the 1st * suite found. NULL is returned if no suite having the specified name * is found. In addition, the framework error state is set to CUE_NOREGISTRY * if the registry is not initialized or to CUE_NO_SUITENAME if strName is NULL. * If the return value is NULL and framework error state is CUE_SUCCESS, then * the search simply failed to find the specified name. * Use CU_get_suite_at_pos() to retrieve a suite by position rather than name. * * @param strName The name of the suite to search for (non-NULL). * @return Returns a pointer to the suite, or NULL if not found or an error occurred. * @see CU_get_suite_at_pos() */ CU_EXPORT CU_pSuite CU_get_suite_at_pos(unsigned int pos); /**< * Retrieves the suite at the specified position. * Iterates the active test registry and returns a pointer to the suite at * position pos. pos is a 1-based index having valid values * [1 .. CU_get_registry()->uiNumberOfSuites] and corresponds to the order in * which suites were registered. If pos is invalid or an error occurs, 0 is * returned. In addition, the framework error state is set to CUE_NOREGISTRY if * the registry is not initialized, or CUE_SUCCESS if pos was invalid. Use * CU_get_suite() to retrieve a suite by name rather than position. * * @param pos The 1-based position of the suite to fetch. * @return Returns a pointer to the suite, or 0 if not found or an error occurred. * @see CU_get_suite() */ CU_EXPORT unsigned int CU_get_suite_pos(CU_pSuite pSuite); /**< * Looks up the position of the specified suite. * The position is a 1-based index of suites in the active test registry which * corresponds to the order in which suites were registered. If pSuite is not * found or an error occurs, 0 is returned. In addition, the framework error * state is set to CUE_NOREGISTRY if the registry is not initialized, or * CUE_NOSUITE if pSuite is NULL. The returned position may be used to retrieve * the suite using CU_get_suite_by_pos(). * * @param pSuite Pointer to the suite to find (non-NULL). * @return Returns the 1-based position of pSuite in the registry, or NULL if * not found or an error occurred. * @see CU_get_suite_by_pos() * @see CU_get_suite_pos_by_name() */ CU_EXPORT unsigned int CU_get_suite_pos_by_name(const char* strName); /**< * Looks up the position of the suite having the specified name. * The position is a 1-based index of suites in the active test registry which * corresponds to the order in which suites were registered. If no suite has the * specified name or an error occurs, 0 is returned. In addition, the framework error * state is set to CUE_NOREGISTRY if the registry is not initialized, or * CUE_NO_SUITENAME if strName is NULL. The search ends at the 1st suite found having * name strName. The returned position may be used to retrieve the suite using * CU_get_suite_by_pos(). * * @param strName Name of the suite to find (non-NULL). * @return Returns the 1-based position of pSuite in the registry, or NULL if * not found or an error occurred. * @see CU_get_suite_by_pos() * @see CU_get_suite_pos_by_name() */ CU_EXPORT CU_pTest CU_add_test(CU_pSuite pSuite, const char* strName, CU_TestFunc pTestFunc); /**< * This function creates a new test having the specified name * and function, and adds it to the specified suite. The new test * is active and able to be executed during a test run. At present, * there is no mechanism for creating a test case independent of a * suite. Neither pSuite, strName, nor pTestFunc may be NULL. * * The return value is a pointer to the newly-created test, or * NULL if there was a problem with the test creation or addition. * An error code is also set for the framework. Note that if the * name specified for the new test is a duplicate within pSuite, * the test will be created and added but the error code will be * set to CUE_DUP_TEST. The duplicate test will not be accessible * by name.

* * NOTE - the CU_pTest pointer returned should NOT BE FREED BY * THE USER. The test is freed by the CUnit system when * CU_cleanup_registry() is called. This function must not * be called during a test run (checked by assertion).

* CU_add_test() sets the following error codes: * - CUE_SUCCESS if no errors occurred. * - CUE_NOREGISTRY if the registry has not been initialized. * - CUE_NOSUITE if pSuite is NULL. * - CUE_NO_TESTNAME if strName is NULL. * - CUE_NOTEST if pTestFunc is NULL. * - CUE_DUP_TEST if a test having strName is already registered to pSuite. * - CUE_NOMEMORY if a memory allocation failed.

* * @param pSuite Test suite to which to add new test (non-NULL). * @param strName Name for the new test case (non-NULL). * @param pTest Function to call when running the test (non-NULL). * @return A pointer to the newly-created test (NULL if creation failed) */ CU_EXPORT CU_ErrorCode CU_set_test_active(CU_pTest pTest, CU_BOOL fNewActive); /**< * Activates or deactivates a specific test. * Only activated tests can be executed during a test run. * By default a test is active upon creation, but can be deactvated * by passing it along with CU_FALSE to this function. The test * can be reactivated by passing it along with CU_TRUE. * The current value of the active flag is available as pTest->fActive. * If pTest is NULL then error code CUE_NOTEST is returned. Otherwise * CUE_SUCCESS is returned. * * @param pTest Pointer to the test to modify (non-NULL). * @param fNewActive If CU_TRUE then test will be activated; * if CU_FALSE it will be deactivated. * @return Returns CUE_NOTEST if pTest is NULL, CUE_SUCCESS if all is well. */ CU_EXPORT CU_ErrorCode CU_set_test_name(CU_pTest pTest, const char *strNewName); /**< * Modifies the name of a test. * This function allows the name associated with a test to * be changed. It is not recommended that a test name be changed, * nor should it be necessary under most circumstances. However, * this function is provided for those clients who need to change * a test's name. The current value of the test's name is * available as pTest->pName. CUE_SUCCESS is returned if the * function succeeds in changing the name. CUE_NOTEST is returned if * pTest is NULL, and CUE_NO_TESTNAME if strNewName is NULL. * * @param pTest Pointer to the test to modify (non-NULL). * @param strNewName Pointer to string containing new test name (non-NULL). * @return Returns CUE_NOTEST if pTest is NULL, CUE_NO_TESTNAME if * strNewName is NULL, and CUE_SUCCESS if all is well. */ CU_EXPORT CU_ErrorCode CU_set_test_func(CU_pTest pTest, CU_TestFunc pNewFunc); /**< * Modifies the test function of a test. * This function allows the test function associated with a test to be * changed. This is neither recommended nor should it be necessary under * most circumstances. However, this function is provided for those * clients who need to change the test function. The current value of * the test function is available as pTest->pTestFunc. CUE_SUCCESS is * returned if the function succeeds, or CUE_NOTEST if either pTest or * pNewFunc is NULL. * * @param pTest Pointer to the test to modify (non-NULL). * @param pNewFunc Pointer to function to use for test function (non-NULL). * @return Returns CUE_NOTEST if pTest or pNewFunc is NULL, and CUE_SUCCESS * if all is well. */ CU_EXPORT CU_pTest CU_get_test(CU_pSuite pSuite, const char *strName); /**< * Retrieves the test having the specified name. * Searches pSuite and returns a pointer to the 1st test found named strName. * NULL is returned if no test having the specified name is found in pSuite. * In addition, the framework error state is set as follows: * - CUE_NOREGISTRY if the registry is not initialized * - CUE_NOSUITE if pSuite is NULL * - CUE_NO_TESTNAME if strName is NULL. * * If the return value is NULL and framework error state is CUE_SUCCESS, then * the search simply failed to find the specified name. Use CU_get_test_at_pos() * to retrieve a test by position rather than name. * * @param pSuite Pointer to the suite to search (non-NULL). * @param strName The name of the test to search for (non-NULL). * @return Returns a pointer to the test, or NULL if not found or an error occurred. * @see CU_get_test_at_pos() */ CU_EXPORT CU_pTest CU_get_test_at_pos(CU_pSuite pSuite, unsigned int pos); /**< * Retrieves the test at the specified position in pSuite. * Iterates the tests registered in pSuite and returns a pointer to the * test at position pos. pos is a 1-based index having valid values * [1 .. pSuite->uiNumberOfTests] and corresponds to the order in * which tests were added to pSuite. If pos is invalid or an error occurs, 0 is * returned. In addition, the framework error state is set as follows: * - CUE_NOREGISTRY if the registry is not initialized * - CUE_NOSUITE if pSuite is NULL * Use CU_get_test() to retrieve a test by name rather than position. * * @param pSuite Pointer to the suite to search (non-NULL). * @param pos The 1-based position of the test to fetch. * @return Returns a pointer to the test, or 0 if not found or an error occurred. * @see CU_get_test() */ CU_EXPORT unsigned int CU_get_test_pos(CU_pSuite pSuite, CU_pTest pTest); /**< * Looks up the position of the specified test in pSuite. * The position is a 1-based index of tests in pSuite which corresponds to the * order in which tests were added. If pTest is not found or an error occurs, * 0 is returned. In addition, the framework error state is set as follows: * - CUE_NOREGISTRY if the registry is not initialized * - CUE_NOSUITE if pSuite is NULL * - CUE_NOTEST if pTest is NULL * * The returned position may be used to retrieve the test using CU_get_test_by_pos(). * * @param pSuite Pointer to the suite to search (non-NULL). * @param pTest Pointer to the test to find (non-NULL). * @return Returns the 1-based position of pTest in pSuite, or NULL if * not found or an error occurred. * @see CU_get_test_by_pos() * @see CU_get_test_pos_by_name() */ CU_EXPORT unsigned int CU_get_test_pos_by_name(CU_pSuite pSuite, const char *strName); /**< * Looks up the position of the test having the specified name in pSuite. * The position is a 1-based index of tests in pSuite which corresponds to the order * in which tests were added. If no test has the specified name or an error occurs, * 0 is returned. In addition, the framework error state is set as follows: * - CUE_NOREGISTRY if the registry is not initialized * - CUE_NOSUITE if pSuite is NULL * - CUE_NO_TESTNAME if strName is NULL * The search ends at the 1st test found having name strName. The returned position * may be used to retrieve the suite using CU_get_test_by_pos(). * * @param pSuite Pointer to the suite to search (non-NULL). * @param strName Name of the test to find (non-NULL). * @return Returns the 1-based position of pTest in pSuite, or NULL if * not found or an error occurred. * @see CU_get_test_by_pos() * @see CU_get_test_pos_by_name() */ #define CU_ADD_TEST(suite, test) (CU_add_test(suite, #test, (CU_TestFunc)test)) /**< Shortcut macro for adding a test to a suite. */ /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ /* This section is based conceptually on code * Copyright (C) 2004 Aurema Pty Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 * * Derived from code contributed by K. Cheung and Aurema Pty Ltd. (thanks!) * test_case_t, test_group_t, test_suite_t */ /** * Test case parameters structure. * This data type is provided to assist CUnit users manage collections of * tests and suites. It is intended to be used to build arrays of test case * parameters that can be then be referred to in a CU_suite_info_t variable. */ typedef struct CU_TestInfo { const char *pName; /**< Test name. */ CU_TestFunc pTestFunc; /**< Test function. */ } CU_TestInfo; typedef CU_TestInfo* CU_pTestInfo; /**< Pointer to CU_TestInfo type. */ /** * Suite parameters. * This data type is provided to assist CUnit users manage collections of * tests and suites. It is intended to be used to build arrays of suite * parameters that can be passed to a bulk registration function such as * CU_register_suite() or CU_register_suites(). */ typedef struct CU_SuiteInfo { const char *pName; /**< Suite name. */ CU_InitializeFunc pInitFunc; /**< Suite initialization function. */ CU_CleanupFunc pCleanupFunc; /**< Suite cleanup function */ CU_SetUpFunc pSetUpFunc; /**< Pointer to the test SetUp function. */ CU_TearDownFunc pTearDownFunc; /**< Pointer to the test TearDown function. */ CU_TestInfo *pTests; /**< Test case array - must be NULL terminated. */ } CU_SuiteInfo; typedef CU_SuiteInfo* CU_pSuiteInfo; /**< Pointer to CU_SuiteInfo type. */ #define CU_TEST_INFO_NULL { NULL, NULL } /**< NULL CU_test_info_t to terminate arrays of tests. */ #define CU_SUITE_INFO_NULL { NULL, NULL, NULL, NULL, NULL, NULL } /**< NULL CU_suite_info_t to terminate arrays of suites. */ CU_EXPORT CU_ErrorCode CU_register_suites(CU_SuiteInfo suite_info[]); /**< * Registers the suites in a single CU_SuiteInfo array. * Multiple arrays can be registered using CU_register_nsuites(). * * @param suite_info NULL-terminated array of CU_SuiteInfo items to register. * @return A CU_ErrorCode indicating the error status. * @see CU_register_suites() */ CU_EXPORT CU_ErrorCode CU_register_nsuites(int suite_count, ...); /**< * Registers multiple suite arrays in CU_SuiteInfo format. * The function accepts a variable number of suite arrays to be registered. * The number of arrays is indicated by the value of the 1st argument, * suite_count. Each suite in each array is registered with the CUnit test * registry, along with all of the associated tests. * * @param suite_count The number of CU_SuiteInfo* arguments to follow. * @param ... suite_count number of CU_SuiteInfo* arguments. NULLs are ignored. * @return A CU_ErrorCode indicating the error status. * @see CU_register_suites() */ #ifdef USE_DEPRECATED_CUNIT_NAMES typedef CU_TestInfo test_case_t; /**< Deprecated (version 1). @deprecated Use CU_TestInfo. */ typedef CU_SuiteInfo test_group_t; /**< Deprecated (version 1). @deprecated Use CU_SuiteInfo. */ /** Deprecated (version 1). @deprecated Use CU_SuiteInfo and CU_TestInfo. */ typedef struct test_suite { char *name; /**< Suite name. Currently not used. */ test_group_t *groups; /**< Test groups. This must be a NULL terminated array. */ } test_suite_t; /** Deprecated (version 1). @deprecated Use CU_TEST_INFO_NULL. */ #define TEST_CASE_NULL { NULL, NULL } /** Deprecated (version 1). @deprecated Use CU_TEST_GROUP_NULL. */ #define TEST_GROUP_NULL { NULL, NULL, NULL, NULL } /** Deprecated (version 1). @deprecated Use CU_register_suites(). */ #define test_group_register(tg) CU_register_suites(tg) /** Deprecated (version 1). @deprecated Use CU_SuiteInfo and CU_register_suites(). */ CU_EXPORT int test_suite_register(test_suite_t *ts) { test_group_t *tg; int error; for (tg = ts->groups; tg->pName; tg++) if ((error = CU_register_suites(tg)) != CUE_SUCCESS) return error; return CUE_SUCCESS; } #endif /* USE_DEPRECATED_CUNIT_NAMES */ /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ #ifdef USE_DEPRECATED_CUNIT_NAMES typedef CU_InitializeFunc InitializeFunc; /**< Deprecated (version 1). @deprecated Use CU_InitializeFunc. */ typedef CU_CleanupFunc CleanupFunc; /**< Deprecated (version 1). @deprecated Use CU_CleanupFunc. */ typedef CU_TestFunc TestFunc; /**< Deprecated (version 1). @deprecated Use CU_TestFunc. */ typedef CU_Test _TestCase; /**< Deprecated (version 1). @deprecated Use CU_Test. */ typedef CU_pTest PTestCase; /**< Deprecated (version 1). @deprecated Use CU_pTest. */ typedef CU_Suite _TestGroup; /**< Deprecated (version 1). @deprecated Use CU_Suite. */ typedef CU_pSuite PTestGroup; /**< Deprecated (version 1). @deprecated Use CU_pSuite. */ typedef CU_TestRegistry _TestRegistry; /**< Deprecated (version 1). @deprecated Use CU_TestRegistry. */ typedef CU_pTestRegistry PTestRegistry; /**< Deprecated (version 1). @deprecated Use CU_pTestRegistry. */ /* Public interface functions */ /** Deprecated (version 1). @deprecated Use CU_initialize_registry(). */ #define initialize_registry() CU_initialize_registry() /** Deprecated (version 1). @deprecated Use CU_cleanup_registry(). */ #define cleanup_registry() CU_cleanup_registry() /** Deprecated (version 1). @deprecated Use CU_add_suite(). */ #define add_test_group(name, init, clean) CU_add_suite(name, init, clean) /** Deprecated (version 1). @deprecated Use CU_add_test(). */ #define add_test_case(group, name, test) CU_add_test(group, name, test) /* private internal CUnit testing functions */ /** Deprecated (version 1). @deprecated Use CU_get_registry(). */ #define get_registry() CU_get_registry() /** Deprecated (version 1). @deprecated Use CU_set_registry(). */ #define set_registry(reg) CU_set_registry((reg)) /** Deprecated (version 1). @deprecated Use CU_get_suite_by_name(). */ #define get_group_by_name(group, reg) CU_get_suite_by_name(group, reg) /** Deprecated (version 1). @deprecated Use CU_get_test_by_name(). */ #define get_test_by_name(test, group) CU_get_test_by_name(test, group) /** Deprecated (version 1). @deprecated Use ADD_TEST_TO_SUITE. */ #define ADD_TEST_TO_GROUP(group, test) (CU_add_test(group, #test, (CU_TestFunc)test)) #endif /* USE_DEPRECATED_CUNIT_NAMES */ /*================================================================= * Internal CUnit system functions. * Should not be routinely called by users. *=================================================================*/ CU_EXPORT CU_pTestRegistry CU_get_registry(void); /**< * Retrieves a pointer to the current test registry. * Returns NULL if the registry has not been initialized using * CU_initialize_registry(). Directly accessing the registry * should not be necessary for most users. This function is * provided primarily for internal and testing purposes. * * @return A pointer to the current registry (NULL if uninitialized). * @see CU_initialize_registry * @see CU_set_registry */ CU_EXPORT CU_pTestRegistry CU_set_registry(CU_pTestRegistry pTestRegistry); /**< * Sets the registry to an existing CU_pTestRegistry instance. * A pointer to the original registry is returned. Note that the * original registry is not freed, and it becomes the caller's * responsibility to do so. Directly accessing the registry * should not be necessary for most users. This function is * provided primarily for internal and testing purposes.

* * This function must not be called during a test run (checked * by assertion). * * @return A pointer to the original registry that was replaced. * @see CU_initialize_registry * @see CU_cleanup_registry * @see CU_get_registry */ CU_EXPORT CU_pTestRegistry CU_create_new_registry(void); /**< * Creates and initializes a new test registry. * Returns a pointer to a new, initialized registry (NULL if memory could * not be allocated). It is the caller's responsibility to destroy and free * the new registry (unless it is made the active test registry using * CU_set_registry()). */ CU_EXPORT void CU_destroy_existing_registry(CU_pTestRegistry* ppRegistry); /**< * Destroys and frees all memory for an existing test registry. * The active test registry is destroyed by the CUnit system in * CU_cleanup_registry(), so only call this function on registries created * or held independently of the internal CUnit system.

* * Once a registry is made the active test registry using CU_set_registry(), * its destruction will be handled by the framework. ppRegistry may not be * NULL (checked by assertion), but *ppRegistry can be NULL (in which case the * function has no effect). Note that *ppRegistry will be set to NULL on return. * * @param ppRegistry Address of a pointer to the registry to destroy (non-NULL). */ CU_EXPORT CU_pSuite CU_get_suite_by_name(const char *szSuiteName, CU_pTestRegistry pRegistry); /**< * Retrieves a pointer to the suite having the specified name. * Scans the pRegistry and returns a pointer to the first suite located * having the specified name. Neither szSuiteName nor pRegistry may be * NULL (checked by assertion). Clients should normally use CU_get_suite() * instead, which automatically searches the active test registry. * * @param szSuiteName The name of the suite to locate (non-NULL). * @param pRegistry The registry to scan (non-NULL). * @return Pointer to the first suite having the specified name, * NULL if not found. * @see CU_get_suite() */ CU_EXPORT CU_pSuite CU_get_suite_by_index(unsigned int index, CU_pTestRegistry pRegistry); /**< * Retrieves a pointer to the suite at the specified (1-based) index. * Iterates pRegistry and returns a pointer to the suite located at the * specified index. pRegistry may not be NULL (checked by assertion). * Clients should normally use CU_get_suite_at_pos() instead, which * automatically searches the active test registry. * * @param index The 1-based index of the suite to find. * @param pRegistry The registry to scan (non-NULL). * @return Pointer to the suite at the specified index, or * NULL if index is invalid. * @see CU_get_suite_at_pos() */ CU_EXPORT CU_pTest CU_get_test_by_name(const char* szTestName, CU_pSuite pSuite); /**< * Retrieves a pointer to the test case in pSuite having the specified name. * The first test case in pSuite having the specified name is returned, or * NULL if not found. Neither szSuiteName nor pSuite may be NULL (checked * by assertion). Clients should normally use CU_get_test() instead. * * @param szTestName The name of the test case to locate (non-NULL). * @param pSuite The suite to scan (non-NULL). * @return Pointer to the first test case having the specified name, * NULL if not found. * @see CU_get_test() */ CU_EXPORT CU_pTest CU_get_test_by_index(unsigned int index, CU_pSuite pSuite); /**< * Retrieves a pointer to the test at the specified (1-based) index. * Iterates pSuite and returns a pointer to the test located at the * specified index. pSuite may not be NULL (checked by assertion). * Clients should normally use CU_get_test_at_pos() instead, which * automatically searches the active test registry. * * @param index The 1-based index of the test to find. * @param pRegistry The registry to scan (non-NULL). * @return Pointer to the test at the specified index, or * NULL if index is invalid. * @see CU_get_test_at_pos() */ #ifdef CUNIT_BUILD_TESTS void test_cunit_TestDB(void); #endif #ifdef __cplusplus } #endif #endif /* CUNIT_TESTDB_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/TestRun.h000066400000000000000000000537761260701235000177470ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Contains Interface to Run tests. * * Aug 2001 Initial implementation. (AK) * * 09/Aug/2001 Contains generic run tests interface which can be used * for any type of frontend interface framework. (AK) * * 24/Nov/2001 Added Handler for Group Initialization failure condition. (AK) * * 05-Aug-2004 New interface. Since these should be internal functions, * no support for deprecated version 1 names provided now, * eliminated global variables for current test & suite, * moved (renamed) _TestResult here from TestDB.h. (JDS) * * 05-Sep-2004 Added internal test interface. (JDS) * * 23-Apr-2006 Moved doxygen comments into header. * Added type marker to CU_FailureRecord. * Added support for tracking inactive suites/tests. (JDS) * * 08-May-2006 Moved CU_print_run_results() functionality from * console/basic test complete handler. (JDS) * * 24-May-2006 Added callbacks for suite start and complete events. * Added tracking/reported of elapsed time. (JDS) */ /** @file * Test run management functions (user interface). * The TestRun module implements functions supporting the running * of tests elements (suites and tests). This includes functions for * running suites and tests, retrieving the number of tests/suites run, * and managing callbacks during the run process.

* * The callback mechanism works as follows. The CUnit runtime system * supports the registering and calling of functions at the start and end * of each test, when all tests are complete, and when a suite * initialialization function returns an error. This allows clients to * perform actions associated with these events such as output formatting * and reporting. */ /** @addtogroup Framework * @{ */ #ifndef CUNIT_TESTRUN_H_SEEN #define CUNIT_TESTRUN_H_SEEN #include "CUnit.h" #include "CUError.h" #include "TestDB.h" #include #ifdef __cplusplus extern "C" { #endif /** Types of failures occurring during test runs. */ typedef enum CU_FailureTypes { CUF_SuiteInactive = 1, /**< Inactive suite was run. */ CUF_SuiteInitFailed, /**< Suite initialization function failed. */ CUF_SuiteCleanupFailed, /**< Suite cleanup function failed. */ CUF_TestInactive, /**< Inactive test was run. */ CUF_AssertFailed /**< CUnit assertion failed during test run. */ } CU_FailureType; /**< Failure type. */ /* CU_FailureRecord type definition. */ /** Data type for holding assertion failure information (linked list). */ typedef struct CU_FailureRecord { CU_FailureType type; /**< Failure type. */ unsigned int uiLineNumber; /**< Line number of failure. */ char* strFileName; /**< Name of file where failure occurred. */ char* strCondition; /**< Test condition which failed. */ CU_pTest pTest; /**< Test containing failure. */ CU_pSuite pSuite; /**< Suite containing test having failure. */ struct CU_FailureRecord* pNext; /**< Pointer to next record in linked list. */ struct CU_FailureRecord* pPrev; /**< Pointer to previous record in linked list. */ } CU_FailureRecord; typedef CU_FailureRecord* CU_pFailureRecord; /**< Pointer to CU_FailureRecord. */ /* CU_RunSummary type definition. */ /** Data type for holding statistics and assertion failures for a test run. */ typedef struct CU_RunSummary { char PackageName[50]; unsigned int nSuitesRun; /**< Number of suites completed during run. */ unsigned int nSuitesFailed; /**< Number of suites for which initialization failed. */ unsigned int nSuitesInactive; /**< Number of suites which were inactive. */ unsigned int nTestsRun; /**< Number of tests completed during run. */ unsigned int nTestsFailed; /**< Number of tests containing failed assertions. */ unsigned int nTestsInactive; /**< Number of tests which were inactive (in active suites). */ unsigned int nAsserts; /**< Number of assertions tested during run. */ unsigned int nAssertsFailed; /**< Number of failed assertions. */ unsigned int nFailureRecords; /**< Number of failure records generated. */ double ElapsedTime; /**< Elapsed time for run in seconds. */ } CU_RunSummary; typedef CU_RunSummary* CU_pRunSummary; /**< Pointer to CU_RunSummary. */ /*-------------------------------------------------------------------- * Type Definitions for Message Handlers. *--------------------------------------------------------------------*/ typedef void (*CU_SuiteStartMessageHandler)(const CU_pSuite pSuite); /**< Message handler called at the start of a suite. pSuite will not be null. */ typedef void (*CU_TestStartMessageHandler)(const CU_pTest pTest, const CU_pSuite pSuite); /**< Message handler called at the start of a test. * The parameters are the test and suite being run. The test run is * considered in progress when the message handler is called. * Neither pTest nor pSuite may be null. */ typedef void (*CU_TestCompleteMessageHandler)(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure); /**< Message handler called at the completion of a test. * The parameters are the test and suite being run, plus a pointer to * the first failure record applicable to this test. If the test did * not have any assertion failures, pFailure will be NULL. The test run * is considered in progress when the message handler is called. */ typedef void (*CU_SuiteCompleteMessageHandler)(const CU_pSuite pSuite, const CU_pFailureRecord pFailure); /**< Message handler called at the completion of a suite. * The parameters are suite being run, plus a pointer to the first failure * record applicable to this suite. If the suite and it's tests did not * have any failures, pFailure will be NULL. The test run is considered * in progress when the message handler is called. */ typedef void (*CU_AllTestsCompleteMessageHandler)(const CU_pFailureRecord pFailure); /**< Message handler called at the completion of a test run. * The parameter is a pointer to the linked list holding the failure * records for the test run. The test run is considered completed * when the message handler is called. */ typedef void (*CU_SuiteInitFailureMessageHandler)(const CU_pSuite pSuite); /**< Message handler called when a suite initializer fails. * The test run is considered in progress when the message handler is called. */ typedef void (*CU_SuiteCleanupFailureMessageHandler)(const CU_pSuite pSuite); /**< Message handler called when a suite cleanup function fails. * The test run is considered in progress when the message handler is called. */ /*-------------------------------------------------------------------- * Get/Set functions for Message Handlers *--------------------------------------------------------------------*/ CU_EXPORT void CU_set_suite_start_handler(CU_SuiteStartMessageHandler pSuiteStartMessage); /**< Sets the message handler to call before each suite is run. */ CU_EXPORT void CU_set_test_start_handler(CU_TestStartMessageHandler pTestStartMessage); /**< Sets the message handler to call before each test is run. */ CU_EXPORT void CU_set_test_complete_handler(CU_TestCompleteMessageHandler pTestCompleteMessage); /**< Sets the message handler to call after each test is run. */ CU_EXPORT void CU_set_suite_complete_handler(CU_SuiteCompleteMessageHandler pSuiteCompleteMessage); /**< Sets the message handler to call after each suite is run. */ CU_EXPORT void CU_set_all_test_complete_handler(CU_AllTestsCompleteMessageHandler pAllTestsCompleteMessage); /**< Sets the message handler to call after all tests have been run. */ CU_EXPORT void CU_set_suite_init_failure_handler(CU_SuiteInitFailureMessageHandler pSuiteInitFailureMessage); /**< Sets the message handler to call when a suite initialization function returns an error. */ CU_EXPORT void CU_set_suite_cleanup_failure_handler(CU_SuiteCleanupFailureMessageHandler pSuiteCleanupFailureMessage); /**< Sets the message handler to call when a suite cleanup function returns an error. */ CU_EXPORT CU_SuiteStartMessageHandler CU_get_suite_start_handler(void); /**< Retrieves the message handler called before each suite is run. */ CU_EXPORT CU_TestStartMessageHandler CU_get_test_start_handler(void); /**< Retrieves the message handler called before each test is run. */ CU_EXPORT CU_TestCompleteMessageHandler CU_get_test_complete_handler(void); /**< Retrieves the message handler called after each test is run. */ CU_EXPORT CU_SuiteCompleteMessageHandler CU_get_suite_complete_handler(void); /**< Retrieves the message handler called after each suite is run. */ CU_EXPORT CU_AllTestsCompleteMessageHandler CU_get_all_test_complete_handler(void); /**< Retrieves the message handler called after all tests are run. */ CU_EXPORT CU_SuiteInitFailureMessageHandler CU_get_suite_init_failure_handler(void); /**< Retrieves the message handler called when a suite initialization error occurs. */ CU_EXPORT CU_SuiteCleanupFailureMessageHandler CU_get_suite_cleanup_failure_handler(void); /**< Retrieves the message handler called when a suite cleanup error occurs. */ /*-------------------------------------------------------------------- * Functions for running registered tests and suites. *--------------------------------------------------------------------*/ CU_EXPORT CU_ErrorCode CU_run_all_tests(void); /**< * Runs all tests in all suites registered in the test registry. * The suites are run in the order registered in the test registry. * For each suite, it is first checked to make sure it is active. * Any initialization function is then called, the suite is run * using run_single_suite(), and finally any suite cleanup function * is called. If an error condition (other than CUE_NOREGISTRY) * occurs during the run, the action depends on the current error * action (see CU_set_error_action()). An inactive suite is not * considered an error for this function. Note that the run * statistics (counts of tests, successes, failures) are cleared * each time this function is run, even if it is unsuccessful. * * @return A CU_ErrorCode indicating the first error condition * encountered while running the tests. * @see CU_run_suite() to run the tests in a specific suite. * @see CU_run_test() for run a specific test only. */ CU_EXPORT CU_ErrorCode CU_run_suite(CU_pSuite pSuite); /**< * Runs all tests in a specified suite. * The suite need not be registered in the test registry to be * run. It does, however, need to have its fActive flag set to * CU_TRUE.

* * Any initialization function for the suite is first called, * then the suite is run using run_single_suite(), and any suite * cleanup function is called. Note that the run statistics * (counts of tests, successes, failures) are initialized each * time this function is called even if it is unsuccessful. If * an error condition occurs during the run, the action depends * on the current error action (see CU_set_error_action()). * * @param pSuite The suite containing the test (non-NULL) * @return A CU_ErrorCode indicating the first error condition * encountered while running the suite. CU_run_suite() * sets and returns CUE_NOSUITE if pSuite is NULL, or * CUE_SUITE_INACTIVE if the requested suite is not * activated. Other error codes can be set during suite * initialization or cleanup or during test runs. * @see CU_run_all_tests() to run all suites. * @see CU_run_test() to run a single test in a specific suite. */ CU_EXPORT CU_ErrorCode CU_run_test(CU_pSuite pSuite, CU_pTest pTest); /**< * Runs a specific test in a specified suite. * The suite need not be registered in the test registry to be run, * although the test must be registered in the specified suite. * Any initialization function for the suite is first * called, then the test is run using run_single_test(), and * any suite cleanup function is called. Note that the * run statistics (counts of tests, successes, failures) * will be initialized each time this function is called even * if it is not successful. Both the suite and test specified * must be active for the test to be run. The suite is not * considered to be run, although it may be counted as a failed * suite if the intialization or cleanup functions fail. * * @param pSuite The suite containing the test (non-NULL) * @param pTest The test to run (non-NULL) * @return A CU_ErrorCode indicating the first error condition * encountered while running the suite. CU_run_test() * sets and returns CUE_NOSUITE if pSuite is NULL, * CUE_NOTEST if pTest is NULL, CUE_SUITE_INACTIVE if * pSuite is not active, CUE_TEST_NOT_IN_SUITE * if pTest is not registered in pSuite, and CU_TEST_INACTIVE * if pTest is not active. Other error codes can be set during * suite initialization or cleanup or during the test run. * @see CU_run_all_tests() to run all tests/suites. * @see CU_run_suite() to run all tests in a specific suite. */ /*-------------------------------------------------------------------- * Functions for setting runtime behavior. *--------------------------------------------------------------------*/ CU_EXPORT void CU_set_fail_on_inactive(CU_BOOL new_inactive); /**< * Sets whether an inactive suite or test is treated as a failure. * If CU_TRUE, then failure records will be generated for inactive * suites or tests encountered during a test run. The default is * CU_TRUE so that the client is reminded that the framewrork * contains inactive suites/tests. Set to CU_FALSE to turn off * this behavior. * * @param new_inactive New setting for whether to treat inactive * suites and tests as failures during a test * run (CU_TRUE) or not (CU_FALSE). * @see CU_get_fail_on_failure() */ CU_EXPORT CU_BOOL CU_get_fail_on_inactive(void); /**< * Retrieves the current setting for whether inactive suites/tests * are treated as failures. If CU_TRUE then failure records will * be generated for inactive suites encountered during a test run. * * @return CU_TRUE if inactive suites/tests are failures, CU_FALSE if not. * @see CU_set_fail_on_inactive() */ /*-------------------------------------------------------------------- * Functions for getting information about the previous test run. *--------------------------------------------------------------------*/ CU_EXPORT unsigned int CU_get_number_of_suites_run(void); /**< Retrieves the number of suites completed during the previous run (reset each run). */ CU_EXPORT unsigned int CU_get_number_of_suites_failed(void); /**< Retrieves the number of suites which failed to initialize during the previous run (reset each run). */ CU_EXPORT unsigned int CU_get_number_of_suites_inactive(void); /**< Retrieves the number of inactive suites found during the previous run (reset each run). */ CU_EXPORT unsigned int CU_get_number_of_tests_run(void); /**< Retrieves the number of tests completed during the previous run (reset each run). */ CU_EXPORT unsigned int CU_get_number_of_tests_failed(void); /**< Retrieves the number of tests containing failed assertions during the previous run (reset each run). */ CU_EXPORT unsigned int CU_get_number_of_tests_inactive(void); /**< Retrieves the number of inactive tests found during the previous run (reset each run). */ CU_EXPORT unsigned int CU_get_number_of_asserts(void); /**< Retrieves the number of assertions processed during the last run (reset each run). */ CU_EXPORT unsigned int CU_get_number_of_successes(void); /**< Retrieves the number of successful assertions during the last run (reset each run). */ CU_EXPORT unsigned int CU_get_number_of_failures(void); /**< Retrieves the number of failed assertions during the last run (reset each run). */ CU_EXPORT unsigned int CU_get_number_of_failure_records(void); /**< * Retrieves the number failure records created during the previous run (reset each run). * Note that this may be more than the number of failed assertions, since failure * records may also be created for failed suite initialization and cleanup. */ CU_EXPORT double CU_get_elapsed_time(void); /**< * Retrieves the elapsed time for the last run in seconds (reset each run). * This function will calculate the current elapsed time if the test run has not * yet completed. This is in contrast to the run summary returned by * CU_get_run_summary(), for which the elapsed time is not updated until the * end of the run. */ CU_EXPORT CU_pFailureRecord CU_get_failure_list(void); /**< * Retrieves the head of the linked list of failures which occurred during the * last run (reset each run). Note that the pointer returned is invalidated * when the client initiates a run using CU_run_all_tests(), CU_run_suite(), * or CU_run_test(). */ CU_EXPORT CU_pRunSummary CU_get_run_summary(void); /**< * Retrieves the entire run summary for the last test run (reset each run). * The run counts and stats contained in the run summary are updated * throughout a test run. Note, however, that the elapsed time is not * updated until after all suites/tests are run but before the "all tests * complete" message handler is called (if any). To get the elapsed * time during a test run, use CU_get_elapsed_time() instead. */ CU_EXPORT char * CU_get_run_results_string(void); /**< * Creates a string and fills it with a summary of the current run results. * The run summary presents data for the suites, tests, and assertions * encountered during the run, as well as the elapsed time. The data * presented include the number of registered, run, passed, failed, and * inactive entities for each, as well as the elapsed time. This function * can be called at any time, although the test registry must have been * initialized (checked by assertion). The returned string is owned by * the caller and should be deallocated using CU_FREE(). NULL is returned * if there is an error allocating the new string. * * @return A new string containing the run summary (owned by caller). */ CU_EXPORT void CU_print_run_results(FILE *file); /**< * Prints a summary of the current run results to file. * The run summary is the same as returned by CU_get_run_results_string(). * Note that no newlines are printed before or after the report, so any * positioning must be performed before/after calling this function. The * report itself extends over several lines broken by '\n' characters. * file may not be NULL (checked by assertion). * * @param file Pointer to stream to receive the printed summary (non-NULL). */ /*-------------------------------------------------------------------- * Functions for internal & testing use. *--------------------------------------------------------------------*/ CU_EXPORT CU_pSuite CU_get_current_suite(void); /**< Retrieves a pointer to the currently-running suite (NULL if none). */ CU_EXPORT CU_pTest CU_get_current_test(void); /**< Retrievea a pointer to the currently-running test (NULL if none). */ CU_EXPORT CU_BOOL CU_is_test_running(void); /**< Returns CU_TRUE if a test run is in progress, * CU_TRUE otherwise. */ CU_EXPORT void CU_clear_previous_results(void); /**< * Initializes the run summary information stored from the previous test run. * Resets the run counts to zero, and frees any memory associated with * failure records. Calling this function multiple times, while inefficient, * will not cause an error condition. * @see clear_previous_results() */ CU_EXPORT CU_BOOL CU_assertImplementation(CU_BOOL bValue, unsigned int uiLine, const char *strCondition, const char *strFile, const char *strFunction, CU_BOOL bFatal); /**< * Assertion implementation function. * All CUnit assertions reduce to a call to this function. It should only be * called during an active test run (checked by assertion). This means that CUnit * assertions should only be used in registered test functions during a test run. * * @param bValue Value of the assertion (CU_TRUE or CU_FALSE). * @param uiLine Line number of failed test statement. * @param strCondition String containing logical test that failed. * @param strFile Source file where test statement failed. * @param strFunction Function where test statement failed. * @param bFatal CU_TRUE to abort test (via longjmp()), CU_FALSE to continue test. * @return As a convenience, returns the value of the assertion (i.e. bValue). */ #ifdef USE_DEPRECATED_CUNIT_NAMES typedef CU_FailureRecord _TestResult; /**< @deprecated Use CU_FailureRecord. */ typedef CU_pFailureRecord PTestResult; /**< @deprecated Use CU_pFailureRecord. */ #endif /* USE_DEPRECATED_CUNIT_NAMES */ #ifdef CUNIT_BUILD_TESTS void test_cunit_TestRun(void); #endif #ifdef __cplusplus } #endif #endif /* CUNIT_TESTRUN_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/Util.h000066400000000000000000000135071260701235000172440ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Contains Type Definitions for some generic functions used across * CUnit project files. * * 13/Oct/2001 Moved some of the generic functions declarations from * other files to this one so as to use the functions * consitently. This file is not included in the distribution * headers because it is used internally by CUnit. (AK) * * 20-Jul-2004 New interface, support for deprecated version 1 names. (JDS) * * 5-Sep-2004 Added internal test interface. (JDS) * * 17-Apr-2006 Added CU_translated_strlen() and CU_number_width(). * Removed CUNIT_MAX_STRING_LENGTH - dangerous since not enforced. * Fixed off-by-1 error in CU_translate_special_characters(), * modifying implementation & results in some cases. User can * now tell if conversion failed. (JDS) */ /** @file * Utility functions (user interface). */ /** @addtogroup Framework * @{ */ #ifndef CUNIT_UTIL_H_SEEN #define CUNIT_UTIL_H_SEEN #include "CUnit.h" #ifdef __cplusplus extern "C" { #endif #define CUNIT_MAX_ENTITY_LEN 5 /**< Maximum number of characters in a translated xml entity. */ CU_EXPORT size_t CU_translate_special_characters(const char *szSrc, char *szDest, size_t maxlen); /**< * Converts special characters in szSrc to xml entity codes and stores * result in szDest. Currently conversion of '&', '<', and '>' is supported. * Note that conversion to entities increases the length of the converted * string. The greatest conversion size increase would be a string * consisting entirely of entity characters of converted length * CUNIT_MAX_ENTITY_LEN. Neither szSrc nor szDest may be NULL * (checked by assertion).

* * maxlen gives the maximum number of characters in the translated string. * If szDest does not have enough room to hold the converted string, the * return value will be zero and szDest will contain an empty string. * If this occurs, the remaining characters in szDest may be overwritten * in an unspecified manner. It is the caller's responsibility to make * sure there is sufficient room in szDest to hold the converted string. * CU_translated_strlen() may be used to calculate the length of buffer * required (remember to add 1 for the terminating \0). * * @param szSrc Source string to convert (non-NULL). * @param szDest Location to hold the converted string (non-NULL). * @param maxlen Maximum number of characters szDest can hold. * @return The number of special characters converted (always 0 if * szDest did not have enough room to hold converted string). */ CU_EXPORT size_t CU_translated_strlen(const char *szSrc); /**< * Calculates the length of a translated string. * This function calculates the buffer length required to hold a string * after processing with CU_translate_special_characters(). The returned * length does not include space for the terminating '\0' character. * szSrc may not be NULL (checked by assertion). * * @param szSrc Source string to analyze (non-NULL). * @return The number of characters szSrc will expand to when converted. */ CU_EXPORT int CU_compare_strings(const char *szSrc, const char *szDest); /**< * Case-insensitive string comparison. Neither string pointer * can be NULL (checked by assertion). * * @param szSrc 1st string to compare (non-NULL). * @param szDest 2nd string to compare (non-NULL). * @return 0 if the strings are equal, non-zero otherwise. */ CU_EXPORT void CU_trim_left(char *szString); /**< * Trims leading whitespace from the specified string. * @param szString The string to trim. */ CU_EXPORT void CU_trim_right(char *szString); /**< * Trims trailing whitespace from the specified string. * @param szString The string to trim. */ CU_EXPORT void CU_trim(char *szString); /**< * Trims leading and trailing whitespace from the specified string. * @param szString The string to trim. */ CU_EXPORT size_t CU_number_width(int number); /**< * Calulates the number of places required to display * number in decimal. */ #ifdef CUNIT_BUILD_TESTS void test_cunit_Util(void); #endif #ifdef __cplusplus } #endif #ifdef USE_DEPRECATED_CUNIT_NAMES #define CUNIT_MAX_STRING_LENGTH 1024 /**< Maximum string length. */ #define translate_special_characters(src, dest, len) CU_translate_special_characters(src, dest, len) /**< Deprecated (version 1). @deprecated Use CU_translate_special_characters(). */ #define compare_strings(src, dest) CU_compare_strings(src, dest) /**< Deprecated (version 1). @deprecated Use CU_compare_strings(). */ #define trim_left(str) CU_trim_left(str) /**< Deprecated (version 1). @deprecated Use CU_trim_left(). */ #define trim_right(str) CU_trim_right(str) /**< Deprecated (version 1). @deprecated Use CU_trim_right(). */ #define trim(str) CU_trim(str) /**< Deprecated (version 1). @deprecated Use CU_trim(). */ #endif /* USE_DEPRECATED_CUNIT_NAMES */ #endif /* CUNIT_UTIL_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Headers/wxWidget.h000066400000000000000000000024341260701235000201260ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2006 Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * wxWidgets gui Interface. * * May 2006 Initial implementation. (JDS) */ /** @file * wxWidgets-based gui (user interface). */ /** @addtogroup wxWidgets * @{ */ #ifndef CUNIT_WXWIDGET_H_SEEN #define CUNIT_WXWIDGET_H_SEEN #include "CUnit.h" #include "TestDB.h" #ifdef __cplusplus extern "C" { #endif CU_BOOL create_tests(void); CU_BOOL destroy_tests(void); #ifdef __cplusplus } #endif #endif /* CUNIT_WXWIDGET_H_SEEN */ /** @} */ cunit-2.1-3-dfsg/CUnit/Jamfile000066400000000000000000000103711260701235000160710ustar00rootroot00000000000000# # Jamfile to build CUnit - Source root Directory # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP CUnit ; SubDirHdrs $(CUNIT_HDR_DIR) $(CUNIT_WIN_DIR) ; # set location for target, source, and temporary files LOCATE_TARGET = $(BUILD_DIR)$(SLASH)CUnit ; SEARCH_SOURCE += $(TOP)$(SLASH)CUnit $(TOP)$(SLASH)CUnit$(SLASH)Headers $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Framework ; SOURCES = CUError.c MyMem.c TestDB.c TestRun.c Util.c ; if $(BUILD_AUTOMATED) { SEARCH_SOURCE += $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Automated ; SOURCES += Automated.c ; } if $(BUILD_BASIC) { SEARCH_SOURCE += $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Basic ; SOURCES += Basic.c ; } if $(BUILD_CONSOLE) { SEARCH_SOURCE += $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Console ; SOURCES += Console.c ; } if $(BUILD_CURSES) { SEARCH_SOURCE += $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Curses ; SOURCES += Curses.c ; } if $(BUILD_WINDOWS) { SEARCH_SOURCE += $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Win ; SOURCES += Win.c ; } if $(BUILD_SHARED_LIB) { if $(NT) { # extra symbolic targets for building CUnit library DEPENDS cunit CUnit libcunit : $(CUNIT_LIB_NAME)$(SUFSHR) ; SubDirCcFlags -DCU_DLL -DCU_BUILD_DLL ; Main $(CUNIT_LIB_NAME)$(SUFSHR) : $(SOURCES) ; MakeLocate $(CUNIT_LIB_NAME)$(SUFSHR) : $(BUILD_DIR) ; if $(BCCROOT) || ( $(TOOLSET) = BORLANDC ) { LINKFLAGS on $(CUNIT_LIB_NAME)$(SUFSHR) += -WD -lGi ; } else if $(MSVCNT) || ( $(TOOLSET) = VISUALC ) { LINKFLAGS on $(CUNIT_LIB_NAME)$(SUFSHR) = $(LINKFLAGS) /DLL /IMPLIB:$(BUILD_DIR)$(SLASH)$(CUNIT_LIB_NAME)_dll$(SUFLIB) ; } else if $(MINGW) || ( $(TOOLSET) = MINGW ) { SubDirCcFlags -fPIC ; LINKFLAGS on $(CUNIT_LIB_NAME)$(SUFSHR) += -shared libcunit_dll.def -Wl,--out-implib,$(BUILD_DIR)$(SLASH)$(CUNIT_LIB_NAME)_dll$(SUFLIB) ; } else { EXIT Building of CUnit shared library is not supported for this compiler on Windows. ; } MakeImportLibrary $(CUNIT_LIB_NAME)$(SUFSHR) : $(CUNIT_LIB_NAME)_dll$(SUFLIB) ; # install import library if $(INSTALL_LIB_DIR) { InstallLib $(INSTALL_LIB_DIR) : $(CUNIT_LIB_NAME)_dll$(SUFLIB) ; } # install shared library if $(INSTALL_BIN_DIR) { InstallBin $(INSTALL_BIN_DIR) : $(CUNIT_LIB_NAME)$(SUFSHR) ; } } else if $(UNIX) || ( $(OS) = LINUX ) { # extra symbolic targets for building CUnit library DEPENDS cunit CUnit libcunit : $(CUNIT_LIB_NAME)$(SUFSHR).$(VERSION).$(RELEASE) ; Main $(CUNIT_LIB_NAME)$(SUFSHR).$(VERSION).$(RELEASE) : $(SOURCES) ; MakeLocate $(CUNIT_LIB_NAME)$(SUFSHR).$(VERSION).$(RELEASE) : $(BUILD_DIR) ; CCFLAGS on $(SOURCES) += -fPIC ; LINKFLAGS on $(CUNIT_LIB_NAME)$(SUFSHR).$(VERSION).$(RELEASE) += -shared -Wl,-soname,$(CUNIT_LIB_NAME)$(SUFSHR).$(VERSION_MAJOR) ; # install shared library if $(INSTALL_LIB_DIR) { InstallLib $(INSTALL_BIN_DIR) : $(CUNIT_LIB_NAME)$(SUFSHR).$(VERSION).$(RELEASE) ; } } } if $(BUILD_STATIC_LIB) { Library $(CUNIT_LIB_NAME) : $(SOURCES) ; MakeLocate $(CUNIT_LIB_NAME)$(SUFLIB) : $(BUILD_DIR) ; # install static library if $(INSTALL_LIB_DIR) { InstallLib $(INSTALL_LIB_DIR) : $(CUNIT_LIB_NAME)$(SUFLIB) ; } } SubInclude TOP CUnit Headers ; SubInclude TOP CUnit Sources Test ; cunit-2.1-3-dfsg/CUnit/Makefile.am000066400000000000000000000001251260701235000166270ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in SUBDIRS = Sources Headers cunit-2.1-3-dfsg/CUnit/Makefile.in000066400000000000000000000441231260701235000166460ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = CUnit DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ SUBDIRS = Sources Headers all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu CUnit/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu CUnit/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am # 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: cunit-2.1-3-dfsg/CUnit/Sources/000077500000000000000000000000001260701235000162205ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Automated/000077500000000000000000000000001260701235000201435ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Automated/.deps/000077500000000000000000000000001260701235000211545ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Automated/.deps/Automated.Plo000066400000000000000000000145541260701235000235640ustar00rootroot00000000000000Automated.lo: Automated.c /usr/include/stdio.h /usr/include/sys/cdefs.h \ /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ /usr/include/ctype.h /usr/include/runetype.h \ /usr/include/sys/_types/_wint_t.h /usr/include/assert.h \ /usr/include/string.h /usr/include/strings.h \ /usr/include/secure/_string.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/limits.h \ /usr/include/limits.h /usr/include/machine/limits.h \ /usr/include/i386/limits.h /usr/include/i386/_limits.h \ /usr/include/sys/syslimits.h /usr/include/time.h \ /usr/include/_structs.h /usr/include/sys/_structs.h \ /usr/include/sys/_types/_timespec.h /usr/include/sys/_types/_clock_t.h \ /usr/include/sys/_types/_time_t.h ../../../CUnit/Headers/CUnit.h \ /usr/include/math.h ../../../CUnit/Headers/CUError.h \ /usr/include/errno.h /usr/include/sys/errno.h \ ../../../CUnit/Headers/TestDB.h /usr/include/setjmp.h \ ../../../CUnit/Headers/TestRun.h ../../../CUnit/Headers/MyMem.h \ ../../../CUnit/Headers/Util.h ../../../CUnit/Headers/Automated.h \ ../../../CUnit/Headers/CUnit_intl.h /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/ctype.h: /usr/include/runetype.h: /usr/include/sys/_types/_wint_t.h: /usr/include/assert.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/limits.h: /usr/include/limits.h: /usr/include/machine/limits.h: /usr/include/i386/limits.h: /usr/include/i386/_limits.h: /usr/include/sys/syslimits.h: /usr/include/time.h: /usr/include/_structs.h: /usr/include/sys/_structs.h: /usr/include/sys/_types/_timespec.h: /usr/include/sys/_types/_clock_t.h: /usr/include/sys/_types/_time_t.h: ../../../CUnit/Headers/CUnit.h: /usr/include/math.h: ../../../CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: ../../../CUnit/Headers/TestDB.h: /usr/include/setjmp.h: ../../../CUnit/Headers/TestRun.h: ../../../CUnit/Headers/MyMem.h: ../../../CUnit/Headers/Util.h: ../../../CUnit/Headers/Automated.h: ../../../CUnit/Headers/CUnit_intl.h: cunit-2.1-3-dfsg/CUnit/Sources/Automated/Automated.c000066400000000000000000000673471260701235000222530ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Implementation of the Automated Test Interface. * * Feb 2002 Initial implementation. (AK) * * 13/Feb/2002 Added initial automated interface functions to generate * HTML based Run report. (AK) * * 23/Jul/2002 Changed HTML to XML Format file generation for Automated Tests. (AK) * * 27/Jul/2003 Fixed a bug which hinders the listing of all failures. (AK) * * 17-Jul-2004 New interface, doxygen comments, eliminate compiler warnings, * automated_run_tests now assigns a generic file name if * none has been supplied. (JDS) * * 30-Apr-2005 Added notification of failed suite cleanup function. (JDS) * * 02-May-2006 Added internationalization hooks. (JDS) * * 07-May-2011 Added patch to fix broken xml tags dur to spacial characters in the test name. (AK) */ /** @file * Automated test interface with xml result output (implementation). */ /** @addtogroup Automated @{ */ #include #include #include #include #include #include #include #include "CUnit.h" #include "TestDB.h" #include "MyMem.h" #include "Util.h" #include "TestRun.h" #include "Automated.h" #include "CUnit_intl.h" #define MAX_FILENAME_LENGTH 1025 /*================================================================= * Global / Static data definitions *=================================================================*/ static CU_pSuite f_pRunningSuite = NULL; /**< The running test suite. */ static char f_szDefaultFileRoot[] = "CUnitAutomated"; /**< Default filename root for automated output files. */ static char f_szTestListFileName[MAX_FILENAME_LENGTH] = ""; /**< Current output file name for the test listing file. */ static char f_szTestResultFileName[MAX_FILENAME_LENGTH] = ""; /**< Current output file name for the test results file. */ static FILE* f_pTestResultFile = NULL; /**< FILE pointer the test results file. */ static CU_BOOL f_bWriting_CUNIT_RUN_SUITE = CU_FALSE; /**< Flag for keeping track of when a closing xml tag is required. */ static CU_BOOL bJUnitXmlOutput = CU_FALSE; /**< Flag for toggling the xml junit output or keeping the original. Off is the default */ static char _gPackageName[50] = ""; /*================================================================= * Static function forward declarations *=================================================================*/ static CU_ErrorCode automated_list_all_tests(CU_pTestRegistry pRegistry, const char* szFilename); static CU_ErrorCode initialize_result_file(const char* szFilename); static CU_ErrorCode uninitialize_result_file(void); static void automated_run_all_tests(CU_pTestRegistry pRegistry); static void automated_test_start_message_handler(const CU_pTest pTest, const CU_pSuite pSuite); static void automated_test_complete_message_handler(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure); static void automated_all_tests_complete_message_handler(const CU_pFailureRecord pFailure); static void automated_suite_init_failure_message_handler(const CU_pSuite pSuite); static void automated_suite_cleanup_failure_message_handler(const CU_pSuite pSuite); /*================================================================= * Public Interface functions *=================================================================*/ void CU_automated_run_tests(void) { assert(NULL != CU_get_registry()); /* Ensure output makes it to screen at the moment of a SIGSEGV. */ setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); /* if a filename root hasn't been set, use the default one */ if (0 == strlen(f_szTestResultFileName)) { CU_set_output_filename(f_szDefaultFileRoot); } if (CUE_SUCCESS != initialize_result_file(f_szTestResultFileName)) { fprintf(stderr, "\n%s", _("ERROR - Failed to create/initialize the result file.")); } else { /* set up the message handlers for writing xml output */ CU_set_test_start_handler(automated_test_start_message_handler); CU_set_test_complete_handler(automated_test_complete_message_handler); CU_set_all_test_complete_handler(automated_all_tests_complete_message_handler); CU_set_suite_init_failure_handler(automated_suite_init_failure_message_handler); CU_set_suite_cleanup_failure_handler(automated_suite_cleanup_failure_message_handler); f_bWriting_CUNIT_RUN_SUITE = CU_FALSE; automated_run_all_tests(NULL); if (CUE_SUCCESS != uninitialize_result_file()) { fprintf(stderr, "\n%s", _("ERROR - Failed to close/uninitialize the result files.")); } } } /*------------------------------------------------------------------------*/ void CU_set_output_filename(const char* szFilenameRoot) { const char* szListEnding = "-Listing.xml"; const char* szResultEnding = "-Results.xml"; /* Construct the name for the listing file */ if (NULL != szFilenameRoot) { strncpy(f_szTestListFileName, szFilenameRoot, MAX_FILENAME_LENGTH - strlen(szListEnding) - 1); } else { strncpy(f_szTestListFileName, f_szDefaultFileRoot, MAX_FILENAME_LENGTH - strlen(szListEnding) - 1); } f_szTestListFileName[MAX_FILENAME_LENGTH - strlen(szListEnding) - 1] = '\0'; strcat(f_szTestListFileName, szListEnding); /* Construct the name for the result file */ if (NULL != szFilenameRoot) { strncpy(f_szTestResultFileName, szFilenameRoot, MAX_FILENAME_LENGTH - strlen(szResultEnding) - 1); } else { strncpy(f_szTestResultFileName, f_szDefaultFileRoot, MAX_FILENAME_LENGTH - strlen(szResultEnding) - 1); } f_szTestResultFileName[MAX_FILENAME_LENGTH - strlen(szResultEnding) - 1] = '\0'; strcat(f_szTestResultFileName, szResultEnding); } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_list_tests_to_file() { /* if a filename root hasn't been set, use the default one */ if (0 == strlen(f_szTestListFileName)) { CU_set_output_filename(f_szDefaultFileRoot); } return automated_list_all_tests(CU_get_registry(), f_szTestListFileName); } /*================================================================= * Static function implementation *=================================================================*/ /** Runs the registered tests using the automated interface. * If non-NULL. the specified registry is set as the active * registry for running the tests. If NULL, then the default * CUnit test registry is used. The actual test running is * performed by CU_run_all_tests(). * @param pRegistry The test registry to run. */ static void automated_run_all_tests(CU_pTestRegistry pRegistry) { CU_pTestRegistry pOldRegistry = NULL; assert(NULL != f_pTestResultFile); f_pRunningSuite = NULL; if (NULL != pRegistry) { pOldRegistry = CU_set_registry(pRegistry); } if (bJUnitXmlOutput == CU_FALSE) { fprintf(f_pTestResultFile, " \n"); } CU_run_all_tests(); if (NULL != pRegistry) { CU_set_registry(pOldRegistry); } } /*------------------------------------------------------------------------*/ /** Initializes the test results file generated by the automated interface. * A file stream is opened and header information is written. */ static CU_ErrorCode initialize_result_file(const char* szFilename) { CU_pRunSummary pRunSummary = CU_get_run_summary(); CU_set_error(CUE_SUCCESS); if ((NULL == szFilename) || (strlen(szFilename) == 0)) { CU_set_error(CUE_BAD_FILENAME); } else if (NULL == (f_pTestResultFile = fopen(szFilename, "w"))) { CU_set_error(CUE_FOPEN_FAILED); } else { setvbuf(f_pTestResultFile, NULL, _IONBF, 0); if (bJUnitXmlOutput == CU_TRUE) { fprintf(f_pTestResultFile, "\n" " \n", pRunSummary->nTestsFailed, pRunSummary->nTestsRun); } else { fprintf(f_pTestResultFile, " \n" " \n" " \n" " \n" " \n"); } } return CU_get_error(); } /*------------------------------------------------------------------------*/ /** Handler function called at start of each test. * The test result file must have been opened before this * function is called (i.e. f_pTestResultFile non-NULL). * @param pTest The test being run (non-NULL). * @param pSuite The suite containing the test (non-NULL). */ static void automated_test_start_message_handler(const CU_pTest pTest, const CU_pSuite pSuite) { char *szTempName = NULL; size_t szTempName_len = 0; CU_UNREFERENCED_PARAMETER(pTest); /* not currently used */ assert(NULL != pTest); assert(NULL != pSuite); assert(NULL != pSuite->pName); assert(NULL != f_pTestResultFile); /* write suite close/open tags if this is the 1st test for this szSuite */ if ((NULL == f_pRunningSuite) || (f_pRunningSuite != pSuite)) { if (CU_TRUE == f_bWriting_CUNIT_RUN_SUITE) { if (bJUnitXmlOutput == CU_TRUE) { fprintf(f_pTestResultFile, " \n"); } else { fprintf(f_pTestResultFile, " \n" " \n"); } } /* translate suite name that may contain XML control characters */ szTempName = (char *)CU_MALLOC((szTempName_len = CU_translated_strlen(pSuite->pName) + 1)); CU_translate_special_characters(pSuite->pName, szTempName, szTempName_len); if (bJUnitXmlOutput == CU_TRUE) { fprintf(f_pTestResultFile, " \n", 0 , /* Errors */ pSuite->uiNumberOfTestsFailed, /* Failures */ pSuite->uiNumberOfTests, /* Tests */ (NULL != szTempName) ? szTempName : ""); /* Name */ } else { fprintf(f_pTestResultFile, " \n" " \n" " %s \n", (NULL != szTempName ? szTempName : "")); } f_bWriting_CUNIT_RUN_SUITE = CU_TRUE; f_pRunningSuite = pSuite; } if (NULL != szTempName) { CU_FREE(szTempName); } } /*------------------------------------------------------------------------*/ /** Handler function called at completion of each test. * @param pTest The test being run (non-NULL). * @param pSuite The suite containing the test (non-NULL). * @param pFailure Pointer to the 1st failure record for this test. */ static void automated_test_complete_message_handler(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure) { char *szTemp = NULL; size_t szTemp_len = 0; size_t cur_len = 0; CU_pFailureRecord pTempFailure = pFailure; const char *pPackageName = CU_automated_package_name_get(); CU_UNREFERENCED_PARAMETER(pSuite); /* pSuite is not used except in assertion */ assert(NULL != pTest); assert(NULL != pTest->pName); assert(NULL != pSuite); assert(NULL != pSuite->pName); assert(NULL != f_pTestResultFile); if (NULL != pTempFailure) { if(NULL != pTempFailure) { if (bJUnitXmlOutput == CU_TRUE) { assert((NULL != pTempFailure->pSuite) && (pTempFailure->pSuite == pSuite)); assert((NULL != pTempFailure->pTest) && (pTempFailure->pTest == pTest)); if (NULL != pTempFailure->strCondition) { CU_translate_special_characters(pTempFailure->strCondition, szTemp, sizeof(szTemp)); } else { szTemp[0] = '\0'; } fprintf(f_pTestResultFile, " \n", pPackageName, pSuite->pName, (NULL != pTest->pName) ? pTest->pName : ""); fprintf(f_pTestResultFile, " \n", szTemp); } /* if */ } while (NULL != pTempFailure) { assert((NULL != pTempFailure->pSuite) && (pTempFailure->pSuite == pSuite)); assert((NULL != pTempFailure->pTest) && (pTempFailure->pTest == pTest)); /* expand temporary char buffer if need more room */ if (NULL != pTempFailure->strCondition) { cur_len = CU_translated_strlen(pTempFailure->strCondition) + 1; } else { cur_len = 1; } if (cur_len > szTemp_len) { szTemp_len = cur_len; if (NULL != szTemp) { CU_FREE(szTemp); } szTemp = (char *)CU_MALLOC(szTemp_len); } /* convert xml entities in strCondition (if present) */ if (NULL != pTempFailure->strCondition) { CU_translate_special_characters(pTempFailure->strCondition, szTemp, szTemp_len); } else { szTemp[0] = '\0'; } if (bJUnitXmlOutput == CU_TRUE) { fprintf(f_pTestResultFile, " Condition: %s\n", szTemp); fprintf(f_pTestResultFile, " File : %s\n", (NULL != pTempFailure->strFileName) ? pTempFailure->strFileName : ""); fprintf(f_pTestResultFile, " Line : %d\n", pTempFailure->uiLineNumber); } else { fprintf(f_pTestResultFile, " \n" " \n" " %s \n" " %s \n" " %u \n" " %s \n" " \n" " \n", pTest->pName, (NULL != pTempFailure->strFileName) ? pTempFailure->strFileName : "", pTempFailure->uiLineNumber, szTemp); } /* if */ pTempFailure = pTempFailure->pNext; } /* while */ if (bJUnitXmlOutput == CU_TRUE) { fprintf(f_pTestResultFile, " \n"); fprintf(f_pTestResultFile, " \n"); } /* if */ } else { if (bJUnitXmlOutput == CU_TRUE) { fprintf(f_pTestResultFile, " \n", pPackageName, pSuite->pName, (NULL != pTest->pName) ? pTest->pName : ""); } else { fprintf(f_pTestResultFile, " \n" " \n" " %s \n" " \n" " \n", pTest->pName); } } if (NULL != szTemp) { CU_FREE(szTemp); } } /*------------------------------------------------------------------------*/ /** Handler function called at completion of all tests in a suite. * @param pFailure Pointer to the test failure record list. */ static void automated_all_tests_complete_message_handler(const CU_pFailureRecord pFailure) { CU_pTestRegistry pRegistry = CU_get_registry(); CU_pRunSummary pRunSummary = CU_get_run_summary(); CU_UNREFERENCED_PARAMETER(pFailure); /* not used */ assert(NULL != pRegistry); assert(NULL != pRunSummary); assert(NULL != f_pTestResultFile); if ((NULL != f_pRunningSuite) && (CU_TRUE == f_bWriting_CUNIT_RUN_SUITE)) { if (bJUnitXmlOutput == CU_FALSE) { fprintf(f_pTestResultFile, " \n" " \n"); } } if (bJUnitXmlOutput == CU_FALSE) { fprintf(f_pTestResultFile, " \n" " \n"); fprintf(f_pTestResultFile, " \n" " %s \n" " %u \n" " %u \n" " - NA - \n" " %u \n" " %u \n" " \n", _("Suites"), pRegistry->uiNumberOfSuites, pRunSummary->nSuitesRun, pRunSummary->nSuitesFailed, pRunSummary->nSuitesInactive); fprintf(f_pTestResultFile, " \n" " %s \n" " %u \n" " %u \n" " %u \n" " %u \n" " %u \n" " \n", _("Test Cases"), pRegistry->uiNumberOfTests, pRunSummary->nTestsRun, pRunSummary->nTestsRun - pRunSummary->nTestsFailed, pRunSummary->nTestsFailed, pRunSummary->nTestsInactive); fprintf(f_pTestResultFile, " \n" " %s \n" " %u \n" " %u \n" " %u \n" " %u \n" " %s \n" " \n" " \n", _("Assertions"), pRunSummary->nAsserts, pRunSummary->nAsserts, pRunSummary->nAsserts - pRunSummary->nAssertsFailed, pRunSummary->nAssertsFailed, _("n/a")); } } /*------------------------------------------------------------------------*/ /** Handler function called when suite initialization fails. * @param pSuite The suite for which initialization failed. */ static void automated_suite_init_failure_message_handler(const CU_pSuite pSuite) { assert(NULL != pSuite); assert(NULL != pSuite->pName); assert(NULL != f_pTestResultFile); if (CU_TRUE == f_bWriting_CUNIT_RUN_SUITE) { if (bJUnitXmlOutput == CU_TRUE) { f_bWriting_CUNIT_RUN_SUITE = CU_FALSE; fprintf(f_pTestResultFile, " \n"); } else { fprintf(f_pTestResultFile, " \n" " \n"); f_bWriting_CUNIT_RUN_SUITE = CU_FALSE; } } if (bJUnitXmlOutput == CU_FALSE) { fprintf(f_pTestResultFile, " \n" " \n" " %s \n" " %s \n" " \n" " \n", pSuite->pName, _("Suite Initialization Failed")); } } /*------------------------------------------------------------------------*/ /** Handler function called when suite cleanup fails. * @param pSuite The suite for which cleanup failed. */ static void automated_suite_cleanup_failure_message_handler(const CU_pSuite pSuite) { assert(NULL != pSuite); assert(NULL != pSuite->pName); assert(NULL != f_pTestResultFile); if (CU_TRUE == f_bWriting_CUNIT_RUN_SUITE) { if (bJUnitXmlOutput == CU_TRUE) { f_bWriting_CUNIT_RUN_SUITE = CU_FALSE; fprintf(f_pTestResultFile, " \n"); } else { fprintf(f_pTestResultFile, " \n" " \n"); f_bWriting_CUNIT_RUN_SUITE = CU_FALSE; } } if (bJUnitXmlOutput == CU_TRUE) { fprintf(f_pTestResultFile, " \n" " \n" " \"Cleanup of suite failed.\" \n" " \n" " fail \n" " \"Cleanup of suite failed.\" \n" " SuiteCleanup \n" " \n" " \n" " \n", (NULL != pSuite->pName) ? pSuite->pName : ""); } else { fprintf(f_pTestResultFile, " \n" " \n" " %s \n" " %s \n" " \n" " \n", pSuite->pName, _("Suite Cleanup Failed")); } } /*------------------------------------------------------------------------*/ /** Finalizes and closes the results output file generated * by the automated interface. */ static CU_ErrorCode uninitialize_result_file(void) { char* szTime; time_t tTime = 0; assert(NULL != f_pTestResultFile); CU_set_error(CUE_SUCCESS); time(&tTime); szTime = ctime(&tTime); fprintf(f_pTestResultFile, " %s" CU_VERSION " - %s \n" "", _("File Generated By CUnit v"), (NULL != szTime) ? szTime : ""); if (0 != fclose(f_pTestResultFile)) { CU_set_error(CUE_FCLOSE_FAILED); } return CU_get_error(); } /*------------------------------------------------------------------------*/ /** Generates an xml listing of all tests in all suites for the * specified test registry. The output is directed to a file * having the specified name. * @param pRegistry Test registry for which to generate list (non-NULL). * @param szFilename Non-NULL, non-empty string containing name for * listing file. * @return A CU_ErrorCode indicating the error status. */ static CU_ErrorCode automated_list_all_tests(CU_pTestRegistry pRegistry, const char* szFilename) { CU_pSuite pSuite = NULL; CU_pTest pTest = NULL; FILE* pTestListFile = NULL; char* szTime; time_t tTime = 0; CU_set_error(CUE_SUCCESS); if (NULL == pRegistry) { CU_set_error(CUE_NOREGISTRY); } else if ((NULL == szFilename) || (0 == strlen(szFilename))) { CU_set_error(CUE_BAD_FILENAME); } else if (NULL == (pTestListFile = fopen(f_szTestListFileName, "w"))) { CU_set_error(CUE_FOPEN_FAILED); } else { setvbuf(pTestListFile, NULL, _IONBF, 0); fprintf(pTestListFile, " \n" " \n" " \n" " \n" " \n" " \n"); fprintf(pTestListFile, " \n" " %s \n" " %u \n" " \n", _("Total Number of Suites"), pRegistry->uiNumberOfSuites); fprintf(pTestListFile, " \n" " %s \n" " %u \n" " \n" " \n", _("Total Number of Test Cases"), pRegistry->uiNumberOfTests); fprintf(pTestListFile, " \n"); pSuite = pRegistry->pSuite; while (NULL != pSuite) { assert(NULL != pSuite->pName); pTest = pSuite->pTest; fprintf(pTestListFile, " \n" " \n" " %s \n" " %s \n" " %s \n" " %s \n" " %u \n" " \n", pSuite->pName, (NULL != pSuite->pInitializeFunc) ? _("Yes") : _("No"), (NULL != pSuite->pCleanupFunc) ? _("Yes") : _("No"), (CU_FALSE != pSuite->fActive) ? _("Yes") : _("No"), pSuite->uiNumberOfTests); fprintf(pTestListFile, " \n"); while (NULL != pTest) { assert(NULL != pTest->pName); fprintf(pTestListFile, " \n" " %s \n" " %s \n" " \n", pTest->pName, (CU_FALSE != pSuite->fActive) ? _("Yes") : _("No")); pTest = pTest->pNext; } fprintf(pTestListFile, " \n" " \n"); pSuite = pSuite->pNext; } fprintf(pTestListFile, " \n"); time(&tTime); szTime = ctime(&tTime); fprintf(pTestListFile, " %s" CU_VERSION " - %s \n" "", _("File Generated By CUnit v"), (NULL != szTime) ? szTime : ""); if (0 != fclose(pTestListFile)) { CU_set_error(CUE_FCLOSE_FAILED); } } return CU_get_error(); } /*------------------------------------------------------------------------*/ /** Enable or Disable the XML output format to JUnit-like. When enabled (CU_TRUE) * then the Results xml that is produced can be read by cruisecontrol and displayed * in the test results page. */ void CU_automated_enable_junit_xml(CU_BOOL bFlag) { bJUnitXmlOutput = bFlag; } /** @} */ /*------------------------------------------------------------------------*/ /** Set tests suites package name */ void CU_automated_package_name_set(const char *pName) { memset(_gPackageName, 0, sizeof(_gPackageName)); /* Is object valid? */ if (pName) { strncpy(_gPackageName, pName, sizeof(_gPackageName) - 1); _gPackageName[sizeof(_gPackageName) - 1] = '\0'; } } /*------------------------------------------------------------------------*/ /** Get tests suites package name */ const char *CU_automated_package_name_get() { return _gPackageName; } /** @} */ cunit-2.1-3-dfsg/CUnit/Sources/Automated/Makefile.am000066400000000000000000000002771260701235000222050ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers noinst_LTLIBRARIES = libcunitautomated.la libcunitautomated_la_SOURCES = \ Automated.c cunit-2.1-3-dfsg/CUnit/Sources/Automated/Makefile.in000066400000000000000000000426421260701235000222200ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = CUnit/Sources/Automated DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcunitautomated_la_LIBADD = am_libcunitautomated_la_OBJECTS = Automated.lo libcunitautomated_la_OBJECTS = $(am_libcunitautomated_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcunitautomated_la_SOURCES) DIST_SOURCES = $(libcunitautomated_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers noinst_LTLIBRARIES = libcunitautomated.la libcunitautomated_la_SOURCES = \ Automated.c all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu CUnit/Sources/Automated/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu CUnit/Sources/Automated/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcunitautomated.la: $(libcunitautomated_la_OBJECTS) $(libcunitautomated_la_DEPENDENCIES) $(EXTRA_libcunitautomated_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(libcunitautomated_la_OBJECTS) $(libcunitautomated_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Automated.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am # 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: cunit-2.1-3-dfsg/CUnit/Sources/Basic/000077500000000000000000000000001260701235000172415ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Basic/.deps/000077500000000000000000000000001260701235000202525ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Basic/.deps/Basic.Plo000066400000000000000000000126001260701235000217460ustar00rootroot00000000000000Basic.lo: Basic.c /usr/include/stdio.h /usr/include/sys/cdefs.h \ /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ /usr/include/ctype.h /usr/include/runetype.h \ /usr/include/sys/_types/_wint_t.h /usr/include/assert.h \ /usr/include/string.h /usr/include/strings.h \ /usr/include/secure/_string.h ../../../CUnit/Headers/CUnit.h \ /usr/include/math.h ../../../CUnit/Headers/CUError.h \ /usr/include/errno.h /usr/include/sys/errno.h \ ../../../CUnit/Headers/TestDB.h /usr/include/setjmp.h \ ../../../CUnit/Headers/TestRun.h ../../../CUnit/Headers/Util.h \ ../../../CUnit/Headers/Basic.h ../../../CUnit/Headers/CUnit_intl.h /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/ctype.h: /usr/include/runetype.h: /usr/include/sys/_types/_wint_t.h: /usr/include/assert.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: ../../../CUnit/Headers/CUnit.h: /usr/include/math.h: ../../../CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: ../../../CUnit/Headers/TestDB.h: /usr/include/setjmp.h: ../../../CUnit/Headers/TestRun.h: ../../../CUnit/Headers/Util.h: ../../../CUnit/Headers/Basic.h: ../../../CUnit/Headers/CUnit_intl.h: cunit-2.1-3-dfsg/CUnit/Sources/Basic/Basic.c000066400000000000000000000263761260701235000204440ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2004-2006 Jerry St.Clair, Anil Kumar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Implementation for basic test runner interface. * * 11-Aug-2004 Initial implementation of basic test runner interface. (JDS) * * 8-Jan-2005 Fixed reporting bug (bug report cunit-Bugs-1093861). (JDS) * * 30-Apr-2005 Added notification of suite cleanup failure. (JDS) * * 02-May-2006 Added internationalization hooks. (JDS) */ /** @file * Basic interface with output to stdout. */ /** @addtogroup Basic * @{ */ #include #include #include #include #include #include "CUnit.h" #include "TestDB.h" #include "Util.h" #include "TestRun.h" #include "Basic.h" #include "CUnit_intl.h" /*================================================================= * Global/Static Definitions *=================================================================*/ /** Pointer to the currently running suite. */ static CU_pSuite f_pRunningSuite = NULL; /** Current run mode. */ static CU_BasicRunMode f_run_mode = CU_BRM_NORMAL; /*================================================================= * Forward declaration of module functions * *=================================================================*/ static CU_ErrorCode basic_initialize(void); static CU_ErrorCode basic_run_all_tests(CU_pTestRegistry pRegistry); static CU_ErrorCode basic_run_suite(CU_pSuite pSuite); static CU_ErrorCode basic_run_single_test(CU_pSuite pSuite, CU_pTest pTest); static void basic_test_start_message_handler(const CU_pTest pTest, const CU_pSuite pSuite); static void basic_test_complete_message_handler(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailureList); static void basic_all_tests_complete_message_handler(const CU_pFailureRecord pFailure); static void basic_suite_init_failure_message_handler(const CU_pSuite pSuite); static void basic_suite_cleanup_failure_message_handler(const CU_pSuite pSuite); /*================================================================= * Public Interface functions *=================================================================*/ CU_ErrorCode CU_basic_run_tests(void) { CU_ErrorCode error; if (NULL == CU_get_registry()) { if (CU_BRM_SILENT != f_run_mode) fprintf(stderr, "\n\n%s\n", _("FATAL ERROR - Test registry is not initialized.")); error = CUE_NOREGISTRY; } else if (CUE_SUCCESS == (error = basic_initialize())) error = basic_run_all_tests(NULL); return error; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_basic_run_suite(CU_pSuite pSuite) { CU_ErrorCode error; if (NULL == pSuite) error = CUE_NOSUITE; else if (CUE_SUCCESS == (error = basic_initialize())) error = basic_run_suite(pSuite); return error; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_basic_run_test(CU_pSuite pSuite, CU_pTest pTest) { CU_ErrorCode error; if (NULL == pSuite) error = CUE_NOSUITE; else if (NULL == pTest) error = CUE_NOTEST; else if (CUE_SUCCESS == (error = basic_initialize())) error = basic_run_single_test(pSuite, pTest); return error; } /*------------------------------------------------------------------------*/ void CU_basic_set_mode(CU_BasicRunMode mode) { f_run_mode = mode; } /*------------------------------------------------------------------------*/ CU_BasicRunMode CU_basic_get_mode(void) { return f_run_mode; } /*------------------------------------------------------------------------*/ void CU_basic_show_failures(CU_pFailureRecord pFailure) { int i; for (i = 1 ; (NULL != pFailure) ; pFailure = pFailure->pNext, i++) { fprintf(stdout, "\n %d. %s:%u - %s", i, (NULL != pFailure->strFileName) ? pFailure->strFileName : "", pFailure->uiLineNumber, (NULL != pFailure->strCondition) ? pFailure->strCondition : ""); } } /*================================================================= * Static module functions *=================================================================*/ /** Performs inialization actions for the basic interface. * This includes setting output to unbuffered, printing a * welcome message, and setting the test run handlers. * @return An error code indicating the framework error condition. */ static CU_ErrorCode basic_initialize(void) { /* Unbuffered output so everything reaches the screen */ setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); CU_set_error(CUE_SUCCESS); if (CU_BRM_SILENT != f_run_mode) fprintf(stdout, "\n\n %s" CU_VERSION "\n %s\n\n", _("CUnit - A unit testing framework for C - Version "), _("http://cunit.sourceforge.net/")); CU_set_test_start_handler(basic_test_start_message_handler); CU_set_test_complete_handler(basic_test_complete_message_handler); CU_set_all_test_complete_handler(basic_all_tests_complete_message_handler); CU_set_suite_init_failure_handler(basic_suite_init_failure_message_handler); CU_set_suite_cleanup_failure_handler(basic_suite_cleanup_failure_message_handler); return CU_get_error(); } /*------------------------------------------------------------------------*/ /** Runs all tests within the basic interface. * If non-NULL, the test registry is changed to the specified registry * before running the tests, and reset to the original registry when * done. If NULL, the default CUnit test registry will be used. * @param pRegistry The CU_pTestRegistry containing the tests * to be run. If NULL, use the default registry. * @return An error code indicating the error status * during the test run. */ static CU_ErrorCode basic_run_all_tests(CU_pTestRegistry pRegistry) { CU_pTestRegistry pOldRegistry = NULL; CU_ErrorCode result; f_pRunningSuite = NULL; if (NULL != pRegistry) pOldRegistry = CU_set_registry(pRegistry); result = CU_run_all_tests(); if (NULL != pRegistry) CU_set_registry(pOldRegistry); return result; } /*------------------------------------------------------------------------*/ /** Runs a specified suite within the basic interface. * @param pSuite The suite to be run (non-NULL). * @return An error code indicating the error status * during the test run. */ static CU_ErrorCode basic_run_suite(CU_pSuite pSuite) { f_pRunningSuite = NULL; return CU_run_suite(pSuite); } /*------------------------------------------------------------------------*/ /** Runs a single test for the specified suite within * the console interface. * @param pSuite The suite containing the test to be run (non-NULL). * @param pTest The test to be run (non-NULL). * @return An error code indicating the error status * during the test run. */ static CU_ErrorCode basic_run_single_test(CU_pSuite pSuite, CU_pTest pTest) { f_pRunningSuite = NULL; return CU_run_test(pSuite, pTest); } /*------------------------------------------------------------------------*/ /** Handler function called at start of each test. * @param pTest The test being run. * @param pSuite The suite containing the test. */ static void basic_test_start_message_handler(const CU_pTest pTest, const CU_pSuite pSuite) { assert(NULL != pSuite); assert(NULL != pTest); if (CU_BRM_VERBOSE == f_run_mode) { assert(NULL != pTest->pName); if ((NULL == f_pRunningSuite) || (f_pRunningSuite != pSuite)) { assert(NULL != pSuite->pName); fprintf(stdout, "\n%s: %s", _("Suite"), pSuite->pName); fprintf(stdout, "\n %s: %s ...", _("Test"), pTest->pName); f_pRunningSuite = pSuite; } else { fprintf(stdout, "\n %s: %s ...", _("Test"), pTest->pName); } } } /*------------------------------------------------------------------------*/ /** Handler function called at completion of each test. * @param pTest The test being run. * @param pSuite The suite containing the test. * @param pFailure Pointer to the 1st failure record for this test. */ static void basic_test_complete_message_handler(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailureList) { CU_pFailureRecord pFailure = pFailureList; int i; assert(NULL != pSuite); assert(NULL != pTest); if (NULL == pFailure) { if (CU_BRM_VERBOSE == f_run_mode) { fprintf(stdout, _("passed")); } } else { switch (f_run_mode) { case CU_BRM_VERBOSE: fprintf(stdout, _("FAILED")); break; case CU_BRM_NORMAL: assert(NULL != pSuite->pName); assert(NULL != pTest->pName); fprintf(stdout, _("\nSuite %s, Test %s had failures:"), pSuite->pName, pTest->pName); break; default: /* gcc wants all enums covered. ok. */ break; } if (CU_BRM_SILENT != f_run_mode) { for (i = 1 ; (NULL != pFailure) ; pFailure = pFailure->pNext, i++) { fprintf(stdout, "\n %d. %s:%u - %s", i, (NULL != pFailure->strFileName) ? pFailure->strFileName : "", pFailure->uiLineNumber, (NULL != pFailure->strCondition) ? pFailure->strCondition : ""); } } } } /*------------------------------------------------------------------------*/ /** Handler function called at completion of all tests in a suite. * @param pFailure Pointer to the test failure record list. */ static void basic_all_tests_complete_message_handler(const CU_pFailureRecord pFailure) { CU_UNREFERENCED_PARAMETER(pFailure); /* not used in basic interface */ printf("\n\n"); CU_print_run_results(stdout); printf("\n"); } /*------------------------------------------------------------------------*/ /** Handler function called when suite initialization fails. * @param pSuite The suite for which initialization failed. */ static void basic_suite_init_failure_message_handler(const CU_pSuite pSuite) { assert(NULL != pSuite); assert(NULL != pSuite->pName); if (CU_BRM_SILENT != f_run_mode) fprintf(stdout, _("\nWARNING - Suite initialization failed for '%s'."), pSuite->pName); } /*------------------------------------------------------------------------*/ /** Handler function called when suite cleanup fails. * @param pSuite The suite for which cleanup failed. */ static void basic_suite_cleanup_failure_message_handler(const CU_pSuite pSuite) { assert(NULL != pSuite); assert(NULL != pSuite->pName); if (CU_BRM_SILENT != f_run_mode) fprintf(stdout, _("\nWARNING - Suite cleanup failed for '%s'."), pSuite->pName); } /** @} */ cunit-2.1-3-dfsg/CUnit/Sources/Basic/Makefile.am000066400000000000000000000002631260701235000212760ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers noinst_LTLIBRARIES = libcunitbasic.la libcunitbasic_la_SOURCES = \ Basic.c cunit-2.1-3-dfsg/CUnit/Sources/Basic/Makefile.in000066400000000000000000000425221260701235000213130ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = CUnit/Sources/Basic DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcunitbasic_la_LIBADD = am_libcunitbasic_la_OBJECTS = Basic.lo libcunitbasic_la_OBJECTS = $(am_libcunitbasic_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcunitbasic_la_SOURCES) DIST_SOURCES = $(libcunitbasic_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers noinst_LTLIBRARIES = libcunitbasic.la libcunitbasic_la_SOURCES = \ Basic.c all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu CUnit/Sources/Basic/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu CUnit/Sources/Basic/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcunitbasic.la: $(libcunitbasic_la_OBJECTS) $(libcunitbasic_la_DEPENDENCIES) $(EXTRA_libcunitbasic_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(libcunitbasic_la_OBJECTS) $(libcunitbasic_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Basic.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am # 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: cunit-2.1-3-dfsg/CUnit/Sources/Console/000077500000000000000000000000001260701235000176225ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Console/.deps/000077500000000000000000000000001260701235000206335ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Console/.deps/Console.Plo000066400000000000000000000126101260701235000227110ustar00rootroot00000000000000Console.lo: Console.c /usr/include/stdio.h /usr/include/sys/cdefs.h \ /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ /usr/include/ctype.h /usr/include/runetype.h \ /usr/include/sys/_types/_wint_t.h /usr/include/assert.h \ /usr/include/string.h /usr/include/strings.h \ /usr/include/secure/_string.h ../../../CUnit/Headers/CUnit.h \ /usr/include/math.h ../../../CUnit/Headers/CUError.h \ /usr/include/errno.h /usr/include/sys/errno.h \ ../../../CUnit/Headers/TestDB.h /usr/include/setjmp.h \ ../../../CUnit/Headers/TestRun.h ../../../CUnit/Headers/Util.h \ ../../../CUnit/Headers/Console.h ../../../CUnit/Headers/CUnit_intl.h /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/ctype.h: /usr/include/runetype.h: /usr/include/sys/_types/_wint_t.h: /usr/include/assert.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: ../../../CUnit/Headers/CUnit.h: /usr/include/math.h: ../../../CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: ../../../CUnit/Headers/TestDB.h: /usr/include/setjmp.h: ../../../CUnit/Headers/TestRun.h: ../../../CUnit/Headers/Util.h: ../../../CUnit/Headers/Console.h: ../../../CUnit/Headers/CUnit_intl.h: cunit-2.1-3-dfsg/CUnit/Sources/Console/Console.c000066400000000000000000000605371260701235000214030ustar00rootroot00000000000000 /* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Implementation of the Console Test Interface. * * Aug 2001 Initial implementation (AK) * * 19/Aug/2001 Added initial console interface functions without * any run functionality. (AK) * * 24/Aug/2001 Added compare_strings, show_errors, list_suites, * list_tests function declarations. (AK) * * 17-Jul-2004 New interface, doxygen comments, reformat console output. (JDS) * * 30-Apr-2005 Added notification of suite cleanup failure. (JDS) * * 24-Apr-2006 Suite/test selection is now by number rather than name. * Inactive suites/tests now reported. * Interface supports (de)activation of tests/suites. * Help function added for both menu levels. * Option menu added. Immediate action on hotkeys * without needing to , like curses. (JDS) * * 02-May-2006 Added internationalization hooks. (JDS) */ /** @file * Console test interface with interactive output (implementation). */ /** @addtogroup Console @{ */ #include #include #include #include #include #include "CUnit.h" #include "TestDB.h" #include "Util.h" #include "TestRun.h" #include "Console.h" #include "CUnit_intl.h" /** Console interface status flag. */ typedef enum { CU_STATUS_CONTINUE = 1, /**< Continue processing commands in current menu. */ CU_STATUS_MOVE_UP, /**< Move up to the previous menu. */ CU_STATUS_STOP /**< Stop processing (user selected 'Quit'). */ } CU_STATUS; /*================================================================= * Global / Static data definitions *=================================================================*/ /** Pointer to the currently running suite. */ static CU_pSuite f_pRunningSuite = NULL; /** Common width measurements for output formatting. */ static size_t f_yes_width = 0; static size_t f_no_width = 0; /*================================================================= * Static function forward declarations *=================================================================*/ static void console_registry_level_run(CU_pTestRegistry pRegistry); static CU_STATUS console_suite_level_run(CU_pSuite pSuite); static CU_STATUS console_set_options_run(void); static CU_ErrorCode console_run_all_tests(CU_pTestRegistry pRegistry); static CU_ErrorCode console_run_suite(CU_pSuite pSuite); static CU_ErrorCode console_run_single_test(CU_pSuite pSuite, CU_pTest pTest); static void console_test_start_message_handler(const CU_pTest pTest, const CU_pSuite pSuite); static void console_test_complete_message_handler(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure); static void console_all_tests_complete_message_handler(const CU_pFailureRecord pFailure); static void console_suite_init_failure_message_handler(const CU_pSuite pSuite); static void console_suite_cleanup_failure_message_handler(const CU_pSuite pSuite); static CU_ErrorCode select_test(CU_pSuite pSuite, CU_pTest* ppTest); static CU_ErrorCode select_suite(CU_pTestRegistry pRegistry, CU_pSuite* ppSuite); static void list_suites(CU_pTestRegistry pRegistry); static void list_tests(CU_pSuite pSuite); static void show_failures(void); /*================================================================= * Public Interface functions *=================================================================*/ void CU_console_run_tests(void) { /* * To avoid user from cribbing about the output not coming onto * screen at the moment of SIGSEGV. */ setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); fprintf(stdout, "\n\n %s" CU_VERSION "\n %s\n", _("CUnit - A Unit testing framework for C - Version "), _("http://cunit.sourceforge.net/")); if (NULL == CU_get_registry()) { fprintf(stderr, "\n\n%s\n", _("FATAL ERROR - Test registry is not initialized.")); CU_set_error(CUE_NOREGISTRY); } else { f_yes_width = strlen(_("Yes")); f_no_width = strlen(_("No")); CU_set_test_start_handler(console_test_start_message_handler); CU_set_test_complete_handler(console_test_complete_message_handler); CU_set_all_test_complete_handler(console_all_tests_complete_message_handler); CU_set_suite_init_failure_handler(console_suite_init_failure_message_handler); CU_set_suite_cleanup_failure_handler(console_suite_cleanup_failure_message_handler); console_registry_level_run(NULL); } } /*================================================================= * Static function implementation *=================================================================*/ /** * Main loop for console interface. * Displays actions and responds based on user imput. If pRegistry * is NULL, will use the default internal CUnit test registry. * * @param pRegistry The CU_pTestRegistry to use for testing. */ static void console_registry_level_run(CU_pTestRegistry pRegistry) { int chChoice; CU_pSuite pSuite = NULL; CU_STATUS eStatus = CU_STATUS_CONTINUE; char szTemp[256]; while (CU_STATUS_CONTINUE == eStatus) { fprintf(stdout, "\n\n%s\n%s\n%s", _("***************** CUNIT CONSOLE - MAIN MENU ******************************"), _("(R)un (S)elect (L)ist (A)ctivate (F)ailures (O)ptions (H)elp (Q)uit"), _("Enter command: ")); chChoice = toupper(getchar()); fgets(szTemp, 256, stdin); /* flush any chars out of the read buffer */ if (chChoice == _("R")[0]) { console_run_all_tests(pRegistry); } else if (chChoice == _("S")[0]) { if (CUE_SUCCESS == select_suite(pRegistry, &pSuite)) { assert(NULL != pSuite->pName); fprintf(stdout, _("Suite '%s' selected."), pSuite->pName); fprintf(stdout, "\n"); if (CU_STATUS_STOP == console_suite_level_run(pSuite)) { eStatus = CU_STATUS_STOP; } } else { fprintf(stdout, "\n%s\n", _("Suite not found.")); } } else if (chChoice == _("L")[0]) { list_suites(pRegistry); } else if (chChoice == _("A")[0]) { while (CUE_SUCCESS == select_suite(pRegistry, &pSuite)) { CU_set_suite_active(pSuite, (CU_FALSE == pSuite->fActive) ? CU_TRUE : CU_FALSE); } } else if (chChoice == _("F")[0]) { show_failures(); } else if (chChoice == _("O")[0]) { console_set_options_run(); } else if (chChoice == _("Q")[0]) { eStatus = CU_STATUS_STOP; } else if ((chChoice == _("H")[0]) || (chChoice == _("?")[0])) { fprintf(stdout, "\n%s\n", _("Commands: R - run all tests in all suites")); fprintf(stdout, "%s\n", _(" S - Select a suite to run or modify")); fprintf(stdout, "%s\n", _(" L - List all registered suites")); fprintf(stdout, "%s\n", _(" A - Activate or deactivate a suite (toggle)")); fprintf(stdout, "%s\n", _(" F - Show failures from last test run")); fprintf(stdout, "%s\n", _(" O - Set CUnit options")); fprintf(stdout, "%s\n", _(" H - Show this help message")); fprintf(stdout, "%s\n", _(" Q - Quit the application")); } } } /*------------------------------------------------------------------------*/ /** * Runs a selected suite within the console interface. * Displays actions and responds based on user imput. * * @param pSuite The suite to use for testing (non-NULL). */ static CU_STATUS console_suite_level_run(CU_pSuite pSuite) { int chChoice; CU_pTest pTest = NULL; CU_STATUS eStatus = CU_STATUS_CONTINUE; char szTemp[256]; assert(NULL != pSuite); assert(NULL != pSuite->pName); while (CU_STATUS_CONTINUE == eStatus) { fprintf(stdout, "\n%s\n%s\n%s", _("***************** CUNIT CONSOLE - SUITE MENU ***************************"), _("(R)un (S)elect (L)ist (A)ctivate (F)ailures (U)p (O)ptions (H)elp (Q)uit"), _("Enter command: ")); chChoice = toupper(getchar()); fgets(szTemp, 256, stdin); /* flush any chars out of the read buffer */ if (chChoice == _("R")[0]) { console_run_suite(pSuite); } else if (chChoice == _("S")[0]) { if (CUE_SUCCESS == select_test(pSuite, &pTest)) { console_run_single_test(pSuite, pTest); } else { fprintf(stdout, "\n%s\n", _("Test not found.")); } } else if (chChoice == _("L")[0]) { list_tests(pSuite); } else if (chChoice == _("A")[0]) { while (CUE_SUCCESS == select_test(pSuite, &pTest)) { CU_set_test_active(pTest, (CU_FALSE == pTest->fActive) ? CU_TRUE : CU_FALSE); } } else if (chChoice == _("F")[0]) { show_failures(); } else if ((chChoice == _("M")[0]) || (chChoice == _("U")[0])) { eStatus = CU_STATUS_MOVE_UP; } else if (chChoice == _("O")[0]) { console_set_options_run(); } else if (chChoice == _("Q")[0]) { eStatus = CU_STATUS_STOP; } else if ((chChoice == _("H")[0]) || (chChoice == _("?")[0])) { fprintf(stdout, "\n"); fprintf(stdout, _("Commands: R - run all tests in suite %s"), pSuite->pName); fprintf(stdout, "\n"); fprintf(stdout, "%s\n", _(" S - Select and run a test")); fprintf(stdout, _(" L - List all tests registered in suite %s"), pSuite->pName); fprintf(stdout, "\n"); fprintf(stdout, "%s\n", _(" A - Activate or deactivate a test (toggle)")); fprintf(stdout, "%s\n", _(" F - Show failures from last test run")); fprintf(stdout, "%s\n", _(" M - Move up to main menu")); fprintf(stdout, "%s\n", _(" O - Set CUnit options")); fprintf(stdout, "%s\n", _(" H - Show this help message")); fprintf(stdout, "%s\n", _(" Q - Quit the application")); } } return eStatus; } /*------------------------------------------------------------------------*/ /** * Sets CUnit options interactively using console interface. * Displays actions and responds based on user imput. */ static CU_STATUS console_set_options_run(void) { int chChoice; CU_STATUS eStatus = CU_STATUS_CONTINUE; char szTemp[256]; while (CU_STATUS_CONTINUE == eStatus) { fprintf(stdout, "\n%s\n", _("***************** CUNIT CONSOLE - OPTIONS **************************")); fprintf(stdout, _(" 1 - Inactive suites/tests treated as runtime failures %s"), (CU_FALSE != CU_get_fail_on_inactive()) ? _("Yes") : _("No")); fprintf(stdout, "\n********************************************************************\n"); fprintf(stdout, "%s", _("Enter number of option to change : ")); chChoice = getchar(); fgets(szTemp, 256, stdin); /* flush any chars out of the read buffer */ switch (tolower(chChoice)) { case '1': CU_set_fail_on_inactive((CU_FALSE == CU_get_fail_on_inactive()) ? CU_TRUE : CU_FALSE); break; default: eStatus = CU_STATUS_MOVE_UP; break; } } return eStatus; } /*------------------------------------------------------------------------*/ /** * Runs all tests within the console interface. * The test registry is changed to the specified registry before running * the tests, and reset to the original registry when done. If pRegistry * is NULL, the default internal CUnit test registry is used. * * @param pRegistry The CU_pTestRegistry containing the tests to be run. * @return An error code indicating the error status during the test run. */ static CU_ErrorCode console_run_all_tests(CU_pTestRegistry pRegistry) { CU_pTestRegistry pOldRegistry = NULL; CU_ErrorCode result; f_pRunningSuite = NULL; if (NULL != pRegistry) { pOldRegistry = CU_set_registry(pRegistry); } result = CU_run_all_tests(); if (NULL != pRegistry) { CU_set_registry(pOldRegistry); } return result; } /*------------------------------------------------------------------------*/ /** * Runs a specified suite within the console interface. * * @param pSuite The suite to be run (non-NULL). * @return An error code indicating the error status during the test run. */ static CU_ErrorCode console_run_suite(CU_pSuite pSuite) { f_pRunningSuite = NULL; return CU_run_suite(pSuite); } /*------------------------------------------------------------------------*/ /** ( Runs a specific test for the specified suite within the console interface. * * @param pSuite The suite containing the test to be run (non-NULL). * @param pTest The test to be run (non-NULL). * @return An error code indicating the error status during the test run. */ static CU_ErrorCode console_run_single_test(CU_pSuite pSuite, CU_pTest pTest) { f_pRunningSuite = NULL; return CU_run_test(pSuite, pTest); } /*------------------------------------------------------------------------*/ /** * Reads the number of a test from standard input and locates the test * at that position. A pointer to the located test is stored * in ppTest upon return. * * @param pSuite The suite to be queried. * @param ppTest Pointer to location to store the selected test. * @return CUE_SUCCESS if a test was successfully selected, CUE_NOTEST * otherwise. On return, ppTest points to the test selected, * or NULL if none. */ static CU_ErrorCode select_test(CU_pSuite pSuite, CU_pTest* ppTest) { char buffer[100]; assert(NULL != pSuite); assert(NULL != pSuite->pName); *ppTest = NULL; if (0 == pSuite->uiNumberOfTests) { fprintf(stdout, "\n"); fprintf(stdout, _("Suite %s contains no tests."), pSuite->pName); } else { list_tests(pSuite); fprintf(stdout, "\n"); fprintf(stdout, _("Enter number of test to select (1-%u) : "), pSuite->uiNumberOfTests); fgets(buffer, 100, stdin); *ppTest = CU_get_test_by_index(atol(buffer), pSuite); } return (NULL != *ppTest) ? CUE_SUCCESS : CUE_NOTEST; } /*------------------------------------------------------------------------*/ /** * Reads the number of a suite from standard input and locates the suite * at that position. If pRegistry is NULL, the default CUnit registry * will be used. The located pSuite is returned in ppSuite. ppSuite * will be NULL if there is no suite in the registry having the input name. * Returns NULL if the suite is successfully located, non-NULL otherwise. * * @param pRegistry The CU_pTestRegistry to query. If NULL, use the * default internal CUnit test registry. * @param ppSuite Pointer to location to store the selected suite. * @return CUE_SUCCESS if a suite was successfully selected, CUE_NOSUITE * otherwise. On return, ppSuite points to the suite selected. */ static CU_ErrorCode select_suite(CU_pTestRegistry pRegistry, CU_pSuite* ppSuite) { char buffer[100]; if (NULL == pRegistry) { pRegistry = CU_get_registry(); } if (0 == pRegistry->uiNumberOfSuites) { fprintf(stdout, "\n%s", _("No suites are registered.")); *ppSuite = NULL; } else { list_suites(pRegistry); fprintf(stdout, "\n"); fprintf(stdout, _("Enter number of suite to select (1-%u) : "), pRegistry->uiNumberOfSuites); fgets(buffer, 100, stdin); *ppSuite = CU_get_suite_by_index(atol(buffer), pRegistry); } return (NULL != *ppSuite) ? CUE_SUCCESS : CUE_NOSUITE; } /*------------------------------------------------------------------------*/ /** * Lists the suites in a registry to standard output. * @param pRegistry The CU_pTestRegistry to query (non-NULL). */ static void list_suites(CU_pTestRegistry pRegistry) { CU_pSuite pCurSuite = NULL; int i; static size_t width[6]; if (NULL == pRegistry) { pRegistry = CU_get_registry(); } assert(NULL != pRegistry); if (0 == pRegistry->uiNumberOfSuites) { fprintf(stdout, "\n%s\n", _("No suites are registered.")); return; } assert(NULL != pRegistry->pSuite); /* only need to calculate formatting widths once */ if (0 == width[0]) { width[0] = CU_number_width(pRegistry->uiNumberOfSuites) + 1; width[1] = 34; width[2] = CU_MAX(strlen(_("Init?")), CU_MAX(f_yes_width, f_no_width)) + 1; width[3] = CU_MAX(strlen(_("Cleanup?")), CU_MAX(f_yes_width, f_no_width)) + 1; width[4] = CU_MAX(strlen(_("#Tests")), CU_number_width(pRegistry->uiNumberOfTests) + 1) + 1; width[5] = CU_MAX(strlen(_("Active?")), CU_MAX(f_yes_width, f_no_width)) + 1; } fprintf(stdout, "\n%s", _("--------------------- Registered Suites -----------------------------")); fprintf(stdout, "\n%*s %-*s%*s%*s%*s%*s\n", width[0], _("#"), width[1], _("Suite Name"), width[2], _("Init?"), width[3], _("Cleanup?"), width[4], _("#Tests"), width[5], _("Active?")); for (i = 1, pCurSuite = pRegistry->pSuite; (NULL != pCurSuite); pCurSuite = pCurSuite->pNext, ++i) { assert(NULL != pCurSuite->pName); fprintf(stdout, "\n%*d. %-*.*s%*s%*s%*u%*s", width[0], i, width[1], width[1] - 1, pCurSuite->pName, width[2]-1, (NULL != pCurSuite->pInitializeFunc) ? _("Yes") : _("No"), width[3], (NULL != pCurSuite->pCleanupFunc) ? _("Yes") : _("No"), width[4], pCurSuite->uiNumberOfTests, width[5], (CU_FALSE != pCurSuite->fActive) ? _("Yes") : _("No")); } fprintf(stdout, "\n---------------------------------------------------------------------\n"); fprintf(stdout, _("Total Number of Suites : %-u"), pRegistry->uiNumberOfSuites); fprintf(stdout, "\n"); } /*------------------------------------------------------------------------*/ /** * Lists the tests in a suite to standard output. * @param pSuite The suite to query (non-NULL). */ static void list_tests(CU_pSuite pSuite) { CU_pTest pCurTest = NULL; unsigned int uiCount; static size_t width[3]; assert(NULL != pSuite); assert(NULL != pSuite->pName); if (0 == pSuite->uiNumberOfTests) { fprintf(stdout, "\n"); fprintf(stdout, _("Suite %s contains no tests."), pSuite->pName); fprintf(stdout, "\n"); return; } assert(NULL != pSuite->pTest); /* only number of tests can change between calls */ width[0] = CU_number_width(pSuite->uiNumberOfTests) + 1; if (0 == width[1]) { width[1] = 34; width[2] = CU_MAX(strlen(_("Active?")), CU_MAX(f_yes_width, f_no_width)) + 1; } fprintf(stdout, "\n%s", _("----------------- Test List ------------------------------")); fprintf(stdout, "\n%s%s\n", _("Suite: "), pSuite->pName); fprintf(stdout, "\n%*s %-*s%*s\n", width[0], _("#"), width[1], _("Test Name"), width[2], _("Active?")); for (uiCount = 1, pCurTest = pSuite->pTest ; NULL != pCurTest ; uiCount++, pCurTest = pCurTest->pNext) { assert(NULL != pCurTest->pName); fprintf(stdout, "\n%*u. %-*.*s%*s", width[0], uiCount, width[1], width[1]-1, pCurTest->pName, width[2]-1, (CU_FALSE != pCurTest->fActive) ? _("Yes") : _("No")); } fprintf(stdout, "\n----------------------------------------------------------\n"); fprintf(stdout, _("Total Number of Tests : %-u"), pSuite->uiNumberOfTests); fprintf(stdout, "\n"); } /*------------------------------------------------------------------------*/ /** Displays the record of test failures on standard output. */ static void show_failures(void) { unsigned int i; CU_pFailureRecord pFailure = CU_get_failure_list(); if (NULL == pFailure) { fprintf(stdout, "\n%s\n", _("No failures.")); } else { fprintf(stdout, "\n%s", _("--------------- Test Run Failures -------------------------")); fprintf(stdout, "\n%s\n", _(" src_file:line# : (suite:test) : failure_condition")); for (i = 1 ; (NULL != pFailure) ; pFailure = pFailure->pNext, i++) { fprintf(stdout, "\n%d. %s:%u : (%s : %s) : %s", i, (NULL != pFailure->strFileName) ? pFailure->strFileName : "", pFailure->uiLineNumber, ((NULL != pFailure->pSuite) && (NULL != pFailure->pSuite->pName)) ? pFailure->pSuite->pName : "", ((NULL != pFailure->pTest) && (NULL != pFailure->pTest->pName)) ? pFailure->pTest->pName : "", (NULL != pFailure->strCondition) ? pFailure->strCondition : ""); } fprintf(stdout, "\n-----------------------------------------------------------"); fprintf(stdout, "\n"); fprintf(stdout, _("Total Number of Failures : %-u"), i - 1); fprintf(stdout, "\n"); } } /*------------------------------------------------------------------------*/ /** Handler function called at start of each test. * @param pTest The test being run. * @param pSuite The suite containing the test. */ static void console_test_start_message_handler(const CU_pTest pTest, const CU_pSuite pSuite) { assert(NULL != pTest); assert(NULL != pTest->pName); assert(NULL != pSuite); assert(NULL != pSuite->pName); /* Comparing the Addresses rather than the Group Names. */ if ((NULL == f_pRunningSuite) || (f_pRunningSuite != pSuite)) { fprintf(stdout, _("\nRunning Suite : %s"), pSuite->pName); fprintf(stdout, _("\n Running Test : %s"), pTest->pName); f_pRunningSuite = pSuite; } else { fprintf(stdout, _("\n Running Test : %s"), pTest->pName); } } /*------------------------------------------------------------------------*/ /** Handler function called at completion of each test. * @param pTest The test being run. * @param pSuite The suite containing the test. * @param pFailure Pointer to the 1st failure record for this test. */ static void console_test_complete_message_handler(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure) { /* * For console interface do nothing. This is useful only for the test * interface where UI is involved. Just silence compiler warnings. */ CU_UNREFERENCED_PARAMETER(pTest); CU_UNREFERENCED_PARAMETER(pSuite); CU_UNREFERENCED_PARAMETER(pFailure); } /*------------------------------------------------------------------------*/ /** Handler function called at completion of all tests in a suite. * @param pFailure Pointer to the test failure record list. */ static void console_all_tests_complete_message_handler(const CU_pFailureRecord pFailure) { CU_UNREFERENCED_PARAMETER(pFailure); /* not used in console interface */ printf("\n\n"); CU_print_run_results(stdout); printf("\n"); } /*------------------------------------------------------------------------*/ /** Handler function called when suite initialization fails. * @param pSuite The suite for which initialization failed. */ static void console_suite_init_failure_message_handler(const CU_pSuite pSuite) { assert(NULL != pSuite); assert(NULL != pSuite->pName); fprintf(stdout, _("\nWARNING - Suite initialization failed for '%s'."), pSuite->pName); } /*------------------------------------------------------------------------*/ /** Handler function called when suite cleanup fails. * @param pSuite The suite for which cleanup failed. */ static void console_suite_cleanup_failure_message_handler(const CU_pSuite pSuite) { assert(NULL != pSuite); assert(NULL != pSuite->pName); fprintf(stdout, _("\nWARNING - Suite cleanup failed for '%s'."), pSuite->pName); } /** @} */ cunit-2.1-3-dfsg/CUnit/Sources/Console/Makefile.am000066400000000000000000000002711260701235000216560ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers noinst_LTLIBRARIES = libcunitconsole.la libcunitconsole_la_SOURCES = \ Console.c cunit-2.1-3-dfsg/CUnit/Sources/Console/Makefile.in000066400000000000000000000425721260701235000217010ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = CUnit/Sources/Console DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcunitconsole_la_LIBADD = am_libcunitconsole_la_OBJECTS = Console.lo libcunitconsole_la_OBJECTS = $(am_libcunitconsole_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcunitconsole_la_SOURCES) DIST_SOURCES = $(libcunitconsole_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers noinst_LTLIBRARIES = libcunitconsole.la libcunitconsole_la_SOURCES = \ Console.c all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu CUnit/Sources/Console/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu CUnit/Sources/Console/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcunitconsole.la: $(libcunitconsole_la_OBJECTS) $(libcunitconsole_la_DEPENDENCIES) $(EXTRA_libcunitconsole_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(libcunitconsole_la_OBJECTS) $(libcunitconsole_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Console.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am # 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: cunit-2.1-3-dfsg/CUnit/Sources/Curses/000077500000000000000000000000001260701235000174645ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Curses/.deps/000077500000000000000000000000001260701235000204755ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Curses/.deps/Curses.Plo000066400000000000000000000000101260701235000224040ustar00rootroot00000000000000# dummy cunit-2.1-3-dfsg/CUnit/Sources/Curses/Curses.c000066400000000000000000001307201260701235000210770ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Implementation of the Curses based Test Interface. * * 01/Nov/2001 Started Curses based interface for CUnit. (AK) * * 04/Nov/2001 Added Scrolling Capability to the Details Window. (AK) * * 24/Nov/2001 Added List and Show Failure Capability to the Details Window. * Also added group initialization failure message handler. (AK) * * 09-Aug-2004 New interface, made all curses local functions static. (JDS) * * 30-Apr-2006 Suite/test selection is now by number rather than name. * Inactive suites/tests now reported. * Interface supports (de)activation of tests/suites. * Help function added for both menu levels. * Option menu added. (JDS) * * 02-May-2006 Added internationalization hooks. (JDS) */ /** @file * Curses test interface with interactive output (implementation). */ /** @addtogroup Curses @{ */ #include #include #include #include #include #include #include "CUnit.h" #include "TestDB.h" #include "Util.h" #include "TestRun.h" #include "CUCurses.h" #include "CUnit_intl.h" /*================================================================= * Global / Static data definitions *=================================================================*/ /* Type Definitions */ #ifndef false #define false (0) /**< Local boolean definition for false. */ #endif #ifndef true #define true (~false) /**< Local boolean definition for true. */ #endif /** Curses interface status flag. */ typedef enum { CONTINUE = 1, /**< Continue processing commands in current menu. */ MOVE_UP, /**< Move up to the previous menu. */ STOP /**< Stop processing (user selected 'Quit'). */ } STATUS; /** Menu type. */ typedef enum { MAIN_MENU = 1, GROUP_MENU } MENU_TYPE; /** Pointers to curses interface windows. */ typedef struct { WINDOW* pMainWin; /**< Main window. */ WINDOW* pTitleWin; /**< Title window. */ WINDOW* pProgressWin; /**< Progress bar window. */ WINDOW* pSummaryWin; /**< Summary window. */ WINDOW* pRunSummaryWin; /**< Run Summary window. */ WINDOW* pDetailsWin; /**< Details window. */ WINDOW* pOptionsWin; /**< Options window. */ } APPWINDOWS; /** Window elements. */ typedef struct { WINDOW* pPad; /**< Pointer to the pad. */ unsigned int uiRows; /**< Number of rows in pad. */ unsigned int uiColumns; /**< Number of columns in pad. */ unsigned int uiPadRow; /**< Current pad row. */ unsigned int uiPadCol; /**< Current pad column. */ unsigned int uiWinLeft; /**< Left position of containing window. */ unsigned int uiWinTop; /**< Top position of containing window. */ unsigned int uiWinRows; /**< Number of rows in containing window. */ unsigned int uiWinColumns; /**< Number of columns in containing window. */ } APPPAD; /* * Constants definitions */ /** Standard string length. */ #define STRING_LENGTH 128 /** String holding main menu run options. */ static const char* MAIN_OPTIONS = N_("(R)un (S)elect (L)ist (A)ctivate (F)ailures (O)ptions (H)elp (Q)uit"); /** String holding suite menu run options. */ static const char* SUITE_OPTIONS = N_("(R)un (S)elect (L)ist (A)ctivate (F)ailures (O)ptions (H)elp (U)p (Q)uit"); /* * Color Pairs Initialized for the Various Parameter Display */ static const int CLEAR_COLOR = 1; /**< Clear color.*/ static const int TITLE_COLOR = 2; /**< Title color.*/ static const int PROGRESS_BACKGROUND_COLOR = 3; /**< progress bar background color.*/ static const int PROGRESS_SUCCESS_COLOR = 4; /**< Progress bar success color.*/ static const int PROGRESS_FAILURE_COLOR = 5; /**< Progress bar failure color.*/ static const int MENU_COLOR = 6; /**< Menu color.*/ static const char* const f_szProgress = N_("Progress "); /**< Text for progress bar. */ static const char* f_szOptions = NULL; /**< String containing options. */ static CU_pTest f_pCurrentTest = NULL; /**< Pointer to the test currently being run. */ static CU_pSuite f_pCurrentSuite = NULL; /**< Pointer to the suite currently being run. */ static unsigned int f_uiTotalTests = 0; /**< Number of tests in registered suites. */ static unsigned int f_uiTestsRun = 0; /**< Number of tests actually run. */ static unsigned int f_uiTestsSkipped = 0; /**< Number of tests skipped during run. */ static unsigned int f_uiTestsFailed = 0; /**< Number of tests having failed assertions. */ static unsigned int f_uiTestsRunSuccessful = 0; /**< Number of tests run with no failed assertions. */ static unsigned int f_uiTotalSuites = 0; /**< Number of registered suites. */ static unsigned int f_uiSuitesSkipped = 0; /**< Number of suites skipped during run. */ static short f_nLeft; /**< Left window position. */ static short f_nTop; /**< Top window position. */ static short f_nWidth; /**< Width of window. */ static short f_nHeight; /**< Height of window. */ /** Common width measurements for output formatting. */ static size_t f_yes_width = 0; static size_t f_no_width = 0; /** Pointers to curses interface windows. */ static APPWINDOWS application_windows = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}; /** Details window definition. */ static APPPAD details_pad = {NULL, 0, 0, 0, 0, 0, 0, 0, 0}; /*================================================================= * Static function forward declarations *=================================================================*/ static bool initialize_windows(void); static void uninitialize_windows(void); static void refresh_windows(void); static void refresh_title_window(void); static void refresh_progress_window(void); static void refresh_summary_window(void); static void refresh_run_summary_window(void); static void refresh_details_window(void); static void refresh_options_window(void); static void show_detail_window_message(const char* msg); static bool create_pad(APPPAD* pPad, WINDOW* pParent, unsigned int uiRows, unsigned int uiCols); static void scroll_window(int nCommand, APPPAD* pPad, void (*parent_refresh)(void)); static bool test_initialize(void); static void show_progress_bar(void); static const char* get_hotkey(const char* szStr, int* pPos); static void read_input_string(const char szPropmt[], char szValue[], int nBytes); static STATUS curses_registry_level_run(CU_pTestRegistry pRegistry); static STATUS curses_suite_level_run(CU_pSuite pSuite); static STATUS curses_set_options_run(void); static CU_ErrorCode curses_run_all_tests(CU_pTestRegistry pRegistry); static CU_ErrorCode curses_run_suite_tests(CU_pSuite pSuite); static CU_ErrorCode curses_run_single_test(CU_pSuite pSuite, CU_pTest pTest); static void curses_test_start_message_handler(const CU_pTest pTest, const CU_pSuite pSuite); static void curses_test_complete_message_handler(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure); static void curses_all_tests_complete_message_handler(const CU_pFailureRecord pFailure); static void curses_suite_init_failure_message_handler(const CU_pSuite pSuite); static void list_suites(CU_pTestRegistry pRegistry); static void list_tests(CU_pSuite pSuite); static void show_failures(void); static void show_registry_level_help(void); static void show_suite_level_help(CU_pSuite pSuite); static void reset_run_parameters(void); /*================================================================= * Public Interface functions *=================================================================*/ void CU_curses_run_tests(void) { setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); f_szOptions = _(MAIN_OPTIONS); if (!initialize_windows()) { return; } if (!test_initialize()) { goto test_initialize_fail; } f_yes_width = strlen(_("Yes")); f_no_width = strlen(_("No")); show_detail_window_message(_("Welcome to CUnit. Press the indicated key to run the command.")); curses_registry_level_run(CU_get_registry()); /* fall thru */ test_initialize_fail: uninitialize_windows(); } /*================================================================= * Static function implementation *=================================================================*/ /** Initialize the curses interface windows. */ static bool initialize_windows(void) { bool bStatus = false; if (NULL == (application_windows.pMainWin = initscr())) { goto main_fail; } start_color(); f_nLeft = application_windows.pMainWin->_begx; f_nTop = application_windows.pMainWin->_begy; f_nWidth = application_windows.pMainWin->_maxx; f_nHeight = application_windows.pMainWin->_maxy; if (NULL == (application_windows.pTitleWin = newwin(3, f_nWidth, 0, 0))) { goto title_fail; } if (NULL == (application_windows.pProgressWin = newwin(2, f_nWidth, 3, 0))) { goto progress_fail; } if (NULL == (application_windows.pSummaryWin = newwin(1, f_nWidth, 5, 0))) { goto summary_fail; } if (NULL == (application_windows.pRunSummaryWin = newwin(1, f_nWidth, 6, 0))) { goto run_summary_fail; } if (NULL == (application_windows.pDetailsWin = newwin(f_nHeight - f_nTop - 7 , f_nWidth, 7, 0))) { goto details_fail; } if (NULL == (application_windows.pOptionsWin = newwin(1, f_nWidth, f_nHeight - f_nTop, 0))) { goto option_fail; } curs_set(0); noecho(); cbreak(); keypad(application_windows.pMainWin, CU_TRUE); init_pair(CLEAR_COLOR, COLOR_WHITE, COLOR_BLACK); init_pair(TITLE_COLOR, COLOR_WHITE, COLOR_BLACK); init_pair(PROGRESS_BACKGROUND_COLOR, COLOR_BLACK, COLOR_WHITE); init_pair(PROGRESS_SUCCESS_COLOR, COLOR_WHITE, COLOR_GREEN); init_pair(PROGRESS_FAILURE_COLOR, COLOR_WHITE, COLOR_RED); init_pair(MENU_COLOR, COLOR_GREEN, COLOR_BLACK); refresh_windows(); bStatus = true; goto main_fail; /* * Error Handlers for all the stages. */ option_fail: delwin(application_windows.pDetailsWin); details_fail: delwin(application_windows.pRunSummaryWin); run_summary_fail: delwin(application_windows.pSummaryWin); summary_fail: delwin(application_windows.pProgressWin); progress_fail: delwin(application_windows.pTitleWin); title_fail: endwin(); main_fail: return bStatus; } /*------------------------------------------------------------------------*/ /** Clean up and delete curses interface windows. */ static void uninitialize_windows(void) { curs_set(1); echo(); nocbreak(); keypad(application_windows.pMainWin, CU_FALSE); if (details_pad.pPad) { delwin(details_pad.pPad); } delwin(application_windows.pOptionsWin); delwin(application_windows.pDetailsWin); delwin(application_windows.pRunSummaryWin); delwin(application_windows.pSummaryWin); delwin(application_windows.pProgressWin); delwin(application_windows.pTitleWin); clear(); refresh(); endwin(); } /*------------------------------------------------------------------------*/ /** Refresh curses interface windows. */ static void refresh_windows(void) { refresh(); f_nLeft = application_windows.pMainWin->_begx; f_nTop = application_windows.pMainWin->_begy; f_nWidth = application_windows.pMainWin->_maxx; f_nHeight = application_windows.pMainWin->_maxy; refresh_title_window(); refresh_progress_window(); refresh_run_summary_window(); refresh_summary_window(); refresh_details_window(); refresh_options_window(); } /*------------------------------------------------------------------------*/ /** Refresh the title window. */ static void refresh_title_window(void) { char szPackageTitle[STRING_LENGTH]; char* szSite = N_("http://cunit.sourceforge.net/"); static bool bFirstTime = true; if (!bFirstTime) { bFirstTime = false; return; } snprintf(szPackageTitle, STRING_LENGTH, "%s%s", _("CUnit - A Unit testing framework for C - Version "), CU_VERSION); wattrset(application_windows.pTitleWin, A_BOLD | COLOR_PAIR(TITLE_COLOR)); mvwprintw(application_windows.pTitleWin, 0, f_nLeft + (f_nWidth - strlen(szPackageTitle))/2, "%s", szPackageTitle); wattrset(application_windows.pTitleWin, A_BOLD | A_UNDERLINE | COLOR_PAIR(TITLE_COLOR)); mvwprintw(application_windows.pTitleWin, 1, f_nLeft + (f_nWidth - strlen(_(szSite)))/2, "%s", _(szSite)); wattrset(application_windows.pTitleWin, A_NORMAL); wrefresh(application_windows.pTitleWin); } /*------------------------------------------------------------------------*/ /** Refresh the progress bar window. */ static void refresh_progress_window(void) { wattrset(application_windows.pProgressWin, A_BOLD); mvwprintw(application_windows.pProgressWin, 0, 1, (char *)_(f_szProgress)); show_progress_bar(); wrefresh(application_windows.pProgressWin); } /*------------------------------------------------------------------------*/ /** Refresh the summary window. */ static void refresh_summary_window(void) { char szTemp[STRING_LENGTH]; memset(szTemp, 0, sizeof(szTemp)); snprintf(szTemp, STRING_LENGTH, _("Tests Run : %6u Success : %6u Failed : %6u"), f_uiTestsRun, f_uiTestsRunSuccessful, f_uiTestsRun - f_uiTestsRunSuccessful); werase(application_windows.pSummaryWin); mvwprintw(application_windows.pSummaryWin, 0, 1, "%s", szTemp); wrefresh(application_windows.pSummaryWin); } /*------------------------------------------------------------------------*/ /** Prints a custom message in the detail window. */ static void show_detail_window_message(const char *msg) { if (NULL != msg) { if (!create_pad(&details_pad, application_windows.pDetailsWin, 1, 256)) { return; } assert(256 >= strlen(msg)); mvwprintw(details_pad.pPad, 0, 0, "%s", msg); refresh_details_window(); } } /*------------------------------------------------------------------------*/ /** Refresh the run summary window. */ static void refresh_run_summary_window(void) { const char* szRunSummary = N_("Running test \'%s\' of Suite \'%s\'"); char szTemp[STRING_LENGTH]; if (f_pCurrentTest && f_pCurrentSuite) { assert(NULL != f_pCurrentTest->pName); assert(NULL != f_pCurrentSuite->pName); snprintf(szTemp, STRING_LENGTH, _(szRunSummary), f_pCurrentTest->pName, f_pCurrentSuite->pName); } else { snprintf(szTemp, STRING_LENGTH, "%s", ""); } werase(application_windows.pRunSummaryWin); mvwprintw(application_windows.pRunSummaryWin, 0, 1, "%s", szTemp); wrefresh(application_windows.pRunSummaryWin); } /*------------------------------------------------------------------------*/ /** Refresh the details window. */ static void refresh_details_window(void) { const char* szDetailsTitle = N_(" Details Window "); box(application_windows.pDetailsWin, ACS_VLINE, ACS_HLINE); mvwprintw(application_windows.pDetailsWin, 0, f_nLeft + (f_nWidth - strlen(_(szDetailsTitle)))/2, "%s", _(szDetailsTitle)); scrollok(application_windows.pDetailsWin, CU_TRUE); wrefresh(application_windows.pDetailsWin); if (details_pad.pPad) { prefresh(details_pad.pPad, details_pad.uiPadRow, details_pad.uiPadCol, details_pad.uiWinTop, details_pad.uiWinLeft, details_pad.uiWinTop + details_pad.uiWinRows, details_pad.uiWinLeft + details_pad.uiWinColumns); } } /*------------------------------------------------------------------------*/ /** Refresh the options window. */ static void refresh_options_window(void) { int nPos = 0; const char* szHotKey = NULL; wclear(application_windows.pOptionsWin); mvwprintw(application_windows.pOptionsWin, 0, 1, "%s", f_szOptions); get_hotkey(f_szOptions, NULL); wattron(application_windows.pOptionsWin, A_BOLD); while (NULL != (szHotKey = get_hotkey((const char*)NULL, &nPos))) { mvwaddstr(application_windows.pOptionsWin, 0, nPos + 1, szHotKey); } wattroff(application_windows.pOptionsWin, A_BOLD); wrefresh(application_windows.pOptionsWin); } /*------------------------------------------------------------------------*/ /** Show the progress bar window. */ static void show_progress_bar(void) { int nLength = 0; int nIndex = 0; int nStart = strlen(_(f_szProgress)); int nColorID = 0; if (0 == (f_uiTestsRun + f_uiTestsSkipped)) { nLength = f_nWidth - f_nLeft - nStart - 6; nColorID = PROGRESS_BACKGROUND_COLOR; } else { nLength = (f_nWidth - f_nLeft - nStart - 6) * ((double)(f_uiTestsRun + f_uiTestsSkipped) / f_uiTotalTests); nColorID = (!f_uiTestsSkipped && f_uiTestsRun == f_uiTestsRunSuccessful) ? PROGRESS_SUCCESS_COLOR : PROGRESS_FAILURE_COLOR; } wattron(application_windows.pProgressWin, A_BOLD | COLOR_PAIR(nColorID)); for (nIndex = 0; nIndex < nLength; nIndex++) { mvwprintw(application_windows.pProgressWin, 0, nStart + nIndex, " "); } wattroff(application_windows.pProgressWin, COLOR_PAIR(nColorID)); } /*------------------------------------------------------------------------*/ /** Initialize the message handlers in preparation for running tests. */ static bool test_initialize(void) { if (NULL == CU_get_registry()) { return false; } CU_set_test_start_handler(curses_test_start_message_handler); CU_set_test_complete_handler(curses_test_complete_message_handler); CU_set_all_test_complete_handler(curses_all_tests_complete_message_handler); CU_set_suite_init_failure_handler(curses_suite_init_failure_message_handler); return true; } /*------------------------------------------------------------------------*/ /** Parse a string and return the coded hotkeys. * If called with szStr non-NULL, the string is simply stored. * Subsequent calls with szStr NULL will cause the * hotkeys in the string (chars between parentheses) to * be returned sequentially in the order in which they * appear in the original string. * @param szStr String to parse (non-NULL to set, NULL to parse). * @param pPos Used to store position of the next '('. * @return If szStr is non-NULL, it is returned. If szStr is NULL, * the next hotkey character is returned, or NULL if there * are no more hotkey characters in the original string. */ static const char* get_hotkey(const char* szStr, int* pPos) { static char szTemp[128] = ""; static char szString[128] = ""; static int nPos = 0; int nTempIndex; char* pS = NULL; if (szStr) { nPos = 0; strcpy(szString, szStr); return szString; } memset(szTemp, 0, sizeof(szTemp)); for (nTempIndex = 0, pS = szString + nPos; *pS; nPos++, pS++) { if (!nTempIndex && '(' == *pS) { szTemp[nTempIndex++] = *pS; *pPos = nPos; } else if (nTempIndex && ')' == *pS) { szTemp[nTempIndex++] = *pS; szTemp[nTempIndex++] = '\0'; return szTemp; } else if (nTempIndex) { szTemp[nTempIndex++] = *pS; } } return NULL; } /*------------------------------------------------------------------------*/ /** * Main loop for curses interface. * Displays actions and responds based on user imput. * @param pRegistry The CU_pTestRegistry to use for testing. * If NULL, uses the default registry. */ static STATUS curses_registry_level_run(CU_pTestRegistry pRegistry) { char szSuiteNumber[STRING_LENGTH]; CU_pSuite pSuite = NULL; bool bContinue = true; char szTemp[STRING_LENGTH]; long suite_num; if (NULL == pRegistry) { pRegistry = CU_get_registry(); } assert(NULL != pRegistry); while (bContinue) { int option = toupper(getch()); if (option == _("R")[0]) { curses_run_all_tests(pRegistry); } else if (option == _("S")[0]) { if (0 == pRegistry->uiNumberOfSuites) { fprintf(stdout, "\n%s", _("No suites are registered.")); } else { list_suites(pRegistry); snprintf(szTemp, STRING_LENGTH, _("Enter number of suite to select (1-%u) : "), pRegistry->uiNumberOfSuites); read_input_string(szTemp, szSuiteNumber, STRING_LENGTH); refresh_details_window(); suite_num = atol(szSuiteNumber); pSuite = CU_get_suite_by_index(suite_num, pRegistry); if (NULL != pSuite) { assert(NULL != pSuite->pName); snprintf(szTemp, STRING_LENGTH, _("Suite '%s' selected."), pSuite->pName); show_detail_window_message(szTemp); if (STOP == curses_suite_level_run(pSuite)) { bContinue = false; } f_szOptions = _(MAIN_OPTIONS); refresh_options_window(); } else { show_detail_window_message(_("Suite not found.")); } } } else if (option == _("L")[0]) { list_suites(pRegistry); } else if (option == _("A")[0]) { if (0 == pRegistry->uiNumberOfSuites) { fprintf(stdout, "\n%s", _("No suites are registered.")); } else { while (1) { list_suites(pRegistry); snprintf(szTemp, STRING_LENGTH, _("Enter number of suite to select (1-%u) : "), pRegistry->uiNumberOfSuites); read_input_string(szTemp, szSuiteNumber, STRING_LENGTH); refresh_details_window(); suite_num = atol(szSuiteNumber); pSuite = CU_get_suite_by_index(suite_num, pRegistry); if (NULL != pSuite) { CU_set_suite_active(pSuite, (CU_FALSE == pSuite->fActive) ? CU_TRUE : CU_FALSE); } else { break; } } f_szOptions = _(MAIN_OPTIONS); refresh_options_window(); } } else if (option == _("F")[0]) { show_failures(); } else if (option == _("O")[0]) { curses_set_options_run(); } else if (option == _("Q")[0]) { return bContinue = false; } else if ((option == KEY_UP) || (option == KEY_DOWN) || (option == KEY_RIGHT) || (option == KEY_LEFT)) { scroll_window(option, &details_pad, refresh_details_window); } else if ((option == _("H")[0]) || (option == _("?")[0])) { show_registry_level_help(); } } return STOP; } /*------------------------------------------------------------------------*/ /** Run a selected suite within the curses interface. * Displays actions and responds based on user imput. * @param pSuite The suite to use for testing (non-NULL). */ static STATUS curses_suite_level_run(CU_pSuite pSuite) { char szTestNumber[STRING_LENGTH]; char szTemp[STRING_LENGTH]; CU_pTestRegistry pRegistry = CU_get_registry(); CU_pTest pTest = NULL; long test_num; assert(NULL != pRegistry); assert(NULL != pSuite); assert(NULL != pSuite->pName); f_szOptions = _(SUITE_OPTIONS); refresh_options_window(); while (true) { int option = toupper(getch()); if (option == _("R")[0]) { curses_run_suite_tests(pSuite); } else if (option == _("S")[0]) { if (0 == pSuite->uiNumberOfTests) { snprintf(szTemp, STRING_LENGTH, _("Suite %s contains no tests."), pSuite->pName); show_detail_window_message(szTemp); } else { list_tests(pSuite); snprintf(szTemp, STRING_LENGTH, "%s", _("Enter number of test to select (1-%u) : "), pRegistry->uiNumberOfSuites); read_input_string(szTemp, szTestNumber, STRING_LENGTH); test_num = atol(szTestNumber); pTest = CU_get_test_by_index(test_num, pSuite); if (NULL != pTest) { curses_run_single_test(pSuite, pTest); } else { show_detail_window_message(_("Test not found.")); } refresh_details_window(); } } else if (option == _("L")[0]) { list_tests(pSuite); } else if (option == _("F")[0]) { show_failures(); } else if (option == _("A")[0]) { if (0 == pSuite->uiNumberOfTests) { snprintf(szTemp, STRING_LENGTH, _("Suite %s contains no tests."), pSuite->pName); show_detail_window_message(szTemp); } else { while (1) { list_tests(pSuite); snprintf(szTemp, STRING_LENGTH, "%s", _("Enter number of test to select (1-%u) : "), pRegistry->uiNumberOfSuites); read_input_string(szTemp, szTestNumber, STRING_LENGTH); test_num = atol(szTestNumber); pTest = CU_get_test_by_index(test_num, pSuite); if (NULL != pTest) { CU_set_test_active(pTest, (CU_FALSE == pTest->fActive) ? CU_TRUE : CU_FALSE); } else { break; } } f_szOptions = _(SUITE_OPTIONS); refresh_options_window(); } } else if (option == _("O")[0]) { curses_set_options_run(); } else if (option == _("U")[0]) { return CONTINUE; } else if (option == _("Q")[0]) { return STOP; } else if ((option == KEY_UP) || (option == KEY_DOWN) || (option == KEY_RIGHT) || (option == KEY_LEFT)) { scroll_window(option, &details_pad, refresh_details_window); } else if ((option == _("H")[0]) || (option == _("?")[0])) { show_suite_level_help(pSuite); } } return CONTINUE; } /*------------------------------------------------------------------------*/ /** Display a prompt, then read a string from the keyboard. * @param szPrompt The prompt to display. * @param szValue The string in which to store the response. * @param nBytes The length of the szValue buffer. */ static void read_input_string(const char szPrompt[], char szValue[], int nBytes) { echo(); curs_set(1); nocbreak(); wclear(application_windows.pOptionsWin); mvwprintw(application_windows.pOptionsWin, 0, 1, "%s", szPrompt); wgetnstr(application_windows.pOptionsWin, szValue, nBytes - 1); refresh_options_window(); cbreak(); curs_set(0); noecho(); } /*------------------------------------------------------------------------*/ /** Scroll a window. * @param nCommand Code for the direction to scroll. * @param pPad The window to scroll. * @param parent_refresh Function to call to refresh the parent window. */ static void scroll_window(int nCommand, APPPAD* pPad, void (*parent_refresh)(void)) { if (NULL == pPad->pPad) { return; } switch (nCommand) { case KEY_UP: if (pPad->uiPadRow) { --pPad->uiPadRow; (*parent_refresh)(); } break; case KEY_DOWN: if (pPad->uiRows - 1 > pPad->uiPadRow + pPad->uiWinRows) { ++pPad->uiPadRow; (*parent_refresh)(); } break; case KEY_LEFT: if (pPad->uiPadCol) { --pPad->uiPadCol; (*parent_refresh)(); } break; case KEY_RIGHT: if (details_pad.uiColumns - 1 > details_pad.uiPadCol + details_pad.uiWinColumns) { ++pPad->uiPadCol; (*parent_refresh)(); } break; default: break; } } /*------------------------------------------------------------------------*/ /** Create a window having specified parent and dimensions. * @param pPad Pointer to the new window. * @param pParent Parent window. * @param uiRows Number of rows for new window. * @param uiCols Number of columnss for new window. */ static bool create_pad(APPPAD* pPad, WINDOW* pParent, unsigned int uiRows, unsigned int uiCols) { bool bStatus = false; assert(pParent); if (pPad->pPad) { delwin(pPad->pPad); } if (NULL != pPad && NULL == (pPad->pPad = newpad(uiRows, uiCols))) { goto newpad_fail; } pPad->uiRows = uiRows; pPad->uiColumns = uiCols; pPad->uiPadRow = 0; pPad->uiPadCol = 0; pPad->uiWinLeft = application_windows.pDetailsWin->_begx + 1; pPad->uiWinTop = application_windows.pDetailsWin->_begy + 1; pPad->uiWinColumns = application_windows.pDetailsWin->_maxx - 2; pPad->uiWinRows = application_windows.pDetailsWin->_maxy - 2; bStatus = true; newpad_fail: return bStatus; } /*------------------------------------------------------------------------*/ /** Prints help text for registry level to detail window. */ static void show_registry_level_help(void) { if (!create_pad(&details_pad, application_windows.pDetailsWin, 8, 256)) { return; } mvwprintw(details_pad.pPad, 0, 0, _("Commands: R - run all tests in all suites")); mvwprintw(details_pad.pPad, 1, 0, _(" S - Select a suite to run or modify")); mvwprintw(details_pad.pPad, 2, 0, _(" L - List all registered suites")); mvwprintw(details_pad.pPad, 3, 0, _(" A - Activate or deactivate a suite (toggle)")); mvwprintw(details_pad.pPad, 4, 0, _(" F - Show failures from last test run")); mvwprintw(details_pad.pPad, 5, 0, _(" O - Set CUnit options")); mvwprintw(details_pad.pPad, 6, 0, _(" H - Show this help message")); mvwprintw(details_pad.pPad, 7, 0, _(" Q - Quit the application")); refresh_details_window(); } /*------------------------------------------------------------------------*/ /** Prints help text for suite level to detail window. */ static void show_suite_level_help(CU_pSuite pSuite) { char szTemp[STRING_LENGTH]; assert(NULL != pSuite); assert(NULL != pSuite->pName); if (!create_pad(&details_pad, application_windows.pDetailsWin, 9, 256)) { return; } snprintf(szTemp, STRING_LENGTH, _("Commands: R - run all tests in suite %s"), pSuite->pName); mvwprintw(details_pad.pPad, 0, 0, szTemp); mvwprintw(details_pad.pPad, 1, 0, _(" S - Select and run a test")); snprintf(szTemp, STRING_LENGTH, _(" L - List all tests registered in suite %s"), pSuite->pName); mvwprintw(details_pad.pPad, 2, 0, szTemp); mvwprintw(details_pad.pPad, 3, 0, _(" A - Activate or deactivate a test (toggle)")); mvwprintw(details_pad.pPad, 4, 0, _(" F - Show failures from last test run")); mvwprintw(details_pad.pPad, 5, 0, _(" M - Move up to main menu")); mvwprintw(details_pad.pPad, 6, 0, _(" O - Set CUnit options")); mvwprintw(details_pad.pPad, 7, 0, _(" H - Show this help message")); mvwprintw(details_pad.pPad, 8, 0, _(" Q - Quit the application")); refresh_details_window(); } /*------------------------------------------------------------------------*/ /** Print a list of registered suites to the detail window. * @param pRegistry The CU_pTestRegistry to query (non-NULL). */ static void list_suites(CU_pTestRegistry pRegistry) { CU_pSuite pCurSuite = NULL; int i; char szTemp[STRING_LENGTH]; static size_t width[6]; if (NULL == pRegistry) { pRegistry = CU_get_registry(); } assert(pRegistry); if (0 == pRegistry->uiNumberOfSuites) { show_detail_window_message(_("No suites are registered.")); return; } assert(pRegistry->pSuite); if (!create_pad(&details_pad, application_windows.pDetailsWin, pRegistry->uiNumberOfSuites + 4, 256)) { return; } /* only need to calculate formatting widths once */ if (0 == width[0]) { width[0] = CU_number_width(pRegistry->uiNumberOfSuites) + 1; width[1] = 34; width[2] = CU_MAX(strlen(_("Init?")), CU_MAX(f_yes_width, f_no_width)) + 1; width[3] = CU_MAX(strlen(_("Cleanup?")), CU_MAX(f_yes_width, f_no_width)) + 1; width[4] = CU_MAX(strlen(_("#Tests")), CU_number_width(pRegistry->uiNumberOfTests) + 1) + 1; width[5] = CU_MAX(strlen(_("Active?")), CU_MAX(f_yes_width, f_no_width)) + 1; } snprintf(szTemp, STRING_LENGTH, "%*s %-*s%*s%*s%*s%*s", width[0], _("#"), width[1], _("Suite Name"), width[2], _("Init?"), width[3], _("Cleanup?"), width[4], _("#Tests"), width[5], _("Active?")); mvwprintw(details_pad.pPad, 0, 0, "%s", szTemp); for (i = 0, pCurSuite = pRegistry->pSuite; pCurSuite; pCurSuite = pCurSuite->pNext, i++) { assert(NULL != pCurSuite->pName); snprintf(szTemp, STRING_LENGTH, "%*d. %-*.*s%*s%*s%*u%*s", width[0], i+1, width[1], width[1] - 1, pCurSuite->pName, width[2]-1, (NULL != pCurSuite->pInitializeFunc) ? _("Yes") : _("No"), width[3], (NULL != pCurSuite->pCleanupFunc) ? _("Yes") : _("No"), width[4], pCurSuite->uiNumberOfTests, width[5], (CU_FALSE != pCurSuite->fActive) ? _("Yes") : _("No")); mvwprintw(details_pad.pPad, i + 2, 0, "%s", szTemp); } mvwprintw(details_pad.pPad, i + 2, 0, "%s", "---------------------------------------------------------------------------"); mvwprintw(details_pad.pPad, i + 3, 0, _("Total Number of Suites : %-u"), pRegistry->uiNumberOfSuites); refresh_details_window(); } /*------------------------------------------------------------------------*/ /** Print a list of tests contained in a specified suite to the detail window. * @param pSuite The suite to query (non-NULL). */ static void list_tests(CU_pSuite pSuite) { CU_pTest pCurTest = NULL; unsigned int i; char szTemp[STRING_LENGTH]; static size_t width[3]; assert(NULL != pSuite); assert(NULL != pSuite->pName); if (!create_pad(&details_pad, application_windows.pDetailsWin, pSuite->uiNumberOfTests + 5, 256)) { return; } if (0 == pSuite->uiNumberOfTests) { snprintf(szTemp, STRING_LENGTH, _("Suite %s contains no tests."), pSuite->pName); show_detail_window_message(szTemp); return; } assert(pSuite->pTest); /* only number of tests can change between calls */ width[0] = CU_number_width(pSuite->uiNumberOfTests) + 1; if (0 == width[1]) { width[1] = 34; width[2] = CU_MAX(strlen(_("Active?")), CU_MAX(f_yes_width, f_no_width)) + 1; } snprintf(szTemp, STRING_LENGTH, "%s: %s", _("Suite"), pSuite->pName); mvwprintw(details_pad.pPad, 0, 0, szTemp); snprintf(szTemp, STRING_LENGTH, "%*s %-*s%*s", width[0], _("#"), width[1], _("Test Name"), width[2], _("Active?")); mvwprintw(details_pad.pPad, 1, 0, szTemp); for (i = 0, pCurTest = pSuite->pTest ; NULL != pCurTest ; pCurTest = pCurTest->pNext, i++) { assert(NULL != pCurTest->pName); snprintf(szTemp, STRING_LENGTH, "%*u. %-*.*s%*s", width[0], i + 1, width[1], width[1]-1, pCurTest->pName, width[2]-1, (CU_FALSE != pCurTest->fActive) ? _("Yes") : _("No")); mvwprintw(details_pad.pPad, i + 3, 0, "%s", szTemp); } mvwprintw(details_pad.pPad, i + 3, 0, "%s", "---------------------------------------------"); mvwprintw(details_pad.pPad, i + 4, 0, _("Total Number of Tests : %-u"), pSuite->uiNumberOfTests); refresh_details_window(); } /*------------------------------------------------------------------------*/ /** Display the record of test failures in the detail window. */ static void show_failures(void) { int i; CU_pFailureRecord pFailure = CU_get_failure_list(); unsigned int nFailures = CU_get_number_of_failure_records(); if (0 == nFailures) { show_detail_window_message(_("No failures.")); return; } assert(pFailure); if (!create_pad(&details_pad, application_windows.pDetailsWin, nFailures + 5, 256)) { return; } mvwprintw(details_pad.pPad, 1, 0, "%s", _(" src_file:line# : (suite:test) : failure_condition")); for (i = 0 ; pFailure ; pFailure = pFailure->pNext, i++) { char szTemp[STRING_LENGTH]; snprintf(szTemp, STRING_LENGTH, "%d. %s:%d : (%s : %s) : %s", i + 1, ((NULL != pFailure->strFileName) ? pFailure->strFileName : ""), pFailure->uiLineNumber, (((NULL != pFailure->pSuite) && (NULL != pFailure->pSuite->pName)) ? pFailure->pSuite->pName : ""), (((NULL != pFailure->pTest) && (NULL != pFailure->pTest->pName)) ? pFailure->pTest->pName : ""), ((NULL != pFailure->strCondition) ? pFailure->strCondition : "")); mvwprintw(details_pad.pPad, i + 3, 0, "%s", szTemp); } mvwprintw(details_pad.pPad, i + 3, 0, "%s", "============================================="); mvwprintw(details_pad.pPad, i + 4, 0, _("Total Number of Failures : %-u"), nFailures); refresh_details_window(); } /*------------------------------------------------------------------------*/ /** * Sets CUnit options interactively using curses interface. * Displays actions and responds based on user imput. */ static STATUS curses_set_options_run(void) { char szTemp[STRING_LENGTH]; STATUS eStatus = CONTINUE; long option_num; if (!create_pad(&details_pad, application_windows.pDetailsWin, 3, 256)) { return eStatus; } mvwprintw(details_pad.pPad, 0, 0, _("CUnit Options:")); while (CONTINUE == eStatus) { snprintf(szTemp, STRING_LENGTH, _(" 1 - Inactive suites/tests treated as runtime failures %s"), (CU_FALSE != CU_get_fail_on_inactive()) ? _("Yes") : _("No ")); mvwprintw(details_pad.pPad, 2, 0, szTemp); refresh_details_window(); read_input_string(_("Enter number of option to change : "), szTemp, STRING_LENGTH); option_num = atol(szTemp); switch (option_num) { case 1: CU_set_fail_on_inactive((CU_FALSE == CU_get_fail_on_inactive()) ? CU_TRUE : CU_FALSE); break; default: eStatus = MOVE_UP; break; } } return eStatus; } /*------------------------------------------------------------------------*/ /** Run all tests within the curses interface. * The test registry is changed to the specified registry * before running the tests, and reset to the original * registry when done. * @param pRegistry The CU_pTestRegistry containing the tests * to be run (non-NULL). * @return An error code indicating the error status * during the test run. */ static CU_ErrorCode curses_run_all_tests(CU_pTestRegistry pRegistry) { CU_pTestRegistry pOldRegistry = NULL; CU_ErrorCode result; assert(pRegistry); reset_run_parameters(); f_uiTotalTests = pRegistry->uiNumberOfTests; f_uiTotalSuites = pRegistry->uiNumberOfSuites; if (NULL != pRegistry) { pOldRegistry = CU_set_registry(pRegistry); } result = CU_run_all_tests(); if (NULL != pOldRegistry) { CU_set_registry(pOldRegistry); } return result; } /*------------------------------------------------------------------------*/ /** Run a specified suite within the curses interface. * @param pSuite The suite to be run (non-NULL). * @return An error code indicating the error status * during the test run. */ static CU_ErrorCode curses_run_suite_tests(CU_pSuite pSuite) { reset_run_parameters(); f_uiTotalTests = pSuite->uiNumberOfTests; f_uiTotalSuites = 1; return CU_run_suite(pSuite); } /*------------------------------------------------------------------------*/ /** Run a specific test for the specified suite within * the curses interface. * @param pSuite The suite containing the test to be run (non-NULL). * @param pTest The test to be run (non-NULL). * @return An error code indicating the error status * during the test run. */ static CU_ErrorCode curses_run_single_test(CU_pSuite pSuite, CU_pTest pTest) { reset_run_parameters(); f_uiTotalTests = 1; f_uiTotalSuites = 1; return CU_run_test(pSuite, pTest); } /*------------------------------------------------------------------------*/ /** Reset the local run counters and prepare for a test run. */ static void reset_run_parameters(void) { f_pCurrentTest = NULL; f_pCurrentSuite = NULL; f_uiTestsRunSuccessful = f_uiTestsRun = f_uiTotalTests = f_uiTestsFailed = f_uiTestsSkipped = 0; f_uiTotalSuites = f_uiSuitesSkipped = 0; refresh_progress_window(); refresh_summary_window(); refresh_run_summary_window(); } /*------------------------------------------------------------------------*/ /** Handler function called at start of each test. * @param pTest The test being run. * @param pSuite The suite containing the test. */ static void curses_test_start_message_handler(const CU_pTest pTest, const CU_pSuite pSuite) { f_pCurrentTest = (CU_pTest)pTest; f_pCurrentSuite = (CU_pSuite)pSuite; refresh_run_summary_window(); } /*------------------------------------------------------------------------*/ /** Handler function called at completion of each test. * @param pTest The test being run. * @param pSuite The suite containing the test. * @param pFailure Pointer to the 1st failure record for this test. */ static void curses_test_complete_message_handler(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure) { /* Not used in curses implementation - quiet compiler warning */ CU_UNREFERENCED_PARAMETER(pTest); CU_UNREFERENCED_PARAMETER(pSuite); CU_UNREFERENCED_PARAMETER(pFailure); f_uiTestsRun++; if (CU_get_number_of_tests_failed() != f_uiTestsFailed) { f_uiTestsFailed++; } else { f_uiTestsRunSuccessful++; } refresh_summary_window(); refresh_progress_window(); } /*------------------------------------------------------------------------*/ /** Handler function called at completion of all tests in a suite. * @param pFailure Pointer to the test failure record list. */ static void curses_all_tests_complete_message_handler(const CU_pFailureRecord pFailure) { /* Not used in curses implementation - quiet compiler warning */ CU_UNREFERENCED_PARAMETER(pFailure); f_pCurrentTest = NULL; f_pCurrentSuite = NULL; if (!create_pad(&details_pad, application_windows.pDetailsWin, 21, 256)) { return; } mvwprintw(details_pad.pPad, 0, 0, "%s", _("====== Suite Run Summary ======")); mvwprintw(details_pad.pPad, 1, 0, _(" TOTAL SUITES: %4u"), f_uiTotalSuites); mvwprintw(details_pad.pPad, 2, 0, _(" Run: %4u"), f_uiTotalSuites - f_uiSuitesSkipped); mvwprintw(details_pad.pPad, 3, 0, _(" Skipped: %4u"), f_uiSuitesSkipped); mvwprintw(details_pad.pPad, 4, 0, _(" Inactive: %4u"), CU_get_number_of_suites_inactive()); mvwprintw(details_pad.pPad, 6, 0, "%s", _("====== Test Run Summary =======")); mvwprintw(details_pad.pPad, 7, 0, _(" TOTAL TESTS: %4u"), f_uiTotalTests); mvwprintw(details_pad.pPad, 8, 0, _(" Run: %4u"), f_uiTestsRun); mvwprintw(details_pad.pPad, 9, 0, _(" Skipped: %4u"), f_uiTestsSkipped); mvwprintw(details_pad.pPad, 10, 0, _(" Successful: %4u"), f_uiTestsRunSuccessful); mvwprintw(details_pad.pPad, 11, 0, _(" Failed: %4u"), f_uiTestsFailed); mvwprintw(details_pad.pPad, 12, 0, _(" Inactive: %4u"), CU_get_number_of_tests_inactive()); mvwprintw(details_pad.pPad, 14, 0, "%s", _("====== Assertion Summary ======")); mvwprintw(details_pad.pPad, 15, 0, _(" TOTAL ASSERTS: %4u"), CU_get_number_of_asserts()); mvwprintw(details_pad.pPad, 16, 0, _(" Passed: %4u"), CU_get_number_of_successes()); mvwprintw(details_pad.pPad, 17, 0, _(" Failed: %4u"), CU_get_number_of_failures()); mvwprintw(details_pad.pPad, 19, 0, "%s", _("====== Failure Summary ======")); mvwprintw(details_pad.pPad, 20, 0, _(" TOTAL FAILURES: %4u"), CU_get_number_of_failure_records()); refresh_details_window(); refresh_run_summary_window(); } /*------------------------------------------------------------------------*/ /** Handler function called when suite initialization fails. * @param pSuite The suite for which initialization failed. */ static void curses_suite_init_failure_message_handler(const CU_pSuite pSuite) { assert(pSuite); f_uiTestsSkipped += pSuite->uiNumberOfTests; f_uiSuitesSkipped++; refresh_summary_window(); refresh_progress_window(); } /** @} */ cunit-2.1-3-dfsg/CUnit/Sources/Curses/Makefile.am000066400000000000000000000002661260701235000215240ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers noinst_LTLIBRARIES = libcunitcurses.la libcunitcurses_la_SOURCES = \ Curses.c cunit-2.1-3-dfsg/CUnit/Sources/Curses/Makefile.in000066400000000000000000000425461260701235000215440ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = CUnit/Sources/Curses DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libcunitcurses_la_LIBADD = am_libcunitcurses_la_OBJECTS = Curses.lo libcunitcurses_la_OBJECTS = $(am_libcunitcurses_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcunitcurses_la_SOURCES) DIST_SOURCES = $(libcunitcurses_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers noinst_LTLIBRARIES = libcunitcurses.la libcunitcurses_la_SOURCES = \ Curses.c all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu CUnit/Sources/Curses/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu CUnit/Sources/Curses/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcunitcurses.la: $(libcunitcurses_la_OBJECTS) $(libcunitcurses_la_DEPENDENCIES) $(EXTRA_libcunitcurses_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(libcunitcurses_la_OBJECTS) $(libcunitcurses_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Curses.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am # 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: cunit-2.1-3-dfsg/CUnit/Sources/Framework/000077500000000000000000000000001260701235000201555ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Framework/.deps/000077500000000000000000000000001260701235000211665ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Framework/.deps/CUError.Plo000066400000000000000000000120501260701235000231610ustar00rootroot00000000000000CUError.lo: CUError.c /usr/include/stdio.h /usr/include/sys/cdefs.h \ /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ ../../../CUnit/Headers/CUnit_intl.h ../../../CUnit/Headers/CUError.h \ /usr/include/errno.h /usr/include/sys/errno.h \ ../../../CUnit/Headers/CUnit.h /usr/include/string.h \ /usr/include/strings.h /usr/include/secure/_string.h \ /usr/include/math.h ../../../CUnit/Headers/TestDB.h \ /usr/include/setjmp.h ../../../CUnit/Headers/TestRun.h /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: ../../../CUnit/Headers/CUnit_intl.h: ../../../CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: ../../../CUnit/Headers/CUnit.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: /usr/include/math.h: ../../../CUnit/Headers/TestDB.h: /usr/include/setjmp.h: ../../../CUnit/Headers/TestRun.h: cunit-2.1-3-dfsg/CUnit/Sources/Framework/.deps/MyMem.Plo000066400000000000000000000132701260701235000226710ustar00rootroot00000000000000MyMem.lo: MyMem.c /usr/include/stdio.h /usr/include/sys/cdefs.h \ /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ /usr/include/ctype.h /usr/include/runetype.h \ /usr/include/sys/_types/_wint_t.h /usr/include/errno.h \ /usr/include/sys/errno.h /usr/include/assert.h /usr/include/string.h \ /usr/include/strings.h /usr/include/secure/_string.h \ /usr/include/time.h /usr/include/_structs.h \ /usr/include/sys/_structs.h /usr/include/sys/_types/_timespec.h \ /usr/include/sys/_types/_clock_t.h /usr/include/sys/_types/_time_t.h \ ../../../CUnit/Headers/CUnit.h /usr/include/math.h \ ../../../CUnit/Headers/CUError.h ../../../CUnit/Headers/TestDB.h \ /usr/include/setjmp.h ../../../CUnit/Headers/TestRun.h \ ../../../CUnit/Headers/MyMem.h ../../../CUnit/Headers/CUnit_intl.h /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/ctype.h: /usr/include/runetype.h: /usr/include/sys/_types/_wint_t.h: /usr/include/errno.h: /usr/include/sys/errno.h: /usr/include/assert.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: /usr/include/time.h: /usr/include/_structs.h: /usr/include/sys/_structs.h: /usr/include/sys/_types/_timespec.h: /usr/include/sys/_types/_clock_t.h: /usr/include/sys/_types/_time_t.h: ../../../CUnit/Headers/CUnit.h: /usr/include/math.h: ../../../CUnit/Headers/CUError.h: ../../../CUnit/Headers/TestDB.h: /usr/include/setjmp.h: ../../../CUnit/Headers/TestRun.h: ../../../CUnit/Headers/MyMem.h: ../../../CUnit/Headers/CUnit_intl.h: cunit-2.1-3-dfsg/CUnit/Sources/Framework/.deps/TestDB.Plo000066400000000000000000000127221260701235000227730ustar00rootroot00000000000000TestDB.lo: TestDB.c /usr/include/stdio.h /usr/include/sys/cdefs.h \ /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ /usr/include/assert.h /usr/include/string.h /usr/include/strings.h \ /usr/include/secure/_string.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdarg.h \ ../../../CUnit/Headers/CUnit.h /usr/include/math.h \ ../../../CUnit/Headers/CUError.h /usr/include/errno.h \ /usr/include/sys/errno.h ../../../CUnit/Headers/TestDB.h \ /usr/include/setjmp.h ../../../CUnit/Headers/TestRun.h \ ../../../CUnit/Headers/MyMem.h ../../../CUnit/Headers/Util.h \ ../../../CUnit/Headers/CUnit_intl.h /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/assert.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdarg.h: ../../../CUnit/Headers/CUnit.h: /usr/include/math.h: ../../../CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: ../../../CUnit/Headers/TestDB.h: /usr/include/setjmp.h: ../../../CUnit/Headers/TestRun.h: ../../../CUnit/Headers/MyMem.h: ../../../CUnit/Headers/Util.h: ../../../CUnit/Headers/CUnit_intl.h: cunit-2.1-3-dfsg/CUnit/Sources/Framework/.deps/TestRun.Plo000066400000000000000000000131221260701235000232450ustar00rootroot00000000000000TestRun.lo: TestRun.c /usr/include/stdlib.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/sys/cdefs.h \ /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_size_t.h \ /usr/include/sys/_types/_uid_t.h /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/sys/_types/_null.h \ /usr/include/machine/types.h /usr/include/i386/types.h \ /usr/include/sys/_types/___offsetof.h /usr/include/sys/_types/_dev_t.h \ /usr/include/sys/_types/_mode_t.h /usr/include/string.h \ /usr/include/sys/_types/_ssize_t.h /usr/include/strings.h \ /usr/include/secure/_string.h /usr/include/secure/_common.h \ /usr/include/assert.h /usr/include/stdio.h \ /usr/include/sys/_types/_va_list.h /usr/include/sys/_types/_off_t.h \ /usr/include/secure/_stdio.h /usr/include/setjmp.h /usr/include/time.h \ /usr/include/_structs.h /usr/include/sys/_structs.h \ /usr/include/sys/_types/_timespec.h /usr/include/sys/_types/_clock_t.h \ /usr/include/sys/_types/_time_t.h ../../../CUnit/Headers/CUnit.h \ /usr/include/math.h ../../../CUnit/Headers/CUError.h \ /usr/include/errno.h /usr/include/sys/errno.h \ ../../../CUnit/Headers/TestDB.h ../../../CUnit/Headers/TestRun.h \ ../../../CUnit/Headers/MyMem.h ../../../CUnit/Headers/Util.h \ ../../../CUnit/Headers/CUnit_intl.h /usr/include/stdlib.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/sys/_types/_null.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/string.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/strings.h: /usr/include/secure/_string.h: /usr/include/secure/_common.h: /usr/include/assert.h: /usr/include/stdio.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_off_t.h: /usr/include/secure/_stdio.h: /usr/include/setjmp.h: /usr/include/time.h: /usr/include/_structs.h: /usr/include/sys/_structs.h: /usr/include/sys/_types/_timespec.h: /usr/include/sys/_types/_clock_t.h: /usr/include/sys/_types/_time_t.h: ../../../CUnit/Headers/CUnit.h: /usr/include/math.h: ../../../CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: ../../../CUnit/Headers/TestDB.h: ../../../CUnit/Headers/TestRun.h: ../../../CUnit/Headers/MyMem.h: ../../../CUnit/Headers/Util.h: ../../../CUnit/Headers/CUnit_intl.h: cunit-2.1-3-dfsg/CUnit/Sources/Framework/.deps/Util.Plo000066400000000000000000000123601260701235000225610ustar00rootroot00000000000000Util.lo: Util.c /usr/include/stdio.h /usr/include/sys/cdefs.h \ /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ /usr/include/ctype.h /usr/include/runetype.h \ /usr/include/sys/_types/_wint_t.h /usr/include/assert.h \ /usr/include/string.h /usr/include/strings.h \ /usr/include/secure/_string.h ../../../CUnit/Headers/CUnit.h \ /usr/include/math.h ../../../CUnit/Headers/CUError.h \ /usr/include/errno.h /usr/include/sys/errno.h \ ../../../CUnit/Headers/TestDB.h /usr/include/setjmp.h \ ../../../CUnit/Headers/TestRun.h ../../../CUnit/Headers/Util.h /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/ctype.h: /usr/include/runetype.h: /usr/include/sys/_types/_wint_t.h: /usr/include/assert.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: ../../../CUnit/Headers/CUnit.h: /usr/include/math.h: ../../../CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: ../../../CUnit/Headers/TestDB.h: /usr/include/setjmp.h: ../../../CUnit/Headers/TestRun.h: ../../../CUnit/Headers/Util.h: cunit-2.1-3-dfsg/CUnit/Sources/Framework/CUError.c000066400000000000000000000162241260701235000216470ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Error handling code used by CUnit * * 16-Jul-2004 Created access functions for error code, error action * functions, messages for new error codes. (JDS) * * 02-May-2006 Added internationalization hooks. (JDS) */ /** @file * Error handling functions (implementation). */ /** @addtogroup Framework @{ */ #include #include #include "CUnit_intl.h" #include "CUError.h" /*================================================================= * Global/Static Definitions *=================================================================*/ /** Local variable holding the current error code. */ static CU_ErrorCode g_error_number = CUE_SUCCESS; /** Local variable holding the current error action code. */ static CU_ErrorAction g_error_action = CUEA_IGNORE; /*================================================================= * Private function forward declarations *=================================================================*/ static const char* get_error_desc(CU_ErrorCode error); #ifdef CUNIT_DO_NOT_DEFINE_UNLESS_BUILDING_TESTS void test_exit(int status); #endif /*================================================================= * Public API functions *=================================================================*/ void CU_set_error(CU_ErrorCode error) { if ((error != CUE_SUCCESS) && (g_error_action == CUEA_ABORT)) { #ifndef CUNIT_DO_NOT_DEFINE_UNLESS_BUILDING_TESTS fprintf(stderr, _("\nAborting due to error #%d: %s\n"), (int)error, get_error_desc(error)); exit((int)error); #else test_exit(error); #endif } g_error_number = error; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_get_error(void) { return g_error_number; } /*------------------------------------------------------------------------*/ const char* CU_get_error_msg(void) { return get_error_desc(g_error_number); } /*------------------------------------------------------------------------*/ void CU_set_error_action(CU_ErrorAction action) { g_error_action = action; } /*------------------------------------------------------------------------*/ CU_ErrorAction CU_get_error_action(void) { return g_error_action; } /*================================================================= * Private static function definitions *=================================================================*/ /** Internal function to look up the error message for a specified * error code. An empty string is returned if iError is not a member * of CU_ErrorCode. If you add an error code to enum CU_ErrorCode, * be sure to add a corresponding error message here. * * @param iError CU_ErrorCode to look up. * @return Pointer to a string containing the error message. * @see CU_get_error_msg() */ static const char* get_error_desc(CU_ErrorCode iError) { int iMaxIndex; static const char* ErrorDescription[] = { N_("No Error."), /* CUE_SUCCESS - 0 */ N_("Memory allocation failed."), /* CUE_NOMEMORY - 1 */ "", "", "", "", "", "", "", "", N_("Test registry does not exist."), /* CUE_NOREGISTRY - 10 */ N_("Registry already exists."), /* CUE_REGISTRY_EXISTS - 11 */ "", "", "", "", "", "", "", "", N_("NULL suite not allowed."), /* CUE_NOSUITE - 20 */ N_("Suite name cannot be NULL."), /* CUE_NO_SUITENAME - 21 */ N_("Suite initialization function failed."), /* CUE_SINIT_FAILED - 22 */ N_("Suite cleanup function failed."), /* CUE_SCLEAN_FAILED - 23 */ N_("Suite having name already registered."), /* CUE_DUP_SUITE - 24 */ N_("Requested suite is not active."), /* CUE_SUITE_INACTIVE - 25 */ "", "", "", "", N_("NULL test or test function not allowed."),/* CUE_NOTEST - 30 */ N_("Test name cannot be NULL."), /* CUE_NO_TESTNAME - 31 */ N_("Test having this name already in suite."),/* CUE_DUP_TEST - 32 */ N_("Test not registered in specified suite."),/* CUE_TEST_NOT_IN_SUITE - 33 */ N_("Requested test is not active"), /* CUE_TEST_INACTIVE - 34 */ "", "", "", "", "", N_("Error opening file."), /* CUE_FOPEN_FAILED - 40 */ N_("Error closing file."), /* CUE_FCLOSE_FAILED - 41 */ N_("Bad file name."), /* CUE_BAD_FILENAME - 42 */ N_("Error during write to file."), /* CUE_WRITE_ERROR - 43 */ N_("Undefined Error") }; iMaxIndex = (int)(sizeof(ErrorDescription)/sizeof(char *) - 1); if ((int)iError < 0) { return _(ErrorDescription[0]); } else if ((int)iError > iMaxIndex) { return _(ErrorDescription[iMaxIndex]); } else { return _(ErrorDescription[(int)iError]); } } /** @} */ #ifdef CUNIT_BUILD_TESTS #include "test_cunit.h" void test_cunit_CUError(void) { CU_ErrorCode old_err = CU_get_error(); CU_ErrorAction old_action = CU_get_error_action(); test_cunit_start_tests("CUError.c"); /* CU_set_error() & CU_get_error() */ CU_set_error(CUE_NOMEMORY); TEST(CU_get_error() != CUE_SUCCESS); TEST(CU_get_error() == CUE_NOMEMORY); CU_set_error(CUE_NOREGISTRY); TEST(CU_get_error() != CUE_SUCCESS); TEST(CU_get_error() == CUE_NOREGISTRY); /* CU_get_error_msg() */ CU_set_error(CUE_SUCCESS); TEST(!strcmp(CU_get_error_msg(), get_error_desc(CUE_SUCCESS))); CU_set_error(CUE_NOTEST); TEST(!strcmp(CU_get_error_msg(), get_error_desc(CUE_NOTEST))); CU_set_error(CUE_NOMEMORY); TEST(!strcmp(CU_get_error_msg(), get_error_desc(CUE_NOMEMORY))); TEST(strcmp(CU_get_error_msg(), get_error_desc(CUE_SCLEAN_FAILED))); TEST(!strcmp(get_error_desc(100), "Undefined Error")); /* CU_set_error_action() & CU_get_error_action() */ CU_set_error_action(CUEA_FAIL); TEST(CU_get_error_action() != CUEA_IGNORE); TEST(CU_get_error_action() == CUEA_FAIL); TEST(CU_get_error_action() != CUEA_ABORT); CU_set_error_action(CUEA_ABORT); TEST(CU_get_error_action() != CUEA_IGNORE); TEST(CU_get_error_action() != CUEA_FAIL); TEST(CU_get_error_action() == CUEA_ABORT); /* reset values */ CU_set_error(old_err); CU_set_error_action(old_action); test_cunit_end_tests(); } #endif /* CUNIT_BUILD_TESTS */ cunit-2.1-3-dfsg/CUnit/Sources/Framework/Makefile.am000066400000000000000000000012501260701235000222070ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers SHARED_SOURCES = \ CUError.c \ MyMem.c \ TestDB.c \ TestRun.c \ Util.c noinst_LTLIBRARIES = libcunitfmk.la libcunitfmk_la_SOURCES = $(SHARED_SOURCES) if ENABLE_TEST TEST_DEFINES = -DCUNIT_BUILD_TESTS -DCUNIT_DO_NOT_DEFINE_UNLESS_BUILDING_TESTS -DMEMTRACE TEST_INCLUDES = -I../Test %_test.o: %.c $(COMPILE) $(TEST_INCLUDES) $(TEST_DEFINES) -o $@ -c $< TEST_OBJECTS = \ CUError_test.o \ MyMem_test.o \ TestDB_test.o \ TestRun_test.o \ Util_test.o noinst_LIBRARIES = libcunittestfmk.a libcunittestfmk_a_SOURCES = libcunittestfmk_a_LIBADD = $(TEST_OBJECTS) endif cunit-2.1-3-dfsg/CUnit/Sources/Framework/Makefile.in000066400000000000000000000463311260701235000222310ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = CUnit/Sources/Framework DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru AM_V_AR = $(am__v_AR_@AM_V@) am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) am__v_AR_0 = @echo " AR " $@; am__v_AR_1 = libcunittestfmk_a_AR = $(AR) $(ARFLAGS) @ENABLE_TEST_TRUE@libcunittestfmk_a_DEPENDENCIES = $(TEST_OBJECTS) am_libcunittestfmk_a_OBJECTS = libcunittestfmk_a_OBJECTS = $(am_libcunittestfmk_a_OBJECTS) LTLIBRARIES = $(noinst_LTLIBRARIES) libcunitfmk_la_LIBADD = am__objects_1 = CUError.lo MyMem.lo TestDB.lo TestRun.lo Util.lo am_libcunitfmk_la_OBJECTS = $(am__objects_1) libcunitfmk_la_OBJECTS = $(am_libcunitfmk_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcunittestfmk_a_SOURCES) $(libcunitfmk_la_SOURCES) DIST_SOURCES = $(libcunittestfmk_a_SOURCES) $(libcunitfmk_la_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers SHARED_SOURCES = \ CUError.c \ MyMem.c \ TestDB.c \ TestRun.c \ Util.c noinst_LTLIBRARIES = libcunitfmk.la libcunitfmk_la_SOURCES = $(SHARED_SOURCES) @ENABLE_TEST_TRUE@TEST_DEFINES = -DCUNIT_BUILD_TESTS -DCUNIT_DO_NOT_DEFINE_UNLESS_BUILDING_TESTS -DMEMTRACE @ENABLE_TEST_TRUE@TEST_INCLUDES = -I../Test @ENABLE_TEST_TRUE@TEST_OBJECTS = \ @ENABLE_TEST_TRUE@ CUError_test.o \ @ENABLE_TEST_TRUE@ MyMem_test.o \ @ENABLE_TEST_TRUE@ TestDB_test.o \ @ENABLE_TEST_TRUE@ TestRun_test.o \ @ENABLE_TEST_TRUE@ Util_test.o @ENABLE_TEST_TRUE@noinst_LIBRARIES = libcunittestfmk.a @ENABLE_TEST_TRUE@libcunittestfmk_a_SOURCES = @ENABLE_TEST_TRUE@libcunittestfmk_a_LIBADD = $(TEST_OBJECTS) all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu CUnit/Sources/Framework/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu CUnit/Sources/Framework/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libcunittestfmk.a: $(libcunittestfmk_a_OBJECTS) $(libcunittestfmk_a_DEPENDENCIES) $(EXTRA_libcunittestfmk_a_DEPENDENCIES) $(AM_V_at)-rm -f libcunittestfmk.a $(AM_V_AR)$(libcunittestfmk_a_AR) libcunittestfmk.a $(libcunittestfmk_a_OBJECTS) $(libcunittestfmk_a_LIBADD) $(AM_V_at)$(RANLIB) libcunittestfmk.a clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcunitfmk.la: $(libcunitfmk_la_OBJECTS) $(libcunitfmk_la_DEPENDENCIES) $(EXTRA_libcunitfmk_la_DEPENDENCIES) $(AM_V_CCLD)$(LINK) $(libcunitfmk_la_OBJECTS) $(libcunitfmk_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CUError.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MyMem.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TestDB.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TestRun.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Util.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ clean-noinstLTLIBRARIES mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES clean-noinstLTLIBRARIES \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am @ENABLE_TEST_TRUE@%_test.o: %.c @ENABLE_TEST_TRUE@ $(COMPILE) $(TEST_INCLUDES) $(TEST_DEFINES) -o $@ -c $< # 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: cunit-2.1-3-dfsg/CUnit/Sources/Framework/MyMem.c000066400000000000000000000444441260701235000213570ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Memory management functions used throughout CUnit. * * 13/Oct/2001 Moved some of the generic functions definitions from other * files to this one so as to use the functions consitently. * This file is not included in the distribution headers because * it is used internally by CUnit. (AK) * * 18-Jul-2004 New interface, doxygen comments, made local functions & * constants static, fixed reporting of memory tracking (valid * vs invalid cycles), restructured memory tracking to detect * reallocations & multiple deletions. (JDS) * * 24-Apr-2005 Changed type of allocated sizes to size_t to avoid * signed-unsigned mismatch. (JDS) * * 02-May-2006 Added internationalization hooks. (JDS) */ /** @file * Memory management & reporting functions (implementation). */ /** @addtogroup Framework @{ */ #include #include #include #include #include #include #include #include "CUnit.h" #include "MyMem.h" #include "CUnit_intl.h" #ifdef MEMTRACE #define MAX_FILE_NAME_LENGTH 256 /** Default name for memory dump file. */ static const char* f_szDefaultDumpFileName = "CUnit-Memory-Dump.xml"; /**< Default name for memory dump file. */ #ifdef CUNIT_BUILD_TESTS /** For testing use (only) to simulate memory exhaustion - * if CU_FALSE, allocation requests will always fail and return NULL. */ static CU_BOOL f_bTestCunitMallocActive = CU_TRUE; #endif /** Structure holding the details of a memory allocation/deallocation event. */ typedef struct mem_event { size_t Size; unsigned int AllocLine; char AllocFilename[MAX_FILE_NAME_LENGTH]; unsigned int DeallocLine; char DeallocFilename[MAX_FILE_NAME_LENGTH]; struct mem_event* pNext; } MEMORY_EVENT; typedef MEMORY_EVENT* PMEMORY_EVENT; #define NOT_ALLOCATED 0 #define NOT_DELETED 0 /** Structure holding the details of a memory node having allocation/deallocation events. */ typedef struct mem_node { void* pLocation; unsigned int EventCount; PMEMORY_EVENT pFirstEvent; struct mem_node* pNext; } MEMORY_NODE; typedef MEMORY_NODE* PMEMORY_NODE; static PMEMORY_NODE f_pMemoryTrackerHead = NULL; /**< Head of double-linked list of memory nodes. */ static unsigned int f_nMemoryNodes = 0; /**< Counter for memory nodes created. */ /*------------------------------------------------------------------------*/ /** Locate the memory node for the specified memory location (returns NULL if none). */ static PMEMORY_NODE find_memory_node(void* pLocation) { PMEMORY_NODE pMemoryNode = f_pMemoryTrackerHead; while (NULL != pMemoryNode) { if (pLocation == pMemoryNode->pLocation) { break; } pMemoryNode = pMemoryNode->pNext; } return pMemoryNode; } /*------------------------------------------------------------------------*/ /** Create a new memory node for the specified memory location. */ static PMEMORY_NODE create_memory_node(void* pLocation) { PMEMORY_NODE pTempNode = NULL; PMEMORY_NODE pMemoryNode = find_memory_node(pLocation); /* a memory node for pLocation should not exist yet */ if (NULL == pMemoryNode) { pMemoryNode = (PMEMORY_NODE)malloc(sizeof(MEMORY_NODE)); assert(NULL != pMemoryNode); pMemoryNode->pLocation = pLocation; pMemoryNode->EventCount = 0; pMemoryNode->pFirstEvent = NULL; pMemoryNode->pNext = NULL; /* add new node to linked list */ pTempNode = f_pMemoryTrackerHead; if (NULL == pTempNode) { f_pMemoryTrackerHead = pMemoryNode; } else { while (NULL != pTempNode->pNext) { pTempNode = pTempNode->pNext; } pTempNode->pNext = pMemoryNode; } ++f_nMemoryNodes; } return pMemoryNode; } /*------------------------------------------------------------------------*/ /** Add a new memory event having the specified parameters. */ static PMEMORY_EVENT add_memory_event(PMEMORY_NODE pMemoryNode, size_t size, unsigned int alloc_line, const char* alloc_filename) { PMEMORY_EVENT pMemoryEvent = NULL; PMEMORY_EVENT pTempEvent = NULL; assert (NULL != pMemoryNode); /* create and set up the new event */ pMemoryEvent = (PMEMORY_EVENT)malloc(sizeof(MEMORY_EVENT)); assert(NULL != pMemoryEvent); pMemoryEvent->Size = size; pMemoryEvent->AllocLine = alloc_line; strncpy(pMemoryEvent->AllocFilename, alloc_filename, (size_t) MAX_FILE_NAME_LENGTH-1); pMemoryEvent->AllocFilename[MAX_FILE_NAME_LENGTH-1] = (char)0; pMemoryEvent->DeallocLine = NOT_DELETED; pMemoryEvent->DeallocFilename[0] = (char)0; pMemoryEvent->pNext = NULL; /* add the new event to the end of the linked list */ pTempEvent = pMemoryNode->pFirstEvent; if (NULL == pTempEvent) { pMemoryNode->pFirstEvent = pMemoryEvent; } else { while (NULL != pTempEvent->pNext) { pTempEvent = pTempEvent->pNext; } pTempEvent->pNext = pMemoryEvent; } ++pMemoryNode->EventCount; return pMemoryEvent; } /*------------------------------------------------------------------------*/ /** Record memory allocation event. */ static PMEMORY_NODE allocate_memory(size_t nSize, void* pLocation, unsigned int uiAllocationLine, const char* szAllocationFile) { PMEMORY_NODE pMemoryNode = NULL; /* attempt to locate an existing record for this pLocation */ pMemoryNode = find_memory_node(pLocation); /* pLocation not found - create a new event record */ if (NULL == pMemoryNode) { pMemoryNode = create_memory_node(pLocation); } /* add the new event record */ add_memory_event(pMemoryNode, nSize, uiAllocationLine, szAllocationFile); return pMemoryNode; } /*------------------------------------------------------------------------*/ /** Record memory deallocation event. */ static void deallocate_memory(void* pLocation, unsigned int uiDeletionLine, const char* szDeletionFileName) { PMEMORY_NODE pMemoryNode = NULL; PMEMORY_EVENT pTempEvent = NULL; assert(0 != uiDeletionLine); assert(NULL != szDeletionFileName); /* attempt to locate an existing record for this pLocation */ pMemoryNode = find_memory_node(pLocation); /* if no entry, then an unallocated pointer was freed */ if (NULL == pMemoryNode) { pMemoryNode = create_memory_node(pLocation); pTempEvent = add_memory_event(pMemoryNode, 0, NOT_ALLOCATED, ""); } else { /* there should always be at least 1 event for an existing memory node */ assert(NULL != pMemoryNode->pFirstEvent); /* locate last memory event for this pLocation */ pTempEvent = pMemoryNode->pFirstEvent; while (NULL != pTempEvent->pNext) { pTempEvent = pTempEvent->pNext; } /* if pointer has already been freed, create a new event for double deletion */ if (NOT_DELETED != pTempEvent->DeallocLine) { pTempEvent = add_memory_event(pMemoryNode, pTempEvent->Size, NOT_ALLOCATED, ""); } } pTempEvent->DeallocLine = uiDeletionLine; strncpy(pTempEvent->DeallocFilename, szDeletionFileName, MAX_FILE_NAME_LENGTH-1); pTempEvent->DeallocFilename[MAX_FILE_NAME_LENGTH-1] = (char)0; } /*------------------------------------------------------------------------*/ /** Custom calloc function with memory event recording. */ void* CU_calloc(size_t nmemb, size_t size, unsigned int uiLine, const char* szFileName) { void* pVoid = NULL; #ifdef CUNIT_BUILD_TESTS if (CU_FALSE == f_bTestCunitMallocActive) { return NULL; } #endif pVoid = calloc(nmemb, size); if (NULL != pVoid) { allocate_memory(nmemb * size, pVoid, uiLine, szFileName); } return pVoid; } /*------------------------------------------------------------------------*/ /** Custom malloc function with memory event recording. */ void* CU_malloc(size_t size, unsigned int uiLine, const char* szFileName) { void* pVoid = NULL; #ifdef CUNIT_BUILD_TESTS if (CU_FALSE == f_bTestCunitMallocActive) { return NULL; } #endif pVoid = malloc(size); if (NULL != pVoid) { allocate_memory(size, pVoid, uiLine, szFileName); } return pVoid; } /*------------------------------------------------------------------------*/ /** Custom free function with memory event recording. */ void CU_free(void *ptr, unsigned int uiLine, const char* szFileName) { deallocate_memory(ptr, uiLine, szFileName); free(ptr); } /*------------------------------------------------------------------------*/ /** Custom realloc function with memory event recording. */ void* CU_realloc(void *ptr, size_t size, unsigned int uiLine, const char* szFileName) { void* pVoid = NULL; deallocate_memory(ptr, uiLine, szFileName); #ifdef CUNIT_BUILD_TESTS if (CU_FALSE == f_bTestCunitMallocActive) { free(ptr); return NULL; } #endif pVoid = realloc(ptr, size); if (NULL != pVoid) { allocate_memory(size, pVoid, uiLine, szFileName); } return pVoid; } /*------------------------------------------------------------------------*/ /** Print a report of memory events to file. */ void CU_dump_memory_usage(const char* szFilename) { char* szDumpFileName = (char*)f_szDefaultDumpFileName; unsigned int nValid; unsigned int nInvalid; PMEMORY_NODE pTempNode = NULL; PMEMORY_EVENT pTempEvent = NULL; FILE* pFile = NULL; time_t tTime = 0; /* use the specified file name, if supplied) */ if ((NULL != szFilename) && strlen(szFilename) > 0) { szDumpFileName = (char*)szFilename; } if (NULL == (pFile = fopen(szDumpFileName, "w"))) { fprintf(stderr, _("Failed to open file \"%s\" : %s"), szDumpFileName, strerror(errno)); return; } setvbuf(pFile, NULL, _IONBF, 0); fprintf(pFile, "<\?xml version=\"1.0\" \?>"); fprintf(pFile, "\n<\?xml-stylesheet type=\"text/xsl\" href=\"Memory-Dump.xsl\" \?>"); fprintf(pFile, "\n"); fprintf(pFile, "\n"); fprintf(pFile, "\n "); fprintf(pFile, "\n "); nValid = 0; nInvalid = 0; pTempNode = f_pMemoryTrackerHead; while (NULL != pTempNode) { fprintf(pFile, "\n "); fprintf(pFile, "\n %p ", pTempNode->pLocation); fprintf(pFile, "\n %u ", pTempNode->EventCount); pTempEvent = pTempNode->pFirstEvent; while (NULL != pTempEvent) { fprintf(pFile, "\n "); fprintf(pFile, "\n %u ", pTempEvent->Size); fprintf(pFile, "\n %s ", pTempEvent->AllocFilename); fprintf(pFile, "\n %u ", pTempEvent->AllocLine); fprintf(pFile, "\n %s ", pTempEvent->DeallocFilename); fprintf(pFile, "\n %u ", pTempEvent->DeallocLine); fprintf(pFile, "\n "); if ((0 != pTempEvent->AllocLine) && (0 != pTempEvent->DeallocLine)) { ++nValid; } else { ++nInvalid; } pTempEvent = pTempEvent->pNext; } fprintf(pFile, "\n "); pTempNode = pTempNode->pNext; } fprintf(pFile, "\n "); fprintf(pFile, "\n "); fprintf(pFile, "\n %u ", nValid); fprintf(pFile, "\n %u ", nInvalid); fprintf(pFile, "\n %u ", nValid + nInvalid); fprintf(pFile, "\n "); time(&tTime); fprintf(pFile, "\n Memory Trace for CUnit Run at %s ", ctime(&tTime)); fprintf(pFile, ""); fclose(pFile); } #endif /* MEMTRACE */ /** @} */ #ifdef CUNIT_BUILD_TESTS #include "test_cunit.h" /** Deactivate CUnit memory allocation * After calling this function, all Cunit memory * allocation routines will fail and return NULL. */ void test_cunit_deactivate_malloc(void) { f_bTestCunitMallocActive = CU_FALSE; } /** Activate CUnit memory allocation * After calling this function, all Cunit memory * allocation routines will behave normally (allocating * memory if it is available). */ void test_cunit_activate_malloc(void) { f_bTestCunitMallocActive = CU_TRUE; } /** Retrieve the number of memory events recorded for a given pointer. */ unsigned int test_cunit_get_n_memevents(void* pLocation) { PMEMORY_NODE pNode = find_memory_node(pLocation); return (pNode) ? pNode->EventCount : 0; } /** Retrieve the number of memory allocations recorded for a given pointer. */ unsigned int test_cunit_get_n_allocations(void* pLocation) { PMEMORY_NODE pNode = find_memory_node(pLocation); PMEMORY_EVENT pEvent = NULL; int result = 0; if (NULL != pNode) { pEvent = pNode->pFirstEvent; while (NULL != pEvent) { if (pEvent->AllocLine != NOT_ALLOCATED) ++result; pEvent = pEvent->pNext; } } return result; } /** Retrieve the number of memory deallocations recorded for a given pointer. */ unsigned int test_cunit_get_n_deallocations(void* pLocation) { PMEMORY_NODE pNode = find_memory_node(pLocation); PMEMORY_EVENT pEvent = NULL; int result = 0; if (NULL != pNode) { pEvent = pNode->pFirstEvent; while (NULL != pEvent) { if (pEvent->DeallocLine != NOT_DELETED) ++result; pEvent = pEvent->pNext; } } return result; } void test_CU_calloc(void) { void* ptr1 = NULL; void* ptr2 = calloc(2, sizeof(int)); unsigned int n2 = test_cunit_get_n_memevents(ptr2); /* test allocation failure */ test_cunit_deactivate_malloc(); ptr1 = CU_CALLOC(2, sizeof(int)); TEST(NULL == ptr1); TEST(test_cunit_get_n_allocations(ptr1) == test_cunit_get_n_deallocations(ptr1)); TEST(test_cunit_get_n_allocations(ptr2) == test_cunit_get_n_deallocations(ptr2)); test_cunit_activate_malloc(); /* normal allocation */ ptr1 = CU_CALLOC(2, sizeof(int)); TEST_FATAL(NULL != ptr1); TEST(test_cunit_get_n_allocations(ptr1) != test_cunit_get_n_deallocations(ptr1)); TEST(test_cunit_get_n_allocations(ptr2) == test_cunit_get_n_deallocations(ptr2)); CU_FREE(ptr1); TEST(test_cunit_get_n_allocations(ptr1) == test_cunit_get_n_deallocations(ptr1)); TEST(test_cunit_get_n_allocations(ptr2) == test_cunit_get_n_deallocations(ptr2)); TEST(n2 == test_cunit_get_n_memevents(ptr2)); free(ptr2); } void test_CU_malloc(void) { void* ptr1 = NULL; void* ptr2 = malloc(sizeof(int)); unsigned int n2 = test_cunit_get_n_memevents(ptr2); /* test allocation failure */ test_cunit_deactivate_malloc(); ptr1 = CU_MALLOC(sizeof(int)); TEST(NULL == ptr1); TEST(test_cunit_get_n_allocations(ptr1) == test_cunit_get_n_deallocations(ptr1)); TEST(test_cunit_get_n_allocations(ptr2) == test_cunit_get_n_deallocations(ptr2)); test_cunit_activate_malloc(); /* normal allocation */ ptr1 = CU_MALLOC(sizeof(int)); TEST_FATAL(NULL != ptr1); TEST(test_cunit_get_n_allocations(ptr1) != test_cunit_get_n_deallocations(ptr1)); TEST(test_cunit_get_n_allocations(ptr2) == test_cunit_get_n_deallocations(ptr2)); CU_FREE(ptr1); TEST(test_cunit_get_n_allocations(ptr1) == test_cunit_get_n_deallocations(ptr1)); TEST(test_cunit_get_n_allocations(ptr2) == test_cunit_get_n_deallocations(ptr2)); TEST(n2 == test_cunit_get_n_memevents(ptr2)); free(ptr2); } void test_CU_free(void) { /* covered by other test functions */ } void test_CU_realloc(void) { void* ptr1 = CU_MALLOC(sizeof(int)); void* ptr2 = malloc(sizeof(int)); void* ptr3; void* ptr4; unsigned int n2 = test_cunit_get_n_memevents(ptr2); /* test allocation failure */ test_cunit_deactivate_malloc(); ptr1 = CU_REALLOC(ptr1, sizeof(long int)); TEST(NULL == ptr1); TEST(test_cunit_get_n_allocations(ptr1) == test_cunit_get_n_deallocations(ptr1)); TEST(test_cunit_get_n_allocations(ptr2) == test_cunit_get_n_deallocations(ptr2)); test_cunit_activate_malloc(); /* normal allocation */ ptr3 = CU_MALLOC(sizeof(int)); TEST_FATAL(NULL != ptr3); TEST(test_cunit_get_n_allocations(ptr1) == test_cunit_get_n_deallocations(ptr1)); TEST(test_cunit_get_n_allocations(ptr2) == test_cunit_get_n_deallocations(ptr2)); TEST(test_cunit_get_n_allocations(ptr3) != test_cunit_get_n_deallocations(ptr3)); ptr4 = CU_REALLOC(ptr3, sizeof(long int)); TEST_FATAL(NULL != ptr4); TEST(test_cunit_get_n_allocations(ptr1) == test_cunit_get_n_deallocations(ptr1)); TEST(test_cunit_get_n_allocations(ptr2) == test_cunit_get_n_deallocations(ptr2)); if (ptr3 != ptr4) TEST(test_cunit_get_n_allocations(ptr3) == test_cunit_get_n_deallocations(ptr3)); TEST(test_cunit_get_n_allocations(ptr4) != test_cunit_get_n_deallocations(ptr4)); CU_FREE(ptr4); TEST(test_cunit_get_n_allocations(ptr1) == test_cunit_get_n_deallocations(ptr1)); TEST(test_cunit_get_n_allocations(ptr2) == test_cunit_get_n_deallocations(ptr2)); TEST(test_cunit_get_n_allocations(ptr3) == test_cunit_get_n_deallocations(ptr3)); TEST(test_cunit_get_n_allocations(ptr4) == test_cunit_get_n_deallocations(ptr4)); TEST(n2 == test_cunit_get_n_memevents(ptr2)); free(ptr2); } /** The main internal testing function for MyMem.c. */ void test_cunit_MyMem(void) { test_cunit_start_tests("MyMem.c"); test_CU_calloc(); test_CU_malloc(); test_CU_free(); test_CU_realloc(); test_cunit_end_tests(); } #endif /* CUNIT_BUILD_TESTS */ cunit-2.1-3-dfsg/CUnit/Sources/Framework/TestDB.c000066400000000000000000002667031260701235000214640ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004,2005,2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Implementation of Registry/TestGroup/Testcase management Routines. * * Aug 2001 Initial implementation (AK) * * 09/Aug/2001 Added startup initialize/cleanup registry functions. (AK) * * 29/Aug/2001 Added Test and Group Add functions. (AK) * * 02/Oct/2001 Added Proper Error codes and Messages on the failure conditions. (AK) * * 13/Oct/2001 Added Code to Check for the Duplicate Group name and test name. (AK) * * 15-Jul-2004 Added doxygen comments, new interface, added assertions to * internal functions, moved error handling code to CUError.c, * added assertions to make sure no modification of registry * during a run, bug fixes, changed CU_set_registry() so that it * doesn't require cleaning the existing registry. (JDS) * * 24-Apr-2006 Removed constraint that suites/tests be uniquely named. * Added ability to turn individual tests/suites on or off. * Added lookup functions for suites/tests based on index. * Moved doxygen comments for public API here to header. * Modified internal unit tests to include these changes. (JDS) * * 02-May-2006 Added internationalization hooks. (JDS) * * 16-Avr-2007 Added setup and teardown functions. (CJN) * */ /** @file * Management functions for tests, suites, and the test registry (implementation). */ /** @addtogroup Framework @{ */ #include #include #include #include #include #include "CUnit.h" #include "MyMem.h" #include "TestDB.h" #include "TestRun.h" #include "Util.h" #include "CUnit_intl.h" /*================================================================= * Global/Static Definitions *=================================================================*/ static CU_pTestRegistry f_pTestRegistry = NULL; /**< The active internal Test Registry. */ /*================================================================= * Private function forward declarations *=================================================================*/ static void cleanup_test_registry(CU_pTestRegistry pRegistry); static CU_pSuite create_suite(const char* strName, CU_InitializeFunc pInit, CU_CleanupFunc pClean, CU_SetUpFunc pSetup, CU_TearDownFunc pTear); static void cleanup_suite(CU_pSuite pSuite); static void insert_suite(CU_pTestRegistry pRegistry, CU_pSuite pSuite); static CU_pTest create_test(const char* strName, CU_TestFunc pTestFunc); static void cleanup_test(CU_pTest pTest); static void insert_test(CU_pSuite pSuite, CU_pTest pTest); static CU_BOOL suite_exists(CU_pTestRegistry pRegistry, const char* szSuiteName); static CU_BOOL test_exists(CU_pSuite pSuite, const char* szTestName); /*================================================================= * Public Interface functions *=================================================================*/ CU_ErrorCode CU_initialize_registry(void) { CU_ErrorCode result; assert(CU_FALSE == CU_is_test_running()); CU_set_error(result = CUE_SUCCESS); if (NULL != f_pTestRegistry) { CU_cleanup_registry(); } f_pTestRegistry = CU_create_new_registry(); if (NULL == f_pTestRegistry) { CU_set_error(result = CUE_NOMEMORY); } return result; } /*------------------------------------------------------------------------*/ CU_BOOL CU_registry_initialized(void) { return (NULL == f_pTestRegistry) ? CU_FALSE : CU_TRUE; } /*------------------------------------------------------------------------*/ void CU_cleanup_registry(void) { assert(CU_FALSE == CU_is_test_running()); CU_set_error(CUE_SUCCESS); CU_destroy_existing_registry(&f_pTestRegistry); /* supposed to handle NULL ok */ CU_clear_previous_results(); CU_CREATE_MEMORY_REPORT(NULL); } /*------------------------------------------------------------------------*/ CU_pTestRegistry CU_get_registry(void) { return f_pTestRegistry; } /*------------------------------------------------------------------------*/ CU_pTestRegistry CU_set_registry(CU_pTestRegistry pRegistry) { CU_pTestRegistry pOldRegistry = f_pTestRegistry; assert(CU_FALSE == CU_is_test_running()); CU_set_error(CUE_SUCCESS); f_pTestRegistry = pRegistry; return pOldRegistry; } /*------------------------------------------------------------------------*/ CU_pSuite CU_add_suite_with_setup_and_teardown(const char* strName, CU_InitializeFunc pInit, CU_CleanupFunc pClean, CU_SetUpFunc pSetup, CU_TearDownFunc pTear) { CU_pSuite pRetValue = NULL; CU_ErrorCode error = CUE_SUCCESS; assert(CU_FALSE == CU_is_test_running()); if (NULL == f_pTestRegistry) { error = CUE_NOREGISTRY; } else if (NULL == strName) { error = CUE_NO_SUITENAME; } else { pRetValue = create_suite(strName, pInit, pClean, pSetup, pTear); if (NULL == pRetValue) { error = CUE_NOMEMORY; } else { if (CU_TRUE == suite_exists(f_pTestRegistry, strName)) { error = CUE_DUP_SUITE; } insert_suite(f_pTestRegistry, pRetValue); } } CU_set_error(error); return pRetValue; } /*------------------------------------------------------------------------*/ CU_pSuite CU_add_suite(const char* strName, CU_InitializeFunc pInit, CU_CleanupFunc pClean) { return CU_add_suite_with_setup_and_teardown(strName, pInit, pClean, NULL, NULL); } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_set_suite_active(CU_pSuite pSuite, CU_BOOL fNewActive) { CU_ErrorCode result = CUE_SUCCESS; if (NULL == pSuite) { result = CUE_NOSUITE; } else { pSuite->fActive = fNewActive; } CU_set_error(result); return result; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_set_suite_name(CU_pSuite pSuite, const char *strNewName) { CU_ErrorCode result = CUE_SUCCESS; if (NULL == pSuite) { result = CUE_NOSUITE; } else if (NULL == strNewName) { result = CUE_NO_SUITENAME; } else { CU_FREE(pSuite->pName); pSuite->pName = (char *)CU_MALLOC(strlen(strNewName)+1); strcpy(pSuite->pName, strNewName); } CU_set_error(result); return result; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_set_suite_initfunc(CU_pSuite pSuite, CU_InitializeFunc pNewInit) { CU_ErrorCode result = CUE_SUCCESS; if (NULL == pSuite) { result = CUE_NOSUITE; } else { pSuite->pInitializeFunc = pNewInit; } CU_set_error(result); return result; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_set_suite_cleanupfunc(CU_pSuite pSuite, CU_CleanupFunc pNewClean) { CU_ErrorCode result = CUE_SUCCESS; if (NULL == pSuite) { result = CUE_NOSUITE; } else { pSuite->pCleanupFunc = pNewClean; } CU_set_error(result); return result; } /*------------------------------------------------------------------------*/ CU_pSuite CU_get_suite(const char *strName) { CU_pSuite result = NULL; CU_ErrorCode error = CUE_SUCCESS; if (NULL == f_pTestRegistry) { error = CUE_NOREGISTRY; } else if (NULL == strName) { error = CUE_NO_SUITENAME; } else { result = CU_get_suite_by_name(strName, f_pTestRegistry); } CU_set_error(error); return result; } /*------------------------------------------------------------------------*/ CU_pSuite CU_get_suite_at_pos(unsigned int pos) { CU_pSuite result = NULL; CU_ErrorCode error = CUE_SUCCESS; if (NULL == f_pTestRegistry) { error = CUE_NOREGISTRY; } else { result = CU_get_suite_by_index(pos, f_pTestRegistry); } CU_set_error(error); return result; } /*------------------------------------------------------------------------*/ unsigned int CU_get_suite_pos(CU_pSuite pSuite) { unsigned int result = 0; CU_ErrorCode error = CUE_SUCCESS; CU_pSuite pCurrentSuite = NULL; if (NULL == f_pTestRegistry) { error = CUE_NOREGISTRY; } else if (NULL == pSuite) { error = CUE_NOSUITE; } else { pCurrentSuite = f_pTestRegistry->pSuite; result = 1; while ((NULL != pCurrentSuite) && (pCurrentSuite != pSuite)) { ++result; pCurrentSuite = pCurrentSuite->pNext; } if (pCurrentSuite == NULL) { result = 0; } } CU_set_error(error); return result; } /*------------------------------------------------------------------------*/ unsigned int CU_get_suite_pos_by_name(const char *strName) { unsigned int result = 0; CU_ErrorCode error = CUE_SUCCESS; CU_pSuite pCurrentSuite = NULL; if (NULL == f_pTestRegistry) { error = CUE_NOREGISTRY; } else if (NULL == strName) { error = CUE_NO_SUITENAME; } else { pCurrentSuite = f_pTestRegistry->pSuite; result = 1; while ((NULL != pCurrentSuite) && (0 != strcmp(pCurrentSuite->pName, strName))) { ++result; pCurrentSuite = pCurrentSuite->pNext; } if (pCurrentSuite == NULL) { result = 0; } } CU_set_error(error); return result; } /*------------------------------------------------------------------------*/ CU_pTest CU_add_test(CU_pSuite pSuite, const char* strName, CU_TestFunc pTestFunc) { CU_pTest pRetValue = NULL; CU_ErrorCode error = CUE_SUCCESS; assert(CU_FALSE == CU_is_test_running()); if (NULL == f_pTestRegistry) { error = CUE_NOREGISTRY; } else if (NULL == pSuite) { error = CUE_NOSUITE; } else if (NULL == strName) { error = CUE_NO_TESTNAME; } else if(NULL == pTestFunc) { error = CUE_NOTEST; } else { pRetValue = create_test(strName, pTestFunc); if (NULL == pRetValue) { error = CUE_NOMEMORY; } else { f_pTestRegistry->uiNumberOfTests++; if (CU_TRUE == test_exists(pSuite, strName)) { error = CUE_DUP_TEST; } insert_test(pSuite, pRetValue); } } CU_set_error(error); return pRetValue; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_set_test_active(CU_pTest pTest, CU_BOOL fNewActive) { CU_ErrorCode result = CUE_SUCCESS; if (NULL == pTest) { result = CUE_NOTEST; } else { pTest->fActive = fNewActive; } CU_set_error(result); return result; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_set_test_name(CU_pTest pTest, const char *strNewName) { CU_ErrorCode result = CUE_SUCCESS; if (NULL == pTest) { result = CUE_NOTEST; } else if (NULL == strNewName) { result = CUE_NO_TESTNAME; } else { CU_FREE(pTest->pName); pTest->pName = (char *)CU_MALLOC(strlen(strNewName)+1); strcpy(pTest->pName, strNewName); } CU_set_error(result); return result; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_set_test_func(CU_pTest pTest, CU_TestFunc pNewFunc) { CU_ErrorCode result = CUE_SUCCESS; if ((NULL == pTest) || (NULL == pNewFunc)) { result = CUE_NOTEST; } else { pTest->pTestFunc = pNewFunc; } CU_set_error(result); return result; } /*------------------------------------------------------------------------*/ CU_pTest CU_get_test(CU_pSuite pSuite, const char *strName) { CU_pTest result = NULL; CU_ErrorCode error = CUE_SUCCESS; if (NULL == f_pTestRegistry) { error = CUE_NOREGISTRY; } else if (NULL == pSuite) { error = CUE_NOSUITE; } else if (NULL == strName) { error = CUE_NO_SUITENAME; } else { result = CU_get_test_by_name(strName, pSuite); } CU_set_error(error); return result; } /*------------------------------------------------------------------------*/ CU_pTest CU_get_test_at_pos(CU_pSuite pSuite, unsigned int pos) { CU_pTest result = NULL; CU_ErrorCode error = CUE_SUCCESS; if (NULL == f_pTestRegistry) { error = CUE_NOREGISTRY; } else if (NULL == pSuite) { error = CUE_NOSUITE; } else { result = CU_get_test_by_index(pos, pSuite); } CU_set_error(error); return result; } /*------------------------------------------------------------------------*/ unsigned int CU_get_test_pos(CU_pSuite pSuite, CU_pTest pTest) { unsigned int result = 0; CU_ErrorCode error = CUE_SUCCESS; CU_pTest pCurrentTest = NULL; if (NULL == f_pTestRegistry) { error = CUE_NOREGISTRY; } else if (NULL == pSuite) { error = CUE_NOSUITE; } else if (NULL == pTest) { error = CUE_NOTEST; } else { pCurrentTest = pSuite->pTest; result = 1; while ((NULL != pCurrentTest) && (pCurrentTest != pTest)) { ++result; pCurrentTest = pCurrentTest->pNext; } if (pCurrentTest == NULL) { result = 0; } } CU_set_error(error); return result; } /*------------------------------------------------------------------------*/ unsigned int CU_get_test_pos_by_name(CU_pSuite pSuite, const char *strName) { unsigned int result = 0; CU_ErrorCode error = CUE_SUCCESS; CU_pTest pCurrentTest = NULL; if (NULL == f_pTestRegistry) { error = CUE_NOREGISTRY; } else if (NULL == pSuite) { error = CUE_NOSUITE; } else if (NULL == strName) { error = CUE_NO_TESTNAME; } else { pCurrentTest = pSuite->pTest; result = 1; while ((NULL != pCurrentTest) && (0 != strcmp(pCurrentTest->pName, strName))) { ++result; pCurrentTest = pCurrentTest->pNext; } if (pCurrentTest == NULL) { result = 0; } } CU_set_error(error); return result; } /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ /* This section is based conceptually on code * Copyright (C) 2004 Aurema Pty Ltd. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 * * Derived from code contributed by K. Cheung and Aurema Pty Ltd. (thanks!) * int test_group_register(test_group_t *tg) * int test_suite_register(test_suite_t *ts) */ /*------------------------------------------------------------------------*/ CU_ErrorCode CU_register_nsuites(int suite_count, ...) { CU_SuiteInfo *pSuiteItem = NULL; CU_TestInfo *pTestItem = NULL; CU_pSuite pSuite = NULL; va_list argptr; int i; va_start(argptr, suite_count); for (i=0 ; ipName; pSuiteItem++) { if (NULL != (pSuite = CU_add_suite_with_setup_and_teardown(pSuiteItem->pName, pSuiteItem->pInitFunc, pSuiteItem->pCleanupFunc, pSuiteItem->pSetUpFunc, pSuiteItem->pTearDownFunc))) { for (pTestItem = pSuiteItem->pTests; NULL != pTestItem->pName; pTestItem++) { if (NULL == CU_add_test(pSuite, pTestItem->pName, pTestItem->pTestFunc)) { return CU_get_error(); } } } else { return CU_get_error(); } } } } return CU_get_error(); } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_register_suites(CU_SuiteInfo suite_info[]) { return CU_register_nsuites(1, suite_info); } /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ /*================================================================= * Private static function definitions *=================================================================*/ /*------------------------------------------------------------------------*/ /** * Internal function to clean up the specified test registry. * cleanup_suite() will be called for each registered suite to perform * cleanup of the associated test cases. Then, the suite's memory will * be freed. Note that any pointers to tests or suites in pRegistry * held by the user will be invalidated by this function. Severe problems * can occur if this function is called during a test run involving pRegistry. * Note that memory held for data members in the registry (e.g. pName) and * the registry itself are not freed by this function. * * @see cleanup_suite() * @see cleanup_test() * @param pRegistry CU_pTestRegistry to clean up (non-NULL). */ static void cleanup_test_registry(CU_pTestRegistry pRegistry) { CU_pSuite pCurSuite = NULL; CU_pSuite pNextSuite = NULL; assert(NULL != pRegistry); pCurSuite = pRegistry->pSuite; while (NULL != pCurSuite) { pNextSuite = pCurSuite->pNext; cleanup_suite(pCurSuite); CU_FREE(pCurSuite); pCurSuite = pNextSuite; } pRegistry->pSuite = NULL; pRegistry->uiNumberOfSuites = 0; pRegistry->uiNumberOfTests = 0; } /*------------------------------------------------------------------------*/ /** * Internal function to create a new test suite having the specified parameters. * This function creates a new test suite having the specified name and * initialization/cleanup functions. The new suite is active for execution during * test runs. The strName cannot be NULL (checked by assertion), but either or * both function pointers can be. A pointer to the newly-created suite is returned, * or NULL if there was an error allocating memory for the new suite. It is the * responsibility of the caller to destroy the returned suite (use cleanup_suite() * before freeing the returned pointer). * * @param strName Name for the new test suite (non-NULL). * @param pInit Initialization function to call before running suite. * @param pClean Cleanup function to call after running suite. * @return A pointer to the newly-created suite (NULL if creation failed) */ static CU_pSuite create_suite(const char* strName, CU_InitializeFunc pInit, CU_CleanupFunc pClean, CU_SetUpFunc pSetup, CU_TearDownFunc pTear) { CU_pSuite pRetValue = (CU_pSuite)CU_MALLOC(sizeof(CU_Suite)); assert(NULL != strName); if (NULL != pRetValue) { pRetValue->pName = (char *)CU_MALLOC(strlen(strName)+1); if (NULL != pRetValue->pName) { strcpy(pRetValue->pName, strName); pRetValue->fActive = CU_TRUE; pRetValue->pInitializeFunc = pInit; pRetValue->pCleanupFunc = pClean; pRetValue->pSetUpFunc = pSetup; pRetValue->pTearDownFunc = pTear; pRetValue->pTest = NULL; pRetValue->pNext = NULL; pRetValue->pPrev = NULL; pRetValue->uiNumberOfTests = 0; } else { CU_FREE(pRetValue); pRetValue = NULL; } } return pRetValue; } /*------------------------------------------------------------------------*/ /** * Internal function to clean up the specified test suite. * Each test case registered with pSuite will be freed. Allocated memory held * by the suite (i.e. the name) will also be deallocated. Severe problems can * occur if this function is called during a test run involving pSuite. * * @param pSuite CU_pSuite to clean up (non-NULL). * @see cleanup_test_registry() * @see cleanup_test() */ static void cleanup_suite(CU_pSuite pSuite) { CU_pTest pCurTest = NULL; CU_pTest pNextTest = NULL; assert(NULL != pSuite); pCurTest = pSuite->pTest; while (NULL != pCurTest) { pNextTest = pCurTest->pNext; cleanup_test(pCurTest); CU_FREE(pCurTest); pCurTest = pNextTest; } if (NULL != pSuite->pName) { CU_FREE(pSuite->pName); } pSuite->pName = NULL; pSuite->pTest = NULL; pSuite->uiNumberOfTests = 0; } /*------------------------------------------------------------------------*/ /** * Internal function to insert a suite into a registry. * The suite name is assumed to be unique. Internally, the list of suites * is a double-linked list, which this function manages. Insertion of NULL * pSuites is not allowed (checked by assertion). Severe problems can occur * if this function is called during a test run involving pRegistry. * * @param pRegistry CU_pTestRegistry to insert into (non-NULL). * @param pSuite CU_pSuite to insert (non-NULL). * @see insert_test() */ static void insert_suite(CU_pTestRegistry pRegistry, CU_pSuite pSuite) { CU_pSuite pCurSuite = NULL; assert(NULL != pRegistry); assert(NULL != pSuite); pCurSuite = pRegistry->pSuite; assert(pCurSuite != pSuite); pSuite->pNext = NULL; pRegistry->uiNumberOfSuites++; /* if this is the 1st suite to be added... */ if (NULL == pCurSuite) { pRegistry->pSuite = pSuite; pSuite->pPrev = NULL; } /* otherwise, add it to the end of the linked list... */ else { while (NULL != pCurSuite->pNext) { pCurSuite = pCurSuite->pNext; assert(pCurSuite != pSuite); } pCurSuite->pNext = pSuite; pSuite->pPrev = pCurSuite; } } /*------------------------------------------------------------------------*/ /** * Internal function to create a new test case having the specified parameters. * This function creates a new test having the specified name and test function. * The strName cannot be NULL (checked by assertion), but the function pointer * may be. A pointer to the newly-created test is returned, or NULL if there * was an error allocating memory for the new test. It is the responsibility * of the caller to destroy the returned test (use cleanup_test() before freeing * the returned pointer). * * @param strName Name for the new test. * @param pTestFunc Test function to call when running this test. * @return A pointer to the newly-created test (NULL if creation failed) */ static CU_pTest create_test(const char* strName, CU_TestFunc pTestFunc) { CU_pTest pRetValue = (CU_pTest)CU_MALLOC(sizeof(CU_Test)); assert(NULL != strName); if (NULL != pRetValue) { pRetValue->pName = (char *)CU_MALLOC(strlen(strName)+1); if (NULL != pRetValue->pName) { strcpy(pRetValue->pName, strName); pRetValue->fActive = CU_TRUE; pRetValue->pTestFunc = pTestFunc; pRetValue->pJumpBuf = NULL; pRetValue->pNext = NULL; pRetValue->pPrev = NULL; } else { CU_FREE(pRetValue); pRetValue = NULL; } } return pRetValue; } /*------------------------------------------------------------------------*/ /** * Internal function to clean up the specified test. * All memory associated with the test will be freed. Severe problems can * occur if this function is called during a test run involving pTest. * * @param pTest CU_pTest to clean up (non-NULL). * @see cleanup_test_registry() * @see cleanup_suite() */ static void cleanup_test(CU_pTest pTest) { assert(NULL != pTest); if (NULL != pTest->pName) { CU_FREE(pTest->pName); } pTest->pName = NULL; } /*------------------------------------------------------------------------*/ /** * Internal function to insert a test into a suite. * The test name is assumed to be unique. Internally, the list of tests in * a suite is a double-linked list, which this function manages. Neither * pSuite nor pTest may be NULL (checked by assertion). Further, pTest must * be an independent test (i.e. both pTest->pNext and pTest->pPrev == NULL), * which is also checked by assertion. Severe problems can occur if this * function is called during a test run involving pSuite. * * @param pSuite CU_pSuite to insert into (non-NULL). * @param pTest CU_pTest to insert (non-NULL). * @see insert_suite() */ static void insert_test(CU_pSuite pSuite, CU_pTest pTest) { CU_pTest pCurTest = NULL; assert(NULL != pSuite); assert(NULL != pTest); assert(NULL == pTest->pNext); assert(NULL == pTest->pPrev); pCurTest = pSuite->pTest; assert(pCurTest != pTest); pSuite->uiNumberOfTests++; /* if this is the 1st suite to be added... */ if (NULL == pCurTest) { pSuite->pTest = pTest; pTest->pPrev = NULL; } else { while (NULL != pCurTest->pNext) { pCurTest = pCurTest->pNext; assert(pCurTest != pTest); } pCurTest->pNext = pTest; pTest->pPrev = pCurTest; } } /*------------------------------------------------------------------------*/ /** * Internal function to check whether a suite having a specified * name already exists. * * @param pRegistry CU_pTestRegistry to check (non-NULL). * @param szSuiteName Suite name to check (non-NULL). * @return CU_TRUE if suite exists in the registry, CU_FALSE otherwise. */ static CU_BOOL suite_exists(CU_pTestRegistry pRegistry, const char* szSuiteName) { CU_pSuite pSuite = NULL; assert(NULL != pRegistry); assert(NULL != szSuiteName); pSuite = pRegistry->pSuite; while (NULL != pSuite) { if ((NULL != pSuite->pName) && (0 == CU_compare_strings(szSuiteName, pSuite->pName))) { return CU_TRUE; } pSuite = pSuite->pNext; } return CU_FALSE; } /*------------------------------------------------------------------------*/ /** * Internal function to check whether a test having a specified * name is already registered in a given suite. * * @param pSuite CU_pSuite to check (non-NULL). * @param szTestName Test case name to check (non-NULL). * @return CU_TRUE if test exists in the suite, CU_FALSE otherwise. */ static CU_BOOL test_exists(CU_pSuite pSuite, const char* szTestName) { CU_pTest pTest = NULL; assert(NULL != pSuite); assert(NULL != szTestName); pTest = pSuite->pTest; while (NULL != pTest) { if ((NULL != pTest->pName) && (0 == CU_compare_strings(szTestName, pTest->pName))) { return CU_TRUE; } pTest = pTest->pNext; } return CU_FALSE; } /*================================================================= * Public but primarily internal function definitions *=================================================================*/ CU_pTestRegistry CU_create_new_registry(void) { CU_pTestRegistry pRegistry = (CU_pTestRegistry)CU_MALLOC(sizeof(CU_TestRegistry)); if (NULL != pRegistry) { pRegistry->pSuite = NULL; pRegistry->uiNumberOfSuites = 0; pRegistry->uiNumberOfTests = 0; } return pRegistry; } /*------------------------------------------------------------------------*/ void CU_destroy_existing_registry(CU_pTestRegistry* ppRegistry) { assert(NULL != ppRegistry); /* Note - CU_cleanup_registry counts on being able to pass NULL */ if (NULL != *ppRegistry) { cleanup_test_registry(*ppRegistry); } CU_FREE(*ppRegistry); *ppRegistry = NULL; } /*------------------------------------------------------------------------*/ CU_pSuite CU_get_suite_by_name(const char* szSuiteName, CU_pTestRegistry pRegistry) { CU_pSuite pSuite = NULL; CU_pSuite pCur = NULL; assert(NULL != pRegistry); assert(NULL != szSuiteName); pCur = pRegistry->pSuite; while (NULL != pCur) { if ((NULL != pCur->pName) && (0 == CU_compare_strings(pCur->pName, szSuiteName))) { pSuite = pCur; break; } pCur = pCur->pNext; } return pSuite; } /*------------------------------------------------------------------------*/ CU_pSuite CU_get_suite_by_index(unsigned int index, CU_pTestRegistry pRegistry) { CU_pSuite result = NULL; unsigned int i; assert(NULL != pRegistry); if ((index > 0) && (index <= f_pTestRegistry->uiNumberOfSuites)) { result = f_pTestRegistry->pSuite; for (i=1 ; ipNext; } } return result; } /*------------------------------------------------------------------------*/ CU_pTest CU_get_test_by_name(const char* szTestName, CU_pSuite pSuite) { CU_pTest pTest = NULL; CU_pTest pCur = NULL; assert(NULL != pSuite); assert(NULL != szTestName); pCur = pSuite->pTest; while (NULL != pCur) { if ((NULL != pCur->pName) && (0 == CU_compare_strings(pCur->pName, szTestName))) { pTest = pCur; break; } pCur = pCur->pNext; } return pTest; } /*------------------------------------------------------------------------*/ CU_pTest CU_get_test_by_index(unsigned int index, CU_pSuite pSuite) { CU_pTest result = NULL; unsigned int i; assert(NULL != pSuite); if ((index > 0) && (index <= pSuite->uiNumberOfTests)) { result = pSuite->pTest; for (i=1 ; ipNext; } } return result; } /** @} */ /*------------------------------------------------------------------------*/ /*------------------------------------------------------------------------*/ #ifdef CUNIT_BUILD_TESTS #include "test_cunit.h" static int sfunc1(void) { return 0; } static void test1(void) {} static void test2(void) {} /*--------------------------------------------------*/ static void test_CU_initialize_registry(void) { CU_pTestRegistry pReg = NULL; unsigned int ndeallocs_before; /* initial state */ TEST(NULL == CU_get_registry()); TEST(CU_FALSE == CU_registry_initialized()); /* after normal initialization */ TEST(CUE_SUCCESS == CU_initialize_registry()); pReg = CU_get_registry(); TEST_FATAL(NULL != pReg); TEST(CU_TRUE == CU_registry_initialized()); TEST(0 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(NULL == pReg->pSuite); /* after reinitialization */ TEST(0 < test_cunit_get_n_memevents(pReg)); ndeallocs_before = test_cunit_get_n_deallocations(pReg); TEST(CUE_SUCCESS == CU_initialize_registry()); TEST((ndeallocs_before + 1) == test_cunit_get_n_deallocations(pReg)); pReg = CU_get_registry(); TEST_FATAL(NULL != pReg); TEST(0 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(NULL == pReg->pSuite); /* after cleanup */ CU_cleanup_registry(); TEST(NULL == CU_get_registry()); TEST(CU_FALSE == CU_registry_initialized()); /* if malloc fails */ test_cunit_deactivate_malloc(); TEST(CUE_NOMEMORY == CU_initialize_registry()); TEST(NULL == CU_get_registry()); TEST(CU_FALSE == CU_registry_initialized()); test_cunit_activate_malloc(); } /*--------------------------------------------------*/ static void test_CU_cleanup_registry(void) { /* make sure calling with uninitialized registry does not crash */ CU_cleanup_registry(); CU_cleanup_registry(); CU_cleanup_registry(); CU_cleanup_registry(); CU_cleanup_registry(); /* nothing more to do over test_CU_initialize_registry() */ } /*--------------------------------------------------*/ /* test CU_add_suite() * CU_get_suite_by_name() * CU_get_suite_by_index() */ static void test_CU_add_suite(void) { CU_pSuite pSuite = NULL; CU_pSuite pSuite2 = NULL; CU_pSuite pSuite3 = NULL; CU_pSuite pSuite4 = NULL; CU_pTestRegistry pReg = NULL; CU_cleanup_registry(); /* make sure registry not initialized */ /* error condition - registry not initialized */ pSuite = CU_add_suite("suite1", NULL, NULL); TEST(CUE_NOREGISTRY == CU_get_error()); TEST(NULL == pSuite); /* error condition - no name */ CU_initialize_registry(); pReg = CU_get_registry(); pSuite = CU_add_suite(NULL, NULL, NULL); TEST(CUE_NO_SUITENAME == CU_get_error()); TEST(NULL == pSuite); TEST(0 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); /* warning condition - duplicate name */ CU_initialize_registry(); pReg = CU_get_registry(); pSuite = CU_add_suite("suite1", NULL, NULL); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL != pSuite); TEST(1 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); pSuite2 = CU_add_suite("suite1", NULL, NULL); TEST(CUE_DUP_SUITE == CU_get_error()); TEST(NULL != pSuite2); TEST(2 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(!strcmp("suite1", pSuite->pName)); TEST(pSuite->fActive == CU_TRUE); /* suite active on creation */ TEST(pSuite->pTest == NULL); /* no tests added yet */ TEST(pSuite->uiNumberOfTests == 0); /* no tests added yet */ TEST(pSuite->pInitializeFunc == NULL); /* no init function */ TEST(pSuite->pCleanupFunc == NULL); /* no cleanup function */ TEST(pSuite->pNext == pSuite2); /* now have another suite */ TEST(!strcmp("suite1", pSuite2->pName)); TEST(pSuite2->fActive == CU_TRUE); /* suite active on creation */ TEST(pSuite2->pTest == NULL); /* no tests added yet */ TEST(pSuite2->uiNumberOfTests == 0); /* no tests added yet */ TEST(pSuite2->pInitializeFunc == NULL); /* no init function */ TEST(pSuite2->pCleanupFunc == NULL); /* no cleanup function */ TEST(pSuite2->pNext == NULL); /* end of the list */ /* error condition - memory allocation failure */ CU_initialize_registry(); pReg = CU_get_registry(); test_cunit_deactivate_malloc(); pSuite = CU_add_suite("suite1", NULL, NULL); TEST(CUE_NOMEMORY == CU_get_error()); TEST(NULL == pSuite); TEST(0 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); test_cunit_activate_malloc(); /* normal creation & cleanup */ CU_initialize_registry(); pReg = CU_get_registry(); TEST(CU_get_suite_by_index(0, pReg) == NULL); TEST(CU_get_suite_by_index(1, pReg) == NULL); pSuite = CU_add_suite("suite1", NULL, NULL); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL != pSuite); TEST(1 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(CU_get_suite_by_name("suite1", pReg) == pSuite); TEST(CU_get_suite_by_index(0, pReg) == NULL); TEST(CU_get_suite_by_index(1, pReg) == pSuite); TEST(CU_get_suite_by_index(2, pReg) == NULL); TEST(pReg->pSuite == pSuite); TEST(!strcmp("suite1", pSuite->pName)); TEST(pSuite->fActive == CU_TRUE); /* suite active on creation */ TEST(pSuite->pTest == NULL); /* no tests added yet */ TEST(pSuite->uiNumberOfTests == 0); /* no tests added yet */ TEST(pSuite->pInitializeFunc == NULL); /* no init function */ TEST(pSuite->pCleanupFunc == NULL); /* no cleanup function */ TEST(pSuite->pNext == NULL); /* no more suites added yet */ pSuite2 = CU_add_suite("suite2", sfunc1, NULL); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL != pSuite2); TEST(2 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(CU_get_suite_by_name("suite2", pReg) == pSuite2); TEST(CU_get_suite_by_index(0, pReg) == NULL); TEST(CU_get_suite_by_index(1, pReg) == pSuite); TEST(CU_get_suite_by_index(2, pReg) == pSuite2); TEST(CU_get_suite_by_index(3, pReg) == NULL); pSuite3 = CU_add_suite("suite3", NULL, sfunc1); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL != pSuite3); TEST(3 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(CU_get_suite_by_name("suite3", pReg) == pSuite3); TEST(CU_get_suite_by_index(0, pReg) == NULL); TEST(CU_get_suite_by_index(1, pReg) == pSuite); TEST(CU_get_suite_by_index(2, pReg) == pSuite2); TEST(CU_get_suite_by_index(3, pReg) == pSuite3); TEST(CU_get_suite_by_index(4, pReg) == NULL); pSuite4 = CU_add_suite("suite4", sfunc1, sfunc1); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL != pSuite4); TEST(4 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(CU_get_suite_by_name("suite4", pReg) == pSuite4); TEST(CU_get_suite_by_index(0, pReg) == NULL); TEST(CU_get_suite_by_index(1, pReg) == pSuite); TEST(CU_get_suite_by_index(2, pReg) == pSuite2); TEST(CU_get_suite_by_index(3, pReg) == pSuite3); TEST(CU_get_suite_by_index(4, pReg) == pSuite4); TEST(CU_get_suite_by_index(5, pReg) == NULL); /* test registry suite structures */ TEST(pReg->pSuite == pSuite); TEST(!strcmp("suite1", pSuite->pName)); TEST(pSuite->fActive == CU_TRUE); /* suite active on creation */ TEST(pSuite->pTest == NULL); /* no tests added yet */ TEST(pSuite->uiNumberOfTests == 0); /* no tests added yet */ TEST(pSuite->pInitializeFunc == NULL); /* no init function */ TEST(pSuite->pCleanupFunc == NULL); /* no cleanup function */ TEST(pSuite->pNext == pSuite2); /* now have another suite */ TEST(!strcmp("suite2", pSuite2->pName)); TEST(pSuite2->fActive == CU_TRUE); /* suite active on creation */ TEST(pSuite2->pTest == NULL); /* no tests added yet */ TEST(pSuite2->uiNumberOfTests == 0); /* no tests added yet */ TEST(pSuite2->pInitializeFunc == sfunc1); /* no init function */ TEST(pSuite2->pCleanupFunc == NULL); /* no cleanup function */ TEST(pSuite2->pNext == pSuite3); /* next suite in list */ TEST(!strcmp("suite3", pSuite3->pName)); TEST(pSuite3->fActive == CU_TRUE); /* suite active on creation */ TEST(pSuite3->pTest == NULL); /* no tests added yet */ TEST(pSuite3->uiNumberOfTests == 0); /* no tests added yet */ TEST(pSuite3->pInitializeFunc == NULL); /* no init function */ TEST(pSuite3->pCleanupFunc == sfunc1); /* no cleanup function */ TEST(pSuite3->pNext == pSuite4); /* next suite in list */ TEST(!strcmp("suite4", pSuite4->pName)); TEST(pSuite4->fActive == CU_TRUE); /* suite active on creation */ TEST(pSuite4->pTest == NULL); /* no tests added yet */ TEST(pSuite4->uiNumberOfTests == 0); /* no tests added yet */ TEST(pSuite4->pInitializeFunc == sfunc1); /* no init function */ TEST(pSuite4->pCleanupFunc == sfunc1); /* no cleanup function */ TEST(pSuite4->pNext == NULL); /* end of suite list */ TEST(0 != test_cunit_get_n_memevents(pSuite)); TEST(0 != test_cunit_get_n_memevents(pSuite2)); TEST(0 != test_cunit_get_n_memevents(pSuite3)); TEST(0 != test_cunit_get_n_memevents(pSuite4)); TEST(test_cunit_get_n_allocations(pSuite) != test_cunit_get_n_deallocations(pSuite)); TEST(test_cunit_get_n_allocations(pSuite2) != test_cunit_get_n_deallocations(pSuite2)); TEST(test_cunit_get_n_allocations(pSuite3) != test_cunit_get_n_deallocations(pSuite3)); TEST(test_cunit_get_n_allocations(pSuite4) != test_cunit_get_n_deallocations(pSuite4)); /* clean up everything and confirm deallocation */ CU_cleanup_registry(); TEST(test_cunit_get_n_allocations(pSuite) == test_cunit_get_n_deallocations(pSuite)); TEST(test_cunit_get_n_allocations(pSuite2) == test_cunit_get_n_deallocations(pSuite2)); TEST(test_cunit_get_n_allocations(pSuite3) == test_cunit_get_n_deallocations(pSuite3)); TEST(test_cunit_get_n_allocations(pSuite4) == test_cunit_get_n_deallocations(pSuite4)); } /*--------------------------------------------------*/ /* test CU_set_suite_active() * CU_set_suite_name() * CU_set_suite_initfunc() * CU_set_suite_cleanupfunc() */ static void test_CU_set_suite_attributes(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; /* initialize system */ CU_initialize_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); TEST_FATAL(NULL != pSuite1); TEST_FATAL(NULL != CU_add_test(pSuite1, "test1", test1)); TEST_FATAL(NULL != CU_add_test(pSuite1, "test2", test1)); pSuite2 = CU_add_suite("suite2", sfunc1, NULL); /* add another suite */ TEST_FATAL(NULL != pSuite2); TEST_FATAL(NULL != CU_add_test(pSuite2, "test1", test1)); TEST_FATAL(NULL != CU_add_test(pSuite2, "test2", test1)); /* test CU_set_suite_active() */ TEST(CUE_NOSUITE == CU_set_suite_active(NULL, CU_FALSE)); /* error - NULL suite */ TEST(pSuite2->fActive == CU_TRUE); /* suites active on creation */ TEST(pSuite1->fActive == CU_TRUE); TEST(CUE_SUCCESS == CU_set_suite_active(pSuite1, CU_TRUE)); TEST(CUE_SUCCESS == CU_set_suite_active(pSuite2, CU_FALSE)); TEST(pSuite1->fActive == CU_TRUE); TEST(pSuite2->fActive == CU_FALSE); TEST(CUE_SUCCESS == CU_set_suite_active(pSuite1, CU_FALSE)); TEST(CUE_SUCCESS == CU_set_suite_active(pSuite2, CU_FALSE)); TEST(pSuite1->fActive == CU_FALSE); TEST(pSuite2->fActive == CU_FALSE); TEST(CUE_SUCCESS == CU_set_suite_active(pSuite1, CU_FALSE)); TEST(CUE_SUCCESS == CU_set_suite_active(pSuite2, CU_TRUE)); TEST(pSuite1->fActive == CU_FALSE); TEST(pSuite2->fActive == CU_TRUE); /* test CU_set_suite_name() */ TEST(CUE_NOSUITE == CU_set_suite_name(NULL, "null suite")); /* error - NULL suite */ TEST(CUE_NO_SUITENAME == CU_set_suite_name(pSuite1, NULL)); /* error - NULL name */ TEST(!strcmp(pSuite1->pName, "suite1")); TEST(!strcmp(pSuite2->pName, "suite2")); TEST(CUE_SUCCESS == CU_set_suite_name(pSuite1, "This is my new name.")); TEST(!strcmp(pSuite1->pName, "This is my new name.")); TEST(!strcmp(pSuite2->pName, "suite2")); TEST(CUE_SUCCESS == CU_set_suite_name(pSuite2, "Never mind.")); TEST(!strcmp(pSuite1->pName, "This is my new name.")); TEST(!strcmp(pSuite2->pName, "Never mind.")); TEST(CUE_SUCCESS == CU_set_suite_name(pSuite1, "suite1")); TEST(CUE_SUCCESS == CU_set_suite_name(pSuite2, "suite2")); TEST(!strcmp(pSuite1->pName, "suite1")); TEST(!strcmp(pSuite2->pName, "suite2")); /* test CU_set_suite_initfunc() */ TEST(CUE_NOSUITE == CU_set_suite_initfunc(NULL, &sfunc1)); /* error - NULL suite */ TEST(pSuite1->pInitializeFunc == NULL); TEST(pSuite2->pInitializeFunc == &sfunc1); TEST(CUE_SUCCESS == CU_set_suite_initfunc(pSuite1, &sfunc1)); TEST(pSuite1->pInitializeFunc == &sfunc1); TEST(pSuite2->pInitializeFunc == &sfunc1); TEST(CUE_SUCCESS == CU_set_suite_initfunc(pSuite2, NULL)); TEST(pSuite1->pInitializeFunc == &sfunc1); TEST(pSuite2->pInitializeFunc == NULL); /* test CU_set_suite_cleanupfunc() */ TEST(CUE_NOSUITE == CU_set_suite_cleanupfunc(NULL, &sfunc1)); TEST(pSuite1->pCleanupFunc == NULL); TEST(pSuite2->pCleanupFunc == NULL); TEST(CUE_SUCCESS == CU_set_suite_cleanupfunc(pSuite1, &sfunc1)); TEST(pSuite1->pCleanupFunc == &sfunc1); TEST(pSuite2->pCleanupFunc == NULL); TEST(CUE_SUCCESS == CU_set_suite_cleanupfunc(pSuite2, &sfunc1)); TEST(pSuite1->pCleanupFunc == &sfunc1); TEST(pSuite2->pCleanupFunc == &sfunc1); /* clean up */ CU_cleanup_registry(); } static void test_succeed(void) { CU_TEST(CU_TRUE); } static void test_fail(void) { CU_TEST(CU_FALSE); } static int suite_fail(void) { return 1; } /*--------------------------------------------------*/ /* test CU_get_suite() * CU_get_suite_at_pos() * CU_get_suite_pos() * CU_get_suite_pos_by_name() */ static void test_get_suite_functions(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pSuite pSuite3 = NULL; CU_pSuite pSuite4 = NULL; CU_pSuite pSuite5 = NULL; CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; CU_pTest pTest3 = NULL; CU_pTest pTest4 = NULL; CU_pTest pTest5 = NULL; CU_pTest pTest6 = NULL; CU_pTest pTest7 = NULL; CU_pTest pTest8 = NULL; CU_pTest pTest9 = NULL; CU_pTest pTest10 = NULL; /* error condition - registry not initialized */ CU_cleanup_registry(); CU_set_error(CUE_SUCCESS); TEST(NULL == CU_get_suite("suite1")); TEST(CUE_NOREGISTRY == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(NULL == CU_get_suite_at_pos(0)); TEST(CUE_NOREGISTRY == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(0 == CU_get_suite_pos(pSuite1)); TEST(CUE_NOREGISTRY == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(0 == CU_get_suite_pos_by_name("suite1")); TEST(CUE_NOREGISTRY == CU_get_error()); /* register some suites and tests */ CU_initialize_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); pTest1 = CU_add_test(pSuite1, "test1", test_succeed); pTest2 = CU_add_test(pSuite1, "test2", test_fail); pTest3 = CU_add_test(pSuite1, "test1", test_succeed); /* duplicate test name */ pTest4 = CU_add_test(pSuite1, "test4", test_fail); pTest5 = CU_add_test(pSuite1, "test1", test_succeed); /* duplicate test name */ pSuite2 = CU_add_suite("suite2", suite_fail, NULL); pTest6 = CU_add_test(pSuite2, "test6", test_succeed); pTest7 = CU_add_test(pSuite2, "test7", test_succeed); pSuite3 = CU_add_suite("suite1", NULL, NULL); /* duplicate suite name */ pTest8 = CU_add_test(pSuite3, "test8", test_fail); pTest9 = CU_add_test(pSuite3, "test9", test_succeed); pSuite4 = CU_add_suite("suite4", NULL, suite_fail); pTest10 = CU_add_test(pSuite4, "test10", test_succeed); /* error condition - invalid parameters */ CU_set_error(CUE_SUCCESS); TEST(NULL == CU_get_suite(NULL)); TEST(CUE_NO_SUITENAME == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(0 == CU_get_suite_pos(NULL)); TEST(CUE_NOSUITE == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(0 == CU_get_suite_pos_by_name(NULL)); TEST(CUE_NO_SUITENAME == CU_get_error()); /* normal operation - CU_get_suite() */ TEST(NULL == CU_get_suite("")); /* invalid names */ TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL == CU_get_suite("bad name")); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL == CU_get_suite("suite3")); TEST(CUE_SUCCESS == CU_get_error()); TEST(pSuite1 == CU_get_suite("suite1")); /* valid names */ TEST(CUE_SUCCESS == CU_get_error()); TEST(pSuite2 == CU_get_suite("suite2")); TEST(CUE_SUCCESS == CU_get_error()); TEST(pSuite4 == CU_get_suite("suite4")); TEST(CUE_SUCCESS == CU_get_error()); /* normal operation - CU_get_suite_at_pos() */ TEST(NULL == CU_get_suite_at_pos(0)); /* invalid positions */ TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL == CU_get_suite_at_pos(5)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pSuite1 == CU_get_suite_at_pos(1)); /* valid positions */ TEST(CUE_SUCCESS == CU_get_error()); TEST(pSuite2 == CU_get_suite_at_pos(2)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pSuite3 == CU_get_suite_at_pos(3)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pSuite4 == CU_get_suite_at_pos(4)); TEST(CUE_SUCCESS == CU_get_error()); /* normal operation - CU_get_suite_pos() */ pSuite5 = (CU_pSuite)malloc(sizeof(CU_Suite)); TEST_FATAL(NULL != pSuite5); TEST(0 == CU_get_suite_pos(pSuite5)); /* invalid suite */ TEST(CUE_SUCCESS == CU_get_error()); TEST(1 == CU_get_suite_pos(pSuite1)); /* valid suites */ TEST(CUE_SUCCESS == CU_get_error()); TEST(2 == CU_get_suite_pos(pSuite2)); TEST(CUE_SUCCESS == CU_get_error()); TEST(3 == CU_get_suite_pos(pSuite3)); TEST(CUE_SUCCESS == CU_get_error()); TEST(4 == CU_get_suite_pos(pSuite4)); TEST(CUE_SUCCESS == CU_get_error()); free(pSuite5); /* normal operation - CU_get_suite_pos_by_name() */ TEST(0 == CU_get_suite_pos_by_name("")); /* invalid names */ TEST(CUE_SUCCESS == CU_get_error()); TEST(0 == CU_get_suite_pos_by_name("suite3")); TEST(CUE_SUCCESS == CU_get_error()); TEST(1 == CU_get_suite_pos_by_name("suite1")); /* valid suites */ TEST(CUE_SUCCESS == CU_get_error()); TEST(2 == CU_get_suite_pos_by_name("suite2")); TEST(CUE_SUCCESS == CU_get_error()); TEST(4 == CU_get_suite_pos_by_name("suite4")); TEST(CUE_SUCCESS == CU_get_error()); /* clean up */ CU_cleanup_registry(); } /*--------------------------------------------------*/ /* test CU_add_test() * CU_get_test_by_name() * CU_get_test_by_index() */ static void test_CU_add_test(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; CU_pTest pTest3 = NULL; CU_pTest pTest4 = NULL; CU_pTestRegistry pReg = NULL; CU_cleanup_registry(); /* error condition - registry not initialized */ pTest1 = CU_add_test(pSuite1, "test1", test1); TEST(CUE_NOREGISTRY == CU_get_error()); TEST(NULL == pTest1); CU_initialize_registry(); pReg = CU_get_registry(); /* error condition - no suite */ pTest1 = CU_add_test(pSuite1, "test1", test1); TEST(CUE_NOSUITE == CU_get_error()); TEST(NULL == pTest1); /* error condition - no name */ pSuite1 = CU_add_suite("suite1", NULL, NULL); TEST(CUE_SUCCESS == CU_get_error()); pTest1 = CU_add_test(pSuite1, NULL, test1); TEST(CUE_NO_TESTNAME == CU_get_error()); TEST(NULL == pTest1); TEST(1 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(0 == pSuite1->uiNumberOfTests); /* error condition - no test function */ pTest1 = CU_add_test(pSuite1, "test1", NULL); TEST(CUE_NOTEST == CU_get_error()); TEST(NULL == pTest1); TEST(1 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(0 == pSuite1->uiNumberOfTests); /* warning condition - duplicate name */ CU_initialize_registry(); pReg = CU_get_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); TEST(CUE_SUCCESS == CU_get_error()); pTest1 = CU_add_test(pSuite1, "test1", test1); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL != pTest1); TEST(1 == pReg->uiNumberOfSuites); TEST(1 == pReg->uiNumberOfTests); TEST(1 == pSuite1->uiNumberOfTests); TEST(CU_get_test_by_index(0, pSuite1) == NULL); TEST(CU_get_test_by_index(1, pSuite1) == pTest1); TEST(CU_get_test_by_index(2, pSuite1) == NULL); pTest2 = CU_add_test(pSuite1, "test1", test1); TEST(CUE_DUP_TEST == CU_get_error()); TEST(NULL != pTest2); TEST(1 == pReg->uiNumberOfSuites); TEST(2 == pReg->uiNumberOfTests); TEST(2 == pSuite1->uiNumberOfTests); TEST(!strcmp("test1", pTest1->pName)); TEST(pTest1->fActive == CU_TRUE); TEST(pTest1->pNext == pTest2); TEST(pTest1->pJumpBuf == NULL); TEST(pTest1->pTestFunc == test1); TEST(CU_get_test_by_name("test1", pSuite1) == pTest1); TEST(CU_get_test_by_index(0, pSuite1) == NULL); TEST(CU_get_test_by_index(1, pSuite1) == pTest1); TEST(CU_get_test_by_index(2, pSuite1) == pTest2); TEST(CU_get_test_by_index(3, pSuite1) == NULL); TEST(!strcmp("test1", pTest2->pName)); TEST(pTest2->fActive == CU_TRUE); TEST(pTest2->pNext == NULL); TEST(pTest2->pJumpBuf == NULL); TEST(pTest2->pTestFunc == test1); TEST(CU_get_test_by_name("test1", pSuite1) == pTest1); /* error condition - memory allocation failure */ CU_initialize_registry(); pReg = CU_get_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); TEST(CUE_SUCCESS == CU_get_error()); test_cunit_deactivate_malloc(); pTest1 = CU_add_test(pSuite1, "test1", test1); test_cunit_activate_malloc(); TEST(CUE_NOMEMORY == CU_get_error()); TEST(NULL == pTest1); TEST(1 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(0 == pSuite1->uiNumberOfTests); /* normal creation & cleanup */ CU_initialize_registry(); pReg = CU_get_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); TEST(CUE_SUCCESS == CU_get_error()); pSuite2 = CU_add_suite("suite2", sfunc1, sfunc1); TEST(CUE_SUCCESS == CU_get_error()); TEST(CU_get_test_by_index(0, pSuite1) == NULL); TEST(CU_get_test_by_index(1, pSuite1) == NULL); pTest1 = CU_add_test(pSuite1, "test1", test1); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL != pTest1); TEST(2 == pReg->uiNumberOfSuites); TEST(1 == pReg->uiNumberOfTests); TEST(1 == pSuite1->uiNumberOfTests); TEST(0 == pSuite2->uiNumberOfTests); TEST(pSuite1->pTest == pTest1); TEST(pSuite2->pTest == NULL); TEST(CU_get_test_by_index(0, pSuite1) == NULL); TEST(CU_get_test_by_index(1, pSuite1) == pTest1); TEST(CU_get_test_by_index(2, pSuite1) == NULL); pTest2 = CU_add_test(pSuite2, "test2", test1); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL != pTest2); TEST(2 == pReg->uiNumberOfSuites); TEST(2 == pReg->uiNumberOfTests); TEST(1 == pSuite1->uiNumberOfTests); TEST(1 == pSuite2->uiNumberOfTests); TEST(pSuite1->pTest == pTest1); TEST(pSuite2->pTest == pTest2); TEST(CU_get_test_by_index(0, pSuite2) == NULL); TEST(CU_get_test_by_index(1, pSuite2) == pTest2); TEST(CU_get_test_by_index(2, pSuite2) == NULL); pTest3 = CU_add_test(pSuite1, "test3", test1); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL != pTest3); TEST(2 == pReg->uiNumberOfSuites); TEST(3 == pReg->uiNumberOfTests); TEST(2 == pSuite1->uiNumberOfTests); TEST(1 == pSuite2->uiNumberOfTests); TEST(pSuite1->pTest == pTest1); TEST(pSuite2->pTest == pTest2); TEST(CU_get_test_by_index(0, pSuite1) == NULL); TEST(CU_get_test_by_index(1, pSuite1) == pTest1); TEST(CU_get_test_by_index(2, pSuite1) == pTest3); TEST(CU_get_test_by_index(3, pSuite1) == NULL); pTest4 = CU_add_test(pSuite1, "test4", test1); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL != pTest4); TEST(2 == pReg->uiNumberOfSuites); TEST(4 == pReg->uiNumberOfTests); TEST(3 == pSuite1->uiNumberOfTests); TEST(1 == pSuite2->uiNumberOfTests); TEST(pSuite1->pTest == pTest1); TEST(pSuite2->pTest == pTest2); TEST(CU_get_test_by_index(0, pSuite1) == NULL); TEST(CU_get_test_by_index(1, pSuite1) == pTest1); TEST(CU_get_test_by_index(2, pSuite1) == pTest3); TEST(CU_get_test_by_index(3, pSuite1) == pTest4); TEST(CU_get_test_by_index(4, pSuite1) == NULL); TEST(!strcmp("test1", pTest1->pName)); TEST(pTest1->pNext == pTest3); TEST(pTest1->pJumpBuf == NULL); TEST(pTest1->pTestFunc == test1); TEST(CU_get_test_by_name("test1", pSuite1) == pTest1); TEST(CU_get_test_by_name("test1", pSuite2) == NULL); TEST(!strcmp("test2", pTest2->pName)); TEST(pTest2->pNext == NULL); TEST(pTest2->pJumpBuf == NULL); TEST(pTest2->pTestFunc == test1); TEST(CU_get_test_by_name("test2", pSuite1) == NULL); TEST(CU_get_test_by_name("test2", pSuite2) == pTest2); TEST(!strcmp("test3", pTest3->pName)); TEST(pTest3->pNext == pTest4); TEST(pTest3->pJumpBuf == NULL); TEST(pTest3->pTestFunc == test1); TEST(CU_get_test_by_name("test3", pSuite1) == pTest3); TEST(CU_get_test_by_name("test3", pSuite2) == NULL); TEST(!strcmp("test4", pTest4->pName)); TEST(pTest4->pNext == NULL); TEST(pTest4->pJumpBuf == NULL); TEST(pTest4->pTestFunc == test1); TEST(CU_get_test_by_name("test4", pSuite1) == pTest4); TEST(CU_get_test_by_name("test4", pSuite2) == NULL); TEST(0 != test_cunit_get_n_memevents(pSuite1)); TEST(0 != test_cunit_get_n_memevents(pSuite2)); TEST(0 != test_cunit_get_n_memevents(pTest1)); TEST(0 != test_cunit_get_n_memevents(pTest2)); TEST(0 != test_cunit_get_n_memevents(pTest3)); TEST(0 != test_cunit_get_n_memevents(pTest4)); TEST(test_cunit_get_n_allocations(pSuite1) != test_cunit_get_n_deallocations(pSuite1)); TEST(test_cunit_get_n_allocations(pSuite2) != test_cunit_get_n_deallocations(pSuite2)); TEST(test_cunit_get_n_allocations(pTest1) != test_cunit_get_n_deallocations(pTest1)); TEST(test_cunit_get_n_allocations(pTest2) != test_cunit_get_n_deallocations(pTest2)); TEST(test_cunit_get_n_allocations(pTest3) != test_cunit_get_n_deallocations(pTest3)); TEST(test_cunit_get_n_allocations(pTest4) != test_cunit_get_n_deallocations(pTest4)); CU_cleanup_registry(); TEST(test_cunit_get_n_allocations(pSuite1) == test_cunit_get_n_deallocations(pSuite1)); TEST(test_cunit_get_n_allocations(pSuite2) == test_cunit_get_n_deallocations(pSuite2)); TEST(test_cunit_get_n_allocations(pTest1) == test_cunit_get_n_deallocations(pTest1)); TEST(test_cunit_get_n_allocations(pTest2) == test_cunit_get_n_deallocations(pTest2)); TEST(test_cunit_get_n_allocations(pTest3) == test_cunit_get_n_deallocations(pTest3)); TEST(test_cunit_get_n_allocations(pTest4) == test_cunit_get_n_deallocations(pTest4)); } /*--------------------------------------------------*/ /* test CU_set_test_active() * CU_set_test_name() * CU_set_test_func() */ static void test_CU_set_test_attributes(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; CU_pTest pTest3 = NULL; CU_pTest pTest4 = NULL; /* initialize system */ CU_initialize_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); TEST_FATAL(NULL != pSuite1); pTest1 = CU_add_test(pSuite1, "test1", test2); TEST_FATAL(NULL != pTest1); pTest2 = CU_add_test(pSuite1, "test2", test1); TEST_FATAL(NULL != pTest2); pSuite2 = CU_add_suite("suite2", sfunc1, NULL); /* add another suite */ TEST_FATAL(NULL != pSuite2); pTest3 = CU_add_test(pSuite2, "test3", test2); TEST_FATAL(NULL != pTest3); pTest4 = CU_add_test(pSuite2, "test4", test1); TEST_FATAL(NULL != pTest4); /* test CU_set_test_active() */ TEST(CUE_NOTEST == CU_set_test_active(NULL, CU_FALSE)); /* error - NULL test */ TEST(CU_TRUE == pTest1->fActive); /* tests active on creation */ TEST(CU_TRUE == pTest2->fActive); TEST(CU_TRUE == pTest3->fActive); TEST(CU_TRUE == pTest4->fActive); TEST(CUE_SUCCESS == CU_set_test_active(pTest1, CU_TRUE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest2, CU_TRUE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest3, CU_FALSE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest4, CU_FALSE)); TEST(CU_TRUE == pTest1->fActive); TEST(CU_TRUE == pTest2->fActive); TEST(CU_FALSE == pTest3->fActive); TEST(CU_FALSE == pTest4->fActive); TEST(CUE_SUCCESS == CU_set_test_active(pTest1, CU_FALSE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest2, CU_TRUE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest3, CU_TRUE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest4, CU_FALSE)); TEST(CU_FALSE == pTest1->fActive); TEST(CU_TRUE == pTest2->fActive); TEST(CU_TRUE == pTest3->fActive); TEST(CU_FALSE == pTest4->fActive); TEST(CUE_SUCCESS == CU_set_test_active(pTest1, CU_FALSE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest2, CU_FALSE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest3, CU_FALSE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest4, CU_FALSE)); TEST(CU_FALSE == pTest1->fActive); TEST(CU_FALSE == pTest2->fActive); TEST(CU_FALSE == pTest3->fActive); TEST(CU_FALSE == pTest4->fActive); TEST(CUE_SUCCESS == CU_set_test_active(pTest1, CU_TRUE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest2, CU_TRUE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest3, CU_TRUE)); TEST(CUE_SUCCESS == CU_set_test_active(pTest4, CU_TRUE)); TEST(CU_TRUE == pTest1->fActive); TEST(CU_TRUE == pTest2->fActive); TEST(CU_TRUE == pTest3->fActive); TEST(CU_TRUE == pTest4->fActive); /* test CU_set_test_name() */ TEST(CUE_NOTEST == CU_set_test_name(NULL, "null test")); /* error - NULL test */ TEST(CUE_NO_TESTNAME == CU_set_test_name(pTest1, NULL)); /* error - NULL name */ TEST(!strcmp("test1", pTest1->pName)); TEST(!strcmp("test2", pTest2->pName)); TEST(!strcmp("test3", pTest3->pName)); TEST(!strcmp("test4", pTest4->pName)); TEST(CUE_SUCCESS == CU_set_test_name(pTest1, "Aren't I a pretty girl?")); TEST(CUE_SUCCESS == CU_set_test_name(pTest2, "Polly want a cracker.")); TEST(CUE_SUCCESS == CU_set_test_name(pTest3, "@This is utter nonsense@")); TEST(CUE_SUCCESS == CU_set_test_name(pTest4, "Yep!")); TEST(!strcmp("Aren't I a pretty girl?", pTest1->pName)); TEST(!strcmp("Polly want a cracker.", pTest2->pName)); TEST(!strcmp("@This is utter nonsense@", pTest3->pName)); TEST(!strcmp("Yep!", pTest4->pName)); TEST(CUE_SUCCESS == CU_set_test_name(pTest1, "test1")); TEST(CUE_SUCCESS == CU_set_test_name(pTest2, "test2")); TEST(CUE_SUCCESS == CU_set_test_name(pTest3, "test3")); TEST(CUE_SUCCESS == CU_set_test_name(pTest4, "test4")); TEST(!strcmp("test1", pTest1->pName)); TEST(!strcmp("test2", pTest2->pName)); TEST(!strcmp("test3", pTest3->pName)); TEST(!strcmp("test4", pTest4->pName)); /* test CU_set_test_func() */ TEST(CUE_NOTEST == CU_set_test_func(NULL, &test1)); /* error - NULL test */ TEST(CUE_NOTEST == CU_set_test_func(pTest1, NULL)); /* error - NULL test function */ TEST(&test2 == pTest1->pTestFunc); TEST(&test1 == pTest2->pTestFunc); TEST(&test2 == pTest3->pTestFunc); TEST(&test1 == pTest4->pTestFunc); TEST(CUE_SUCCESS == CU_set_test_func(pTest1, &test1)); TEST(CUE_SUCCESS == CU_set_test_func(pTest2, &test2)); TEST(CUE_SUCCESS == CU_set_test_func(pTest3, &test1)); TEST(CUE_SUCCESS == CU_set_test_func(pTest4, &test2)); TEST(&test1 == pTest1->pTestFunc); TEST(&test2 == pTest2->pTestFunc); TEST(&test1 == pTest3->pTestFunc); TEST(&test2 == pTest4->pTestFunc); TEST(CUE_SUCCESS == CU_set_test_func(pTest1, &test2)); TEST(CUE_SUCCESS == CU_set_test_func(pTest2, &test1)); TEST(CUE_SUCCESS == CU_set_test_func(pTest3, &test2)); TEST(CUE_SUCCESS == CU_set_test_func(pTest4, &test1)); /* clean up */ CU_cleanup_registry(); } /*--------------------------------------------------*/ /* test CU_get_test() * CU_get_test_at_pos() * CU_get_test_pos() * CU_get_test_pos_by_name() */ static void test_get_test_functions(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pSuite pSuite3 = NULL; CU_pSuite pSuite4 = NULL; CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; CU_pTest pTest3 = NULL; CU_pTest pTest4 = NULL; CU_pTest pTest5 = NULL; CU_pTest pTest6 = NULL; CU_pTest pTest7 = NULL; CU_pTest pTest8 = NULL; CU_pTest pTest9 = NULL; CU_pTest pTest10 = NULL; /* error condition - registry not initialized */ CU_cleanup_registry(); CU_set_error(CUE_SUCCESS); TEST(NULL == CU_get_test(pSuite1, "test1")); TEST(CUE_NOREGISTRY == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(NULL == CU_get_test_at_pos(pSuite1, 0)); TEST(CUE_NOREGISTRY == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(0 == CU_get_test_pos(pSuite1, pTest1)); TEST(CUE_NOREGISTRY == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(0 == CU_get_test_pos_by_name(pSuite1, "test1")); TEST(CUE_NOREGISTRY == CU_get_error()); /* register some suites and tests */ CU_initialize_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); pTest1 = CU_add_test(pSuite1, "test1", test_succeed); pTest2 = CU_add_test(pSuite1, "test2", test_fail); pTest3 = CU_add_test(pSuite1, "test1", test_succeed); /* duplicate test name */ pTest4 = CU_add_test(pSuite1, "test4", test_fail); pTest5 = CU_add_test(pSuite1, "test1", test_succeed); /* duplicate test name */ pSuite2 = CU_add_suite("suite2", suite_fail, NULL); pTest6 = CU_add_test(pSuite2, "test6", test_succeed); pTest7 = CU_add_test(pSuite2, "test7", test_succeed); pSuite3 = CU_add_suite("suite1", NULL, NULL); /* duplicate suite name */ pTest8 = CU_add_test(pSuite3, "test8", test_fail); pTest9 = CU_add_test(pSuite3, "test9", test_succeed); pSuite4 = CU_add_suite("suite4", NULL, suite_fail); pTest10 = CU_add_test(pSuite4, "test10", test_succeed); /* error condition - invalid parameters */ CU_set_error(CUE_SUCCESS); TEST(NULL == CU_get_test(NULL, "test1")); /* suite NULL */ TEST(CUE_NOSUITE == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(NULL == CU_get_test(pSuite1, NULL)); /* name NULL */ TEST(CUE_NO_SUITENAME == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(0 == CU_get_test_at_pos(NULL, 1)); /* suite NULL */ TEST(CUE_NOSUITE == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(0 == CU_get_test_pos(NULL, pTest1)); /* suite NULL */ TEST(CUE_NOSUITE == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(0 == CU_get_test_pos(pSuite1, NULL)); /* test NULL */ TEST(CUE_NOTEST == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(0 == CU_get_test_pos_by_name(NULL, "test1")); /* suite NULL */ TEST(CUE_NOSUITE == CU_get_error()); CU_set_error(CUE_SUCCESS); TEST(0 == CU_get_test_pos_by_name(pSuite1, NULL)); /* name NULL */ TEST(CUE_NO_TESTNAME == CU_get_error()); /* normal operation - CU_get_test() */ TEST(NULL == CU_get_test(pSuite1, "")); /* invalid names */ TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL == CU_get_test(pSuite2, "bad name")); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL == CU_get_test(pSuite1, "test3")); TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest1 == CU_get_test(pSuite1, "test1")); /* valid names */ TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest6 == CU_get_test(pSuite2, "test6")); TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest8 == CU_get_test(pSuite3, "test8")); TEST(CUE_SUCCESS == CU_get_error()); /* normal operation - CU_get_test_at_pos() */ TEST(NULL == CU_get_test_at_pos(pSuite1, 0)); /* invalid positions */ TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL == CU_get_test_at_pos(pSuite1, 6)); TEST(CUE_SUCCESS == CU_get_error()); TEST(NULL == CU_get_test_at_pos(pSuite4, 2)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest1 == CU_get_test_at_pos(pSuite1, 1)); /* valid positions */ TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest2 == CU_get_test_at_pos(pSuite1, 2)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest3 == CU_get_test_at_pos(pSuite1, 3)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest4 == CU_get_test_at_pos(pSuite1, 4)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest5 == CU_get_test_at_pos(pSuite1, 5)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest6 == CU_get_test_at_pos(pSuite2, 1)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest7 == CU_get_test_at_pos(pSuite2, 2)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest8 == CU_get_test_at_pos(pSuite3, 1)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest9 == CU_get_test_at_pos(pSuite3, 2)); TEST(CUE_SUCCESS == CU_get_error()); TEST(pTest10 == CU_get_test_at_pos(pSuite4, 1)); TEST(CUE_SUCCESS == CU_get_error()); /* normal operation - CU_get_test_pos() */ TEST(0 == CU_get_test_pos(pSuite1, pTest6)); /* invalid tests */ TEST(CUE_SUCCESS == CU_get_error()); TEST(0 == CU_get_test_pos(pSuite4, pTest6)); TEST(CUE_SUCCESS == CU_get_error()); TEST(1 == CU_get_test_pos(pSuite1, pTest1)); /* valid tests */ TEST(CUE_SUCCESS == CU_get_error()); TEST(2 == CU_get_test_pos(pSuite1, pTest2)); TEST(CUE_SUCCESS == CU_get_error()); TEST(3 == CU_get_test_pos(pSuite1, pTest3)); TEST(CUE_SUCCESS == CU_get_error()); TEST(4 == CU_get_test_pos(pSuite1, pTest4)); TEST(CUE_SUCCESS == CU_get_error()); TEST(5 == CU_get_test_pos(pSuite1, pTest5)); TEST(CUE_SUCCESS == CU_get_error()); TEST(1 == CU_get_test_pos(pSuite2, pTest6)); TEST(CUE_SUCCESS == CU_get_error()); TEST(2 == CU_get_test_pos(pSuite2, pTest7)); TEST(CUE_SUCCESS == CU_get_error()); TEST(1 == CU_get_test_pos(pSuite3, pTest8)); TEST(CUE_SUCCESS == CU_get_error()); TEST(2 == CU_get_test_pos(pSuite3, pTest9)); TEST(CUE_SUCCESS == CU_get_error()); TEST(1 == CU_get_test_pos(pSuite4, pTest10)); TEST(CUE_SUCCESS == CU_get_error()); /* normal operation - CU_get_test_pos_by_name() */ TEST(0 == CU_get_test_pos_by_name(pSuite1, "")); /* invalid names */ TEST(CUE_SUCCESS == CU_get_error()); TEST(0 == CU_get_test_pos_by_name(pSuite1, "test9")); TEST(CUE_SUCCESS == CU_get_error()); TEST(0 == CU_get_test_pos_by_name(pSuite2, "test1")); TEST(CUE_SUCCESS == CU_get_error()); TEST(1 == CU_get_test_pos_by_name(pSuite1, "test1")); /* valid names */ TEST(CUE_SUCCESS == CU_get_error()); TEST(2 == CU_get_test_pos_by_name(pSuite1, "test2")); TEST(CUE_SUCCESS == CU_get_error()); TEST(4 == CU_get_test_pos_by_name(pSuite1, "test4")); TEST(CUE_SUCCESS == CU_get_error()); TEST(1 == CU_get_test_pos_by_name(pSuite2, "test6")); TEST(CUE_SUCCESS == CU_get_error()); TEST(2 == CU_get_test_pos_by_name(pSuite2, "test7")); TEST(CUE_SUCCESS == CU_get_error()); TEST(1 == CU_get_test_pos_by_name(pSuite3, "test8")); TEST(CUE_SUCCESS == CU_get_error()); TEST(2 == CU_get_test_pos_by_name(pSuite3, "test9")); TEST(CUE_SUCCESS == CU_get_error()); TEST(1 == CU_get_test_pos_by_name(pSuite4, "test10")); TEST(CUE_SUCCESS == CU_get_error()); /* clean up */ CU_cleanup_registry(); } /*--------------------------------------------------*/ static void test_CU_get_registry(void) { CU_cleanup_registry(); TEST(NULL == CU_get_registry()); CU_initialize_registry(); TEST(NULL != CU_get_registry()); TEST(f_pTestRegistry == CU_get_registry()); CU_cleanup_registry(); } /*--------------------------------------------------*/ static void test_CU_set_registry(void) { CU_pTestRegistry pReg1 = NULL; CU_pTestRegistry pReg2 = NULL; CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_initialize_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); pSuite2 = CU_add_suite("suite2", NULL, NULL); CU_add_test(pSuite1, "test1", test1); CU_add_test(pSuite1, "test2", test1); CU_add_test(pSuite2, "test1", test1); CU_add_test(pSuite2, "test2", test1); pReg1 = CU_get_registry(); TEST(pReg1->pSuite == pSuite1); TEST(pReg1->uiNumberOfSuites == 2); TEST(pReg1->uiNumberOfTests == 4); TEST(0 < test_cunit_get_n_memevents(pReg1)); TEST(test_cunit_get_n_allocations(pReg1) != test_cunit_get_n_deallocations(pReg1)); CU_set_registry(NULL); TEST(test_cunit_get_n_allocations(pReg1) != test_cunit_get_n_deallocations(pReg1)); CU_cleanup_registry(); TEST(test_cunit_get_n_allocations(pReg1) != test_cunit_get_n_deallocations(pReg1)); pReg2 = CU_create_new_registry(); CU_set_registry(pReg2); TEST(pReg1->pSuite == pSuite1); TEST(pReg1->uiNumberOfSuites == 2); TEST(pReg1->uiNumberOfTests == 4); TEST(test_cunit_get_n_allocations(pReg1) != test_cunit_get_n_deallocations(pReg1)); TEST(CU_get_registry()->pSuite == NULL); TEST(CU_get_registry()->uiNumberOfSuites == 0); TEST(CU_get_registry()->uiNumberOfTests == 0); TEST(0 < test_cunit_get_n_memevents(pReg2)); TEST(test_cunit_get_n_allocations(pReg2) != test_cunit_get_n_deallocations(pReg2)); CU_cleanup_registry(); TEST(pReg1->pSuite == pSuite1); TEST(pReg1->uiNumberOfSuites == 2); TEST(pReg1->uiNumberOfTests == 4); TEST(test_cunit_get_n_allocations(pReg1) != test_cunit_get_n_deallocations(pReg1)); TEST(test_cunit_get_n_allocations(pReg2) == test_cunit_get_n_deallocations(pReg2)); CU_set_registry(pReg1); CU_cleanup_registry(); TEST(test_cunit_get_n_allocations(pReg1) == test_cunit_get_n_deallocations(pReg1)); } /*--------------------------------------------------*/ /* test CU_create_new_registry() * CU_destroy_existing_registry() */ static void test_CU_create_new_registry(void) { CU_pTestRegistry pReg = NULL; CU_pTestRegistry pRegOld = NULL; CU_cleanup_registry(); pReg = CU_create_new_registry(); TEST(NULL != pReg); TEST(0 < test_cunit_get_n_memevents(pReg)); TEST(test_cunit_get_n_allocations(pReg) != test_cunit_get_n_deallocations(pReg)); TEST(pReg->pSuite == NULL); TEST(pReg->uiNumberOfSuites == 0); TEST(pReg->uiNumberOfTests == 0); CU_cleanup_registry(); TEST(test_cunit_get_n_allocations(pReg) != test_cunit_get_n_deallocations(pReg)); pRegOld = pReg; CU_destroy_existing_registry(&pReg); TEST(test_cunit_get_n_allocations(pRegOld) == test_cunit_get_n_deallocations(pRegOld)); TEST(NULL == pReg); } /*--------------------------------------------------*/ static void test_cleanup_test_registry(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; CU_pTest pTest3 = NULL; CU_pTest pTest4 = NULL; CU_pTestRegistry pReg = CU_create_new_registry(); TEST_FATAL(NULL != pReg); TEST(0 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); /* create tests to register */ pTest1 = create_test("test1", test1); pTest2 = create_test("test2", NULL); pTest3 = create_test("test3", test1); pTest4 = create_test("", NULL); /* create suites to hold tests */ pSuite1 = create_suite("suite1", NULL, NULL, NULL, NULL); pSuite2 = create_suite("suite2", sfunc1, sfunc1, NULL, NULL); insert_suite(pReg, pSuite1); insert_suite(pReg, pSuite2); insert_test(pSuite1, pTest1); insert_test(pSuite1, pTest2); insert_test(pSuite1, pTest3); insert_test(pSuite2, pTest4); TEST(2 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); /* not managed in primitive functions */ TEST(3 == pSuite1->uiNumberOfTests); TEST(1 == pSuite2->uiNumberOfTests); TEST(pSuite1->pTest == pTest1); TEST(pSuite2->pTest == pTest4); TEST(pTest1->pNext == pTest2); TEST(pTest1->pPrev == NULL); TEST(pTest2->pNext == pTest3); TEST(pTest2->pPrev == pTest1); TEST(pTest3->pNext == NULL); TEST(pTest3->pPrev == pTest2); TEST(pTest4->pNext == NULL); TEST(pTest4->pPrev == NULL); TEST(0 != test_cunit_get_n_memevents(pReg)); TEST(0 != test_cunit_get_n_memevents(pSuite1)); TEST(0 != test_cunit_get_n_memevents(pSuite2)); TEST(0 != test_cunit_get_n_memevents(pTest1)); TEST(0 != test_cunit_get_n_memevents(pTest2)); TEST(0 != test_cunit_get_n_memevents(pTest3)); TEST(0 != test_cunit_get_n_memevents(pTest4)); TEST(test_cunit_get_n_allocations(pReg) != test_cunit_get_n_deallocations(pReg)); TEST(test_cunit_get_n_allocations(pSuite1) != test_cunit_get_n_deallocations(pSuite1)); TEST(test_cunit_get_n_allocations(pSuite2) != test_cunit_get_n_deallocations(pSuite2)); TEST(test_cunit_get_n_allocations(pTest1) != test_cunit_get_n_deallocations(pTest1)); TEST(test_cunit_get_n_allocations(pTest2) != test_cunit_get_n_deallocations(pTest2)); TEST(test_cunit_get_n_allocations(pTest3) != test_cunit_get_n_deallocations(pTest3)); TEST(test_cunit_get_n_allocations(pTest4) != test_cunit_get_n_deallocations(pTest4)); cleanup_test_registry(pReg); CU_FREE(pReg); TEST(test_cunit_get_n_allocations(pReg) == test_cunit_get_n_deallocations(pReg)); TEST(test_cunit_get_n_allocations(pSuite1) == test_cunit_get_n_deallocations(pSuite1)); TEST(test_cunit_get_n_allocations(pSuite2) == test_cunit_get_n_deallocations(pSuite2)); TEST(test_cunit_get_n_allocations(pTest1) == test_cunit_get_n_deallocations(pTest1)); TEST(test_cunit_get_n_allocations(pTest2) == test_cunit_get_n_deallocations(pTest2)); TEST(test_cunit_get_n_allocations(pTest3) == test_cunit_get_n_deallocations(pTest3)); TEST(test_cunit_get_n_allocations(pTest4) == test_cunit_get_n_deallocations(pTest4)); } /*--------------------------------------------------*/ /* test create_suite() * cleanup_suite() */ static void test_create_suite(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pSuite pSuite3 = NULL; CU_pSuite pSuite4 = NULL; /* error condition - memory allocation failure */ test_cunit_deactivate_malloc(); pSuite1 = create_suite("suite1", NULL, NULL, NULL, NULL); TEST(NULL == pSuite1); test_cunit_activate_malloc(); /* normal creation & cleanup */ pSuite1 = create_suite("suite1", NULL, NULL, NULL, NULL); TEST(NULL != pSuite1); TEST(!strcmp("suite1", pSuite1->pName)); TEST(pSuite1->pTest == NULL); /* no tests added yet */ TEST(pSuite1->uiNumberOfTests == 0); /* no tests added yet */ TEST(pSuite1->pInitializeFunc == NULL); /* no init function */ TEST(pSuite1->pCleanupFunc == NULL); /* no cleanup function */ TEST(pSuite1->pNext == NULL); /* no more suites added yet */ pSuite2 = create_suite("suite2", sfunc1, NULL, NULL, NULL); TEST(NULL != pSuite2); TEST(!strcmp("suite2", pSuite2->pName)); TEST(pSuite2->pTest == NULL); /* no tests added yet */ TEST(pSuite2->uiNumberOfTests == 0); /* no tests added yet */ TEST(pSuite2->pInitializeFunc == sfunc1); /* init function */ TEST(pSuite2->pCleanupFunc == NULL); /* no cleanup function */ TEST(pSuite2->pNext == NULL); /* no more suites added yet */ pSuite3 = create_suite("suite3", NULL, sfunc1, NULL, NULL); TEST(NULL != pSuite3); TEST(!strcmp("suite3", pSuite3->pName)); TEST(pSuite3->pTest == NULL); /* no tests added yet */ TEST(pSuite3->uiNumberOfTests == 0); /* no tests added yet */ TEST(pSuite3->pInitializeFunc == NULL); /* no init function */ TEST(pSuite3->pCleanupFunc == sfunc1); /* cleanup function */ TEST(pSuite3->pNext == NULL); /* no more suites added yet */ pSuite4 = create_suite("suite4", sfunc1, sfunc1, NULL, NULL); TEST(NULL != pSuite4); TEST(!strcmp("suite4", pSuite4->pName)); TEST(pSuite4->pTest == NULL); /* no tests added yet */ TEST(pSuite4->uiNumberOfTests == 0); /* no tests added yet */ TEST(pSuite4->pInitializeFunc == sfunc1); /* no init function */ TEST(pSuite4->pCleanupFunc == sfunc1); /* cleanup function */ TEST(pSuite4->pNext == NULL); /* no more suites added yet */ TEST(0 != test_cunit_get_n_memevents(pSuite1)); TEST(test_cunit_get_n_allocations(pSuite1) != test_cunit_get_n_deallocations(pSuite1)); cleanup_suite(pSuite1); CU_FREE(pSuite1); TEST(test_cunit_get_n_allocations(pSuite1) == test_cunit_get_n_deallocations(pSuite1)); TEST(0 != test_cunit_get_n_memevents(pSuite2)); TEST(test_cunit_get_n_allocations(pSuite2) != test_cunit_get_n_deallocations(pSuite2)); cleanup_suite(pSuite2); CU_FREE(pSuite2); TEST(test_cunit_get_n_allocations(pSuite2) == test_cunit_get_n_deallocations(pSuite2)); TEST(0 != test_cunit_get_n_memevents(pSuite3)); TEST(test_cunit_get_n_allocations(pSuite3) != test_cunit_get_n_deallocations(pSuite3)); cleanup_suite(pSuite3); CU_FREE(pSuite3); TEST(test_cunit_get_n_allocations(pSuite3) == test_cunit_get_n_deallocations(pSuite3)); TEST(0 != test_cunit_get_n_memevents(pSuite4)); TEST(test_cunit_get_n_allocations(pSuite4) != test_cunit_get_n_deallocations(pSuite4)); cleanup_suite(pSuite4); CU_FREE(pSuite4); TEST(test_cunit_get_n_allocations(pSuite4) == test_cunit_get_n_deallocations(pSuite4)); } /*--------------------------------------------------*/ /* test insert_suite() * suite_exists() */ static void test_insert_suite(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pSuite pSuite3 = NULL; CU_pSuite pSuite4 = NULL; CU_pTestRegistry pReg = CU_create_new_registry(); TEST_FATAL(NULL != pReg); TEST(0 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(NULL == pReg->pSuite); TEST(CU_FALSE == suite_exists(pReg, "suite1")); TEST(CU_FALSE == suite_exists(pReg, "suite2")); TEST(CU_FALSE == suite_exists(pReg, "suite3")); TEST(CU_FALSE == suite_exists(pReg, "suite4")); TEST(CU_FALSE == suite_exists(pReg, "suite5")); TEST(CU_FALSE == suite_exists(pReg, "")); /* normal creation & cleanup */ pSuite1 = create_suite("suite1", NULL, NULL, NULL, NULL); insert_suite(pReg, pSuite1); TEST(1 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(pReg->pSuite == pSuite1); TEST(pSuite1->pNext == NULL); TEST(CU_TRUE == suite_exists(pReg, "suite1")); TEST(CU_FALSE == suite_exists(pReg, "suite2")); TEST(CU_FALSE == suite_exists(pReg, "suite3")); TEST(CU_FALSE == suite_exists(pReg, "suite4")); TEST(CU_FALSE == suite_exists(pReg, "suite5")); TEST(CU_FALSE == suite_exists(pReg, "")); pSuite2 = create_suite("suite2", sfunc1, NULL, NULL, NULL); insert_suite(pReg, pSuite2); TEST(2 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(pReg->pSuite == pSuite1); TEST(pSuite1->pNext == pSuite2); TEST(pSuite2->pNext == NULL); TEST(CU_TRUE == suite_exists(pReg, "suite1")); TEST(CU_TRUE == suite_exists(pReg, "suite2")); TEST(CU_FALSE == suite_exists(pReg, "suite3")); TEST(CU_FALSE == suite_exists(pReg, "suite4")); TEST(CU_FALSE == suite_exists(pReg, "suite5")); TEST(CU_FALSE == suite_exists(pReg, "")); pSuite3 = create_suite("suite3", NULL, sfunc1, NULL, NULL); insert_suite(pReg, pSuite3); TEST(3 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(pReg->pSuite == pSuite1); TEST(pSuite1->pNext == pSuite2); TEST(pSuite2->pNext == pSuite3); TEST(pSuite3->pNext == NULL); TEST(CU_TRUE == suite_exists(pReg, "suite1")); TEST(CU_TRUE == suite_exists(pReg, "suite2")); TEST(CU_TRUE == suite_exists(pReg, "suite3")); TEST(CU_FALSE == suite_exists(pReg, "suite4")); TEST(CU_FALSE == suite_exists(pReg, "suite5")); TEST(CU_FALSE == suite_exists(pReg, "")); pSuite4 = create_suite("suite4", sfunc1, sfunc1, NULL, NULL); insert_suite(pReg, pSuite4); TEST(4 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); TEST(pReg->pSuite == pSuite1); TEST(pSuite1->pNext == pSuite2); TEST(pSuite2->pNext == pSuite3); TEST(pSuite3->pNext == pSuite4); TEST(pSuite4->pNext == NULL); TEST(CU_TRUE == suite_exists(pReg, "suite1")); TEST(CU_TRUE == suite_exists(pReg, "suite2")); TEST(CU_TRUE == suite_exists(pReg, "suite3")); TEST(CU_TRUE == suite_exists(pReg, "suite4")); TEST(CU_FALSE == suite_exists(pReg, "suite5")); TEST(CU_FALSE == suite_exists(pReg, "")); TEST(0 != test_cunit_get_n_memevents(pReg)); TEST(0 != test_cunit_get_n_memevents(pSuite1)); TEST(0 != test_cunit_get_n_memevents(pSuite2)); TEST(0 != test_cunit_get_n_memevents(pSuite3)); TEST(0 != test_cunit_get_n_memevents(pSuite4)); TEST(test_cunit_get_n_allocations(pReg) != test_cunit_get_n_deallocations(pReg)); TEST(test_cunit_get_n_allocations(pSuite1) != test_cunit_get_n_deallocations(pSuite1)); TEST(test_cunit_get_n_allocations(pSuite2) != test_cunit_get_n_deallocations(pSuite2)); TEST(test_cunit_get_n_allocations(pSuite3) != test_cunit_get_n_deallocations(pSuite3)); TEST(test_cunit_get_n_allocations(pSuite4) != test_cunit_get_n_deallocations(pSuite4)); cleanup_test_registry(pReg); TEST(CU_FALSE == suite_exists(pReg, "suite1")); TEST(CU_FALSE == suite_exists(pReg, "suite2")); TEST(CU_FALSE == suite_exists(pReg, "suite3")); TEST(CU_FALSE == suite_exists(pReg, "suite4")); TEST(CU_FALSE == suite_exists(pReg, "suite5")); TEST(CU_FALSE == suite_exists(pReg, "")); CU_FREE(pReg); TEST(test_cunit_get_n_allocations(pReg) == test_cunit_get_n_deallocations(pReg)); TEST(test_cunit_get_n_allocations(pSuite1) == test_cunit_get_n_deallocations(pSuite1)); TEST(test_cunit_get_n_allocations(pSuite2) == test_cunit_get_n_deallocations(pSuite2)); TEST(test_cunit_get_n_allocations(pSuite3) == test_cunit_get_n_deallocations(pSuite3)); TEST(test_cunit_get_n_allocations(pSuite4) == test_cunit_get_n_deallocations(pSuite4)); } /*--------------------------------------------------*/ static void test_create_test(void) { CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; /* error condition - memory allocation failure */ test_cunit_deactivate_malloc(); pTest1 = create_test("test1", test1); test_cunit_activate_malloc(); TEST(NULL == pTest1); /* normal creation & cleanup */ pTest1 = create_test("test1", test1); TEST(NULL != pTest1); TEST(pTest1->pTestFunc == test1); TEST(!strcmp("test1", pTest1->pName)); TEST(pTest1->pNext == NULL); TEST(pTest1->pPrev == NULL); TEST(pTest1->pJumpBuf == NULL); pTest2= create_test("test2", NULL); TEST(NULL != pTest2); TEST(pTest2->pTestFunc == NULL); TEST(!strcmp("test2", pTest2->pName)); TEST(pTest2->pNext == NULL); TEST(pTest2->pPrev == NULL); TEST(pTest2->pJumpBuf == NULL); TEST(0 != test_cunit_get_n_memevents(pTest1)); TEST(0 != test_cunit_get_n_memevents(pTest2)); TEST(test_cunit_get_n_allocations(pTest1) != test_cunit_get_n_deallocations(pTest1)); TEST(test_cunit_get_n_allocations(pTest2) != test_cunit_get_n_deallocations(pTest2)); cleanup_test(pTest1); CU_FREE(pTest1); cleanup_test(pTest2); CU_FREE(pTest2); TEST(test_cunit_get_n_allocations(pTest1) == test_cunit_get_n_deallocations(pTest1)); TEST(test_cunit_get_n_allocations(pTest2) == test_cunit_get_n_deallocations(pTest2)); } /*--------------------------------------------------*/ /* test insert_test() * test_exists() */ static void test_insert_test(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; CU_pTest pTest3 = NULL; CU_pTest pTest4 = NULL; /* create tests to register */ pTest1 = create_test("test1", test1); pTest2 = create_test("test2", NULL); pTest3 = create_test("test3", test1); pTest4 = create_test("", NULL); /* create suites to hold tests */ pSuite1 = create_suite("suite1", NULL, NULL, NULL, NULL); pSuite2 = create_suite("suite2", sfunc1, sfunc1, NULL, NULL); TEST(CU_FALSE == test_exists(pSuite1, "test1")); TEST(CU_FALSE == test_exists(pSuite1, "test2")); TEST(CU_FALSE == test_exists(pSuite1, "test3")); TEST(CU_FALSE == test_exists(pSuite1, "test4")); TEST(CU_FALSE == test_exists(pSuite1, "")); TEST(CU_FALSE == test_exists(pSuite2, "test1")); TEST(CU_FALSE == test_exists(pSuite2, "test2")); TEST(CU_FALSE == test_exists(pSuite2, "test3")); TEST(CU_FALSE == test_exists(pSuite2, "test4")); TEST(CU_FALSE == test_exists(pSuite2, "")); insert_test(pSuite1, pTest1); insert_test(pSuite1, pTest2); insert_test(pSuite1, pTest3); insert_test(pSuite2, pTest4); TEST(CU_TRUE == test_exists(pSuite1, "test1")); TEST(CU_TRUE == test_exists(pSuite1, "test2")); TEST(CU_TRUE == test_exists(pSuite1, "test3")); TEST(CU_FALSE == test_exists(pSuite1, "test4")); TEST(CU_FALSE == test_exists(pSuite1, "")); TEST(CU_FALSE == test_exists(pSuite2, "test1")); TEST(CU_FALSE == test_exists(pSuite2, "test2")); TEST(CU_FALSE == test_exists(pSuite2, "test3")); TEST(CU_FALSE == test_exists(pSuite2, "test4")); TEST(CU_TRUE == test_exists(pSuite2, "")); TEST(3 == pSuite1->uiNumberOfTests); TEST(1 == pSuite2->uiNumberOfTests); TEST(pSuite1->pTest == pTest1); TEST(pSuite2->pTest == pTest4); TEST(pTest1->pNext == pTest2); TEST(pTest1->pPrev == NULL); TEST(pTest2->pNext == pTest3); TEST(pTest2->pPrev == pTest1); TEST(pTest3->pNext == NULL); TEST(pTest3->pPrev == pTest2); TEST(pTest4->pNext == NULL); TEST(pTest4->pPrev == NULL); TEST(0 != test_cunit_get_n_memevents(pSuite1)); TEST(0 != test_cunit_get_n_memevents(pSuite2)); TEST(0 != test_cunit_get_n_memevents(pTest1)); TEST(0 != test_cunit_get_n_memevents(pTest2)); TEST(0 != test_cunit_get_n_memevents(pTest3)); TEST(0 != test_cunit_get_n_memevents(pTest4)); TEST(test_cunit_get_n_allocations(pSuite1) != test_cunit_get_n_deallocations(pSuite1)); TEST(test_cunit_get_n_allocations(pSuite2) != test_cunit_get_n_deallocations(pSuite2)); TEST(test_cunit_get_n_allocations(pTest1) != test_cunit_get_n_deallocations(pTest1)); TEST(test_cunit_get_n_allocations(pTest2) != test_cunit_get_n_deallocations(pTest2)); TEST(test_cunit_get_n_allocations(pTest3) != test_cunit_get_n_deallocations(pTest3)); TEST(test_cunit_get_n_allocations(pTest4) != test_cunit_get_n_deallocations(pTest4)); cleanup_suite(pSuite1); TEST(CU_FALSE == test_exists(pSuite1, "test1")); TEST(CU_FALSE == test_exists(pSuite1, "test2")); TEST(CU_FALSE == test_exists(pSuite1, "test3")); TEST(CU_FALSE == test_exists(pSuite1, "test4")); TEST(CU_FALSE == test_exists(pSuite1, "")); TEST(CU_FALSE == test_exists(pSuite2, "test1")); TEST(CU_FALSE == test_exists(pSuite2, "test2")); TEST(CU_FALSE == test_exists(pSuite2, "test3")); TEST(CU_FALSE == test_exists(pSuite2, "test4")); TEST(CU_TRUE == test_exists(pSuite2, "")); cleanup_suite(pSuite2); TEST(CU_FALSE == test_exists(pSuite1, "test1")); TEST(CU_FALSE == test_exists(pSuite1, "test2")); TEST(CU_FALSE == test_exists(pSuite1, "test3")); TEST(CU_FALSE == test_exists(pSuite1, "test4")); TEST(CU_FALSE == test_exists(pSuite1, "")); TEST(CU_FALSE == test_exists(pSuite2, "test1")); TEST(CU_FALSE == test_exists(pSuite2, "test2")); TEST(CU_FALSE == test_exists(pSuite2, "test3")); TEST(CU_FALSE == test_exists(pSuite2, "test4")); TEST(CU_FALSE == test_exists(pSuite2, "")); CU_FREE(pSuite1); CU_FREE(pSuite2); TEST(test_cunit_get_n_allocations(pSuite1) == test_cunit_get_n_deallocations(pSuite1)); TEST(test_cunit_get_n_allocations(pSuite2) == test_cunit_get_n_deallocations(pSuite2)); TEST(test_cunit_get_n_allocations(pTest1) == test_cunit_get_n_deallocations(pTest1)); TEST(test_cunit_get_n_allocations(pTest2) == test_cunit_get_n_deallocations(pTest2)); TEST(test_cunit_get_n_allocations(pTest3) == test_cunit_get_n_deallocations(pTest3)); TEST(test_cunit_get_n_allocations(pTest4) == test_cunit_get_n_deallocations(pTest4)); } /*--------------------------------------------------*/ static void test_cleanup_test(void) { char* pName; CU_pTest pTest1 = create_test("test1", NULL); TEST_FATAL(NULL != pTest1); pName = pTest1->pName; TEST(0 != test_cunit_get_n_memevents(pTest1)); TEST(0 != test_cunit_get_n_memevents(pName)); TEST(test_cunit_get_n_allocations(pTest1) != test_cunit_get_n_deallocations(pTest1)); TEST(test_cunit_get_n_allocations(pName) != test_cunit_get_n_deallocations(pName)); cleanup_test(pTest1); CU_FREE(pTest1); TEST(test_cunit_get_n_allocations(pTest1) == test_cunit_get_n_deallocations(pTest1)); TEST(test_cunit_get_n_allocations(pName) == test_cunit_get_n_deallocations(pName)); } /*--------------------------------------------------*/ static void group_A_case_1(void) { CU_ASSERT_TRUE(1); } static void group_A_case_2(void) { CU_ASSERT_TRUE(2); } static void group_B_case_1(void) { CU_ASSERT_FALSE(1); } static void group_B_case_2(void) { CU_ASSERT_FALSE(2); } static CU_TestInfo group_A_test_cases[] = { { "1", group_A_case_1 }, { "2", group_A_case_2 }, CU_TEST_INFO_NULL, }; static CU_TestInfo group_B_test_cases[] = { { "1", group_B_case_1 }, { "2", group_B_case_2 }, CU_TEST_INFO_NULL, }; static CU_TestInfo group_C_test_cases[] = { { "1", group_B_case_1 }, { "1", group_B_case_2 }, /* duplicate test name */ CU_TEST_INFO_NULL, }; static CU_SuiteInfo suites0[] = { CU_SUITE_INFO_NULL, }; static CU_SuiteInfo suites1[] = { { "A1", NULL, NULL, NULL, NULL, group_A_test_cases }, { "B1", NULL, NULL, NULL, NULL, group_B_test_cases }, CU_SUITE_INFO_NULL, }; static CU_SuiteInfo suites2[] = { { "A2", NULL, NULL, NULL, NULL, group_A_test_cases }, { "B2", NULL, NULL, NULL, NULL, group_B_test_cases }, CU_SUITE_INFO_NULL, }; static CU_SuiteInfo suites3[] = { { "A3", NULL, NULL, NULL, NULL, group_A_test_cases }, { "A3", NULL, NULL, NULL, NULL, group_C_test_cases }, /* duplicate suite name */ CU_SUITE_INFO_NULL, }; static void test_register_suite(void) { CU_pTestRegistry pReg = NULL; CU_ErrorCode status; if (CU_initialize_registry()) { fprintf(stderr, "\nError initializing registry in test_register_suite()."); return; } pReg = CU_get_registry(); /* test initial condition */ TEST_FATAL(NULL != pReg); TEST(0 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); /* test CU_register_suites() with NULL */ status = CU_register_suites(NULL); TEST(CUE_SUCCESS == status); TEST(0 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); /* test CU_register_suites() with empty array */ status = CU_register_suites(suites0); TEST(CUE_SUCCESS == status); TEST(0 == pReg->uiNumberOfSuites); TEST(0 == pReg->uiNumberOfTests); /* test CU_register_suites() with ok array */ status = CU_register_suites(suites1); TEST(CUE_SUCCESS == status); TEST(2 == pReg->uiNumberOfSuites); TEST(4 == pReg->uiNumberOfTests); /* test CU_register_suites() with duplicate suite name */ status = CU_register_suites(suites1); TEST(CUE_SUCCESS == status); /* shaky - depends on order of operation in CU_register_suites() */ TEST(4 == pReg->uiNumberOfSuites); TEST(8 == pReg->uiNumberOfTests); /* test CU_register_suites() with duplicate test name */ status = CU_register_suites(suites3); TEST(CUE_DUP_TEST == status); /* shaky - depends on order of operation in CU_register_suites() */ TEST(6 == pReg->uiNumberOfSuites); TEST(12 == pReg->uiNumberOfTests); CU_cleanup_registry(); if (CU_initialize_registry()) { fprintf(stderr, "\nError initializing registry in test_register_suite()."); return; } pReg = CU_get_registry(); /* test CU_register_nsuites() with ok arrays */ status = CU_register_nsuites(2, suites1, suites2); TEST(CUE_SUCCESS == status); TEST(4 == pReg->uiNumberOfSuites); TEST(8 == pReg->uiNumberOfTests); } /*--------------------------------------------------*/ void test_cunit_TestDB(void) { test_cunit_start_tests("TestDB.c"); test_CU_initialize_registry(); test_CU_cleanup_registry(); test_CU_add_suite(); test_CU_set_suite_attributes(); test_get_suite_functions(); test_CU_add_test(); test_CU_set_test_attributes(); test_get_test_functions(); test_CU_get_registry(); test_CU_set_registry(); test_CU_create_new_registry(); test_cleanup_test_registry(); test_create_suite(); test_insert_suite(); test_create_test(); test_cleanup_test(); test_insert_test(); test_register_suite(); test_cunit_end_tests(); } #endif /* CUNIT_BUILD_TESTS */ cunit-2.1-3-dfsg/CUnit/Sources/Framework/TestRun.c000066400000000000000000003074121260701235000217340ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Implementation of Test Run Interface. * * Aug 2001 Initial implementaion (AK) * * 19/Aug/2001 Added initial registry/Suite/test framework implementation. (AK) * * 24/Aug/2001 Changed Data structure from SLL to DLL for all linked lists. (AK) * * 25/Nov/2001 Added notification for Suite Initialization failure condition. (AK) * * 5-Aug-2004 New interface, doxygen comments, moved add_failure on suite * initialization so called even if a callback is not registered, * moved CU_assertImplementation into TestRun.c, consolidated * all run summary info out of CU_TestRegistry into TestRun.c, * revised counting and reporting of run stats to cleanly * differentiate suite, test, and assertion failures. (JDS) * * 1-Sep-2004 Modified CU_assertImplementation() and run_single_test() for * setjmp/longjmp mechanism of aborting test runs, add asserts in * CU_assertImplementation() to trap use outside a registered * test function during an active test run. (JDS) * * 22-Sep-2004 Initial implementation of internal unit tests, added nFailureRecords * to CU_Run_Summary, added CU_get_n_failure_records(), removed * requirement for registry to be initialized in order to run * CU_run_suite() and CU_run_test(). (JDS) * * 30-Apr-2005 Added callback for suite cleanup function failure, * updated unit tests. (JDS) * * 23-Apr-2006 Added testing for suite/test deactivation, changing functions. * Moved doxygen comments for public functions into header. * Added type marker to CU_FailureRecord. * Added support for tracking inactive suites/tests. (JDS) * * 02-May-2006 Added internationalization hooks. (JDS) * * 02-Jun-2006 Added support for elapsed time. Added handlers for suite * start and complete events. Reworked test run routines to * better support these features, suite/test activation. (JDS) * * 16-Avr-2007 Added setup and teardown functions. (CJN) * */ /** @file * Test run management functions (implementation). */ /** @addtogroup Framework @{ */ #include #include #include #include #include #include #include "CUnit.h" #include "MyMem.h" #include "TestDB.h" #include "TestRun.h" #include "Util.h" #include "CUnit_intl.h" /*================================================================= * Global/Static Definitions *=================================================================*/ static CU_BOOL f_bTestIsRunning = CU_FALSE; /**< Flag for whether a test run is in progress */ static CU_pSuite f_pCurSuite = NULL; /**< Pointer to the suite currently being run. */ static CU_pTest f_pCurTest = NULL; /**< Pointer to the test currently being run. */ /** CU_RunSummary to hold results of each test run. */ static CU_RunSummary f_run_summary = {"", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; /** CU_pFailureRecord to hold head of failure record list of each test run. */ static CU_pFailureRecord f_failure_list = NULL; /** CU_pFailureRecord to hold head of failure record list of each test run. */ static CU_pFailureRecord f_last_failure = NULL; /** Flag for whether inactive suites/tests are treated as failures. */ static CU_BOOL f_failure_on_inactive = CU_TRUE; /** Variable for storage of start time for test run. */ static clock_t f_start_time; /** Pointer to the function to be called before running a suite. */ static CU_SuiteStartMessageHandler f_pSuiteStartMessageHandler = NULL; /** Pointer to the function to be called before running a test. */ static CU_TestStartMessageHandler f_pTestStartMessageHandler = NULL; /** Pointer to the function to be called after running a test. */ static CU_TestCompleteMessageHandler f_pTestCompleteMessageHandler = NULL; /** Pointer to the function to be called after running a suite. */ static CU_SuiteCompleteMessageHandler f_pSuiteCompleteMessageHandler = NULL; /** Pointer to the function to be called when all tests have been run. */ static CU_AllTestsCompleteMessageHandler f_pAllTestsCompleteMessageHandler = NULL; /** Pointer to the function to be called if a suite initialization function returns an error. */ static CU_SuiteInitFailureMessageHandler f_pSuiteInitFailureMessageHandler = NULL; /** Pointer to the function to be called if a suite cleanup function returns an error. */ static CU_SuiteCleanupFailureMessageHandler f_pSuiteCleanupFailureMessageHandler = NULL; /*================================================================= * Private function forward declarations *=================================================================*/ static void clear_previous_results(CU_pRunSummary pRunSummary, CU_pFailureRecord* ppFailure); static void cleanup_failure_list(CU_pFailureRecord* ppFailure); static CU_ErrorCode run_single_suite(CU_pSuite pSuite, CU_pRunSummary pRunSummary); static CU_ErrorCode run_single_test(CU_pTest pTest, CU_pRunSummary pRunSummary); static void add_failure(CU_pFailureRecord* ppFailure, CU_pRunSummary pRunSummary, CU_FailureType type, unsigned int uiLineNumber, const char *szCondition, const char *szFileName, CU_pSuite pSuite, CU_pTest pTest); /*================================================================= * Public Interface functions *=================================================================*/ CU_BOOL CU_assertImplementation(CU_BOOL bValue, unsigned int uiLine, const char *strCondition, const char *strFile, const char *strFunction, CU_BOOL bFatal) { /* not used in current implementation - stop compiler warning */ CU_UNREFERENCED_PARAMETER(strFunction); /* these should always be non-NULL (i.e. a test run is in progress) */ assert(NULL != f_pCurSuite); assert(NULL != f_pCurTest); ++f_run_summary.nAsserts; if (CU_FALSE == bValue) { ++f_run_summary.nAssertsFailed; add_failure(&f_failure_list, &f_run_summary, CUF_AssertFailed, uiLine, strCondition, strFile, f_pCurSuite, f_pCurTest); if ((CU_TRUE == bFatal) && (NULL != f_pCurTest->pJumpBuf)) { longjmp(*(f_pCurTest->pJumpBuf), 1); } } return bValue; } /*------------------------------------------------------------------------*/ void CU_set_suite_start_handler(CU_SuiteStartMessageHandler pSuiteStartHandler) { f_pSuiteStartMessageHandler = pSuiteStartHandler; } /*------------------------------------------------------------------------*/ void CU_set_test_start_handler(CU_TestStartMessageHandler pTestStartHandler) { f_pTestStartMessageHandler = pTestStartHandler; } /*------------------------------------------------------------------------*/ void CU_set_test_complete_handler(CU_TestCompleteMessageHandler pTestCompleteHandler) { f_pTestCompleteMessageHandler = pTestCompleteHandler; } /*------------------------------------------------------------------------*/ void CU_set_suite_complete_handler(CU_SuiteCompleteMessageHandler pSuiteCompleteHandler) { f_pSuiteCompleteMessageHandler = pSuiteCompleteHandler; } /*------------------------------------------------------------------------*/ void CU_set_all_test_complete_handler(CU_AllTestsCompleteMessageHandler pAllTestsCompleteHandler) { f_pAllTestsCompleteMessageHandler = pAllTestsCompleteHandler; } /*------------------------------------------------------------------------*/ void CU_set_suite_init_failure_handler(CU_SuiteInitFailureMessageHandler pSuiteInitFailureHandler) { f_pSuiteInitFailureMessageHandler = pSuiteInitFailureHandler; } /*------------------------------------------------------------------------*/ void CU_set_suite_cleanup_failure_handler(CU_SuiteCleanupFailureMessageHandler pSuiteCleanupFailureHandler) { f_pSuiteCleanupFailureMessageHandler = pSuiteCleanupFailureHandler; } /*------------------------------------------------------------------------*/ CU_SuiteStartMessageHandler CU_get_suite_start_handler(void) { return f_pSuiteStartMessageHandler; } /*------------------------------------------------------------------------*/ CU_TestStartMessageHandler CU_get_test_start_handler(void) { return f_pTestStartMessageHandler; } /*------------------------------------------------------------------------*/ CU_TestCompleteMessageHandler CU_get_test_complete_handler(void) { return f_pTestCompleteMessageHandler; } /*------------------------------------------------------------------------*/ CU_SuiteCompleteMessageHandler CU_get_suite_complete_handler(void) { return f_pSuiteCompleteMessageHandler; } /*------------------------------------------------------------------------*/ CU_AllTestsCompleteMessageHandler CU_get_all_test_complete_handler(void) { return f_pAllTestsCompleteMessageHandler; } /*------------------------------------------------------------------------*/ CU_SuiteInitFailureMessageHandler CU_get_suite_init_failure_handler(void) { return f_pSuiteInitFailureMessageHandler; } /*------------------------------------------------------------------------*/ CU_SuiteCleanupFailureMessageHandler CU_get_suite_cleanup_failure_handler(void) { return f_pSuiteCleanupFailureMessageHandler; } /*------------------------------------------------------------------------*/ unsigned int CU_get_number_of_suites_run(void) { return f_run_summary.nSuitesRun; } /*------------------------------------------------------------------------*/ unsigned int CU_get_number_of_suites_failed(void) { return f_run_summary.nSuitesFailed; } /*------------------------------------------------------------------------*/ unsigned int CU_get_number_of_suites_inactive(void) { return f_run_summary.nSuitesInactive; } /*------------------------------------------------------------------------*/ unsigned int CU_get_number_of_tests_run(void) { return f_run_summary.nTestsRun; } /*------------------------------------------------------------------------*/ unsigned int CU_get_number_of_tests_failed(void) { return f_run_summary.nTestsFailed; } /*------------------------------------------------------------------------*/ unsigned int CU_get_number_of_tests_inactive(void) { return f_run_summary.nTestsInactive; } /*------------------------------------------------------------------------*/ unsigned int CU_get_number_of_asserts(void) { return f_run_summary.nAsserts; } /*------------------------------------------------------------------------*/ unsigned int CU_get_number_of_successes(void) { return (f_run_summary.nAsserts - f_run_summary.nAssertsFailed); } /*------------------------------------------------------------------------*/ unsigned int CU_get_number_of_failures(void) { return f_run_summary.nAssertsFailed; } /*------------------------------------------------------------------------*/ unsigned int CU_get_number_of_failure_records(void) { return f_run_summary.nFailureRecords; } /*------------------------------------------------------------------------*/ double CU_get_elapsed_time(void) { if (CU_TRUE == f_bTestIsRunning) { return ((double)clock() - (double)f_start_time)/(double)CLOCKS_PER_SEC; } else { return f_run_summary.ElapsedTime; } } /*------------------------------------------------------------------------*/ CU_pFailureRecord CU_get_failure_list(void) { return f_failure_list; } /*------------------------------------------------------------------------*/ CU_pRunSummary CU_get_run_summary(void) { return &f_run_summary; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_run_all_tests(void) { CU_pTestRegistry pRegistry = CU_get_registry(); CU_pSuite pSuite = NULL; CU_ErrorCode result = CUE_SUCCESS; CU_ErrorCode result2; /* Clear results from the previous run */ clear_previous_results(&f_run_summary, &f_failure_list); if (NULL == pRegistry) { result = CUE_NOREGISTRY; } else { /* test run is starting - set flag */ f_bTestIsRunning = CU_TRUE; f_start_time = clock(); pSuite = pRegistry->pSuite; while ((NULL != pSuite) && ((CUE_SUCCESS == result) || (CU_get_error_action() == CUEA_IGNORE))) { result2 = run_single_suite(pSuite, &f_run_summary); result = (CUE_SUCCESS == result) ? result2 : result; /* result = 1st error encountered */ pSuite = pSuite->pNext; } /* test run is complete - clear flag */ f_bTestIsRunning = CU_FALSE; f_run_summary.ElapsedTime = ((double)clock() - (double)f_start_time)/(double)CLOCKS_PER_SEC; if (NULL != f_pAllTestsCompleteMessageHandler) { (*f_pAllTestsCompleteMessageHandler)(f_failure_list); } } CU_set_error(result); return result; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_run_suite(CU_pSuite pSuite) { CU_ErrorCode result = CUE_SUCCESS; /* Clear results from the previous run */ clear_previous_results(&f_run_summary, &f_failure_list); if (NULL == pSuite) { result = CUE_NOSUITE; } else { /* test run is starting - set flag */ f_bTestIsRunning = CU_TRUE; f_start_time = clock(); result = run_single_suite(pSuite, &f_run_summary); /* test run is complete - clear flag */ f_bTestIsRunning = CU_FALSE; f_run_summary.ElapsedTime = ((double)clock() - (double)f_start_time)/(double)CLOCKS_PER_SEC; /* run handler for overall completion, if any */ if (NULL != f_pAllTestsCompleteMessageHandler) { (*f_pAllTestsCompleteMessageHandler)(f_failure_list); } } CU_set_error(result); return result; } /*------------------------------------------------------------------------*/ CU_ErrorCode CU_run_test(CU_pSuite pSuite, CU_pTest pTest) { CU_ErrorCode result = CUE_SUCCESS; CU_ErrorCode result2; /* Clear results from the previous run */ clear_previous_results(&f_run_summary, &f_failure_list); if (NULL == pSuite) { result = CUE_NOSUITE; } else if (NULL == pTest) { result = CUE_NOTEST; } else if (CU_FALSE == pSuite->fActive) { f_run_summary.nSuitesInactive++; if (CU_FALSE != f_failure_on_inactive) { add_failure(&f_failure_list, &f_run_summary, CUF_SuiteInactive, 0, _("Suite inactive"), _("CUnit System"), pSuite, NULL); } result = CUE_SUITE_INACTIVE; } else if ((NULL == pTest->pName) || (NULL == CU_get_test_by_name(pTest->pName, pSuite))) { result = CUE_TEST_NOT_IN_SUITE; } else { /* test run is starting - set flag */ f_bTestIsRunning = CU_TRUE; f_start_time = clock(); f_pCurTest = NULL; f_pCurSuite = pSuite; pSuite->uiNumberOfTestsFailed = 0; pSuite->uiNumberOfTestsSuccess = 0; /* run handler for suite start, if any */ if (NULL != f_pSuiteStartMessageHandler) { (*f_pSuiteStartMessageHandler)(pSuite); } /* run the suite initialization function, if any */ if ((NULL != pSuite->pInitializeFunc) && (0 != (*pSuite->pInitializeFunc)())) { /* init function had an error - call handler, if any */ if (NULL != f_pSuiteInitFailureMessageHandler) { (*f_pSuiteInitFailureMessageHandler)(pSuite); } f_run_summary.nSuitesFailed++; add_failure(&f_failure_list, &f_run_summary, CUF_SuiteInitFailed, 0, _("Suite Initialization failed - Suite Skipped"), _("CUnit System"), pSuite, NULL); result = CUE_SINIT_FAILED; } /* reach here if no suite initialization, or if it succeeded */ else { result2 = run_single_test(pTest, &f_run_summary); result = (CUE_SUCCESS == result) ? result2 : result; /* run the suite cleanup function, if any */ if ((NULL != pSuite->pCleanupFunc) && (0 != (*pSuite->pCleanupFunc)())) { /* cleanup function had an error - call handler, if any */ if (NULL != f_pSuiteCleanupFailureMessageHandler) { (*f_pSuiteCleanupFailureMessageHandler)(pSuite); } f_run_summary.nSuitesFailed++; add_failure(&f_failure_list, &f_run_summary, CUF_SuiteCleanupFailed, 0, _("Suite cleanup failed."), _("CUnit System"), pSuite, NULL); result = (CUE_SUCCESS == result) ? CUE_SCLEAN_FAILED : result; } } /* run handler for suite completion, if any */ if (NULL != f_pSuiteCompleteMessageHandler) { (*f_pSuiteCompleteMessageHandler)(pSuite, NULL); } /* test run is complete - clear flag */ f_bTestIsRunning = CU_FALSE; f_run_summary.ElapsedTime = ((double)clock() - (double)f_start_time)/(double)CLOCKS_PER_SEC; /* run handler for overall completion, if any */ if (NULL != f_pAllTestsCompleteMessageHandler) { (*f_pAllTestsCompleteMessageHandler)(f_failure_list); } f_pCurSuite = NULL; } CU_set_error(result); return result; } /*------------------------------------------------------------------------*/ void CU_clear_previous_results(void) { clear_previous_results(&f_run_summary, &f_failure_list); } /*------------------------------------------------------------------------*/ CU_pSuite CU_get_current_suite(void) { return f_pCurSuite; } /*------------------------------------------------------------------------*/ CU_pTest CU_get_current_test(void) { return f_pCurTest; } /*------------------------------------------------------------------------*/ CU_BOOL CU_is_test_running(void) { return f_bTestIsRunning; } /*------------------------------------------------------------------------*/ CU_EXPORT void CU_set_fail_on_inactive(CU_BOOL new_inactive) { f_failure_on_inactive = new_inactive; } /*------------------------------------------------------------------------*/ CU_EXPORT CU_BOOL CU_get_fail_on_inactive(void) { return f_failure_on_inactive; } /*------------------------------------------------------------------------*/ CU_EXPORT void CU_print_run_results(FILE *file) { char *summary_string; assert(NULL != file); summary_string = CU_get_run_results_string(); if (NULL != summary_string) { fprintf(file, "%s", summary_string); CU_FREE(summary_string); } else { fprintf(file, _("An error occurred printing the run results.")); } } /*------------------------------------------------------------------------*/ CU_EXPORT char * CU_get_run_results_string(void) { CU_pRunSummary pRunSummary = &f_run_summary; CU_pTestRegistry pRegistry = CU_get_registry(); size_t width[9]; size_t len; char *result; assert(NULL != pRunSummary); assert(NULL != pRegistry); width[0] = strlen(_("Run Summary:")); width[1] = CU_MAX(6, CU_MAX(strlen(_("Type")), CU_MAX(strlen(_("suites")), CU_MAX(strlen(_("tests")), strlen(_("asserts")))))) + 1; width[2] = CU_MAX(6, CU_MAX(strlen(_("Total")), CU_MAX(CU_number_width(pRegistry->uiNumberOfSuites), CU_MAX(CU_number_width(pRegistry->uiNumberOfTests), CU_number_width(pRunSummary->nAsserts))))) + 1; width[3] = CU_MAX(6, CU_MAX(strlen(_("Ran")), CU_MAX(CU_number_width(pRunSummary->nSuitesRun), CU_MAX(CU_number_width(pRunSummary->nTestsRun), CU_number_width(pRunSummary->nAsserts))))) + 1; width[4] = CU_MAX(6, CU_MAX(strlen(_("Passed")), CU_MAX(strlen(_("n/a")), CU_MAX(CU_number_width(pRunSummary->nTestsRun - pRunSummary->nTestsFailed), CU_number_width(pRunSummary->nAsserts - pRunSummary->nAssertsFailed))))) + 1; width[5] = CU_MAX(6, CU_MAX(strlen(_("Failed")), CU_MAX(CU_number_width(pRunSummary->nSuitesFailed), CU_MAX(CU_number_width(pRunSummary->nTestsFailed), CU_number_width(pRunSummary->nAssertsFailed))))) + 1; width[6] = CU_MAX(6, CU_MAX(strlen(_("Inactive")), CU_MAX(CU_number_width(pRunSummary->nSuitesInactive), CU_MAX(CU_number_width(pRunSummary->nTestsInactive), strlen(_("n/a")))))) + 1; width[7] = strlen(_("Elapsed time = ")); width[8] = strlen(_(" seconds")); len = 13 + 4*(width[0] + width[1] + width[2] + width[3] + width[4] + width[5] + width[6]) + width[7] + width[8] + 1; result = (char *)CU_MALLOC(len); if (NULL != result) { snprintf(result, len, "%*s%*s%*s%*s%*s%*s%*s\n" /* if you change this, be sure */ "%*s%*s%*u%*u%*s%*u%*u\n" /* to change the calculation of */ "%*s%*s%*u%*u%*u%*u%*u\n" /* len above! */ "%*s%*s%*u%*u%*u%*u%*s\n\n" "%*s%8.3f%*s", width[0], _("Run Summary:"), width[1], _("Type"), width[2], _("Total"), width[3], _("Ran"), width[4], _("Passed"), width[5], _("Failed"), width[6], _("Inactive"), width[0], " ", width[1], _("suites"), width[2], pRegistry->uiNumberOfSuites, width[3], pRunSummary->nSuitesRun, width[4], _("n/a"), width[5], pRunSummary->nSuitesFailed, width[6], pRunSummary->nSuitesInactive, width[0], " ", width[1], _("tests"), width[2], pRegistry->uiNumberOfTests, width[3], pRunSummary->nTestsRun, width[4], pRunSummary->nTestsRun - pRunSummary->nTestsFailed, width[5], pRunSummary->nTestsFailed, width[6], pRunSummary->nTestsInactive, width[0], " ", width[1], _("asserts"), width[2], pRunSummary->nAsserts, width[3], pRunSummary->nAsserts, width[4], pRunSummary->nAsserts - pRunSummary->nAssertsFailed, width[5], pRunSummary->nAssertsFailed, width[6], _("n/a"), width[7], _("Elapsed time = "), CU_get_elapsed_time(), /* makes sure time is updated */ width[8], _(" seconds") ); result[len-1] = '\0'; } return result; } /*================================================================= * Static Function Definitions *=================================================================*/ /** * Records a runtime failure. * This function is called whenever a runtime failure occurs. * This includes user assertion failures, suite initialization and * cleanup failures, and inactive suites/tests when set as failures. * This function records the details of the failure in a new * failure record in the linked list of runtime failures. * * @param ppFailure Pointer to head of linked list of failure * records to append with new failure record. * If it points to a NULL pointer, it will be set * to point to the new failure record. * @param pRunSummary Pointer to CU_RunSummary keeping track of failure records * (ignored if NULL). * @param type Type of failure. * @param uiLineNumber Line number of the failure, if applicable. * @param szCondition Description of failure condition * @param szFileName Name of file, if applicable * @param pSuite The suite being run at time of failure * @param pTest The test being run at time of failure */ static void add_failure(CU_pFailureRecord* ppFailure, CU_pRunSummary pRunSummary, CU_FailureType type, unsigned int uiLineNumber, const char *szCondition, const char *szFileName, CU_pSuite pSuite, CU_pTest pTest) { CU_pFailureRecord pFailureNew = NULL; CU_pFailureRecord pTemp = NULL; assert(NULL != ppFailure); pFailureNew = (CU_pFailureRecord)CU_MALLOC(sizeof(CU_FailureRecord)); if (NULL == pFailureNew) { return; } pFailureNew->strFileName = NULL; pFailureNew->strCondition = NULL; if (NULL != szFileName) { pFailureNew->strFileName = (char*)CU_MALLOC(strlen(szFileName) + 1); if(NULL == pFailureNew->strFileName) { CU_FREE(pFailureNew); return; } strcpy(pFailureNew->strFileName, szFileName); } if (NULL != szCondition) { pFailureNew->strCondition = (char*)CU_MALLOC(strlen(szCondition) + 1); if (NULL == pFailureNew->strCondition) { if(NULL != pFailureNew->strFileName) { CU_FREE(pFailureNew->strFileName); } CU_FREE(pFailureNew); return; } strcpy(pFailureNew->strCondition, szCondition); } pFailureNew->type = type; pFailureNew->uiLineNumber = uiLineNumber; pFailureNew->pTest = pTest; pFailureNew->pSuite = pSuite; pFailureNew->pNext = NULL; pFailureNew->pPrev = NULL; pTemp = *ppFailure; if (NULL != pTemp) { while (NULL != pTemp->pNext) { pTemp = pTemp->pNext; } pTemp->pNext = pFailureNew; pFailureNew->pPrev = pTemp; } else { *ppFailure = pFailureNew; } if (NULL != pRunSummary) { ++(pRunSummary->nFailureRecords); } f_last_failure = pFailureNew; } /* * Local function for result set initialization/cleanup. */ /*------------------------------------------------------------------------*/ /** * Initializes the run summary information in the specified structure. * Resets the run counts to zero, and calls cleanup_failure_list() if * failures were recorded by the last test run. Calling this function * multiple times, while inefficient, will not cause an error condition. * * @param pRunSummary CU_RunSummary to initialize (non-NULL). * @param ppFailure The failure record to clean (non-NULL). * @see CU_clear_previous_results() */ static void clear_previous_results(CU_pRunSummary pRunSummary, CU_pFailureRecord* ppFailure) { assert(NULL != pRunSummary); assert(NULL != ppFailure); pRunSummary->nSuitesRun = 0; pRunSummary->nSuitesFailed = 0; pRunSummary->nSuitesInactive = 0; pRunSummary->nTestsRun = 0; pRunSummary->nTestsFailed = 0; pRunSummary->nTestsInactive = 0; pRunSummary->nAsserts = 0; pRunSummary->nAssertsFailed = 0; pRunSummary->nFailureRecords = 0; pRunSummary->ElapsedTime = 0.0; if (NULL != *ppFailure) { cleanup_failure_list(ppFailure); } f_last_failure = NULL; } /*------------------------------------------------------------------------*/ /** * Frees all memory allocated for the linked list of test failure * records. pFailure is reset to NULL after its list is cleaned up. * * @param ppFailure Pointer to head of linked list of * CU_pFailureRecords to clean. * @see CU_clear_previous_results() */ static void cleanup_failure_list(CU_pFailureRecord* ppFailure) { CU_pFailureRecord pCurFailure = NULL; CU_pFailureRecord pNextFailure = NULL; pCurFailure = *ppFailure; while (NULL != pCurFailure) { if (NULL != pCurFailure->strCondition) { CU_FREE(pCurFailure->strCondition); } if (NULL != pCurFailure->strFileName) { CU_FREE(pCurFailure->strFileName); } pNextFailure = pCurFailure->pNext; CU_FREE(pCurFailure); pCurFailure = pNextFailure; } *ppFailure = NULL; } /*------------------------------------------------------------------------*/ /** * Runs all tests in a specified suite. * Internal function to run all tests in a suite. The suite need * not be registered in the test registry to be run. Only * suites having their fActive flags set CU_TRUE will actually be * run. If the CUnit framework is in an error condition after * running a test, no additional tests are run. * * @param pSuite The suite containing the test (non-NULL). * @param pRunSummary The CU_RunSummary to receive the results (non-NULL). * @return A CU_ErrorCode indicating the status of the run. * @see CU_run_suite() for public interface function. * @see CU_run_all_tests() for running all suites. */ static CU_ErrorCode run_single_suite(CU_pSuite pSuite, CU_pRunSummary pRunSummary) { CU_pTest pTest = NULL; unsigned int nStartFailures; /* keep track of the last failure BEFORE running the test */ CU_pFailureRecord pLastFailure = f_last_failure; CU_ErrorCode result = CUE_SUCCESS; CU_ErrorCode result2; assert(NULL != pSuite); assert(NULL != pRunSummary); nStartFailures = pRunSummary->nFailureRecords; f_pCurTest = NULL; f_pCurSuite = pSuite; /* run handler for suite start, if any */ if (NULL != f_pSuiteStartMessageHandler) { (*f_pSuiteStartMessageHandler)(pSuite); } /* run suite if it's active */ if (CU_FALSE != pSuite->fActive) { /* run the suite initialization function, if any */ if ((NULL != pSuite->pInitializeFunc) && (0 != (*pSuite->pInitializeFunc)())) { /* init function had an error - call handler, if any */ if (NULL != f_pSuiteInitFailureMessageHandler) { (*f_pSuiteInitFailureMessageHandler)(pSuite); } pRunSummary->nSuitesFailed++; add_failure(&f_failure_list, &f_run_summary, CUF_SuiteInitFailed, 0, _("Suite Initialization failed - Suite Skipped"), _("CUnit System"), pSuite, NULL); result = CUE_SINIT_FAILED; } /* reach here if no suite initialization, or if it succeeded */ else { pTest = pSuite->pTest; while ((NULL != pTest) && ((CUE_SUCCESS == result) || (CU_get_error_action() == CUEA_IGNORE))) { if (CU_FALSE != pTest->fActive) { result2 = run_single_test(pTest, pRunSummary); result = (CUE_SUCCESS == result) ? result2 : result; } else { f_run_summary.nTestsInactive++; if (CU_FALSE != f_failure_on_inactive) { add_failure(&f_failure_list, &f_run_summary, CUF_TestInactive, 0, _("Test inactive"), _("CUnit System"), pSuite, pTest); result = CUE_TEST_INACTIVE; } } pTest = pTest->pNext; if (CUE_SUCCESS == result) { pSuite->uiNumberOfTestsFailed++; } else { pSuite->uiNumberOfTestsSuccess++; } } pRunSummary->nSuitesRun++; /* call the suite cleanup function, if any */ if ((NULL != pSuite->pCleanupFunc) && (0 != (*pSuite->pCleanupFunc)())) { if (NULL != f_pSuiteCleanupFailureMessageHandler) { (*f_pSuiteCleanupFailureMessageHandler)(pSuite); } pRunSummary->nSuitesFailed++; add_failure(&f_failure_list, &f_run_summary, CUF_SuiteCleanupFailed, 0, _("Suite cleanup failed."), _("CUnit System"), pSuite, NULL); result = (CUE_SUCCESS == result) ? CUE_SCLEAN_FAILED : result; } } } /* otherwise record inactive suite and failure if appropriate */ else { f_run_summary.nSuitesInactive++; if (CU_FALSE != f_failure_on_inactive) { add_failure(&f_failure_list, &f_run_summary, CUF_SuiteInactive, 0, _("Suite inactive"), _("CUnit System"), pSuite, NULL); result = CUE_SUITE_INACTIVE; } } /* if additional failures have occurred... */ if (pRunSummary->nFailureRecords > nStartFailures) { if (NULL != pLastFailure) { pLastFailure = pLastFailure->pNext; /* was a previous failure, so go to next one */ } else { pLastFailure = f_failure_list; /* no previous failure - go to 1st one */ } } else { pLastFailure = NULL; /* no additional failure - set to NULL */ } /* run handler for suite completion, if any */ if (NULL != f_pSuiteCompleteMessageHandler) { (*f_pSuiteCompleteMessageHandler)(pSuite, pLastFailure); } f_pCurSuite = NULL; return result; } /*------------------------------------------------------------------------*/ /** * Runs a specific test. * Internal function to run a test case. This includes calling * any handler to be run before executing the test, running the * test's function (if any), and calling any handler to be run * after executing a test. Suite initialization and cleanup functions * are not called by this function. A current suite must be set and * active (checked by assertion). * * @param pTest The test to be run (non-NULL). * @param pRunSummary The CU_RunSummary to receive the results (non-NULL). * @return A CU_ErrorCode indicating the status of the run. * @see CU_run_test() for public interface function. * @see CU_run_all_tests() for running all suites. */ static CU_ErrorCode run_single_test(CU_pTest pTest, CU_pRunSummary pRunSummary) { volatile unsigned int nStartFailures; /* keep track of the last failure BEFORE running the test */ volatile CU_pFailureRecord pLastFailure = f_last_failure; jmp_buf buf; CU_ErrorCode result = CUE_SUCCESS; assert(NULL != f_pCurSuite); assert(CU_FALSE != f_pCurSuite->fActive); assert(NULL != pTest); assert(NULL != pRunSummary); nStartFailures = pRunSummary->nFailureRecords; f_pCurTest = pTest; if (NULL != f_pTestStartMessageHandler) { (*f_pTestStartMessageHandler)(f_pCurTest, f_pCurSuite); } /* run test if it is active */ if (CU_FALSE != pTest->fActive) { if (NULL != f_pCurSuite->pSetUpFunc) { (*f_pCurSuite->pSetUpFunc)(); } /* set jmp_buf and run test */ pTest->pJumpBuf = &buf; if (0 == setjmp(buf)) { if (NULL != pTest->pTestFunc) { (*pTest->pTestFunc)(); } } if (NULL != f_pCurSuite->pTearDownFunc) { (*f_pCurSuite->pTearDownFunc)(); } pRunSummary->nTestsRun++; } else { f_run_summary.nTestsInactive++; if (CU_FALSE != f_failure_on_inactive) { add_failure(&f_failure_list, &f_run_summary, CUF_TestInactive, 0, _("Test inactive"), _("CUnit System"), f_pCurSuite, f_pCurTest); } result = CUE_TEST_INACTIVE; } /* if additional failures have occurred... */ if (pRunSummary->nFailureRecords > nStartFailures) { pRunSummary->nTestsFailed++; if (NULL != pLastFailure) { pLastFailure = pLastFailure->pNext; /* was a previous failure, so go to next one */ } else { pLastFailure = f_failure_list; /* no previous failure - go to 1st one */ } } else { pLastFailure = NULL; /* no additional failure - set to NULL */ } if (NULL != f_pTestCompleteMessageHandler) { (*f_pTestCompleteMessageHandler)(f_pCurTest, f_pCurSuite, pLastFailure); } pTest->pJumpBuf = NULL; f_pCurTest = NULL; return result; } /** @} */ #ifdef CUNIT_BUILD_TESTS #include "test_cunit.h" /** Types of framework events tracked by test system. */ typedef enum TET { SUITE_START = 1, TEST_START, TEST_COMPLETE, SUITE_COMPLETE, ALL_TESTS_COMPLETE, SUITE_INIT_FAILED, SUITE_CLEANUP_FAILED } TestEventType; /** Test event structure for recording details of a framework event. */ typedef struct TE { TestEventType type; CU_pSuite pSuite; CU_pTest pTest; CU_pFailureRecord pFailure; struct TE * pNext; } TestEvent, * pTestEvent; static int f_nTestEvents = 0; static pTestEvent f_pFirstEvent = NULL; /** Creates & stores a test event record having the specified details. */ static void add_test_event(TestEventType type, CU_pSuite psuite, CU_pTest ptest, CU_pFailureRecord pfailure) { pTestEvent pNewEvent = (pTestEvent)malloc(sizeof(TestEvent)); pTestEvent pNextEvent = f_pFirstEvent; if (NULL == pNewEvent) { fprintf(stderr, "Memory allocation failed in add_test_event()."); exit(1); } pNewEvent->type = type; pNewEvent->pSuite = psuite; pNewEvent->pTest = ptest; pNewEvent->pFailure = pfailure; pNewEvent->pNext = NULL; if (pNextEvent) { while (pNextEvent->pNext) { pNextEvent = pNextEvent->pNext; } pNextEvent->pNext = pNewEvent; } else { f_pFirstEvent = pNewEvent; } ++f_nTestEvents; } /** Deallocates all test event data. */ static void clear_test_events(void) { pTestEvent pCurrentEvent = f_pFirstEvent; pTestEvent pNextEvent = NULL; while (pCurrentEvent) { pNextEvent = pCurrentEvent->pNext; free(pCurrentEvent); pCurrentEvent = pNextEvent; } f_pFirstEvent = NULL; f_nTestEvents = 0; } static void suite_start_handler(const CU_pSuite pSuite) { TEST(CU_is_test_running()); TEST(pSuite == CU_get_current_suite()); TEST(NULL == CU_get_current_test()); add_test_event(SUITE_START, pSuite, NULL, NULL); } static void test_start_handler(const CU_pTest pTest, const CU_pSuite pSuite) { TEST(CU_is_test_running()); TEST(pSuite == CU_get_current_suite()); TEST(pTest == CU_get_current_test()); add_test_event(TEST_START, pSuite, pTest, NULL); } static void test_complete_handler(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure) { TEST(CU_is_test_running()); TEST(pSuite == CU_get_current_suite()); TEST(pTest == CU_get_current_test()); add_test_event(TEST_COMPLETE, pSuite, pTest, pFailure); } static void suite_complete_handler(const CU_pSuite pSuite, const CU_pFailureRecord pFailure) { TEST(CU_is_test_running()); TEST(pSuite == CU_get_current_suite()); TEST(NULL == CU_get_current_test()); add_test_event(SUITE_COMPLETE, pSuite, NULL, pFailure); } static void test_all_complete_handler(const CU_pFailureRecord pFailure) { TEST(!CU_is_test_running()); add_test_event(ALL_TESTS_COMPLETE, NULL, NULL, pFailure); } static void suite_init_failure_handler(const CU_pSuite pSuite) { TEST(CU_is_test_running()); TEST(pSuite == CU_get_current_suite()); add_test_event(SUITE_INIT_FAILED, pSuite, NULL, NULL); } static void suite_cleanup_failure_handler(const CU_pSuite pSuite) { TEST(CU_is_test_running()); TEST(pSuite == CU_get_current_suite()); add_test_event(SUITE_CLEANUP_FAILED, pSuite, NULL, NULL); } /** * Centralize test result testing - we're going to do it a lot! * This is messy since we want to report the calling location upon failure. * * Via calling test functions tests: * CU_get_number_of_suites_run() * CU_get_number_of_suites_failed() * CU_get_number_of_tests_run() * CU_get_number_of_tests_failed() * CU_get_number_of_asserts() * CU_get_number_of_successes() * CU_get_number_of_failures() * CU_get_number_of_failure_records() * CU_get_run_summary() */ static void do_test_results(unsigned int nSuitesRun, unsigned int nSuitesFailed, unsigned int nSuitesInactive, unsigned int nTestsRun, unsigned int nTestsFailed, unsigned int nTestsInactive, unsigned int nAsserts, unsigned int nSuccesses, unsigned int nFailures, unsigned int nFailureRecords, const char *file, unsigned int line) { char msg[500]; CU_pRunSummary pRunSummary = NULL; if (nSuitesRun == CU_get_number_of_suites_run()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_suites_run() (called from %s:%u)", nSuitesRun, file, line); msg[499] = '\0'; FAIL(msg); } if (nSuitesInactive == CU_get_number_of_suites_inactive()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_suites_inactive() (called from %s:%u)", nSuitesInactive, file, line); msg[499] = '\0'; FAIL(msg); } if (nSuitesFailed == CU_get_number_of_suites_failed()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_suites_failed() (called from %s:%u)", nSuitesFailed, file, line); msg[499] = '\0'; FAIL(msg); } if (nTestsRun == CU_get_number_of_tests_run()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_tests_run() (called from %s:%u)", nTestsRun, file, line); msg[499] = '\0'; FAIL(msg); } if (nTestsFailed == CU_get_number_of_tests_failed()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_tests_failed() (called from %s:%u)", nTestsFailed, file, line); msg[499] = '\0'; FAIL(msg); } if (nTestsInactive == CU_get_number_of_tests_inactive()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_tests_inactive() (called from %s:%u)", nTestsInactive, file, line); msg[499] = '\0'; FAIL(msg); } if (nAsserts == CU_get_number_of_asserts()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_asserts() (called from %s:%u)", nAsserts, file, line); msg[499] = '\0'; FAIL(msg); } if (nSuccesses == CU_get_number_of_successes()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_successes() (called from %s:%u)", nSuccesses, file, line); msg[499] = '\0'; FAIL(msg); } if (nFailures == CU_get_number_of_failures()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_failures() (called from %s:%u)", nFailures, file, line); msg[499] = '\0'; FAIL(msg); } if (nFailureRecords == CU_get_number_of_failure_records()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_failure_records() (called from %s:%u)", nFailureRecords, file, line); msg[499] = '\0'; FAIL(msg); } pRunSummary = CU_get_run_summary(); if (pRunSummary->nSuitesRun == CU_get_number_of_suites_run()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_suites_run() (called from %s:%u)", pRunSummary->nSuitesRun, file, line); msg[499] = '\0'; FAIL(msg); } if (pRunSummary->nSuitesFailed == CU_get_number_of_suites_failed()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_suites_failed() (called from %s:%u)", pRunSummary->nSuitesFailed, file, line); msg[499] = '\0'; FAIL(msg); } if (pRunSummary->nTestsRun == CU_get_number_of_tests_run()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_tests_run() (called from %s:%u)", pRunSummary->nTestsRun, file, line); msg[499] = '\0'; FAIL(msg); } if (pRunSummary->nTestsFailed == CU_get_number_of_tests_failed()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_tests_failed() (called from %s:%u)", pRunSummary->nTestsFailed, file, line); msg[499] = '\0'; FAIL(msg); } if (pRunSummary->nAsserts == CU_get_number_of_asserts()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_asserts() (called from %s:%u)", pRunSummary->nAsserts, file, line); msg[499] = '\0'; FAIL(msg); } if (pRunSummary->nAssertsFailed == CU_get_number_of_failures()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_failures() (called from %s:%u)", pRunSummary->nAssertsFailed, file, line); msg[499] = '\0'; FAIL(msg); } if (pRunSummary->nFailureRecords == CU_get_number_of_failure_records()) { PASS(); } else { snprintf(msg, 499, "%u == CU_get_number_of_failure_records() (called from %s:%u)", pRunSummary->nFailureRecords, file, line); msg[499] = '\0'; FAIL(msg); } } #define test_results(nSuitesRun, nSuitesFailed, nSuitesInactive, nTestsRun, nTestsFailed, \ nTestsInactive, nAsserts, nSuccesses, nFailures, nFailureRecords) \ do_test_results(nSuitesRun, nSuitesFailed, nSuitesInactive, nTestsRun, nTestsFailed, \ nTestsInactive, nAsserts, nSuccesses, nFailures, nFailureRecords, \ __FILE__, __LINE__) static void test_succeed(void) { CU_TEST(CU_TRUE); } static void test_fail(void) { CU_TEST(CU_FALSE); } static int suite_succeed(void) { return 0; } static int suite_fail(void) { return 1; } static CU_BOOL SetUp_Passed; static void test_succeed_if_setup(void) { CU_TEST(SetUp_Passed); } static void test_fail_if_not_setup(void) { CU_TEST(SetUp_Passed); } static void suite_setup(void) { SetUp_Passed = CU_TRUE; } static void suite_teardown(void) { SetUp_Passed = CU_FALSE; } /*-------------------------------------------------*/ /* tests: * CU_set_suite_start_handler() * CU_set_test_start_handler() * CU_set_test_complete_handler() * CU_set_suite_complete_handler() * CU_set_all_test_complete_handler() * CU_set_suite_init_failure_handler() * CU_set_suite_cleanup_failure_handler() * CU_get_suite_start_handler() * CU_get_test_start_handler() * CU_get_test_complete_handler() * CU_get_suite_complete_handler() * CU_get_all_test_complete_handler() * CU_get_suite_init_failure_handler() * CU_get_suite_cleanup_failure_handler() * CU_is_test_running() * via handlers tests: * CU_get_current_suite() * CU_get_current_test() */ static void test_message_handlers(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pSuite pSuite3 = NULL; CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; CU_pTest pTest3 = NULL; CU_pTest pTest4 = NULL; CU_pTest pTest5 = NULL; pTestEvent pEvent = NULL; TEST(!CU_is_test_running()); /* handlers should be NULL on startup */ TEST(NULL == CU_get_suite_start_handler()); TEST(NULL == CU_get_test_start_handler()); TEST(NULL == CU_get_test_complete_handler()); TEST(NULL == CU_get_suite_complete_handler()); TEST(NULL == CU_get_all_test_complete_handler()); TEST(NULL == CU_get_suite_init_failure_handler()); TEST(NULL == CU_get_suite_cleanup_failure_handler()); /* register some suites and tests */ CU_initialize_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); pTest1 = CU_add_test(pSuite1, "test1", test_succeed); pTest2 = CU_add_test(pSuite1, "test2", test_fail); pTest3 = CU_add_test(pSuite1, "test3", test_succeed); pSuite2 = CU_add_suite("suite2", suite_fail, NULL); pTest4 = CU_add_test(pSuite2, "test4", test_succeed); pSuite3 = CU_add_suite("suite3", suite_succeed, suite_fail); pTest5 = CU_add_test(pSuite3, "test5", test_fail); TEST_FATAL(CUE_SUCCESS == CU_get_error()); /* first run tests without handlers set */ clear_test_events(); CU_run_all_tests(); TEST(0 == f_nTestEvents); TEST(NULL == f_pFirstEvent); test_results(2,2,0,4,2,0,4,2,2,4); /* set handlers to local functions */ CU_set_suite_start_handler(&suite_start_handler); CU_set_test_start_handler(&test_start_handler); CU_set_test_complete_handler(&test_complete_handler); CU_set_suite_complete_handler(&suite_complete_handler); CU_set_all_test_complete_handler(&test_all_complete_handler); CU_set_suite_init_failure_handler(&suite_init_failure_handler); CU_set_suite_cleanup_failure_handler(&suite_cleanup_failure_handler); /* confirm handlers set properly */ TEST(suite_start_handler == CU_get_suite_start_handler()); TEST(test_start_handler == CU_get_test_start_handler()); TEST(test_complete_handler == CU_get_test_complete_handler()); TEST(suite_complete_handler == CU_get_suite_complete_handler()); TEST(test_all_complete_handler == CU_get_all_test_complete_handler()); TEST(suite_init_failure_handler == CU_get_suite_init_failure_handler()); TEST(suite_cleanup_failure_handler == CU_get_suite_cleanup_failure_handler()); /* run tests again with handlers set */ clear_test_events(); CU_run_all_tests(); TEST(17 == f_nTestEvents); if (17 == f_nTestEvents) { pEvent = f_pFirstEvent; TEST(SUITE_START == pEvent->type); TEST(pSuite1 == pEvent->pSuite); TEST(NULL == pEvent->pTest); TEST(NULL == pEvent->pFailure); pEvent = pEvent->pNext; TEST(TEST_START == pEvent->type); TEST(pSuite1 == pEvent->pSuite); TEST(pTest1 == pEvent->pTest); TEST(NULL == pEvent->pFailure); pEvent = pEvent->pNext; TEST(TEST_COMPLETE == pEvent->type); TEST(pSuite1 == pEvent->pSuite); TEST(pTest1 == pEvent->pTest); TEST(NULL == pEvent->pFailure); pEvent = pEvent->pNext; TEST(TEST_START == pEvent->type); TEST(pSuite1 == pEvent->pSuite); TEST(pTest2 == pEvent->pTest); TEST(NULL == pEvent->pFailure); pEvent = pEvent->pNext; TEST(TEST_COMPLETE == pEvent->type); TEST(pSuite1 == pEvent->pSuite); TEST(pTest2 == pEvent->pTest); TEST(NULL != pEvent->pFailure); pEvent = pEvent->pNext; TEST(TEST_START == pEvent->type); TEST(pSuite1 == pEvent->pSuite); TEST(pTest3 == pEvent->pTest); TEST(NULL == pEvent->pFailure); pEvent = pEvent->pNext; TEST(TEST_COMPLETE == pEvent->type); TEST(pSuite1 == pEvent->pSuite); TEST(pTest3 == pEvent->pTest); TEST(NULL == pEvent->pFailure); pEvent = pEvent->pNext; TEST(SUITE_COMPLETE == pEvent->type); TEST(pSuite1 == pEvent->pSuite); TEST(NULL == pEvent->pTest); TEST(NULL != pEvent->pFailure); pEvent = pEvent->pNext; TEST(SUITE_START == pEvent->type); TEST(pSuite2 == pEvent->pSuite); TEST(NULL == pEvent->pTest); TEST(NULL == pEvent->pFailure); pEvent = pEvent->pNext; TEST(SUITE_INIT_FAILED == pEvent->type); TEST(pSuite2 == pEvent->pSuite); TEST(NULL == pEvent->pTest); TEST(NULL == pEvent->pFailure); pEvent = pEvent->pNext; TEST(SUITE_COMPLETE == pEvent->type); TEST(pSuite2 == pEvent->pSuite); TEST(NULL == pEvent->pTest); TEST(NULL != pEvent->pFailure); pEvent = pEvent->pNext; TEST(SUITE_START == pEvent->type); TEST(pSuite3 == pEvent->pSuite); TEST(NULL == pEvent->pTest); TEST(NULL == pEvent->pFailure); pEvent = pEvent->pNext; TEST(TEST_START == pEvent->type); TEST(pSuite3 == pEvent->pSuite); TEST(pTest5 == pEvent->pTest); TEST(NULL == pEvent->pFailure); pEvent = pEvent->pNext; TEST(TEST_COMPLETE == pEvent->type); TEST(pSuite3 == pEvent->pSuite); TEST(pTest5 == pEvent->pTest); TEST(NULL != pEvent->pFailure); pEvent = pEvent->pNext; TEST(SUITE_CLEANUP_FAILED == pEvent->type); TEST(pSuite3 == pEvent->pSuite); TEST(NULL == pEvent->pTest); TEST(NULL == pEvent->pFailure); pEvent = pEvent->pNext; TEST(SUITE_COMPLETE == pEvent->type); TEST(pSuite3 == pEvent->pSuite); TEST(NULL == pEvent->pTest); TEST(NULL != pEvent->pFailure); pEvent = pEvent->pNext; TEST(ALL_TESTS_COMPLETE == pEvent->type); TEST(NULL == pEvent->pSuite); TEST(NULL == pEvent->pTest); TEST(NULL != pEvent->pFailure); if (4 == CU_get_number_of_failure_records()) { TEST(NULL != pEvent->pFailure->pNext); TEST(NULL != pEvent->pFailure->pNext->pNext); TEST(NULL != pEvent->pFailure->pNext->pNext->pNext); TEST(NULL == pEvent->pFailure->pNext->pNext->pNext->pNext); } TEST(pEvent->pFailure == CU_get_failure_list()); } test_results(2,2,0,4,2,0,4,2,2,4); /* clear handlers and run again */ CU_set_suite_start_handler(NULL); CU_set_test_start_handler(NULL); CU_set_test_complete_handler(NULL); CU_set_suite_complete_handler(NULL); CU_set_all_test_complete_handler(NULL); CU_set_suite_init_failure_handler(NULL); CU_set_suite_cleanup_failure_handler(NULL); TEST(NULL == CU_get_suite_start_handler()); TEST(NULL == CU_get_test_start_handler()); TEST(NULL == CU_get_test_complete_handler()); TEST(NULL == CU_get_suite_complete_handler()); TEST(NULL == CU_get_all_test_complete_handler()); TEST(NULL == CU_get_suite_init_failure_handler()); TEST(NULL == CU_get_suite_cleanup_failure_handler()); clear_test_events(); CU_run_all_tests(); TEST(0 == f_nTestEvents); TEST(NULL == f_pFirstEvent); test_results(2,2,0,4,2,0,4,2,2,4); CU_cleanup_registry(); clear_test_events(); } static CU_BOOL f_exit_called = CU_FALSE; /* intercept exit for testing of CUEA_ABORT action */ void test_exit(int status) { CU_UNREFERENCED_PARAMETER(status); /* not used */ f_exit_called = CU_TRUE; } /*-------------------------------------------------*/ static void test_CU_fail_on_inactive(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; CU_pTest pTest3 = NULL; CU_pTest pTest4 = NULL; CU_set_error_action(CUEA_IGNORE); CU_initialize_registry(); /* register some suites and tests */ CU_initialize_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); pTest1 = CU_add_test(pSuite1, "test1", test_succeed); pTest2 = CU_add_test(pSuite1, "test2", test_fail); pSuite2 = CU_add_suite("suite2", suite_fail, NULL); pTest3 = CU_add_test(pSuite2, "test3", test_succeed); pTest4 = CU_add_test(pSuite2, "test4", test_succeed); /* test initial conditions */ TEST(CU_TRUE == CU_get_fail_on_inactive()); TEST(CU_TRUE == pSuite1->fActive); TEST(CU_TRUE == pSuite2->fActive); TEST(CU_TRUE == pTest1->fActive); TEST(CU_TRUE == pTest2->fActive); TEST(CU_TRUE == pTest3->fActive); TEST(CU_TRUE == pTest4->fActive); CU_set_fail_on_inactive(CU_TRUE); TEST(CU_TRUE == CU_get_fail_on_inactive()); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* all suites/tests active */ test_results(1,1,0,2,1,0,2,1,1,2); CU_set_fail_on_inactive(CU_FALSE); TEST(CU_FALSE == CU_get_fail_on_inactive()); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); test_results(1,1,0,2,1,0,2,1,1,2); CU_set_suite_active(pSuite1, CU_FALSE); CU_set_suite_active(pSuite2, CU_FALSE); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_all_tests()); /* all suites inactive */ test_results(0,0,2,0,0,0,0,0,0,2); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUCCESS == CU_run_all_tests()); test_results(0,0,2,0,0,0,0,0,0,0); CU_set_suite_active(pSuite1, CU_TRUE); CU_set_suite_active(pSuite2, CU_TRUE); CU_set_suite_active(pSuite2, CU_FALSE); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_all_tests()); /* some suites inactive */ test_results(1,0,1,2,1,0,2,1,1,2); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUCCESS == CU_run_all_tests()); test_results(1,0,1,2,1,0,2,1,1,1); CU_set_suite_active(pSuite2, CU_TRUE); CU_set_test_active(pTest1, CU_FALSE); CU_set_test_active(pTest2, CU_FALSE); CU_set_test_active(pTest3, CU_FALSE); CU_set_test_active(pTest4, CU_FALSE); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_all_tests()); /* all tests inactive */ test_results(1,1,0,0,0,2,0,0,0,3); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); test_results(1,1,0,0,0,2,0,0,0,1); CU_set_test_active(pTest1, CU_TRUE); CU_set_test_active(pTest2, CU_TRUE); CU_set_test_active(pTest3, CU_TRUE); CU_set_test_active(pTest4, CU_TRUE); CU_set_test_active(pTest2, CU_FALSE); CU_set_test_active(pTest4, CU_FALSE); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_all_tests()); /* some tests inactive */ test_results(1,1,0,1,0,1,1,1,0,2); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); test_results(1,1,0,1,0,1,1,1,0,1); CU_set_test_active(pTest2, CU_TRUE); CU_set_test_active(pTest4, CU_TRUE); CU_set_suite_active(pSuite2, CU_FALSE); CU_set_test_active(pTest1, CU_FALSE); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_all_tests()); /* some suites & tests inactive */ test_results(1,0,1,1,1,1,1,0,1,3); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUCCESS == CU_run_all_tests()); test_results(1,0,1,1,1,1,1,0,1,1); CU_set_suite_active(pSuite2, CU_TRUE); CU_set_test_active(pTest1, CU_TRUE); /* clean up */ CU_cleanup_registry(); } /*-------------------------------------------------*/ static void test_CU_run_all_tests(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pSuite pSuite3 = NULL; CU_pSuite pSuite4 = NULL; CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; CU_pTest pTest3 = NULL; CU_pTest pTest4 = NULL; CU_pTest pTest5 = NULL; CU_pTest pTest6 = NULL; CU_pTest pTest7 = NULL; CU_pTest pTest8 = NULL; CU_pTest pTest9 = NULL; CU_pTest pTest10 = NULL; /* error - uninitialized registry (CUEA_IGNORE) */ CU_cleanup_registry(); CU_set_error_action(CUEA_IGNORE); TEST(CUE_NOREGISTRY == CU_run_all_tests()); TEST(CUE_NOREGISTRY == CU_get_error()); /* error - uninitialized registry (CUEA_FAIL) */ CU_cleanup_registry(); CU_set_error_action(CUEA_FAIL); TEST(CUE_NOREGISTRY == CU_run_all_tests()); TEST(CUE_NOREGISTRY == CU_get_error()); /* error - uninitialized registry (CUEA_ABORT) */ CU_cleanup_registry(); CU_set_error_action(CUEA_ABORT); f_exit_called = CU_FALSE; CU_run_all_tests(); TEST(CU_TRUE == f_exit_called); f_exit_called = CU_FALSE; /* run with no suites or tests registered */ CU_initialize_registry(); CU_set_error_action(CUEA_IGNORE); TEST(CUE_SUCCESS == CU_run_all_tests()); test_results(0,0,0,0,0,0,0,0,0,0); /* register some suites and tests */ CU_initialize_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); pTest1 = CU_add_test(pSuite1, "test1", test_succeed); pTest2 = CU_add_test(pSuite1, "test2", test_fail); pTest3 = CU_add_test(pSuite1, "test1", test_succeed); /* duplicate test name OK */ pTest4 = CU_add_test(pSuite1, "test4", test_fail); pTest5 = CU_add_test(pSuite1, "test1", test_succeed); /* duplicate test name OK */ pSuite2 = CU_add_suite("suite2", suite_fail, NULL); pTest6 = CU_add_test(pSuite2, "test6", test_succeed); pTest7 = CU_add_test(pSuite2, "test7", test_succeed); pSuite3 = CU_add_suite("suite1", NULL, NULL); /* duplicate suite name OK */ pTest8 = CU_add_test(pSuite3, "test8", test_fail); pTest9 = CU_add_test(pSuite3, "test9", test_succeed); pSuite4 = CU_add_suite("suite4", NULL, suite_fail); pTest10 = CU_add_test(pSuite4, "test10", test_succeed); TEST_FATAL(4 == CU_get_registry()->uiNumberOfSuites); TEST_FATAL(10 == CU_get_registry()->uiNumberOfTests); /* run all tests (CUEA_IGNORE) */ CU_set_error_action(CUEA_IGNORE); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* all suites/tests active */ test_results(3,2,0,8,3,0,8,5,3,5); CU_set_suite_active(pSuite1, CU_FALSE); CU_set_suite_active(pSuite2, CU_FALSE); CU_set_suite_active(pSuite3, CU_FALSE); CU_set_suite_active(pSuite4, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUCCESS == CU_run_all_tests()); /* suites inactive */ test_results(0,0,4,0,0,0,0,0,0,0); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_all_tests()); test_results(0,0,4,0,0,0,0,0,0,4); CU_set_suite_active(pSuite1, CU_FALSE); CU_set_suite_active(pSuite2, CU_TRUE); CU_set_suite_active(pSuite3, CU_TRUE); CU_set_suite_active(pSuite4, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* some suites inactive */ test_results(1,1,2,2,1,0,2,1,1,2); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_all_tests()); test_results(1,1,2,2,1,0,2,1,1,4); CU_set_suite_active(pSuite1, CU_TRUE); CU_set_suite_active(pSuite2, CU_TRUE); CU_set_suite_active(pSuite3, CU_TRUE); CU_set_suite_active(pSuite4, CU_TRUE); CU_set_test_active(pTest1, CU_FALSE); CU_set_test_active(pTest2, CU_FALSE); CU_set_test_active(pTest3, CU_FALSE); CU_set_test_active(pTest4, CU_FALSE); CU_set_test_active(pTest5, CU_FALSE); CU_set_test_active(pTest6, CU_FALSE); CU_set_test_active(pTest7, CU_FALSE); CU_set_test_active(pTest8, CU_FALSE); CU_set_test_active(pTest9, CU_FALSE); CU_set_test_active(pTest10, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* no tests active */ test_results(3,2,0,0,0,8,0,0,0,2); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_all_tests()); test_results(3,2,0,0,0,8,0,0,0,10); CU_set_test_active(pTest1, CU_TRUE); CU_set_test_active(pTest2, CU_FALSE); CU_set_test_active(pTest3, CU_TRUE); CU_set_test_active(pTest4, CU_FALSE); CU_set_test_active(pTest5, CU_TRUE); CU_set_test_active(pTest6, CU_FALSE); CU_set_test_active(pTest7, CU_TRUE); CU_set_test_active(pTest8, CU_FALSE); CU_set_test_active(pTest9, CU_TRUE); CU_set_test_active(pTest10, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* some tests active */ test_results(3,2,0,4,0,4,4,4,0,2); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_all_tests()); test_results(3,2,0,4,0,4,4,4,0,6); CU_set_test_active(pTest1, CU_TRUE); CU_set_test_active(pTest2, CU_TRUE); CU_set_test_active(pTest3, CU_TRUE); CU_set_test_active(pTest4, CU_TRUE); CU_set_test_active(pTest5, CU_TRUE); CU_set_test_active(pTest6, CU_TRUE); CU_set_test_active(pTest7, CU_TRUE); CU_set_test_active(pTest8, CU_TRUE); CU_set_test_active(pTest9, CU_TRUE); CU_set_test_active(pTest10, CU_TRUE); CU_set_suite_initfunc(pSuite1, &suite_fail); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* change a suite init function */ CU_set_suite_initfunc(pSuite1, NULL); test_results(2,3,0,3,1,0,3,2,1,4); CU_set_suite_cleanupfunc(pSuite4, NULL); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* change a suite cleanup function */ CU_set_suite_cleanupfunc(pSuite4, &suite_fail); test_results(3,1,0,8,3,0,8,5,3,4); CU_set_test_func(pTest2, &test_succeed); CU_set_test_func(pTest4, &test_succeed); CU_set_test_func(pTest8, &test_succeed); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* change a test function */ CU_set_test_func(pTest2, &test_fail); CU_set_test_func(pTest4, &test_fail); CU_set_test_func(pTest8, &test_fail); test_results(3,2,0,8,0,0,8,8,0,2); /* run all tests (CUEA_FAIL) */ CU_set_error_action(CUEA_FAIL); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* all suites active */ test_results(1,1,0,5,2,0,5,3,2,3); CU_set_suite_active(pSuite1, CU_TRUE); CU_set_suite_active(pSuite2, CU_FALSE); CU_set_suite_active(pSuite3, CU_FALSE); CU_set_suite_active(pSuite4, CU_TRUE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SCLEAN_FAILED == CU_run_all_tests()); /* some suites inactive */ test_results(2,1,2,6,2,0,6,4,2,3); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_all_tests()); test_results(1,0,1,5,2,0,5,3,2,3); CU_set_suite_active(pSuite1, CU_TRUE); CU_set_suite_active(pSuite2, CU_TRUE); CU_set_suite_active(pSuite3, CU_TRUE); CU_set_suite_active(pSuite4, CU_TRUE); CU_set_test_active(pTest1, CU_FALSE); CU_set_test_active(pTest2, CU_FALSE); CU_set_test_active(pTest3, CU_FALSE); CU_set_test_active(pTest4, CU_FALSE); CU_set_test_active(pTest5, CU_FALSE); CU_set_test_active(pTest6, CU_FALSE); CU_set_test_active(pTest7, CU_FALSE); CU_set_test_active(pTest8, CU_FALSE); CU_set_test_active(pTest9, CU_FALSE); CU_set_test_active(pTest10, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* no tests active */ test_results(1,1,0,0,0,5,0,0,0,1); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_all_tests()); test_results(1,0,0,0,0,1,0,0,0,1); CU_set_test_active(pTest1, CU_FALSE); CU_set_test_active(pTest2, CU_TRUE); CU_set_test_active(pTest3, CU_FALSE); CU_set_test_active(pTest4, CU_TRUE); CU_set_test_active(pTest5, CU_FALSE); CU_set_test_active(pTest6, CU_TRUE); CU_set_test_active(pTest7, CU_FALSE); CU_set_test_active(pTest8, CU_TRUE); CU_set_test_active(pTest9, CU_FALSE); CU_set_test_active(pTest10, CU_TRUE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* some tests active */ test_results(1,1,0,2,2,3,2,0,2,3); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_all_tests()); test_results(1,0,0,0,0,1,0,0,0,1); CU_set_test_active(pTest1, CU_TRUE); CU_set_test_active(pTest2, CU_TRUE); CU_set_test_active(pTest3, CU_TRUE); CU_set_test_active(pTest4, CU_TRUE); CU_set_test_active(pTest5, CU_TRUE); CU_set_test_active(pTest6, CU_TRUE); CU_set_test_active(pTest7, CU_TRUE); CU_set_test_active(pTest8, CU_TRUE); CU_set_test_active(pTest9, CU_TRUE); CU_set_test_active(pTest10, CU_TRUE); CU_set_suite_initfunc(pSuite2, NULL); TEST(CUE_SCLEAN_FAILED == CU_run_all_tests()); /* change a suite init function */ CU_set_suite_initfunc(pSuite2, &suite_fail); test_results(4,1,0,10,3,0,10,7,3,4); CU_set_suite_cleanupfunc(pSuite1, &suite_fail); TEST(CUE_SCLEAN_FAILED == CU_run_all_tests()); /* change a suite cleanup function */ CU_set_suite_cleanupfunc(pSuite1, NULL); test_results(1,1,0,5,2,0,5,3,2,3); CU_set_test_func(pTest1, &test_fail); CU_set_test_func(pTest3, &test_fail); CU_set_test_func(pTest5, &test_fail); CU_set_test_func(pTest9, &test_fail); CU_set_test_func(pTest10, &test_fail); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* change a test function */ CU_set_test_func(pTest1, &test_succeed); CU_set_test_func(pTest3, &test_succeed); CU_set_test_func(pTest5, &test_succeed); CU_set_test_func(pTest9, &test_succeed); CU_set_test_func(pTest10, &test_succeed); test_results(1,1,0,5,5,0,5,0,5,6); /* run all tests (CUEA_ABORT) */ f_exit_called = CU_FALSE; CU_set_error_action(CUEA_ABORT); CU_set_suite_active(pSuite1, CU_TRUE); CU_set_suite_active(pSuite2, CU_TRUE); CU_set_suite_active(pSuite3, CU_TRUE); CU_set_suite_active(pSuite4, CU_TRUE); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* all suites active */ TEST(CU_TRUE == f_exit_called); test_results(1,1,0,5,2,0,5,3,2,3); CU_set_suite_active(pSuite1, CU_FALSE); CU_set_suite_active(pSuite2, CU_FALSE); CU_set_suite_active(pSuite3, CU_FALSE); CU_set_suite_active(pSuite4, CU_FALSE); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUCCESS == CU_run_all_tests()); /* no suites active, so no abort() */ TEST(CU_FALSE == f_exit_called); test_results(0,0,4,0,0,0,0,0,0,0); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_all_tests()); TEST(CU_TRUE == f_exit_called); test_results(0,0,1,0,0,0,0,0,0,1); CU_set_suite_active(pSuite1, CU_TRUE); CU_set_suite_active(pSuite2, CU_FALSE); CU_set_suite_active(pSuite3, CU_TRUE); CU_set_suite_active(pSuite4, CU_TRUE); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SCLEAN_FAILED == CU_run_all_tests()); /* some suites active */ TEST(CU_TRUE == f_exit_called); test_results(3,1,1,8,3,0,8,5,3,4); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_all_tests()); TEST(CU_TRUE == f_exit_called); test_results(1,0,1,5,2,0,5,3,2,3); CU_set_suite_active(pSuite1, CU_TRUE); CU_set_suite_active(pSuite2, CU_TRUE); CU_set_suite_active(pSuite3, CU_TRUE); CU_set_suite_active(pSuite4, CU_TRUE); CU_set_test_active(pTest1, CU_FALSE); CU_set_test_active(pTest2, CU_FALSE); CU_set_test_active(pTest3, CU_FALSE); CU_set_test_active(pTest4, CU_FALSE); CU_set_test_active(pTest5, CU_FALSE); CU_set_test_active(pTest6, CU_FALSE); CU_set_test_active(pTest7, CU_FALSE); CU_set_test_active(pTest8, CU_FALSE); CU_set_test_active(pTest9, CU_FALSE); CU_set_test_active(pTest10, CU_FALSE); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* no tests active */ TEST(CU_TRUE == f_exit_called); test_results(1,1,0,0,0,5,0,0,0,1); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_all_tests()); TEST(CU_TRUE == f_exit_called); test_results(1,0,0,0,0,1,0,0,0,1); CU_set_test_active(pTest1, CU_FALSE); CU_set_test_active(pTest2, CU_TRUE); CU_set_test_active(pTest3, CU_FALSE); CU_set_test_active(pTest4, CU_TRUE); CU_set_test_active(pTest5, CU_FALSE); CU_set_test_active(pTest6, CU_TRUE); CU_set_test_active(pTest7, CU_FALSE); CU_set_test_active(pTest8, CU_TRUE); CU_set_test_active(pTest9, CU_FALSE); CU_set_test_active(pTest10, CU_TRUE); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* some tests active */ TEST(CU_TRUE == f_exit_called); test_results(1,1,0,2,2,3,2,0,2,3); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_all_tests()); TEST(CU_TRUE == f_exit_called); test_results(1,0,0,0,0,1,0,0,0,1); CU_set_test_active(pTest1, CU_TRUE); CU_set_test_active(pTest2, CU_TRUE); CU_set_test_active(pTest3, CU_TRUE); CU_set_test_active(pTest4, CU_TRUE); CU_set_test_active(pTest5, CU_TRUE); CU_set_test_active(pTest6, CU_TRUE); CU_set_test_active(pTest7, CU_TRUE); CU_set_test_active(pTest8, CU_TRUE); CU_set_test_active(pTest9, CU_TRUE); CU_set_test_active(pTest10, CU_TRUE); f_exit_called = CU_FALSE; CU_set_suite_initfunc(pSuite1, &suite_fail); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* change a suite init function */ CU_set_suite_initfunc(pSuite1, NULL); TEST(CU_TRUE == f_exit_called); test_results(0,1,0,0,0,0,0,0,0,1); f_exit_called = CU_FALSE; CU_set_suite_cleanupfunc(pSuite1, &suite_fail); TEST(CUE_SCLEAN_FAILED == CU_run_all_tests()); /* change a suite cleanup function */ CU_set_suite_cleanupfunc(pSuite1, NULL); TEST(CU_TRUE == f_exit_called); test_results(1,1,0,5,2,0,5,3,2,3); f_exit_called = CU_FALSE; CU_set_test_func(pTest1, &test_fail); CU_set_test_func(pTest3, &test_fail); CU_set_test_func(pTest5, &test_fail); CU_set_test_func(pTest9, &test_fail); CU_set_test_func(pTest10, &test_fail); TEST(CUE_SINIT_FAILED == CU_run_all_tests()); /* change a test function */ CU_set_test_func(pTest1, &test_succeed); CU_set_test_func(pTest3, &test_succeed); CU_set_test_func(pTest5, &test_succeed); CU_set_test_func(pTest9, &test_succeed); CU_set_test_func(pTest10, &test_succeed); TEST(CU_TRUE == f_exit_called); test_results(1,1,0,5,5,0,5,0,5,6); /* clean up after testing */ CU_set_error_action(CUEA_IGNORE); CU_cleanup_registry(); } /*-------------------------------------------------*/ static void test_CU_run_suite(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pSuite pSuite3 = NULL; CU_pSuite pSuite4 = NULL; CU_pSuite pSuite5 = NULL; CU_pSuite pSuite6 = NULL; CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; CU_pTest pTest3 = NULL; CU_pTest pTest4 = NULL; CU_pTest pTest5 = NULL; CU_pTest pTest6 = NULL; CU_pTest pTest7 = NULL; CU_pTest pTest8 = NULL; CU_pTest pTest9 = NULL; CU_pTest pTest10 = NULL; CU_pTest pTest11 = NULL; /* error - NULL suite (CUEA_IGNORE) */ CU_set_error_action(CUEA_IGNORE); TEST(CUE_NOSUITE == CU_run_suite(NULL)); TEST(CUE_NOSUITE == CU_get_error()); /* error - NULL suite (CUEA_FAIL) */ CU_set_error_action(CUEA_FAIL); TEST(CUE_NOSUITE == CU_run_suite(NULL)); TEST(CUE_NOSUITE == CU_get_error()); /* error - NULL suite (CUEA_ABORT) */ CU_set_error_action(CUEA_ABORT); f_exit_called = CU_FALSE; CU_run_suite(NULL); TEST(CU_TRUE == f_exit_called); f_exit_called = CU_FALSE; /* register some suites and tests */ CU_initialize_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); pTest1 = CU_add_test(pSuite1, "test1", test_succeed); pTest2 = CU_add_test(pSuite1, "test2", test_fail); pTest3 = CU_add_test(pSuite1, "test3", test_succeed); pTest4 = CU_add_test(pSuite1, "test4", test_fail); pTest5 = CU_add_test(pSuite1, "test5", test_succeed); pSuite2 = CU_add_suite("suite1", suite_fail, NULL); /* duplicate suite name OK */ pTest6 = CU_add_test(pSuite2, "test6", test_succeed); pTest7 = CU_add_test(pSuite2, "test7", test_succeed); pSuite3 = CU_add_suite("suite3", NULL, suite_fail); pTest8 = CU_add_test(pSuite3, "test8", test_fail); pTest9 = CU_add_test(pSuite3, "test8", test_succeed); /* duplicate test name OK */ pSuite4 = CU_add_suite("suite4", NULL, NULL); pSuite5 = CU_add_suite_with_setup_and_teardown("suite5", NULL, NULL, suite_setup, suite_teardown); pTest10 = CU_add_test(pSuite5, "test10", test_succeed_if_setup); pSuite6 = CU_add_suite("suite6", NULL, NULL); pTest11 = CU_add_test(pSuite6, "test11", test_fail_if_not_setup); TEST_FATAL(6 == CU_get_registry()->uiNumberOfSuites); TEST_FATAL(11 == CU_get_registry()->uiNumberOfTests); /* run each suite (CUEA_IGNORE) */ CU_set_error_action(CUEA_IGNORE); TEST(CUE_SUCCESS == CU_run_suite(pSuite1)); /* suites/tests active */ test_results(1,0,0,5,2,0,5,3,2,2); TEST(CUE_SINIT_FAILED == CU_run_suite(pSuite2)); test_results(0,1,0,0,0,0,0,0,0,1); TEST(CUE_SCLEAN_FAILED == CU_run_suite(pSuite3)); test_results(1,1,0,2,1,0,2,1,1,2); TEST(CUE_SUCCESS == CU_run_suite(pSuite4)); test_results(1,0,0,0,0,0,0,0,0,0); TEST(CUE_SUCCESS == CU_run_suite(pSuite5)); test_results(1,0,0,1,0,0,1,1,0,0); TEST(CUE_SUCCESS == CU_run_suite(pSuite6)); test_results(1,0,0,1,1,0,1,0,1,1); CU_set_suite_active(pSuite3, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUCCESS == CU_run_suite(pSuite3)); /* suite inactive */ test_results(0,0,1,0,0,0,0,0,0,0); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_suite(pSuite3)); test_results(0,0,1,0,0,0,0,0,0,1); CU_set_suite_active(pSuite3, CU_TRUE); CU_set_test_active(pTest1, CU_FALSE); CU_set_test_active(pTest2, CU_FALSE); CU_set_test_active(pTest3, CU_FALSE); CU_set_test_active(pTest4, CU_FALSE); CU_set_test_active(pTest5, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUCCESS == CU_run_suite(pSuite1)); /* all tests inactive */ test_results(1,0,0,0,0,5,0,0,0,0); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_suite(pSuite1)); test_results(1,0,0,0,0,5,0,0,0,5); CU_set_test_active(pTest1, CU_TRUE); CU_set_test_active(pTest2, CU_FALSE); CU_set_test_active(pTest3, CU_TRUE); CU_set_test_active(pTest4, CU_FALSE); CU_set_test_active(pTest5, CU_TRUE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUCCESS == CU_run_suite(pSuite1)); /* some tests inactive */ test_results(1,0,0,3,0,2,3,3,0,0); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_suite(pSuite1)); test_results(1,0,0,3,0,2,3,3,0,2); CU_set_test_active(pTest2, CU_TRUE); CU_set_test_active(pTest4, CU_TRUE); CU_set_suite_initfunc(pSuite1, &suite_fail); TEST(CUE_SINIT_FAILED == CU_run_suite(pSuite1)); /* change a suite init function */ CU_set_suite_initfunc(pSuite1, NULL); test_results(0,1,0,0,0,0,0,0,0,1); CU_set_suite_cleanupfunc(pSuite1, &suite_fail); TEST(CUE_SCLEAN_FAILED == CU_run_suite(pSuite1)); /* change a suite cleanup function */ CU_set_suite_cleanupfunc(pSuite1, NULL); test_results(1,1,0,5,2,0,5,3,2,3); CU_set_test_func(pTest1, &test_fail); CU_set_test_func(pTest3, &test_fail); CU_set_test_func(pTest5, &test_fail); TEST(CUE_SUCCESS == CU_run_suite(pSuite1)); /* change a test function */ CU_set_test_func(pTest1, &test_succeed); CU_set_test_func(pTest3, &test_succeed); CU_set_test_func(pTest5, &test_succeed); test_results(1,0,0,5,5,0,5,0,5,5); /* run each suite (CUEA_FAIL) */ CU_set_error_action(CUEA_FAIL); TEST(CUE_SUCCESS == CU_run_suite(pSuite1)); /* suite active */ test_results(1,0,0,5,2,0,5,3,2,2); TEST(CUE_SINIT_FAILED == CU_run_suite(pSuite2)); test_results(0,1,0,0,0,0,0,0,0,1); TEST(CUE_SCLEAN_FAILED == CU_run_suite(pSuite3)); test_results(1,1,0,2,1,0,2,1,1,2); TEST(CUE_SUCCESS == CU_run_suite(pSuite4)); test_results(1,0,0,0,0,0,0,0,0,0); CU_set_suite_active(pSuite1, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUCCESS == CU_run_suite(pSuite1)); /* suite inactive */ test_results(0,0,1,0,0,0,0,0,0,0); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_suite(pSuite1)); test_results(0,0,1,0,0,0,0,0,0,1); CU_set_suite_active(pSuite1, CU_TRUE); CU_set_test_active(pTest8, CU_FALSE); CU_set_test_active(pTest9, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SCLEAN_FAILED == CU_run_suite(pSuite3)); /* all tests inactive */ test_results(1,1,0,0,0,2,0,0,0,1); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_suite(pSuite3)); test_results(1,1,0,0,0,1,0,0,0,2); CU_set_test_active(pTest8, CU_TRUE); CU_set_test_active(pTest9, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SCLEAN_FAILED == CU_run_suite(pSuite3)); /* some tests inactive */ test_results(1,1,0,1,1,1,1,0,1,2); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_suite(pSuite3)); test_results(1,1,0,1,1,1,1,0,1,3); CU_set_test_active(pTest9, CU_TRUE); CU_set_suite_initfunc(pSuite2, NULL); TEST(CUE_SUCCESS == CU_run_suite(pSuite2)); /* change a suite init function */ CU_set_suite_initfunc(pSuite2, &suite_fail); test_results(1,0,0,2,0,0,2,2,0,0); CU_set_suite_cleanupfunc(pSuite1, &suite_fail); TEST(CUE_SCLEAN_FAILED == CU_run_suite(pSuite1)); /* change a suite cleanup function */ CU_set_suite_cleanupfunc(pSuite1, NULL); test_results(1,1,0,5,2,0,5,3,2,3); CU_set_test_func(pTest2, &test_succeed); CU_set_test_func(pTest4, &test_succeed); TEST(CUE_SUCCESS == CU_run_suite(pSuite1)); /* change a test function */ CU_set_test_func(pTest2, &test_fail); CU_set_test_func(pTest4, &test_fail); test_results(1,0,0,5,0,0,5,5,0,0); /* run each suite (CUEA_ABORT) */ CU_set_error_action(CUEA_ABORT); f_exit_called = CU_FALSE; TEST(CUE_SUCCESS == CU_run_suite(pSuite1)); /* suite active */ TEST(CU_FALSE == f_exit_called); test_results(1,0,0,5,2,0,5,3,2,2); f_exit_called = CU_FALSE; TEST(CUE_SINIT_FAILED == CU_run_suite(pSuite2)); TEST(CU_TRUE == f_exit_called); f_exit_called = CU_FALSE; test_results(0,1,0,0,0,0,0,0,0,1); f_exit_called = CU_FALSE; TEST(CUE_SCLEAN_FAILED == CU_run_suite(pSuite3)); TEST(CU_TRUE == f_exit_called); test_results(1,1,0,2,1,0,2,1,1,2); f_exit_called = CU_FALSE; TEST(CUE_SUCCESS == CU_run_suite(pSuite4)); TEST(CU_FALSE == f_exit_called); test_results(1,0,0,0,0,0,0,0,0,0); CU_set_suite_active(pSuite2, CU_FALSE); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUCCESS == CU_run_suite(pSuite2)); /* suite inactive, but not a failure */ TEST(CU_FALSE == f_exit_called); test_results(0,0,1,0,0,0,0,0,0,0); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_suite(pSuite2)); TEST(CU_TRUE == f_exit_called); test_results(0,0,1,0,0,0,0,0,0,1); CU_set_suite_active(pSuite2, CU_TRUE); CU_set_test_active(pTest8, CU_FALSE); CU_set_test_active(pTest9, CU_FALSE); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SCLEAN_FAILED == CU_run_suite(pSuite3)); /* all tests inactive */ TEST(CU_TRUE == f_exit_called); test_results(1,1,0,0,0,2,0,0,0,1); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_suite(pSuite3)); TEST(CU_TRUE == f_exit_called); test_results(1,1,0,0,0,1,0,0,0,2); CU_set_test_active(pTest8, CU_FALSE); CU_set_test_active(pTest9, CU_TRUE); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SCLEAN_FAILED == CU_run_suite(pSuite3)); /* some tests inactive */ TEST(CU_TRUE == f_exit_called); test_results(1,1,0,1,0,1,1,1,0,1); f_exit_called = CU_FALSE; CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_suite(pSuite3)); TEST(CU_TRUE == f_exit_called); test_results(1,1,0,0,0,1,0,0,0,2); CU_set_test_active(pTest8, CU_TRUE); f_exit_called = CU_FALSE; CU_set_suite_initfunc(pSuite1, &suite_fail); TEST(CUE_SINIT_FAILED == CU_run_suite(pSuite1)); /* change a suite init function */ CU_set_suite_initfunc(pSuite1, NULL); TEST(CU_TRUE == f_exit_called); test_results(0,1,0,0,0,0,0,0,0,1); f_exit_called = CU_FALSE; CU_set_suite_cleanupfunc(pSuite1, &suite_fail); TEST(CUE_SCLEAN_FAILED == CU_run_suite(pSuite1)); /* change a suite cleanup function */ CU_set_suite_cleanupfunc(pSuite1, NULL); TEST(CU_TRUE == f_exit_called); test_results(1,1,0,5,2,0,5,3,2,3); f_exit_called = CU_FALSE; CU_set_test_func(pTest8, &test_succeed); CU_set_test_func(pTest9, &test_fail); TEST(CUE_SCLEAN_FAILED == CU_run_suite(pSuite3)); /* change a test function */ CU_set_test_func(pTest8, &test_fail); CU_set_test_func(pTest9, &test_succeed); TEST(CU_TRUE == f_exit_called); test_results(1,1,0,2,1,0,2,1,1,2); /* clean up after testing */ CU_set_error_action(CUEA_IGNORE); CU_cleanup_registry(); } /*-------------------------------------------------*/ static void test_CU_run_test(void) { CU_pSuite pSuite1 = NULL; CU_pSuite pSuite2 = NULL; CU_pSuite pSuite3 = NULL; CU_pTest pTest1 = NULL; CU_pTest pTest2 = NULL; CU_pTest pTest3 = NULL; CU_pTest pTest4 = NULL; CU_pTest pTest5 = NULL; CU_pTest pTest6 = NULL; CU_pTest pTest7 = NULL; CU_pTest pTest8 = NULL; CU_pTest pTest9 = NULL; /* register some suites and tests */ CU_initialize_registry(); pSuite1 = CU_add_suite("suite1", NULL, NULL); pTest1 = CU_add_test(pSuite1, "test1", test_succeed); pTest2 = CU_add_test(pSuite1, "test2", test_fail); pTest3 = CU_add_test(pSuite1, "test3", test_succeed); pTest4 = CU_add_test(pSuite1, "test4", test_fail); pTest5 = CU_add_test(pSuite1, "test5", test_succeed); pSuite2 = CU_add_suite("suite2", suite_fail, NULL); pTest6 = CU_add_test(pSuite2, "test6", test_succeed); pTest7 = CU_add_test(pSuite2, "test7", test_succeed); pSuite3 = CU_add_suite("suite2", NULL, suite_fail); /* duplicate suite name OK */ pTest8 = CU_add_test(pSuite3, "test8", test_fail); pTest9 = CU_add_test(pSuite3, "test8", test_succeed); /* duplicate test name OK */ TEST_FATAL(3 == CU_get_registry()->uiNumberOfSuites); TEST_FATAL(9 == CU_get_registry()->uiNumberOfTests); /* error - NULL suite (CUEA_IGNORE) */ CU_set_error_action(CUEA_IGNORE); TEST(CUE_NOSUITE == CU_run_test(NULL, pTest1)); TEST(CUE_NOSUITE == CU_get_error()); /* error - NULL suite (CUEA_FAIL) */ CU_set_error_action(CUEA_FAIL); TEST(CUE_NOSUITE == CU_run_test(NULL, pTest1)); TEST(CUE_NOSUITE == CU_get_error()); /* error - NULL test (CUEA_ABORT) */ CU_set_error_action(CUEA_ABORT); f_exit_called = CU_FALSE; CU_run_test(NULL, pTest1); TEST(CU_TRUE == f_exit_called); f_exit_called = CU_FALSE; /* error - NULL test (CUEA_IGNORE) */ CU_set_error_action(CUEA_IGNORE); TEST(CUE_NOTEST == CU_run_test(pSuite1, NULL)); TEST(CUE_NOTEST == CU_get_error()); /* error - NULL test (CUEA_FAIL) */ CU_set_error_action(CUEA_FAIL); TEST(CUE_NOTEST == CU_run_test(pSuite1, NULL)); TEST(CUE_NOTEST == CU_get_error()); /* error - NULL test (CUEA_ABORT) */ CU_set_error_action(CUEA_ABORT); f_exit_called = CU_FALSE; CU_run_test(pSuite1, NULL); TEST(CU_TRUE == f_exit_called); f_exit_called = CU_FALSE; /* error - test not in suite (CUEA_IGNORE) */ CU_set_error_action(CUEA_IGNORE); TEST(CUE_TEST_NOT_IN_SUITE == CU_run_test(pSuite3, pTest1)); TEST(CUE_TEST_NOT_IN_SUITE == CU_get_error()); /* error - NULL test (CUEA_FAIL) */ CU_set_error_action(CUEA_FAIL); TEST(CUE_TEST_NOT_IN_SUITE == CU_run_test(pSuite3, pTest1)); TEST(CUE_TEST_NOT_IN_SUITE == CU_get_error()); /* error - NULL test (CUEA_ABORT) */ CU_set_error_action(CUEA_ABORT); f_exit_called = CU_FALSE; CU_run_test(pSuite3, pTest1); TEST(CU_TRUE == f_exit_called); f_exit_called = CU_FALSE; /* run each test (CUEA_IGNORE) */ CU_set_error_action(CUEA_IGNORE); TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest1)); /* all suite/tests active */ test_results(0,0,0,1,0,0,1,1,0,0); TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest2)); test_results(0,0,0,1,1,0,1,0,1,1); TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest3)); test_results(0,0,0,1,0,0,1,1,0,0); TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest4)); test_results(0,0,0,1,1,0,1,0,1,1); TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest5)); test_results(0,0,0,1,0,0,1,1,0,0); TEST(CUE_SINIT_FAILED == CU_run_test(pSuite2, pTest6)); test_results(0,1,0,0,0,0,0,0,0,1); TEST(CUE_SINIT_FAILED == CU_run_test(pSuite2, pTest7)); test_results(0,1,0,0,0,0,0,0,0,1); TEST(CUE_SCLEAN_FAILED == CU_run_test(pSuite3, pTest8)); test_results(0,1,0,1,1,0,1,0,1,2); TEST(CUE_SCLEAN_FAILED == CU_run_test(pSuite3, pTest9)); test_results(0,1,0,1,0,0,1,1,0,1); CU_set_suite_active(pSuite1, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUITE_INACTIVE == CU_run_test(pSuite1, pTest1)); /* suite inactive */ test_results(0,0,1,0,0,0,0,0,0,0); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_test(pSuite1, pTest1)); test_results(0,0,1,0,0,0,0,0,0,1); CU_set_suite_active(pSuite1, CU_TRUE); CU_set_test_active(pTest1, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_TEST_INACTIVE == CU_run_test(pSuite1, pTest1)); /* test inactive */ test_results(0,0,0,0,0,1,0,0,0,0); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_TEST_INACTIVE == CU_run_test(pSuite1, pTest1)); test_results(0,0,0,0,1,1,0,0,0,1); CU_set_test_active(pTest1, CU_TRUE); CU_set_suite_initfunc(pSuite1, &suite_fail); TEST(CUE_SINIT_FAILED == CU_run_test(pSuite1, pTest1)); /* change a suite init function */ CU_set_suite_initfunc(pSuite1, NULL); test_results(0,1,0,0,0,0,0,0,0,1); CU_set_suite_cleanupfunc(pSuite1, &suite_fail); TEST(CUE_SCLEAN_FAILED == CU_run_test(pSuite1, pTest1)); /* change a suite cleanup function */ CU_set_suite_cleanupfunc(pSuite1, NULL); test_results(0,1,0,1,0,0,1,1,0,1); CU_set_test_func(pTest8, &test_succeed); TEST(CUE_SCLEAN_FAILED == CU_run_test(pSuite3, pTest8)); /* change a test function */ CU_set_test_func(pTest8, &test_fail); test_results(0,1,0,1,0,0,1,1,0,1); /* run each test (CUEA_FAIL) */ CU_set_error_action(CUEA_FAIL); TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest1)); /* suite/test active */ test_results(0,0,0,1,0,0,1,1,0,0); TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest2)); test_results(0,0,0,1,1,0,1,0,1,1); TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest3)); test_results(0,0,0,1,0,0,1,1,0,0); TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest4)); test_results(0,0,0,1,1,0,1,0,1,1); TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest5)); test_results(0,0,0,1,0,0,1,1,0,0); TEST(CUE_SINIT_FAILED == CU_run_test(pSuite2, pTest6)); test_results(0,1,0,0,0,0,0,0,0,1); TEST(CUE_SINIT_FAILED == CU_run_test(pSuite2, pTest7)); test_results(0,1,0,0,0,0,0,0,0,1); TEST(CUE_SCLEAN_FAILED == CU_run_test(pSuite3, pTest8)); test_results(0,1,0,1,1,0,1,0,1,2); TEST(CUE_SCLEAN_FAILED == CU_run_test(pSuite3, pTest9)); test_results(0,1,0,1,0,0,1,1,0,1); CU_set_suite_active(pSuite2, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SUITE_INACTIVE == CU_run_test(pSuite2, pTest7)); /* suite inactive */ test_results(0,0,1,0,0,0,0,0,0,0); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SUITE_INACTIVE == CU_run_test(pSuite2, pTest7)); test_results(0,0,1,0,0,0,0,0,0,1); CU_set_suite_active(pSuite2, CU_TRUE); CU_set_test_active(pTest7, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); TEST(CUE_SINIT_FAILED == CU_run_test(pSuite2, pTest7)); /* test inactive */ test_results(0,1,0,0,0,0,0,0,0,1); CU_set_fail_on_inactive(CU_TRUE); TEST(CUE_SINIT_FAILED == CU_run_test(pSuite2, pTest7)); test_results(0,1,0,0,0,0,0,0,0,1); CU_set_test_active(pTest7, CU_TRUE); CU_set_suite_initfunc(pSuite2, NULL); TEST(CUE_SUCCESS == CU_run_test(pSuite2, pTest6)); /* change a suite init function */ CU_set_suite_initfunc(pSuite2, &suite_fail); test_results(0,0,0,1,0,0,1,1,0,0); CU_set_suite_cleanupfunc(pSuite3, NULL); TEST(CUE_SUCCESS == CU_run_test(pSuite3, pTest8)); /* change a suite cleanup function */ CU_set_suite_cleanupfunc(pSuite3, &suite_fail); test_results(0,0,0,1,1,0,1,0,1,1); CU_set_test_func(pTest8, &test_succeed); TEST(CUE_SCLEAN_FAILED == CU_run_test(pSuite3, pTest8)); /* change a test function */ CU_set_test_func(pTest8, &test_fail); test_results(0,1,0,1,0,0,1,1,0,1); /* run each test (CUEA_ABORT) */ CU_set_error_action(CUEA_ABORT); f_exit_called = CU_FALSE; TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest1)); TEST(CU_FALSE == f_exit_called); test_results(0,0,0,1,0,0,1,1,0,0); f_exit_called = CU_FALSE; TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest2)); TEST(CU_FALSE == f_exit_called); test_results(0,0,0,1,1,0,1,0,1,1); f_exit_called = CU_FALSE; TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest3)); TEST(CU_FALSE == f_exit_called); test_results(0,0,0,1,0,0,1,1,0,0); f_exit_called = CU_FALSE; TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest4)); TEST(CU_FALSE == f_exit_called); test_results(0,0,0,1,1,0,1,0,1,1); f_exit_called = CU_FALSE; TEST(CUE_SUCCESS == CU_run_test(pSuite1, pTest5)); TEST(CU_FALSE == f_exit_called); test_results(0,0,0,1,0,0,1,1,0,0); f_exit_called = CU_FALSE; TEST(CUE_SINIT_FAILED == CU_run_test(pSuite2, pTest6)); TEST(CU_TRUE == f_exit_called); test_results(0,1,0,0,0,0,0,0,0,1); f_exit_called = CU_FALSE; TEST(CUE_SINIT_FAILED == CU_run_test(pSuite2, pTest7)); TEST(CU_TRUE == f_exit_called); test_results(0,1,0,0,0,0,0,0,0,1); f_exit_called = CU_FALSE; TEST(CUE_SCLEAN_FAILED == CU_run_test(pSuite3, pTest8)); TEST(CU_TRUE == f_exit_called); test_results(0,1,0,1,1,0,1,0,1,2); f_exit_called = CU_FALSE; TEST(CUE_SCLEAN_FAILED == CU_run_test(pSuite3, pTest9)); TEST(CU_TRUE == f_exit_called); test_results(0,1,0,1,0,0,1,1,0,1); CU_set_suite_active(pSuite2, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); f_exit_called = CU_FALSE; TEST(CUE_SUITE_INACTIVE == CU_run_test(pSuite2, pTest6)); /* suite inactive */ TEST(CU_TRUE == f_exit_called); test_results(0,0,1,0,0,0,0,0,0,0); CU_set_fail_on_inactive(CU_TRUE); f_exit_called = CU_FALSE; TEST(CUE_SUITE_INACTIVE == CU_run_test(pSuite2, pTest6)); TEST(CU_TRUE == f_exit_called); test_results(0,0,1,0,0,0,0,0,0,1); CU_set_suite_active(pSuite2, CU_TRUE); CU_set_test_active(pTest6, CU_FALSE); CU_set_fail_on_inactive(CU_FALSE); f_exit_called = CU_FALSE; TEST(CUE_SINIT_FAILED == CU_run_test(pSuite2, pTest6)); /* test inactive */ TEST(CU_TRUE == f_exit_called); test_results(0,1,0,0,0,0,0,0,0,1); CU_set_fail_on_inactive(CU_TRUE); f_exit_called = CU_FALSE; TEST(CUE_SINIT_FAILED == CU_run_test(pSuite2, pTest6)); TEST(CU_TRUE == f_exit_called); test_results(0,1,0,0,0,0,0,0,0,1); CU_set_test_active(pTest6, CU_TRUE); f_exit_called = CU_FALSE; CU_set_suite_initfunc(pSuite2, NULL); TEST(CUE_SUCCESS == CU_run_test(pSuite2, pTest6)); /* change a suite init function */ CU_set_suite_initfunc(pSuite2, &suite_fail); TEST(CU_FALSE == f_exit_called); test_results(0,0,0,1,0,0,1,1,0,0); f_exit_called = CU_FALSE; CU_set_suite_cleanupfunc(pSuite1, &suite_fail); TEST(CUE_SCLEAN_FAILED == CU_run_test(pSuite1, pTest1)); /* change a suite cleanup function */ CU_set_suite_cleanupfunc(pSuite1, NULL); TEST(CU_TRUE == f_exit_called); test_results(0,1,0,1,0,0,1,1,0,1); f_exit_called = CU_FALSE; CU_set_test_func(pTest8, &test_succeed); TEST(CUE_SCLEAN_FAILED == CU_run_test(pSuite3, pTest8)); /* change a test function */ CU_set_test_func(pTest8, &test_fail); TEST(CU_TRUE == f_exit_called); test_results(0,1,0,1,0,0,1,1,0,1); /* clean up after testing */ CU_set_error_action(CUEA_IGNORE); CU_cleanup_registry(); } /*-------------------------------------------------*/ /* tests CU_assertImplementation() * CU_get_failure_list() * CU_clear_previous_results() */ static void test_CU_assertImplementation(void) { CU_Test dummy_test; CU_Suite dummy_suite; CU_pFailureRecord pFailure1 = NULL; CU_pFailureRecord pFailure2 = NULL; CU_pFailureRecord pFailure3 = NULL; CU_pFailureRecord pFailure4 = NULL; CU_pFailureRecord pFailure5 = NULL; CU_pFailureRecord pFailure6 = NULL; CU_clear_previous_results(); TEST(NULL == CU_get_failure_list()); TEST(0 == CU_get_number_of_asserts()); TEST(0 == CU_get_number_of_failures()); TEST(0 == CU_get_number_of_failure_records()); /* fool CU_assertImplementation into thinking test run is in progress */ f_pCurTest = &dummy_test; f_pCurSuite = &dummy_suite; /* asserted value is CU_TRUE*/ TEST(CU_TRUE == CU_assertImplementation(CU_TRUE, 100, "Nothing happened 0.", "dummy0.c", "dummy_func0", CU_FALSE)); TEST(NULL == CU_get_failure_list()); TEST(1 == CU_get_number_of_asserts()); TEST(0 == CU_get_number_of_failures()); TEST(0 == CU_get_number_of_failure_records()); TEST(CU_TRUE == CU_assertImplementation(CU_TRUE, 101, "Nothing happened 1.", "dummy1.c", "dummy_func1", CU_FALSE)); TEST(NULL == CU_get_failure_list()); TEST(2 == CU_get_number_of_asserts()); TEST(0 == CU_get_number_of_failures()); TEST(0 == CU_get_number_of_failure_records()); /* asserted value is CU_FALSE */ TEST(CU_FALSE == CU_assertImplementation(CU_FALSE, 102, "Something happened 2.", "dummy2.c", "dummy_func2", CU_FALSE)); TEST(NULL != CU_get_failure_list()); TEST(3 == CU_get_number_of_asserts()); TEST(1 == CU_get_number_of_failures()); TEST(1 == CU_get_number_of_failure_records()); TEST(CU_FALSE == CU_assertImplementation(CU_FALSE, 103, "Something happened 3.", "dummy3.c", "dummy_func3", CU_FALSE)); TEST(NULL != CU_get_failure_list()); TEST(4 == CU_get_number_of_asserts()); TEST(2 == CU_get_number_of_failures()); TEST(2 == CU_get_number_of_failure_records()); TEST(CU_FALSE == CU_assertImplementation(CU_FALSE, 104, "Something happened 4.", "dummy4.c", "dummy_func4", CU_FALSE)); TEST(NULL != CU_get_failure_list()); TEST(5 == CU_get_number_of_asserts()); TEST(3 == CU_get_number_of_failures()); TEST(3 == CU_get_number_of_failure_records()); if (3 == CU_get_number_of_failure_records()) { pFailure1 = CU_get_failure_list(); TEST(102 == pFailure1->uiLineNumber); TEST(!strcmp("dummy2.c", pFailure1->strFileName)); TEST(!strcmp("Something happened 2.", pFailure1->strCondition)); TEST(&dummy_test == pFailure1->pTest); TEST(&dummy_suite == pFailure1->pSuite); TEST(NULL != pFailure1->pNext); TEST(NULL == pFailure1->pPrev); pFailure2 = pFailure1->pNext; TEST(103 == pFailure2->uiLineNumber); TEST(!strcmp("dummy3.c", pFailure2->strFileName)); TEST(!strcmp("Something happened 3.", pFailure2->strCondition)); TEST(&dummy_test == pFailure2->pTest); TEST(&dummy_suite == pFailure2->pSuite); TEST(NULL != pFailure2->pNext); TEST(pFailure1 == pFailure2->pPrev); pFailure3 = pFailure2->pNext; TEST(104 == pFailure3->uiLineNumber); TEST(!strcmp("dummy4.c", pFailure3->strFileName)); TEST(!strcmp("Something happened 4.", pFailure3->strCondition)); TEST(&dummy_test == pFailure3->pTest); TEST(&dummy_suite == pFailure3->pSuite); TEST(NULL == pFailure3->pNext); TEST(pFailure2 == pFailure3->pPrev); } else FAIL("Unexpected number of failure records."); /* confirm destruction of failure records */ pFailure4 = pFailure1; pFailure5 = pFailure2; pFailure6 = pFailure3; TEST(0 != test_cunit_get_n_memevents(pFailure4)); TEST(test_cunit_get_n_allocations(pFailure4) != test_cunit_get_n_deallocations(pFailure4)); TEST(0 != test_cunit_get_n_memevents(pFailure5)); TEST(test_cunit_get_n_allocations(pFailure5) != test_cunit_get_n_deallocations(pFailure5)); TEST(0 != test_cunit_get_n_memevents(pFailure6)); TEST(test_cunit_get_n_allocations(pFailure6) != test_cunit_get_n_deallocations(pFailure6)); CU_clear_previous_results(); TEST(0 != test_cunit_get_n_memevents(pFailure4)); TEST(test_cunit_get_n_allocations(pFailure4) == test_cunit_get_n_deallocations(pFailure4)); TEST(0 != test_cunit_get_n_memevents(pFailure5)); TEST(test_cunit_get_n_allocations(pFailure5) == test_cunit_get_n_deallocations(pFailure5)); TEST(0 != test_cunit_get_n_memevents(pFailure6)); TEST(test_cunit_get_n_allocations(pFailure6) == test_cunit_get_n_deallocations(pFailure6)); TEST(0 == CU_get_number_of_asserts()); TEST(0 == CU_get_number_of_successes()); TEST(0 == CU_get_number_of_failures()); TEST(0 == CU_get_number_of_failure_records()); f_pCurTest = NULL; f_pCurSuite = NULL; } /*-------------------------------------------------*/ static void test_add_failure(void) { CU_Test test1; CU_Suite suite1; CU_pFailureRecord pFailure1 = NULL; CU_pFailureRecord pFailure2 = NULL; CU_pFailureRecord pFailure3 = NULL; CU_pFailureRecord pFailure4 = NULL; CU_RunSummary run_summary = {"", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; /* test under memory exhaustion */ test_cunit_deactivate_malloc(); add_failure(&pFailure1, &run_summary, CUF_AssertFailed, 100, "condition 0", "file0.c", &suite1, &test1); TEST(NULL == pFailure1); TEST(0 == run_summary.nFailureRecords); test_cunit_activate_malloc(); /* normal operation */ add_failure(&pFailure1, &run_summary, CUF_AssertFailed, 101, "condition 1", "file1.c", &suite1, &test1); TEST(1 == run_summary.nFailureRecords); if (TEST(NULL != pFailure1)) { TEST(101 == pFailure1->uiLineNumber); TEST(!strcmp("condition 1", pFailure1->strCondition)); TEST(!strcmp("file1.c", pFailure1->strFileName)); TEST(&test1 == pFailure1->pTest); TEST(&suite1 == pFailure1->pSuite); TEST(NULL == pFailure1->pNext); TEST(NULL == pFailure1->pPrev); TEST(pFailure1 == f_last_failure); TEST(0 != test_cunit_get_n_memevents(pFailure1)); TEST(test_cunit_get_n_allocations(pFailure1) != test_cunit_get_n_deallocations(pFailure1)); } add_failure(&pFailure1, &run_summary, CUF_AssertFailed, 102, "condition 2", "file2.c", NULL, &test1); TEST(2 == run_summary.nFailureRecords); if (TEST(NULL != pFailure1)) { TEST(101 == pFailure1->uiLineNumber); TEST(!strcmp("condition 1", pFailure1->strCondition)); TEST(!strcmp("file1.c", pFailure1->strFileName)); TEST(&test1 == pFailure1->pTest); TEST(&suite1 == pFailure1->pSuite); TEST(NULL != pFailure1->pNext); TEST(NULL == pFailure1->pPrev); TEST(pFailure1 != f_last_failure); TEST(0 != test_cunit_get_n_memevents(pFailure1)); TEST(test_cunit_get_n_allocations(pFailure1) != test_cunit_get_n_deallocations(pFailure1)); if (TEST(NULL != (pFailure2 = pFailure1->pNext))) { TEST(102 == pFailure2->uiLineNumber); TEST(!strcmp("condition 2", pFailure2->strCondition)); TEST(!strcmp("file2.c", pFailure2->strFileName)); TEST(&test1 == pFailure2->pTest); TEST(NULL == pFailure2->pSuite); TEST(NULL == pFailure2->pNext); TEST(pFailure1 == pFailure2->pPrev); TEST(pFailure2 == f_last_failure); TEST(0 != test_cunit_get_n_memevents(pFailure2)); TEST(test_cunit_get_n_allocations(pFailure2) != test_cunit_get_n_deallocations(pFailure2)); } } pFailure3 = pFailure1; pFailure4 = pFailure2; clear_previous_results(&run_summary, &pFailure1); TEST(0 == run_summary.nFailureRecords); TEST(0 != test_cunit_get_n_memevents(pFailure3)); TEST(test_cunit_get_n_allocations(pFailure3) == test_cunit_get_n_deallocations(pFailure3)); TEST(0 != test_cunit_get_n_memevents(pFailure4)); TEST(test_cunit_get_n_allocations(pFailure4) == test_cunit_get_n_deallocations(pFailure4)); } /*-------------------------------------------------*/ void test_cunit_TestRun(void) { test_cunit_start_tests("TestRun.c"); test_message_handlers(); test_CU_fail_on_inactive(); test_CU_run_all_tests(); test_CU_run_suite(); test_CU_run_test(); test_CU_assertImplementation(); test_add_failure(); test_cunit_end_tests(); } #endif /* CUNIT_BUILD_TESTS */ cunit-2.1-3-dfsg/CUnit/Sources/Framework/Util.c000066400000000000000000000415131260701235000212420ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004-2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Generic (internal) utility functions used across CUnit. * These were originally distributed across the other CUnit * source files, but were consolidated here for consistency. * * 13/Oct/2001 Initial implementation (AK) * * 26/Jul/2003 Added a function to convert a string containing special * characters into escaped character for XML/HTML usage. (AK) * * 16-Jul-2004 New interface, doxygen comments. (JDS) * * 17-Apr-2006 Added CU_translated_strlen() and CU_number_width(). * Fixed off-by-1 error in CU_translate_special_characters(), * modifying implementation & results in some cases. User can * now tell if conversion failed. (JDS) */ /** @file * Utility functions (implementation). */ /** @addtogroup Framework @{ */ #include #include #include #include #include #include "CUnit.h" #include "TestDB.h" #include "Util.h" /*------------------------------------------------------------------------*/ /** * Structure containing mappings of special characters to xml entity codes. * special_char's in the CU_bindings array will be translated during calls * to CU_translate_special_characters(). Add additional chars/replacements * or modify existing ones to change the behavior upon translation. */ static const struct bindings { const char special_char; /**< Special character. */ const char *replacement; /**< Entity code for special character. */ } CU_bindings [] = { {'&', "&"}, {'>', ">"}, {'<', "<"} }; /*------------------------------------------------------------------------*/ /** * Checks whether a character is a special xml character. * This function performs a lookup of the specified character in * the CU_bindings structure. If it is a special character, its * index into the CU_bindings array is returned. If not, -1 is returned. * * @param ch The character to check * @return Index into CU_bindings if a special character, -1 otherwise. */ static int get_index(const char ch) { int length = sizeof(CU_bindings)/sizeof(CU_bindings[0]); int counter; for (counter = 0; counter < length && CU_bindings[counter].special_char != ch; ++counter) { ; } return (counter < length ? counter : -1); } size_t CU_translate_special_characters(const char *szSrc, char *szDest, size_t maxlen) { /* old implementation size_t count = 0; size_t src = 0; size_t dest = 0; size_t length = 0; int conv_index; assert(NULL != szSrc); assert(NULL != szDest); length = strlen(szSrc); memset(szDest, 0, maxlen); while ((dest < maxlen) && (src < length)) { if ((-1 != (conv_index = get_index(szSrc[src]))) && ((dest + strlen(CU_bindings[conv_index].replacement)) < maxlen)) { strcat(szDest, CU_bindings[conv_index].replacement); dest += strlen(CU_bindings[conv_index].replacement); ++count; } else { szDest[dest++] = szSrc[src]; } ++src; } return count; */ size_t count = 0; size_t repl_len; int conv_index; char *dest_start = szDest; assert(NULL != szSrc); assert(NULL != szDest); /* only process if destination buffer not 0-length */ if (maxlen > 0) { while ((maxlen > 0) && (*szSrc != '\0')) { conv_index = get_index(*szSrc); if (-1 != conv_index) { if (maxlen > (repl_len = strlen(CU_bindings[conv_index].replacement))) { memcpy(szDest, CU_bindings[conv_index].replacement, repl_len); szDest += repl_len; maxlen -= repl_len; ++count; } else { maxlen = 0; /* ran out of room - abort conversion */ break; } } else { *szDest++ = *szSrc; --maxlen; } ++szSrc; } if (0 == maxlen) { *dest_start = '\0'; /* ran out of room - return empty string in szDest */ count = 0; } else { *szDest = '\0'; /* had room - make sure szDest has a terminating \0 */ } } return count; } /*------------------------------------------------------------------------*/ size_t CU_translated_strlen(const char* szSrc) { size_t count = 0; int conv_index; assert(NULL != szSrc); while (*szSrc != '\0') { if (-1 != (conv_index = get_index(*szSrc))) { count += strlen(CU_bindings[conv_index].replacement); } else { ++count; } ++szSrc; } return count; } /*------------------------------------------------------------------------*/ int CU_compare_strings(const char* szSrc, const char* szDest) { assert(NULL != szSrc); assert(NULL != szDest); while (('\0' != *szSrc) && ('\0' != *szDest) && (toupper(*szSrc) == toupper(*szDest))) { szSrc++; szDest++; } return (int)(*szSrc - *szDest); } /*------------------------------------------------------------------------*/ void CU_trim(char* szString) { CU_trim_left(szString); CU_trim_right(szString); } /*------------------------------------------------------------------------*/ void CU_trim_left(char* szString) { int nOffset = 0; char* szSrc = szString; char* szDest = szString; assert(NULL != szString); /* Scan for the spaces in the starting of string. */ for (; '\0' != *szSrc; szSrc++, nOffset++) { if (!isspace(*szSrc)) { break; } } for(; (0 != nOffset) && ('\0' != (*szDest = *szSrc)); szSrc++, szDest++) { ; } } /*------------------------------------------------------------------------*/ void CU_trim_right(char* szString) { size_t nLength; char* szSrc = szString; assert(NULL != szString); nLength = strlen(szString); /* * Scan for specs in the end of string. */ for (; (0 != nLength) && isspace(*(szSrc + nLength - 1)); nLength--) { ; } *(szSrc + nLength) = '\0'; } /*------------------------------------------------------------------------*/ size_t CU_number_width(int number) { char buf[33]; snprintf(buf, 33, "%d", number); buf[32] = '\0'; return (strlen(buf)); } /** @} */ #ifdef CUNIT_BUILD_TESTS #include "test_cunit.h" /* Keep BUF_LEN even or trouble ensues below... */ #define BUF_LEN 1000 #define MAX_LEN BUF_LEN/2 static void test_CU_translate_special_characters(void) { char dest_buf[BUF_LEN]; char *dest = dest_buf + MAX_LEN; char ref_buf[BUF_LEN]; const int mask_char = 0x01; /* char written to buffer */ /* set up reference buffer for testing of translated strings */ memset(ref_buf, mask_char, BUF_LEN); /* empty src */ memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("", dest, MAX_LEN)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+1), ref_buf, MAX_LEN-1)); /* 1 char src */ memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("#", dest, 0)); TEST(!strncmp(dest_buf, ref_buf, BUF_LEN)); memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("#", dest, 1)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+1), ref_buf, MAX_LEN-1)); memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("&", dest, 2)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+2), ref_buf, MAX_LEN-2)); memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("&", dest, 4)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+4), ref_buf, MAX_LEN-4)); memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("&", dest, 5)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+5), ref_buf, MAX_LEN-5)); memset(dest_buf, mask_char, BUF_LEN); TEST(1 == CU_translate_special_characters("&", dest, 6)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "&\0", 6)); TEST(!strncmp((dest+6), ref_buf, MAX_LEN-6)); /* maxlen=0 */ memset(dest_buf, mask_char, BUF_LEN); strcpy(dest, "random initialized string"); TEST(0 == CU_translate_special_characters("some <", dest, 0)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strcmp(dest, "random initialized string")); TEST(!strncmp(dest+strlen(dest)+1, ref_buf, MAX_LEN-strlen(dest)-1)); /* maxlen < len(converted szSrc) */ memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("some <", dest, 1)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+1), ref_buf, MAX_LEN-1)); memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("some <", dest, 2)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+2), ref_buf, MAX_LEN-2)); memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("some <", dest, 5)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+5), ref_buf, MAX_LEN-5)); memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("some <", dest, 10)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+10), ref_buf, MAX_LEN-10)); memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("some <", dest, 20)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+20), ref_buf, MAX_LEN-20)); memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("some <", dest, 24)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+24), ref_buf, MAX_LEN-24)); memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("some <", dest, 25)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+25), ref_buf, MAX_LEN-25)); memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("some <", dest, 37)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "\0", 1)); TEST(!strncmp((dest+37), ref_buf, MAX_LEN-37)); /* maxlen > len(converted szSrc) */ memset(dest_buf, mask_char, BUF_LEN); TEST(4 == CU_translate_special_characters("some <", dest, 38)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "some <<string & another>\0", 38)); TEST(!strncmp((dest+38), ref_buf, MAX_LEN-38)); /* maxlen > len(converted szSrc) */ memset(dest_buf, mask_char, BUF_LEN); TEST(4 == CU_translate_special_characters("some <", dest, MAX_LEN)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "some <<string & another>\0", 38)); /* no special characters */ memset(dest_buf, mask_char, BUF_LEN); TEST(0 == CU_translate_special_characters("some string or another", dest, MAX_LEN)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strncmp(dest, "some string or another\0", 23)); /* only special characters */ memset(dest_buf, mask_char, BUF_LEN); TEST(11 == CU_translate_special_characters("<><><<>>&&&", dest, MAX_LEN)); TEST(!strncmp(dest_buf, ref_buf, MAX_LEN)); TEST(!strcmp(dest, "<><><<>>&&&")); } static void test_CU_translated_strlen(void) { /* empty src */ TEST(0 == CU_translated_strlen("")); /* 1 char src */ TEST(1 == CU_translated_strlen("#")); TEST(5 == CU_translated_strlen("&")); TEST(4 == CU_translated_strlen("<")); TEST(4 == CU_translated_strlen(">")); TEST(1 == CU_translated_strlen("?")); /* 2 char src */ TEST(2 == CU_translated_strlen("#@")); TEST(10 == CU_translated_strlen("&&")); TEST(9 == CU_translated_strlen(">&")); /* longer src */ TEST(37 == CU_translated_strlen("some <")); TEST(22 == CU_translated_strlen("some string or another")); TEST(47 == CU_translated_strlen("<><><<>>&&&")); } static void test_CU_compare_strings(void) { TEST(0 == CU_compare_strings("","")); TEST(0 == CU_compare_strings("@","@")); TEST(0 == CU_compare_strings("D","d")); TEST(0 == CU_compare_strings("s1","s1")); TEST(0 == CU_compare_strings("s1","S1")); TEST(0 != CU_compare_strings("s1","s12")); TEST(0 == CU_compare_strings("this is string 1","tHIS iS sTRING 1")); TEST(0 == CU_compare_strings("i have \t a tab!","I have \t a tab!")); TEST(0 != CU_compare_strings("not the same"," not the same")); } static void test_CU_trim(void) { char string[MAX_LEN]; strcpy(string, ""); CU_trim(string); TEST(!strcmp("", string)); strcpy(string, " "); CU_trim(string); TEST(!strcmp("", string)); strcpy(string, " "); CU_trim(string); TEST(!strcmp("", string)); strcpy(string, " b"); CU_trim(string); TEST(!strcmp("b", string)); strcpy(string, " B"); CU_trim(string); TEST(!strcmp("B", string)); strcpy(string, "s "); CU_trim(string); TEST(!strcmp("s", string)); strcpy(string, "S "); CU_trim(string); TEST(!strcmp("S", string)); strcpy(string, " 5 "); CU_trim(string); TEST(!strcmp("5", string)); strcpy(string, "~ & ^ ( ^ "); CU_trim(string); TEST(!strcmp("~ & ^ ( ^", string)); strcpy(string, " ~ & ^ ( ^"); CU_trim(string); TEST(!strcmp("~ & ^ ( ^", string)); strcpy(string, " ~ & ^ ( ^ "); CU_trim(string); TEST(!strcmp("~ & ^ ( ^", string)); } static void test_CU_trim_left(void) { char string[MAX_LEN]; strcpy(string, ""); CU_trim_left(string); TEST(!strcmp("", string)); strcpy(string, " "); CU_trim_left(string); TEST(!strcmp("", string)); strcpy(string, " "); CU_trim_left(string); TEST(!strcmp("", string)); strcpy(string, " b"); CU_trim_left(string); TEST(!strcmp("b", string)); strcpy(string, " B"); CU_trim_left(string); TEST(!strcmp("B", string)); strcpy(string, "s "); CU_trim_left(string); TEST(!strcmp("s ", string)); strcpy(string, "S "); CU_trim_left(string); TEST(!strcmp("S ", string)); strcpy(string, " 5 "); CU_trim_left(string); TEST(!strcmp("5 ", string)); strcpy(string, "~ & ^ ( ^ "); CU_trim_left(string); TEST(!strcmp("~ & ^ ( ^ ", string)); strcpy(string, " ~ & ^ ( ^"); CU_trim_left(string); TEST(!strcmp("~ & ^ ( ^", string)); strcpy(string, " ~ & ^ ( ^ "); CU_trim_left(string); TEST(!strcmp("~ & ^ ( ^ ", string)); } static void test_CU_trim_right(void) { char string[MAX_LEN]; strcpy(string, ""); CU_trim_right(string); TEST(!strcmp("", string)); strcpy(string, " "); CU_trim_right(string); TEST(!strcmp("", string)); strcpy(string, " "); CU_trim_right(string); TEST(!strcmp("", string)); strcpy(string, " b"); CU_trim_right(string); TEST(!strcmp(" b", string)); strcpy(string, " B"); CU_trim_right(string); TEST(!strcmp(" B", string)); strcpy(string, "s "); CU_trim_right(string); TEST(!strcmp("s", string)); strcpy(string, "S "); CU_trim_right(string); TEST(!strcmp("S", string)); strcpy(string, " 5 "); CU_trim_right(string); TEST(!strcmp(" 5", string)); strcpy(string, "~ & ^ ( ^ "); CU_trim_right(string); TEST(!strcmp("~ & ^ ( ^", string)); strcpy(string, " ~ & ^ ( ^"); CU_trim_right(string); TEST(!strcmp(" ~ & ^ ( ^", string)); strcpy(string, " ~ & ^ ( ^ "); CU_trim_right(string); TEST(!strcmp(" ~ & ^ ( ^", string)); } static void test_CU_number_width(void) { TEST(1 == CU_number_width(0)); TEST(1 == CU_number_width(1)); TEST(2 == CU_number_width(-1)); TEST(4 == CU_number_width(2346)); TEST(7 == CU_number_width(-257265)); TEST(9 == CU_number_width(245723572)); TEST(9 == CU_number_width(-45622572)); } void test_cunit_Util(void) { test_cunit_start_tests("Util.c"); test_CU_translate_special_characters(); test_CU_translated_strlen(); test_CU_compare_strings(); test_CU_trim(); test_CU_trim_left(); test_CU_trim_right(); test_CU_number_width(); test_cunit_end_tests(); } #endif /* CUNIT_BUILD_TESTS */ cunit-2.1-3-dfsg/CUnit/Sources/Makefile.am000066400000000000000000000035061260701235000202600ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in BASIC_OBJECTS_SHARED = Basic/Basic.lo AUTOMATED_OBJECTS_SHARED = Automated/Automated.lo CONSOLE_OBJECTS_SHARED = Console/Console.lo CURSES_OBJECTS_SHARED = Curses/Curses.lo FRAMEWORK_OBJECTS_SHARED = \ Framework/CUError.lo \ Framework/MyMem.lo \ Framework/TestDB.lo \ Framework/TestRun.lo \ Framework/Util.lo FRAMEWORK_OBJECT_FILES_SHARED = $(FRAMEWORK_OBJECTS_SHARED) FRAMEWORK_COMPILE_DIRS = Framework if ENABLE_AUTOMATED AUTOMATED_OBJECT_FILES_SHARED = $(AUTOMATED_OBJECTS_SHARED) AUTOMATED_COMPILE_DIRS = Automated endif if ENABLE_BASIC BASIC_OBJECT_FILES_SHARED = $(BASIC_OBJECTS_SHARED) BASIC_COMPILE_DIRS = Basic endif if ENABLE_CONSOLE CONSOLE_OBJECT_FILES_SHARED = $(CONSOLE_OBJECTS_SHARED) CONSOLE_COMPILE_DIRS = Console endif if ENABLE_CURSES CURSES_OBJECT_FILES_SHARED = $(CURSES_OBJECTS_SHARED) CURSES_COMPILE_DIRS = Curses endif if ENABLE_TEST TEST_OBJECT_FILES = \ Framework/CUError_test.o \ Framework/MyMem_test.o \ Framework/TestDB_test.o \ Framework/TestRun_test.o \ Framework/Util_test.o TEST_COMPILE_DIRS = Test endif COMPILE_DIRS = \ $(FRAMEWORK_COMPILE_DIRS) \ $(AUTOMATED_COMPILE_DIRS) \ $(BASIC_COMPILE_DIRS) \ $(CONSOLE_COMPILE_DIRS) \ $(CURSES_COMPILE_DIRS) \ . \ $(TEST_COMPILE_DIRS) OBJECT_FILES_SHARED = \ $(FRAMEWORK_OBJECT_FILES_SHARED) \ $(AUTOMATED_OBJECT_FILES_SHARED) \ $(BASIC_OBJECT_FILES_SHARED) \ $(CONSOLE_OBJECT_FILES_SHARED) \ $(CURSES_OBJECT_FILES_SHARED) TEST_OBJECTS = $(TEST_OBJECT_FILES) SUBDIRS = $(COMPILE_DIRS) lib_LTLIBRARIES = libcunit.la libcunit_la_SOURCES = libcunit_la_LIBADD = $(OBJECT_FILES_SHARED) libcunit_la_LDFLAGS = -version-info @LIBTOOL_CURRENT@:@LIBTOOL_REVISION@:@LIBTOOL_AGE@ if ENABLE_TEST noinst_LIBRARIES = libcunit_test.a libcunit_test_a_SOURCES = libcunit_test_a_LIBADD = $(TEST_OBJECTS) endif cunit-2.1-3-dfsg/CUnit/Sources/Makefile.in000066400000000000000000000623321260701235000202730ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = CUnit/Sources DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru AM_V_AR = $(am__v_AR_@AM_V@) am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) am__v_AR_0 = @echo " AR " $@; am__v_AR_1 = libcunit_test_a_AR = $(AR) $(ARFLAGS) @ENABLE_TEST_TRUE@libcunit_test_a_DEPENDENCIES = $(TEST_OBJECTS) am_libcunit_test_a_OBJECTS = libcunit_test_a_OBJECTS = $(am_libcunit_test_a_OBJECTS) am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(libdir)" LTLIBRARIES = $(lib_LTLIBRARIES) libcunit_la_DEPENDENCIES = $(OBJECT_FILES_SHARED) am_libcunit_la_OBJECTS = libcunit_la_OBJECTS = $(am_libcunit_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = libcunit_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libcunit_la_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcunit_test_a_SOURCES) $(libcunit_la_SOURCES) DIST_SOURCES = $(libcunit_test_a_SOURCES) $(libcunit_la_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = Framework Automated Basic Console Curses . Test DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ BASIC_OBJECTS_SHARED = Basic/Basic.lo AUTOMATED_OBJECTS_SHARED = Automated/Automated.lo CONSOLE_OBJECTS_SHARED = Console/Console.lo CURSES_OBJECTS_SHARED = Curses/Curses.lo FRAMEWORK_OBJECTS_SHARED = \ Framework/CUError.lo \ Framework/MyMem.lo \ Framework/TestDB.lo \ Framework/TestRun.lo \ Framework/Util.lo FRAMEWORK_OBJECT_FILES_SHARED = $(FRAMEWORK_OBJECTS_SHARED) FRAMEWORK_COMPILE_DIRS = Framework @ENABLE_AUTOMATED_TRUE@AUTOMATED_OBJECT_FILES_SHARED = $(AUTOMATED_OBJECTS_SHARED) @ENABLE_AUTOMATED_TRUE@AUTOMATED_COMPILE_DIRS = Automated @ENABLE_BASIC_TRUE@BASIC_OBJECT_FILES_SHARED = $(BASIC_OBJECTS_SHARED) @ENABLE_BASIC_TRUE@BASIC_COMPILE_DIRS = Basic @ENABLE_CONSOLE_TRUE@CONSOLE_OBJECT_FILES_SHARED = $(CONSOLE_OBJECTS_SHARED) @ENABLE_CONSOLE_TRUE@CONSOLE_COMPILE_DIRS = Console @ENABLE_CURSES_TRUE@CURSES_OBJECT_FILES_SHARED = $(CURSES_OBJECTS_SHARED) @ENABLE_CURSES_TRUE@CURSES_COMPILE_DIRS = Curses @ENABLE_TEST_TRUE@TEST_OBJECT_FILES = \ @ENABLE_TEST_TRUE@ Framework/CUError_test.o \ @ENABLE_TEST_TRUE@ Framework/MyMem_test.o \ @ENABLE_TEST_TRUE@ Framework/TestDB_test.o \ @ENABLE_TEST_TRUE@ Framework/TestRun_test.o \ @ENABLE_TEST_TRUE@ Framework/Util_test.o @ENABLE_TEST_TRUE@TEST_COMPILE_DIRS = Test COMPILE_DIRS = \ $(FRAMEWORK_COMPILE_DIRS) \ $(AUTOMATED_COMPILE_DIRS) \ $(BASIC_COMPILE_DIRS) \ $(CONSOLE_COMPILE_DIRS) \ $(CURSES_COMPILE_DIRS) \ . \ $(TEST_COMPILE_DIRS) OBJECT_FILES_SHARED = \ $(FRAMEWORK_OBJECT_FILES_SHARED) \ $(AUTOMATED_OBJECT_FILES_SHARED) \ $(BASIC_OBJECT_FILES_SHARED) \ $(CONSOLE_OBJECT_FILES_SHARED) \ $(CURSES_OBJECT_FILES_SHARED) TEST_OBJECTS = $(TEST_OBJECT_FILES) SUBDIRS = $(COMPILE_DIRS) lib_LTLIBRARIES = libcunit.la libcunit_la_SOURCES = libcunit_la_LIBADD = $(OBJECT_FILES_SHARED) libcunit_la_LDFLAGS = -version-info @LIBTOOL_CURRENT@:@LIBTOOL_REVISION@:@LIBTOOL_AGE@ @ENABLE_TEST_TRUE@noinst_LIBRARIES = libcunit_test.a @ENABLE_TEST_TRUE@libcunit_test_a_SOURCES = @ENABLE_TEST_TRUE@libcunit_test_a_LIBADD = $(TEST_OBJECTS) all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu CUnit/Sources/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu CUnit/Sources/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libcunit_test.a: $(libcunit_test_a_OBJECTS) $(libcunit_test_a_DEPENDENCIES) $(EXTRA_libcunit_test_a_DEPENDENCIES) $(AM_V_at)-rm -f libcunit_test.a $(AM_V_AR)$(libcunit_test_a_AR) libcunit_test.a $(libcunit_test_a_OBJECTS) $(libcunit_test_a_LIBADD) $(AM_V_at)$(RANLIB) libcunit_test.a install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; \ locs=`for p in $$list; do echo $$p; done | \ sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ sort -u`; \ test -z "$$locs" || { \ echo rm -f $${locs}; \ rm -f $${locs}; \ } libcunit.la: $(libcunit_la_OBJECTS) $(libcunit_la_DEPENDENCIES) $(EXTRA_libcunit_la_DEPENDENCIES) $(AM_V_CCLD)$(libcunit_la_LINK) -rpath $(libdir) $(libcunit_la_OBJECTS) $(libcunit_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ clean-noinstLIBRARIES mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-libLTLIBRARIES .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libLTLIBRARIES \ clean-libtool clean-noinstLIBRARIES cscopelist-am ctags \ ctags-am distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-libLTLIBRARIES install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-libLTLIBRARIES # 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: cunit-2.1-3-dfsg/CUnit/Sources/Test/000077500000000000000000000000001260701235000171375ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Test/.deps/000077500000000000000000000000001260701235000201505ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Test/.deps/test_cunit.Po000066400000000000000000000135051260701235000226350ustar00rootroot00000000000000test_cunit.o: test_cunit.c \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdarg.h \ /usr/include/stdio.h /usr/include/sys/cdefs.h \ /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ /usr/include/string.h /usr/include/strings.h \ /usr/include/secure/_string.h /usr/include/time.h \ /usr/include/_structs.h /usr/include/sys/_structs.h \ /usr/include/sys/_types/_timespec.h /usr/include/sys/_types/_clock_t.h \ /usr/include/sys/_types/_time_t.h ../../../CUnit/Headers/CUnit.h \ /usr/include/math.h ../../../CUnit/Headers/CUError.h \ /usr/include/errno.h /usr/include/sys/errno.h \ ../../../CUnit/Headers/TestDB.h /usr/include/setjmp.h \ ../../../CUnit/Headers/TestRun.h ../../../CUnit/Headers/MyMem.h \ ../../../CUnit/Headers/Util.h ../../../CUnit/Headers/CUnit_intl.h \ test_cunit.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdarg.h: /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: /usr/include/time.h: /usr/include/_structs.h: /usr/include/sys/_structs.h: /usr/include/sys/_types/_timespec.h: /usr/include/sys/_types/_clock_t.h: /usr/include/sys/_types/_time_t.h: ../../../CUnit/Headers/CUnit.h: /usr/include/math.h: ../../../CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: ../../../CUnit/Headers/TestDB.h: /usr/include/setjmp.h: ../../../CUnit/Headers/TestRun.h: ../../../CUnit/Headers/MyMem.h: ../../../CUnit/Headers/Util.h: ../../../CUnit/Headers/CUnit_intl.h: test_cunit.h: cunit-2.1-3-dfsg/CUnit/Sources/Test/Jamfile000066400000000000000000000055561260701235000204440ustar00rootroot00000000000000# # Jamfile to build CUnit - internal testing # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP CUnit Sources Test ; TEST_PROG = test_cunit ; SubDirHdrs $(CUNIT_HDR_DIR) ; SubDirCcFlags -I$(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Test -DCUNIT_BUILD_TESTS -DCUNIT_DO_NOT_DEFINE_UNLESS_BUILDING_TESTS -DMEMTRACE ; # set location for target, source, and temporary files LOCATE_TARGET = $(BUILD_DIR)$(SLASH)CUnit$(SLASH)test ; SEARCH_SOURCE += $(TOP)$(SLASH)CUnit $(TOP)$(SLASH)CUnit$(SLASH)Headers $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Framework ; SOURCES = test_cunit.c CUError.c MyMem.c TestDB.c TestRun.c Util.c ; if $(BUILD_AUTOMATED) { SEARCH_SOURCE += $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Automated ; SOURCES += Automated.c ; } if $(BUILD_BASIC) { SEARCH_SOURCE += $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Basic ; SOURCES += Basic.c ; } if $(BUILD_CONSOLE) { SEARCH_SOURCE += $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Console ; SOURCES += Console.c ; } if $(BUILD_CURSES) { SEARCH_SOURCE += $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Curses ; SOURCES += Curses.c ; } if $(BUILD_WINDOWS) { SEARCH_SOURCE += $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Win ; SOURCES += Win.c ; } # extra symbolic targets for building test program DEPENDS test : $(TEST_PROG)$(SUFEXE) ; NOTFILE test ; if $(BUILD_TEST) { Main $(TEST_PROG) : $(SOURCES) ; MakeLocate $(TEST_PROG)$(SUFEXE) : $(BUILD_DIR) ; LINKLIBS on $(TEST_PROG)$(SUFEXE) = $(SYS_LIBS) ; if $(NT) { if ($(BCCROOT) || ($(TOOLSET) = BORLANDC)) { # need to fix Borland to include library location LINKFLAGS on $(TEST_PROG)$(SUFEXE) += -L$(STDLIBPATH) -tWC ; } else if $(MSVCNT) || $(TOOLSET) = VISUALC) { # VC won't allow use of local exit() without link flag LINKFLAGS on $(TEST_PROG)$(SUFEXE) += /FORCE:MULTIPLE ; } } if $(INSTALL_TEST_DIR) { InstallCUnitBin $(INSTALL_TEST_DIR) : $(TEST_PROG)$(SUFEXE) ; } } cunit-2.1-3-dfsg/CUnit/Sources/Test/Makefile.am000066400000000000000000000005631260701235000211770ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in if ENABLE_TEST AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers testdir=${datadir}/@PACKAGE@/Test test_PROGRAMS = test_cunit test_cunit_SOURCES = test_cunit.c test_cunit_LDADD = ../libcunit_test.a test_cunit_LDFLAGS = -L.. INCLUDES = -DMEMTRACE -DCUNIT_BUILD_TESTS -DCUNIT_DO_NOT_DEFINE_UNLESS_BUILDING_TESTS endif cunit-2.1-3-dfsg/CUnit/Sources/Test/Makefile.in000066400000000000000000000472761260701235000212240ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_TEST_TRUE@test_PROGRAMS = test_cunit$(EXEEXT) subdir = CUnit/Sources/Test DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(testdir)" PROGRAMS = $(test_PROGRAMS) am__test_cunit_SOURCES_DIST = test_cunit.c @ENABLE_TEST_TRUE@am_test_cunit_OBJECTS = test_cunit.$(OBJEXT) test_cunit_OBJECTS = $(am_test_cunit_OBJECTS) @ENABLE_TEST_TRUE@test_cunit_DEPENDENCIES = ../libcunit_test.a AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = test_cunit_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(test_cunit_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(test_cunit_SOURCES) DIST_SOURCES = $(am__test_cunit_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ @ENABLE_TEST_TRUE@AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers @ENABLE_TEST_TRUE@testdir = ${datadir}/@PACKAGE@/Test @ENABLE_TEST_TRUE@test_cunit_SOURCES = test_cunit.c @ENABLE_TEST_TRUE@test_cunit_LDADD = ../libcunit_test.a @ENABLE_TEST_TRUE@test_cunit_LDFLAGS = -L.. @ENABLE_TEST_TRUE@INCLUDES = -DMEMTRACE -DCUNIT_BUILD_TESTS -DCUNIT_DO_NOT_DEFINE_UNLESS_BUILDING_TESTS all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu CUnit/Sources/Test/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu CUnit/Sources/Test/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-testPROGRAMS: $(test_PROGRAMS) @$(NORMAL_INSTALL) @list='$(test_PROGRAMS)'; test -n "$(testdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(testdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(testdir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(testdir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(testdir)$$dir" || exit $$?; \ } \ ; done uninstall-testPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(test_PROGRAMS)'; test -n "$(testdir)" || 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)$(testdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(testdir)" && rm -f $$files clean-testPROGRAMS: @list='$(test_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 test_cunit$(EXEEXT): $(test_cunit_OBJECTS) $(test_cunit_DEPENDENCIES) $(EXTRA_test_cunit_DEPENDENCIES) @rm -f test_cunit$(EXEEXT) $(AM_V_CCLD)$(test_cunit_LINK) $(test_cunit_OBJECTS) $(test_cunit_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_cunit.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(testdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-testPROGRAMS \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-testPROGRAMS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-testPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ clean-libtool clean-testPROGRAMS cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip install-testPROGRAMS \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-testPROGRAMS # 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: cunit-2.1-3-dfsg/CUnit/Sources/Test/test_cunit.c000066400000000000000000000072041260701235000214670ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2004-2006 Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Support for unit tests of CUnit framework * * 12-Aug-2004 Initial implementation. (JDS) * * 02-May-2006 Added internationalization hooks. (JDS) */ /** @file * CUnit internal testingfunctions (implementation). */ /** @addtogroup Internal @{ */ #include #include #include #include #include #include "CUnit.h" #include "MyMem.h" #include "Util.h" #include "CUnit_intl.h" #include "test_cunit.h" static unsigned int f_nTests = 0; static unsigned int f_nFailures = 0; static unsigned int f_nTests_stored = 0; static unsigned int f_nFails_stored = 0; static clock_t f_start_time; static void test_cunit_initialize(void); static void test_cunit_report_results(void); int main() { /* No line buffering. */ setbuf(stdout, NULL); test_cunit_initialize(); fprintf(stdout, "\n%s", _("Testing CUnit internals...")); /* individual module test functions go here */ test_cunit_CUError(); test_cunit_MyMem(); test_cunit_TestDB(); test_cunit_TestRun(); test_cunit_Util(); test_cunit_report_results(); CU_cleanup_registry(); return 0; } void test_cunit_start_tests(const char* strName) { fprintf(stdout, _("\n testing %s ... "), strName); f_nTests_stored = f_nTests; f_nFails_stored = f_nFailures; } void test_cunit_end_tests(void) { fprintf(stdout, _("%d assertions, %d failures"), f_nTests - f_nTests_stored, f_nFailures - f_nFails_stored); } void test_cunit_add_test(void) { ++f_nTests; } void test_cunit_add_failure(void) { ++f_nFailures; } unsigned int test_cunit_test_count(void) { return f_nTests; } unsigned int test_cunit_failure_count(void) { return f_nFailures; } void test_cunit_initialize(void) { f_nTests = 0; f_nFailures = 0; f_start_time = clock(); } void test_cunit_report_results(void) { fprintf(stdout, "\n\n---------------------------" "\n%s" "\n---------------------------" "\n %s%d" "\n %s%d" "\n %s%d" "\n\n%s%8.3f%s\n", _("CUnit Internal Test Results"), _("Total Number of Assertions: "), f_nTests, _("Successes: "), f_nTests-f_nFailures, _("Failures: "), f_nFailures, _("Total test time = "), ((double)clock() - (double)f_start_time)/(double)CLOCKS_PER_SEC, _(" seconds.")); } CU_BOOL test_cunit_assert_impl(CU_BOOL value, const char* condition, const char* file, unsigned int line) { test_cunit_add_test(); if (CU_FALSE == value) { test_cunit_add_failure(); printf(_("\nTEST FAILED: File '%s', Line %d, Condition '%s.'\n"), file, line, condition); } return value; } cunit-2.1-3-dfsg/CUnit/Sources/Test/test_cunit.h000066400000000000000000000070731260701235000215000ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2004-2006 Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Unit test for CUnit framework * * 12-Aug-2004 Initial implementation. (JDS) * 14-Apr-2006 Added PASS(). (JDS) */ /** @file * Interface for CUnit internal testing functions. * Because the CUnit framework cannot be modified during a test * run, CUnit cannot be used directly to test itself. That is, * individual functions could set up and initiate CUnit test runs, * but the functions themselves cannot be run as CUnit test functions. *

* The approach taken here is to set up a mimimal test framework to * keep track of logical tests. The various unit test functions are * then free to use the CUnit framework as needed. */ /** @addtogroup Internal @{ */ #ifndef CUNIT_TEST_CUNIT_H_SEEN #define CUNIT_TEST_CUNIT_H_SEEN #include "CUnit.h" #ifdef CUNIT_BUILD_TESTS #ifdef __cplusplus extern "C" { #endif /** Notify the test system that a set of tests is starting. * Optional - for reporting purposes only. * @param strName Name to use to designate this set of tests. */ void test_cunit_start_tests(const char* strName); /** Notify the test system that a set of tests is complete. * Optional - for reporting purposes only. */ void test_cunit_end_tests(void); void test_cunit_add_test(void); /**< Register running a test (assertion). */ void test_cunit_add_failure(void); /**< Register failure of a test. */ unsigned int test_cunit_test_count(void); /**< Retrieve the number of tests run. */ unsigned int test_cunit_failure_count(void); /**< Retrieve the number of failed tests. */ /** Implementation of test assertion. */ CU_BOOL test_cunit_assert_impl(CU_BOOL value, const char* condition, const char* file, unsigned int line); /** Test a logical condition. * Use of this macro allows clients to register a tested * assertion with automatic recordkeeping and reporting * of failures and run counts. The return value is a CU_BOOL * having the same value as the logical condition tested. * As such, it may be used in logial expressions itself. */ #define TEST(x) test_cunit_assert_impl((x), #x, __FILE__, __LINE__) /** Test a logical condition with return on failure. * This macro is the same as the TEST() macro, except that it * issues a return statement on failure. * It should not be used as a logical condition itself. */ #define TEST_FATAL(x) if (!test_cunit_assert_impl((x), #x, __FILE__, __LINE__)) return /** Record a success. */ #define PASS() test_cunit_add_test() /** Record a failure. */ #define FAIL(cond_str) test_cunit_assert_impl(CU_FALSE, cond_str, __FILE__, __LINE__) #ifdef __cplusplus } #endif #endif /* CUNIT_BUILD_TESTS */ #endif /* CUNIT_TEST_CUNIT_H_SEEN */ cunit-2.1-3-dfsg/CUnit/Sources/Win/000077500000000000000000000000001260701235000167555ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/Win/Win.c000066400000000000000000000031351260701235000176600ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004,2005,2006 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * >>> UNDER CONSTRUCTION <<< * * Contains implementation of windows interface. * * 2001 Initial implementation. (AK) * * 18-Jul-2004 New interface. (JDS) */ #include #include "Win.h" #include "resource.h" #include "CUnit.h" static LRESULT CALLBACK DialogMessageHandler(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { CU_UNREFERENCED_PARAMETER(hDlg); /* not used at this point */ CU_UNREFERENCED_PARAMETER(message); CU_UNREFERENCED_PARAMETER(lParam); switch((int)wParam) { default: break; } return 0; } void CU_win_run_tests(void) { HWND hWndDlg = CreateDialog(NULL, (LPCTSTR)IDD_MAIN, NULL, (DLGPROC)DialogMessageHandler); (void) hWndDlg; } cunit-2.1-3-dfsg/CUnit/Sources/Win/Win.h000066400000000000000000000027411260701235000176670ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2004 Jerry D. St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * >>> UNDER CONSTRUCTION <<< * * Contains function definitions for windows programs. * * Created By : Jerry St.Clair on 5-Jul-2004 * Last Modified : 18-Jul-2004 * Comment : This file was missing from the 1-1.1 distribtion, new interface * EMail : jds2@users.sourceforge.net * */ #ifndef CUNIT_WIN_H_SEEN #define CUNIT_WIN_H_SEEN #include "CUnit.h" #ifdef __cplusplus extern "C" { #endif CU_EXPORT extern void CU_win_run_tests(void); #ifdef USE_DEPRECATED_CUNIT_NAMES #define win_run_tests() CU_win_run_tests() #endif /* USE_DEPRECATED_CUNIT_NAMES */ #ifdef __cplusplus } #endif #endif /* CUNIT_WIN_H_SEEN */ cunit-2.1-3-dfsg/CUnit/Sources/Win/resource.h000066400000000000000000000007351260701235000207620ustar00rootroot00000000000000/*{{NO_DEPENDENCIES}} Microsoft Developer Studio generated include file. Used by CUnit.rc */ #define IDD_DIALOG1 101 #define IDD_MAIN 101 /* Next default values for new objects */ #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 102 #define _APS_NEXT_COMMAND_VALUE 40001 #define _APS_NEXT_CONTROL_VALUE 1000 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif cunit-2.1-3-dfsg/CUnit/Sources/wxWidget/000077500000000000000000000000001260701235000200225ustar00rootroot00000000000000cunit-2.1-3-dfsg/CUnit/Sources/wxWidget/Makefile.am000066400000000000000000000002711260701235000220560ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in AM_CPPFLAGS = -I$(top_srcdir)/CUnit/Headers noinst_LTLIBRARIES = libcunitconsole.la libcunitconsole_la_SOURCES = \ Console.c cunit-2.1-3-dfsg/CUnit/Sources/wxWidget/icon_suite_active.xpm000066400000000000000000000034471260701235000242540ustar00rootroot00000000000000/* XPM */ static char * icon_suite_active_xpm[] = { "32 32 41 1", " c None", ". c #2D59A3", "+ c #295193", "@ c #6E96D8", "# c #638ED5", "$ c #2F5DA9", "% c #305FAC", "& c #3161B1", "* c #3263B4", "= c #3366B9", "- c #3467BC", "; c #356AC1", "> c #9FB9E5", ", c #AAC1E8", "' c #B3C8EB", ") c #B9CDED", "! c #BED0EE", "~ c #C6D6F0", "{ c #CBD9F1", "] c #D2DFF4", "^ c #DAE5F6", "/ c #E1E9F7", "( c #E5EDF9", "_ c #EAF0FA", ": c #EDF2FB", "< c #F0F5FC", "[ c #F5F8FD", "} c #FAFCFE", "| c #FDFEFF", "1 c #98B5E4", "2 c #90AFE2", "3 c #AEC5EA", "4 c #F7F9FD", "5 c #89A9DF", "6 c #7FA2DD", "7 c #779DDB", "8 c #5D89D3", "9 c #5584D1", "0 c #4A7CCE", "a c #4075CC", "b c #3A70CA", " ", " ", " ", " ", " ", " ", " ......+ ", " .@@@@@#$ ", " .@@@@@@@. ", " .$%%%&&*==-----;;;;. ", " .>,')!~{]^/(_:<[}||. ", " .1>,')!~{]^/(_:<[}|. ", " .21>,3)!~{]^/(_:<[4. ", " .521>,3)!~{]^/(_:<[. ", " .6521>,3)!~{]^/(_:<. ", " .76521>,3)!~{]^/(_:. ", " .@76521>,3)!~{]^/(_. ", " .#@76521>,3'!~{]^/(. ", " .8#@76521>,3'!~{]^/. ", " .98#@76521>,3'!~{]^. ", " .098#@76521>,3'!~{]. ", " .a098#@76521>,3'!~{. ", " .ba098#@76521>,3'!~. ", " ...................& ", " ", " ", " ", " ", " ", " ", " ", " "}; cunit-2.1-3-dfsg/CUnit/Sources/wxWidget/icon_suite_active_open.xpm000066400000000000000000000034541260701235000252730ustar00rootroot00000000000000/* XPM */ static char * icon_suite_active_open_xpm[] = { "32 32 41 1", " c None", ". c #274D8B", "+ c #295193", "@ c #6E96D8", "# c #5D89D3", "$ c #3569BF", "% c #2D59A3", "& c #2F5DA9", "* c #5584D1", "= c #305FAC", "- c #779DDB", "; c #7FA2DD", "> c #85A7DF", ", c #89A9DF", "' c #90AFE2", ") c #B3C8EB", "! c #D2DFF4", "~ c #DAE5F6", "{ c #E1E9F7", "] c #E5EDF9", "^ c #EAF0FA", "/ c #F0F5FC", "( c #F5F8FD", "_ c #FAFCFE", ": c #FDFEFF", "< c #3161B1", "[ c #98B5E4", "} c #9FB9E5", "| c #AAC1E8", "1 c #B9CDED", "2 c #BED0EE", "3 c #C6D6F0", "4 c #CEDCF2", "5 c #4075CC", "6 c #356AC1", "7 c #638ED5", "8 c #E7EEF9", "9 c #3366B9", "0 c #4A7CCE", "a c #CBD9F1", "b c #214279", " ", " ", " ", " ", " ", " ", " ", " ......+ ", " +@@@@@#. ", " +@@@@@@$. ", " +@@@@@@@%++++++++++& ", " +@@@@@@@@@@@@@@@@@@& ", " +@@@@@@@@@@@@@@@@@@& ", " +@@*&&&&&&&&&&&&&&&&&&& ", " +@@=#-;>,')!~{]^/((_::< ", " +@@+[}|)1234!~{]^/((_1& ", " +@56'[}|)1234!~{]^/((& ", " +@=7,'[}|)1234!~{8^/(& ", " +@+-;,'[}|)1234!~{8^4& ", " +59@-;,'[}|)1234!~{8& ", " +=07@-;,'[}|)1234!~{& ", " ++*#7@-;,'[}|)1234!a& ", " b=0*#7@-;,'[}|)1234& ", " b$50*#7@-;,'[}|)123& ", " b..................& ", " ", " ", " ", " ", " ", " ", " "}; cunit-2.1-3-dfsg/CUnit/Sources/wxWidget/icon_suite_inactive.xpm000066400000000000000000000024141260701235000245740ustar00rootroot00000000000000/* XPM */ static char * icon_suite_inactive_xpm[] = { "32 32 5 1", " c None", ". c #000000", "+ c #8DA0B9", "@ c #8399B4", "# c #800000", " ", " ", " ", " ", " ", " ", " ....... ", " .+++++@. ", " .+++++++. ", " .................... ", " .##################. ", " .##################. ", " .##################. ", " .##################. ", " .##################. ", " .##################. ", " .##################. ", " .##################. ", " .##################. ", " .##################. ", " .##################. ", " .##################. ", " .##################. ", " .................... ", " ", " ", " ", " ", " ", " ", " ", " "}; cunit-2.1-3-dfsg/CUnit/Sources/wxWidget/icon_suite_inactive_open.xpm000066400000000000000000000024021260701235000256120ustar00rootroot00000000000000/* XPM */ static char * icon_suite_inactive_open_xpm[] = { "32 32 4 1", " c None", ". c #000000", "+ c #8DA0B9", "@ c #800000", " ", " ", " ", " ", " ", " ", " ", " ....... ", " .+++++.. ", " .++++++.. ", " .+++++++............ ", " .++++++++++++++++++. ", " .++++++++++++++++++. ", " .++.................... ", " .++.@@@@@@@@@@@@@@@@@@. ", " .++.@@@@@@@@@@@@@@@@@@. ", " .+..@@@@@@@@@@@@@@@@@.. ", " .+.@@@@@@@@@@@@@@@@@@. ", " .+.@@@@@@@@@@@@@@@@@@. ", " ...@@@@@@@@@@@@@@@@@.. ", " ..@@@@@@@@@@@@@@@@@@. ", " ..@@@@@@@@@@@@@@@@@@. ", " ..@@@@@@@@@@@@@@@@@.. ", " .@@@@@@@@@@@@@@@@@@. ", " .................... ", " ", " ", " ", " ", " ", " ", " "}; cunit-2.1-3-dfsg/CUnit/Sources/wxWidget/icon_test_active.xpm000066400000000000000000000034461260701235000241010ustar00rootroot00000000000000/* XPM */ static char * icon_test_active_xpm[] = { "32 32 41 1", " c None", ". c #4B82A8", "+ c #74A1BD", "@ c #6B97B6", "# c #5896BE", "$ c #538BB1", "% c #4388B4", "& c #4381AA", "* c #D7E0E9", "= c #7FA6C0", "- c #D1E5F5", "; c #CAE1F3", "> c #C3DDF1", ", c #BCD9EF", "' c #AFD1EC", ") c #A5CCEA", "! c #97C4E7", "~ c #85BBE2", "{ c #71B2DE", "] c #71A8D1", "^ c #4B8EBF", "/ c #E6EAF1", "( c #DAEAF7", "_ c #619BC4", ": c #F1F4F7", "< c #DEEDF8", "[ c #87ABC3", "} c #E5F0F9", "| c #76BAE2", "1 c #63B3DE", "2 c #54A6D8", "3 c #E9F3FA", "4 c #FAFCFE", "5 c #EFF6FC", "6 c #7AC4E5", "7 c #8FB0C3", "8 c #F4F9FD", "9 c #B6D5EE", "0 c #F7FBFD", "a c #FDFDFE", "b c #FFFFFF", " ", " ", " ", " ", " ", " .+++@@##$$%&* ", " =-;>,')!!~{]^/ ", " =(-;>,')!!~]!_: ", " =<(-;>,')!!];!_: ", " [}<||111121]3;!+ ", " [3}<(-;>,')]43;![ ", " [53}<(-;>,']]]]]& ", " [556|||1111122!~$ ", " 78553}<(-;>,9)!!$ ", " 708553}<(-;>,9)!# ", " 7006666|||11119)# ", " 74008553}<(-;>,9@ ", " 744008553}<(-;>,@ ", " 7a46666666|||1;>+ ", " 7aa44008553}<(-;+ ", " 7baa44008553}<(-+ ", " 7bb6666666666|<(= ", " 7bbbaa44008553}<= ", " 7bbbbaa44008553}= ", " 7bbbbbaa44008553[ ", " 7bbbbbbaa4400855[ ", " 77777777777777[[7 ", " ", " ", " ", " ", " "}; cunit-2.1-3-dfsg/CUnit/Sources/wxWidget/icon_test_active_suite_inactive.xpm000066400000000000000000000034461260701235000271740ustar00rootroot00000000000000/* XPM */ static char * icon_test_active_suite_inactive_xpm[] = { "32 32 40 1", " c None", ". c #000000", "+ c #4B82A8", "@ c #74A1BD", "# c #6B97B6", "$ c #5896BE", "% c #538BB1", "& c #4388B4", "* c #4381AA", "= c #D7E0E9", "- c #7FA6C0", "; c #D1E5F5", "> c #CAE1F3", ", c #C3DDF1", "' c #BCD9EF", ") c #AFD1EC", "! c #A5CCEA", "~ c #97C4E7", "{ c #85BBE2", "] c #71B2DE", "^ c #71A8D1", "/ c #4B8EBF", "( c #E6EAF1", "_ c #DAEAF7", ": c #619BC4", "< c #F1F4F7", "[ c #76BAE2", "} c #63B3DE", "| c #54A6D8", "1 c #E9F3FA", "2 c #87ABC3", "3 c #FAFCFE", "4 c #EFF6FC", "5 c #8FB0C3", "6 c #F4F9FD", "7 c #F7FBFD", "8 c #B6D5EE", "9 c #7AC4E5", "0 c #FDFDFE", "a c #FFFFFF", " ", " ", " ", " ", " . . ", " ... +@@@##$$%%&*= ... ", " ...-;>,')!~~{]^/( ... ", " ..._;>,')!~~{^~:< ... ", " ..._;>,')!~~^>~:... ", " ...[[}}}}|}^1>... ", " 2..._;>,')!^3...2 ", " 24..._;>,')^...^* ", " 244...[}}}}...~{% ", " 5644..._;>...!~~% ", " 57644..._...'8!~$ ", " 577999.....}}}8!$ ", " 5377644..._;>,'8# ", " 533776....._;>,'# ", " 50399...9...[}>,@ ", " 5003...644..._;>@ ", " 5a0...77644..._;@ ", " 5a...9999999..._- ", " 5...003377644...- ", " ...aa003377644... ", " ...aaaa003377644... ", " ...aaaaaa003377644... ", " ...55555555555555225... ", " ... ... ", " . . ", " ", " ", " "}; cunit-2.1-3-dfsg/CUnit/Sources/wxWidget/icon_test_inactive.xpm000066400000000000000000000026421260701235000244250ustar00rootroot00000000000000/* XPM */ static char * icon_test_inactive_xpm[] = { "32 32 15 1", " c None", ". c #000000", "+ c #C00000", "@ c #4B8EBF", "# c #97C4E7", "$ c #619BC4", "% c #CAE1F3", "& c #76BAE2", "* c #63B3DE", "= c #54A6D8", "- c #E9F3FA", "; c #74A1BD", "> c #FAFCFE", ", c #87ABC3", "' c #7AC4E5", " ", " ", " ", " ", " ", " ............. ", " .++++++++++.@. ", " .++++++++++.#$. ", " .++++++++++.%#$. ", " .++&&****=*.-%#; ", " .++++++++++.>-%#, ", " .++++++++++...... ", " .++'&&&*****==++. ", " .+++++++++++++++. ", " .+++++++++++++++. ", " .++''''&&&****++. ", " .+++++++++++++++. ", " .+++++++++++++++. ", " .++'''''''&&&*++. ", " .+++++++++++++++. ", " .+++++++++++++++. ", " .++''''''''''&++. ", " .+++++++++++++++. ", " .+++++++++++++++. ", " .+++++++++++++++. ", " .+++++++++++++++. ", " ................. ", " ", " ", " ", " ", " "}; cunit-2.1-3-dfsg/CUnit/Sources/wxWidget/icon_test_inactive_suite_inactive.xpm000066400000000000000000000026231260701235000275170ustar00rootroot00000000000000/* XPM */ static char * icon_test_inactive_suite_inactive_xpm[] = { "32 32 13 1", " c None", ". c #000000", "+ c #C00000", "@ c #4B8EBF", "# c #97C4E7", "$ c #619BC4", "% c #CAE1F3", "& c #76BAE2", "* c #63B3DE", "= c #54A6D8", "- c #E9F3FA", "; c #87ABC3", "> c #7AC4E5", " ", " ", " ", " . . ", " ... ... ", " ................ ... ", " ...++++++++++.@. ... ", " ...+++++++++.#$.... ", " ...++++++++.%#... ", " ....&****=*.-... ", " .+...++++++....#; ", " .++...+++++...... ", " .++>...***...=++. ", " .++++...+...++++. ", " .+++++.....+++++. ", " .++>>>>...****++. ", " .+++++.....+++++. ", " .++++...+...++++. ", " .++>...>>>...*++. ", " .++...+++++...++. ", " .+...+++++++...+. ", " ....>>>>>>>>>.... ", " ...+++++++++++... ", " ...+++++++++++++... ", " ...+++++++++++++++... ", " ....+++++++++++++++.... ", " ... ................. ... ", " . . ", " ", " ", " ", " "}; cunit-2.1-3-dfsg/CUnit/Sources/wxWidget/wxWidget.cpp000066400000000000000000001602171260701235000223370ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2006 Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ /* * Implementation of the wxWidgets Test Interface. * * May 2006 Initial implementation (JDS) */ /** @file * wxWidgets gui test interface (implementation). */ /** @addtogroup wxWidgets @{ */ // For compilers that support precompilation, includes "wx.h". #include #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP // Include your minimal set of headers here, or wx.h #include #endif #include #include #include #include #include #include "icon_suite_active.xpm" #include "icon_suite_active_open.xpm" #include "icon_suite_inactive.xpm" #include "icon_suite_inactive_open.xpm" #include "icon_test_active.xpm" #include "icon_test_inactive.xpm" #include "icon_test_active_suite_inactive.xpm" #include "icon_test_inactive_suite_inactive.xpm" #include "CUnit.h" #include "TestDB.h" #include "Util.h" #include "TestRun.h" #include "MyMem.h" #include "wxWidget.h" #include "CUnit_intl.h" // include after wx.h to customize gettext macros set in wx.h //* New application type for the CUnit wxWidgets interface. class CUnitApp: public wxApp { public: virtual bool OnInit(); //< Initializes the application. }; //* Main window for the CUnit wxWidgets interface class TopFrame: public wxFrame { public: TopFrame(const wxString& title, const wxPoint& pos, const wxSize& size); void SetActiveTopFrame(TopFrame *frame); enum { TreeCtrlIcon_SuiteActive, TreeCtrlIcon_SuiteActiveOpen, TreeCtrlIcon_SuiteInactive, TreeCtrlIcon_SuiteInactiveOpen, TreeCtrlIcon_TestActive, TreeCtrlIcon_TestInactive, TreeCtrlIcon_TestActiveSuiteInactive, TreeCtrlIcon_TestInactiveSuiteInactive, }; // callback functions for running tests static void SuiteStartMessageHandler(const CU_pSuite pSuite); static void TestStartMessageHandler(const CU_pTest pTest, const CU_pSuite pSuite); static void TestCompleteMessageHandler(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure); static void SuiteCompleteMessageHandler(const CU_pSuite pSuite, const CU_pFailureRecord pFailure); protected: void ClearPreviousStats(void); wxTreeItemId FindSuite(CU_pSuite pSuite); wxTreeItemId FindTest(CU_pSuite pSuite, CU_pTest pTest); void ActivateSuiteInfo(void); void DeactivateSuiteInfo(void); void ActivateTestInfo(void); void DeactivateTestInfo(void); void ActivateRunResultInfo(void); void DeactivateRunResultInfo(void); void WriteFailureRecords(wxTextCtrl *textctrl, unsigned int nFailures, CU_pFailureRecord pFailure, bool reset = false); // event procedures void OnQuit(wxCommandEvent& event); void OnAbout(wxCommandEvent& event); void OnTreeSelectionChanged(wxTreeEvent &event); void OnTreeExpandAll(wxCommandEvent& event); void OnTreeCollapseAll(wxCommandEvent& event); void OnActivateSelected(wxCommandEvent& event); void OnDeactivateSelected(wxCommandEvent& event); void OnActivateAllSuites(wxCommandEvent& event); void OnDeactivateAllSuites(wxCommandEvent& event); void OnActivateAll(wxCommandEvent& event); void OnDeactivateAll(wxCommandEvent& event); void OnOptionColorizeTreeItems(wxCommandEvent& event); void OnOptionFailOnInactive(wxCommandEvent& event); void OnRunAll(wxCommandEvent& event); void OnCloseWindow(wxCloseEvent& event); void OnSuiteActiveCheckbox(wxCommandEvent& event); void OnTestActiveCheckbox(wxCommandEvent& event); void OnTreeSelChanged(wxTreeEvent& event); private: // controls needing persistent hooks wxTreeCtrl *m_treectrl; //< wxTreeCtrl holding suite & test references. wxStaticBox *m_suite_info_box; wxStaticText *m_suite_name_label; wxTextCtrl *m_suite_name_text; wxStaticText *m_suite_init_label; wxStaticText *m_suite_init_text; wxStaticText *m_suite_clean_label; wxStaticText *m_suite_clean_text; wxCheckBox *m_suite_active_box; wxStaticBox *m_test_info_box; wxStaticText *m_test_name_label; wxTextCtrl *m_test_name_text; wxCheckBox *m_test_active_box; wxStaticBox *m_result_box; wxStaticText *m_result_ntests_label; wxTextCtrl *m_result_ntests_text; wxStaticText *m_result_nasserts_label; wxTextCtrl *m_result_nasserts_text; wxStaticText *m_result_nfailures_label; wxTextCtrl *m_result_nfailures_text; wxStaticBox *m_failure_listing_box; wxTextCtrl *m_failure_listing_text; wxSizer *m_page2sizer; wxStaticText *m_run_summary_text; wxTextCtrl *m_all_failure_listing_text; bool m_suite_info_active; bool m_test_info_active; bool m_result_info_active; bool m_failure_info_active; static TopFrame *m_ActiveTopFrame; //< The active TopFrame, used in test run event handlers. CU_RunSummary m_RunSummary_suite; //< For storing intermediate test run results. CU_RunSummary m_RunSummary_test; //< For storing intermediate test run results. bool m_option_colorize_tree_items; //< Flag for menu option. bool m_option_fail_on_inactive; //< Flag for menu option. bool m_test_run_complete; //< Flag for whether a test run has been completed DECLARE_EVENT_TABLE() }; IMPLEMENT_APP(CUnitApp) enum { menu_FileExit = 1, menu_ViewExpandAll, menu_ViewCollapseAll, menu_ViewColorizeTreeItems, menu_OptionActivate, menu_OptionActivateSelected, menu_OptionActivateAllSuites, menu_OptionActivateAll, menu_OptionDeactivate, menu_OptionDeactivateSelected, menu_OptionDeactivateAllSuites, menu_OptionDeactivateAll, menu_OptionFailOnInactive, menu_RunRunAll, menu_HelpAbout, checkbox_SuiteActive, checkbox_TestActive, tree_Listing, }; BEGIN_EVENT_TABLE(TopFrame, wxFrame) EVT_MENU(menu_FileExit, TopFrame::OnQuit) EVT_MENU(menu_ViewExpandAll, TopFrame::OnTreeExpandAll) EVT_MENU(menu_ViewCollapseAll, TopFrame::OnTreeCollapseAll) EVT_MENU(menu_OptionActivateSelected, TopFrame::OnActivateSelected) EVT_MENU(menu_OptionActivateAllSuites, TopFrame::OnActivateAllSuites) EVT_MENU(menu_OptionActivateAll, TopFrame::OnActivateAll) EVT_MENU(menu_OptionDeactivateSelected, TopFrame::OnDeactivateSelected) EVT_MENU(menu_OptionDeactivateAllSuites, TopFrame::OnDeactivateAllSuites) EVT_MENU(menu_OptionDeactivateAll, TopFrame::OnDeactivateAll) EVT_MENU(menu_ViewColorizeTreeItems, TopFrame::OnOptionColorizeTreeItems) EVT_MENU(menu_OptionFailOnInactive, TopFrame::OnOptionFailOnInactive) EVT_MENU(menu_RunRunAll, TopFrame::OnRunAll) EVT_MENU(menu_HelpAbout, TopFrame::OnAbout) EVT_CLOSE( TopFrame::OnCloseWindow) EVT_CHECKBOX(checkbox_SuiteActive, TopFrame::OnSuiteActiveCheckbox) EVT_CHECKBOX(checkbox_TestActive, TopFrame::OnTestActiveCheckbox) EVT_TREE_SEL_CHANGED(tree_Listing, TopFrame::OnTreeSelectionChanged) END_EVENT_TABLE() // wxTreeItemData descendent to hold a run data for a CU_pSuite or CU_pTest // The pointer is only held and is never deleted by this class. // This is just a data container, so make all members public. class TreeCUnitRunData : public wxTreeItemData { public: TreeCUnitRunData(void) : nAsserts(0), nFailures(0), pFirstFailure(NULL) {} unsigned long nAsserts; unsigned long nFailures; CU_pFailureRecord pFirstFailure; }; // wxTreeItemData descendent to hold a CU_pSuite pointer // The pointer is only held and is never deleted by this class. // This is just a data container, so make all members public. class TreeSuiteData : public TreeCUnitRunData { public: TreeSuiteData(CU_pSuite pSuite) : pSuite(pSuite), nTestsRun(0) {} CU_pSuite pSuite; unsigned long nTestsRun; }; // wxTreeItemData descendent to hold a CU_pTest pointer // The pointer is only held and is never deleted by this class. // This is just a data container, so make all members public. class TreeTestData : public TreeCUnitRunData { public: TreeTestData(CU_pTest pTest) : pTest(pTest) {} CU_pTest pTest; }; // Test whether an item is a suite (only has parent, not grandparent) static bool isSuite(wxTreeCtrl *tree, wxTreeItemId &item) { bool result = false; wxTreeItemId parent = tree->GetItemParent(item); if ((true == parent.IsOk()) && (false == tree->GetItemParent(parent).IsOk())) { result = true; } return result; } // Test whether an item is a test (has both parent and grandparent) static bool isTest(wxTreeCtrl *tree, wxTreeItemId &item) { bool result = false; wxTreeItemId parent = tree->GetItemParent(item); if ((true == parent.IsOk()) && (true == tree->GetItemParent(parent).IsOk())) { result = true; } return result; } // Format a suite tree item static void FormatTreeItem_Suite(wxTreeCtrl *tree, wxTreeItemId &item, bool isActive) { assert(true == isSuite(tree, item)); if (true == isActive) { tree->SetItemTextColour(item, wxColour("BLACK")); tree->SetItemImage(item, ((true == tree->IsExpanded(item)) ? TopFrame::TreeCtrlIcon_SuiteActiveOpen : TopFrame::TreeCtrlIcon_SuiteActive), wxTreeItemIcon_Normal); } else { tree->SetItemTextColour(item, wxColour("FIREBRICK")); tree->SetItemImage(item, ((true == tree->IsExpanded(item)) ? TopFrame::TreeCtrlIcon_SuiteInactiveOpen : TopFrame::TreeCtrlIcon_SuiteInactive), wxTreeItemIcon_Normal); } } // Format a test tree item static void FormatTreeItem_Test(wxTreeCtrl *tree, wxTreeItemId &item, bool isActiveTest, bool isActiveSuite) { if (true == isActiveTest) { tree->SetItemTextColour(item, wxColour("BLACK")); tree->SetItemImage(item, ((true == isActiveSuite) ? TopFrame::TreeCtrlIcon_TestActive : TopFrame::TreeCtrlIcon_TestActiveSuiteInactive), wxTreeItemIcon_Normal); } else { tree->SetItemTextColour(item, wxColour("FIREBRICK")); tree->SetItemImage(item, ((true == isActiveSuite) ? TopFrame::TreeCtrlIcon_TestInactive : TopFrame::TreeCtrlIcon_TestInactiveSuiteInactive), wxTreeItemIcon_Normal); } } //* Base class for functors operating on a wxTreeCtrl element struct TreeItemFunctorBase { //* Function returning true on success, false on failure virtual bool func(wxTreeCtrl *WXUNUSED(tree), wxTreeItemId &WXUNUSED(item)) = 0; }; //* Apply a functor to each suite in a wxTreeCtrl static void ForEachSuite(wxTreeCtrl *tree, TreeItemFunctorBase &functor) { assert(NULL != tree); wxTreeItemId item = tree->GetRootItem(); wxTreeItemIdValue cookie; item = tree->GetFirstChild(item, cookie); while (true == item.IsOk()) { functor.func(tree, item); item = tree->GetNextSibling(item); } } //* Apply a functor to each test in the specified suite item in a wxTreeCtrl static void ForEachTestInSuite(wxTreeCtrl *tree, wxTreeItemId &suite_item, TreeItemFunctorBase &test_functor) { assert(NULL != tree); if (true == isSuite(tree, suite_item)) { wxTreeItemIdValue cookie; wxTreeItemId test_item = tree->GetFirstChild(suite_item, cookie); while (true == test_item.IsOk()) { test_functor.func(tree, test_item); test_item = tree->GetNextChild(suite_item, cookie); } } } //* Apply a functor to each item in a wxTreeCtrl static void ForEachSuiteAndTest(wxTreeCtrl *tree, TreeItemFunctorBase &suite_functor, TreeItemFunctorBase &test_functor) { assert(NULL != tree); wxTreeItemId suite_item = tree->GetRootItem(); // note - not a suite yet, but will be wxTreeItemIdValue cookie; suite_item = tree->GetFirstChild(suite_item, cookie); while (true == suite_item.IsOk()) { suite_functor.func(tree, suite_item); wxTreeItemId test_item = tree->GetFirstChild(suite_item, cookie); while (true == test_item.IsOk()) { test_functor.func(tree, test_item); test_item = tree->GetNextChild(suite_item, cookie); } suite_item = tree->GetNextSibling(suite_item); } } // Tree item functor - expands node struct TreeItemFunctor_Expand : public TreeItemFunctorBase { virtual bool func(wxTreeCtrl *tree, wxTreeItemId &item) { assert(NULL != tree); tree->Expand(item); return true; } }; static TreeItemFunctor_Expand f_expand_item_functor; // Tree item functor - collapses node struct TreeItemFunctor_Collapse : public TreeItemFunctorBase { virtual bool func(wxTreeCtrl *tree, wxTreeItemId &item) { assert(NULL != tree); tree->Collapse(item); return true; } }; static TreeItemFunctor_Collapse f_collapse_item_functor; // Tree item functor - activates a node if it is a suite struct TreeItemFunctor_ActivateSuite : public TreeItemFunctorBase { virtual bool func(wxTreeCtrl *tree, wxTreeItemId &item) { TreeSuiteData *data = dynamic_cast(tree->GetItemData(item)); if (NULL != data) { // activate the suite data->pSuite->fActive = CU_TRUE; // format the suite item in the tree FormatTreeItem_Suite(tree, item, true); // format each test item in the suite wxTreeItemIdValue cookie; wxTreeItemId test_item = tree->GetFirstChild(item, cookie); while (true == test_item.IsOk()) { TreeTestData *data = dynamic_cast(tree->GetItemData(test_item)); FormatTreeItem_Test(tree, test_item, ((NULL != data) ? (CU_TRUE == data->pTest->fActive) : true), true); test_item = tree->GetNextChild(item, cookie); } return true; } else { return false; } } }; static TreeItemFunctor_ActivateSuite f_activate_suite_item_functor; // Tree item functor - deactivates a node if it is a suite struct TreeItemFunctor_DeactivateSuite : public TreeItemFunctorBase { virtual bool func(wxTreeCtrl *tree, wxTreeItemId &item) { TreeSuiteData *data = dynamic_cast(tree->GetItemData(item)); if (NULL != data) { // deactivate the suite data->pSuite->fActive = CU_FALSE; // format the suite item in the tree FormatTreeItem_Suite(tree, item, false); // format each test item in the suite wxTreeItemIdValue cookie; wxTreeItemId test_item = tree->GetFirstChild(item, cookie); while (true == test_item.IsOk()) { TreeTestData *data = dynamic_cast(tree->GetItemData(test_item)); FormatTreeItem_Test(tree, test_item, ((NULL != data) ? (CU_TRUE == data->pTest->fActive) : true), false); test_item = tree->GetNextChild(item, cookie); } return true; } else { return false; } } }; static TreeItemFunctor_DeactivateSuite f_deactivate_suite_item_functor; // Tree item functor - activates a node if it is a test struct TreeItemFunctor_ActivateTest : public TreeItemFunctorBase { virtual bool func(wxTreeCtrl *tree, wxTreeItemId &item) { TreeTestData *data = dynamic_cast(tree->GetItemData(item)); if (NULL != data) { // activate the test data->pTest->fActive = CU_TRUE; // format the test item in the tree TreeSuiteData *suitedata = dynamic_cast(tree->GetItemData(tree->GetItemParent(item))); FormatTreeItem_Test(tree, item, true, ((NULL != suitedata) ? (CU_TRUE == suitedata->pSuite->fActive) : true)); return true; } else { return false; } } }; static TreeItemFunctor_ActivateTest f_activate_test_item_functor; // Tree item functor - deactivates a node if it is a test struct TreeItemFunctor_DeactivateTest : public TreeItemFunctorBase { virtual bool func(wxTreeCtrl *tree, wxTreeItemId &item) { TreeTestData *data = dynamic_cast(tree->GetItemData(item)); if (NULL != data) { // deactivate the test data->pTest->fActive = CU_FALSE; // format the test item in the tree TreeSuiteData *suitedata = dynamic_cast(tree->GetItemData(tree->GetItemParent(item))); FormatTreeItem_Test(tree, item, false, ((NULL != suitedata) ? (CU_TRUE == suitedata->pSuite->fActive) : true)); return true; } else { return false; } } }; static TreeItemFunctor_DeactivateTest f_deactivate_test_item_functor; // Tree item functor - clears the run stats for a node if it is a suite struct TreeItemFunctor_ClearSuiteStats : public TreeItemFunctorBase { virtual bool func(wxTreeCtrl *tree, wxTreeItemId &item) { TreeSuiteData *data = dynamic_cast(tree->GetItemData(item)); if (NULL != data) { data->nTestsRun = 0; data->nAsserts = 0; data->nFailures = 0; data->pFirstFailure = NULL; return true; } else { return false; } } }; static TreeItemFunctor_ClearSuiteStats f_clear_suite_stats_functor; // Tree item functor - clears the run stats for a node if it is a test struct TreeItemFunctor_ClearTestStats : public TreeItemFunctorBase { virtual bool func(wxTreeCtrl *tree, wxTreeItemId &item) { TreeTestData *data = dynamic_cast(tree->GetItemData(item)); if (NULL != data) { data->nAsserts = 0; data->nFailures = 0; data->pFirstFailure = NULL; return true; } else { return false; } } }; static TreeItemFunctor_ClearTestStats f_clear_test_stats_functor; // Tree item functor - colorize the background color based on failure status struct TreeItemFunctor_ColorizeItemBackground : public TreeItemFunctorBase { virtual bool func(wxTreeCtrl *tree, wxTreeItemId &item) { TreeCUnitRunData *data = dynamic_cast(tree->GetItemData(item)); assert(NULL != data); tree->SetItemBackgroundColour(item, wxColour((data->nFailures > 0) ? "RED" : "GREEN")); return true; } }; static TreeItemFunctor_ColorizeItemBackground f_colorize_item_background; // Tree item functor - resets the background color to white struct TreeItemFunctor_ResetItemBackgroundColor : public TreeItemFunctorBase { virtual bool func(wxTreeCtrl *tree, wxTreeItemId &item) { tree->SetItemBackgroundColour(item, wxColour("WHITE")); return true; } }; static TreeItemFunctor_ResetItemBackgroundColor f_reset_item_background_color; bool CUnitApp::OnInit() { TopFrame *frame = new TopFrame(_("CUnit Testing - wxWidgets Interface"), wxPoint(50,50), wxSize(450,340)); frame->CenterOnScreen(); frame->Show(true); SetTopWindow(frame); return true; } TopFrame *TopFrame::m_ActiveTopFrame = NULL; void TopFrame::ClearPreviousStats(void) { CU_RunSummary initialized_summary = {0,0,0,0,0,0,0,0,0}; ForEachSuiteAndTest(m_treectrl, f_clear_suite_stats_functor, f_clear_test_stats_functor); if (true == m_option_colorize_tree_items) { ForEachSuiteAndTest(m_treectrl, f_reset_item_background_color, f_reset_item_background_color); } m_RunSummary_suite = initialized_summary; m_RunSummary_test = initialized_summary; } void TopFrame::SetActiveTopFrame(TopFrame *frame) { m_ActiveTopFrame = frame; } wxTreeItemId TopFrame::FindSuite(CU_pSuite pSuite) { TreeSuiteData *data; wxTreeItemIdValue cookie; wxTreeItemId suite_item; suite_item = m_treectrl->GetFirstChild(m_treectrl->GetRootItem(), cookie); while (true == suite_item.IsOk()) { data = dynamic_cast(m_treectrl->GetItemData(suite_item)); if (data->pSuite == pSuite) { break; } suite_item = m_treectrl->GetNextSibling(suite_item); } return suite_item; } wxTreeItemId TopFrame::FindTest(CU_pSuite pSuite, CU_pTest pTest) { TreeTestData *data; wxTreeItemIdValue cookie; wxTreeItemId suite_item; wxTreeItemId test_item; suite_item = FindSuite(pSuite); if (!suite_item.IsOk()) { return suite_item; } test_item = m_treectrl->GetFirstChild(suite_item, cookie); while (true == test_item.IsOk()) { data = dynamic_cast(m_treectrl->GetItemData(test_item)); if (data->pTest == pTest) { break; } test_item = m_treectrl->GetNextChild(suite_item, cookie); } return test_item; } void TopFrame::DeactivateSuiteInfo(void) { if (true == m_suite_info_active) { m_suite_info_box->SetForegroundColour("LIGHT GRAY"); m_suite_info_box->Refresh(); m_suite_name_label->SetForegroundColour("LIGHT GRAY"); m_suite_name_label->Refresh(); m_suite_name_text->SetForegroundColour("LIGHT GRAY"); m_suite_name_text->Refresh(); m_suite_name_text->SetValue(_("n/a")); m_suite_init_label->SetForegroundColour("LIGHT GRAY"); m_suite_init_label->Refresh(); m_suite_init_text->SetForegroundColour("LIGHT GRAY"); m_suite_init_text->Refresh(); m_suite_init_text->SetLabel(_("n/a")); m_suite_clean_label->SetForegroundColour("LIGHT GRAY"); m_suite_clean_label->Refresh(); m_suite_clean_text->SetForegroundColour("LIGHT GRAY"); m_suite_clean_text->Refresh(); m_suite_clean_text->SetLabel(_("n/a")); m_suite_active_box->SetForegroundColour("LIGHT GRAY"); m_suite_active_box->Refresh(); m_suite_active_box->Set3StateValue(wxCHK_UNDETERMINED); m_suite_info_active = false; } } void TopFrame::ActivateSuiteInfo(void) { if (false == m_suite_info_active) { m_suite_info_box->SetForegroundColour("BLACK"); m_suite_info_box->Refresh(); m_suite_name_label->SetForegroundColour("BLACK"); m_suite_name_label->Refresh(); m_suite_name_text->SetForegroundColour("BLACKY"); m_suite_name_text->Refresh(); m_suite_init_label->SetForegroundColour("BLACK"); m_suite_init_label->Refresh(); m_suite_init_text->SetForegroundColour("BLACK"); m_suite_init_text->Refresh(); m_suite_clean_label->SetForegroundColour("BLACK"); m_suite_clean_label->Refresh(); m_suite_clean_text->SetForegroundColour("BLACK"); m_suite_clean_text->Refresh(); m_suite_active_box->SetForegroundColour("BLACK"); m_suite_active_box->Refresh(); m_suite_info_active = true; } } void TopFrame::DeactivateTestInfo(void) { if (true == m_test_info_active) { m_test_info_box->SetForegroundColour("LIGHT GRAY"); m_test_info_box->Refresh(); m_test_name_label->SetForegroundColour("LIGHT GRAY"); m_test_name_label->Refresh(); m_test_name_text->SetForegroundColour("LIGHT GRAY"); m_test_name_text->Refresh(); m_test_name_text->SetLabel(_("n/a")); m_test_active_box->SetForegroundColour("LIGHT GRAY"); m_test_active_box->Refresh(); m_test_info_active = false; } } void TopFrame::ActivateTestInfo(void) { if (false == m_test_info_active) { m_test_info_box->SetForegroundColour("BLACK"); m_test_info_box->Refresh(); m_test_name_label->SetForegroundColour("BLACK"); m_test_name_label->Refresh(); m_test_name_text->SetForegroundColour("BLACK"); m_test_name_text->Refresh(); m_test_active_box->SetForegroundColour("BLACK"); m_test_active_box->Refresh(); m_test_active_box->Set3StateValue(wxCHK_UNDETERMINED); m_test_info_active = true; } } void TopFrame::DeactivateRunResultInfo(void) { if (true == m_result_info_active) { m_result_box->SetForegroundColour("LIGHT GRAY"); m_result_box->Refresh(); m_result_ntests_label->SetForegroundColour("LIGHT GRAY"); m_result_ntests_label->Refresh(); m_result_ntests_text->SetForegroundColour("LIGHT GRAY"); m_result_ntests_text->Refresh(); m_result_ntests_text->SetValue(_("n/a")); m_result_nasserts_label->SetForegroundColour("LIGHT GRAY"); m_result_nasserts_label->Refresh(); m_result_nasserts_text->SetForegroundColour("LIGHT GRAY"); m_result_nasserts_text->Refresh(); m_result_nasserts_text->SetValue(_("n/a")); m_result_nfailures_label->SetForegroundColour("LIGHT GRAY"); m_result_nfailures_label->Refresh(); m_result_nfailures_text->SetForegroundColour("LIGHT GRAY"); m_result_nfailures_text->Refresh(); m_result_nfailures_text->SetValue(_("n/a")); m_result_info_active = false; } if (true == m_failure_info_active) { m_failure_listing_box->SetForegroundColour("LIGHT GRAY"); m_failure_listing_box->Refresh(); m_failure_info_active = false; } } void TopFrame::ActivateRunResultInfo(void) { if (false == m_result_info_active) { m_result_box->SetForegroundColour("BLACK"); m_result_box->Refresh(); m_result_ntests_label->SetForegroundColour("BLACK"); m_result_ntests_label->Refresh(); m_result_ntests_text->SetForegroundColour("BLACK"); m_result_ntests_text->Refresh(); m_result_nasserts_label->SetForegroundColour("BLACK"); m_result_nasserts_label->Refresh(); m_result_nasserts_text->SetForegroundColour("BLACK"); m_result_nasserts_text->Refresh(); m_result_nfailures_label->SetForegroundColour("BLACK"); m_result_nfailures_label->Refresh(); m_result_nfailures_text->SetForegroundColour("BLACK"); m_result_nfailures_text->Refresh(); m_result_info_active = true; } if (false == m_failure_info_active) { m_failure_listing_box->SetForegroundColour("BLACK"); m_failure_listing_box->Refresh(); m_failure_info_active = true; } } void TopFrame::WriteFailureRecords(wxTextCtrl *textctrl, unsigned int nFailures, CU_pFailureRecord pFailure, bool reset) { static long failure_number = 0; assert(NULL != textctrl); if (true == reset) { textctrl->Clear(); failure_number = 0; } for (unsigned int i=0 ; istrCondition) ? pFailure->strCondition : _("")) << "\n" << _("Suite: ") << (((NULL != pFailure->pSuite) && (NULL != pFailure->pSuite->pName)) ? pFailure->pSuite->pName : "") << "\n" << _("Test: ") << (((NULL != pFailure->pTest) && (NULL != pFailure->pTest->pName)) ? pFailure->pTest->pName : "") << "\n" << _("Source: ") << ((NULL != pFailure->strFileName) ? pFailure->strFileName : "") << "::" << (long)(pFailure->uiLineNumber) << "\n\n"; pFailure = pFailure->pNext; } } textctrl->ShowPosition(0); } TopFrame::TopFrame(const wxString& title, const wxPoint& pos, const wxSize& size) : wxFrame((wxFrame *)NULL, -1, title, pos, size, wxDEFAULT_FRAME_STYLE), m_option_colorize_tree_items(true), m_option_fail_on_inactive(true), m_test_run_complete(false), m_suite_info_active(true), // set true so will be properly deactivated during function m_test_info_active(true), m_result_info_active(true), m_failure_info_active(true) { wxBusyCursor wait; // INITIALIZE THE MENU SYSTEM // File menu wxMenu *menuFile = new wxMenu; menuFile->Append(menu_FileExit, _("E&xit"), _("Exit the program")); // View menu wxMenu *menuView = new wxMenu; menuView->Append(menu_ViewExpandAll, _("Ex&pand all\tCtrl+P"), _("Expand all suite nodes")); menuView->Append(menu_ViewCollapseAll, _("C&ollapse all\tCtrl+O"), _("Collapse all suite nodes")); menuView->AppendSeparator(); menuView->AppendCheckItem(menu_ViewColorizeTreeItems, _("Use &color"), _("Change background colors to indicate run results.")); menuView->Check(menu_ViewColorizeTreeItems, true); // Option menu wxMenu *menuOption = new wxMenu; menuOption->AppendCheckItem(menu_OptionFailOnInactive, _("Fail on &Inactive"), _("Generate failure events when an inactive suite or test is run.")); menuOption->Check(menu_OptionFailOnInactive, true); menuOption->AppendSeparator(); wxMenu *menuOptionActivate = new wxMenu; menuOptionActivate->Append(menu_OptionActivateSelected, _("&Item\tCtrl+A"), _("Activate the selected item")); menuOptionActivate->Append(menu_OptionActivateAllSuites, _("&Suites"), _("Activate all suites")); menuOptionActivate->Append(menu_OptionActivateAll, _("&All\tCtrl+Shift+A"), _("Activate all suites and tests")); wxMenu *menuOptionDeactivate = new wxMenu; menuOptionDeactivate->Append(menu_OptionDeactivateSelected, _("&Item\tCtrl+D"), _("Deactivate the selected item")); menuOptionDeactivate->Append(menu_OptionDeactivateAllSuites, _("&Suites"), _("Deactivate all suites")); menuOptionDeactivate->Append(menu_OptionDeactivateAll, _("&All\tCtrl+Shift+D"), _("Deactivate all suites and tests")); menuOption->Append(menu_OptionActivateSelected, _("&Activate"), menuOptionActivate); menuOption->Append(menu_OptionDeactivateSelected, _("&Deactivate"), menuOptionDeactivate); // Run menu wxMenu *menuRun = new wxMenu; menuRun->Append(menu_RunRunAll, _("&Run all\tCtrl+r"), _("Run all registered suites")); // Help menu wxMenu *menuHelp = new wxMenu; menuHelp->AppendSeparator(); menuHelp->Append(menu_HelpAbout, _("&About..."), _("About CUnit")); // Apply menu bar to frame wxMenuBar *menuBar = new wxMenuBar; menuBar->Append(menuFile, _("&File")); menuBar->Append(menuView, _("&View")); menuBar->Append(menuOption, _("&Option")); menuBar->Append(menuRun, _("&Run")); menuBar->Append(menuHelp, _("&Help")); SetMenuBar( menuBar ); // CREATE && INITIALIZE THE STATUS BAR CreateStatusBar(); SetStatusText(_("Welcome to CUnit!")); // CREATE & INITIALIZE IMAGE LIST FOR LISTING ICONS wxImageList *images = new wxImageList(16, 16, true); // should correspond to TreeCtrlIcon_xxx enum images->Add(wxBitmap(wxBitmap(wxIcon(icon_suite_active_xpm)).ConvertToImage().Rescale(16, 16))); images->Add(wxBitmap(wxBitmap(wxIcon(icon_suite_active_open_xpm)).ConvertToImage().Rescale(16, 16))); images->Add(wxBitmap(wxBitmap(wxIcon(icon_suite_inactive_xpm)).ConvertToImage().Rescale(16, 16))); images->Add(wxBitmap(wxBitmap(wxIcon(icon_suite_inactive_open_xpm)).ConvertToImage().Rescale(16, 16))); images->Add(wxBitmap(wxBitmap(wxIcon(icon_test_active_xpm)).ConvertToImage().Rescale(16, 16))); images->Add(wxBitmap(wxBitmap(wxIcon(icon_test_inactive_xpm)).ConvertToImage().Rescale(16, 16))); images->Add(wxBitmap(wxBitmap(wxIcon(icon_test_active_suite_inactive_xpm)).ConvertToImage().Rescale(16, 16))); images->Add(wxBitmap(wxBitmap(wxIcon(icon_test_inactive_suite_inactive_xpm)).ConvertToImage().Rescale(16, 16))); // CREATE CONTROLS wxSizer *topsizer = new wxBoxSizer(wxHORIZONTAL); // create tree for suite & test listing and add to sizer m_treectrl = new wxTreeCtrl(this, tree_Listing, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE | wxTR_HIDE_ROOT ); m_treectrl->AssignImageList(images); topsizer->Add(m_treectrl, 2, wxEXPAND | wxALL, 10); // create a sizer to manage page 1 of the notebook wxBoxSizer *page1sizer = new wxBoxSizer(wxVERTICAL); wxNotebook *notebook = new wxNotebook(this, -1); wxPanel *panelinfo = new wxPanel(notebook, -1); this->SetBackgroundColour(notebook->GetBackgroundColour()); // create controls for suite information m_suite_info_box = new wxStaticBox(panelinfo, -1, _("Suite Information")); wxSizer *suiteinfosizer = new wxStaticBoxSizer(m_suite_info_box, wxVERTICAL); wxSizer *bsizerH = new wxBoxSizer(wxHORIZONTAL); m_suite_name_label = new wxStaticText(panelinfo, -1, _("Name:"), wxDefaultPosition, wxSize(75,-1), wxALIGN_RIGHT); bsizerH->Add(m_suite_name_label, 0, wxEXPAND | wxALL, 2); m_suite_name_text = new wxTextCtrl(panelinfo, -1, _("n/a"), wxDefaultPosition, wxDefaultSize, wxNO_BORDER | wxTE_READONLY); m_suite_name_text->SetBackgroundColour(panelinfo->GetBackgroundColour()); bsizerH->Add(m_suite_name_text, 1, wxEXPAND | wxALL, 2); suiteinfosizer->Add(bsizerH, 0, wxEXPAND | wxALL, 1); bsizerH = new wxBoxSizer(wxHORIZONTAL); m_suite_init_label = new wxStaticText(panelinfo, -1, _("Init Func?"), wxDefaultPosition, wxSize(75,-1), wxALIGN_RIGHT); bsizerH->Add(m_suite_init_label, 0, wxEXPAND | wxALL, 2); m_suite_init_text = new wxStaticText(panelinfo, -1, _("n/a"), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE); bsizerH->Add(m_suite_init_text, 1, wxEXPAND | wxALL, 2); suiteinfosizer->Add(bsizerH, 0, wxEXPAND | wxALL, 1); bsizerH = new wxBoxSizer(wxHORIZONTAL); m_suite_clean_label = new wxStaticText(panelinfo, -1, _("Cleanup Func?"), wxDefaultPosition, wxSize(75,-1), wxALIGN_RIGHT); bsizerH->Add(m_suite_clean_label, 0, wxEXPAND | wxALL, 2); m_suite_clean_text = new wxStaticText(panelinfo, -1, _("n/a"), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE); bsizerH->Add(m_suite_clean_text, 1, wxEXPAND | wxALL, 2); suiteinfosizer->Add(bsizerH, 0, wxEXPAND | wxALL, 1); bsizerH = new wxBoxSizer(wxHORIZONTAL); bsizerH->Add(25, 5, 0, wxGROW | wxALL, 2); // spacer m_suite_active_box = new wxCheckBox(panelinfo, checkbox_SuiteActive, _("Active?"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE | wxALIGN_RIGHT); bsizerH->Add(m_suite_active_box, 0, wxALIGN_LEFT | wxEXPAND | wxALL, 1); suiteinfosizer->Add(bsizerH, 0, wxEXPAND | wxALL, 1); page1sizer->Add(suiteinfosizer, 0, wxEXPAND | wxALL, 1); // create controls for test information m_test_info_box = new wxStaticBox(panelinfo, -1, _("Test Information")); wxSizer *testinfosizer = new wxStaticBoxSizer(m_test_info_box, wxVERTICAL); bsizerH = new wxBoxSizer(wxHORIZONTAL); m_test_name_label = new wxStaticText(panelinfo, -1, _("Name:"), wxDefaultPosition, wxSize(75,-1), wxALIGN_RIGHT); bsizerH->Add(m_test_name_label, 0, wxEXPAND | wxALL, 2); m_test_name_text = new wxTextCtrl(panelinfo, -1, _("n/a"), wxDefaultPosition, wxDefaultSize, wxNO_BORDER | wxTE_READONLY); m_test_name_text->SetBackgroundColour(panelinfo->GetBackgroundColour()); bsizerH->Add(m_test_name_text, 1, wxEXPAND | wxALL, 2); testinfosizer->Add(bsizerH, 0, wxEXPAND | wxALL, 1); bsizerH = new wxBoxSizer(wxHORIZONTAL); bsizerH->Add(25, 5, 0, wxGROW | wxALL, 1); // spacer m_test_active_box = new wxCheckBox(panelinfo, checkbox_TestActive, _("Active?"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE | wxALIGN_RIGHT); bsizerH->Add(m_test_active_box, 0, wxALIGN_LEFT | wxEXPAND | wxALL, 1); testinfosizer->Add(bsizerH, 0, wxEXPAND | wxALL, 1); page1sizer->Add(testinfosizer, 0, wxEXPAND | wxALL, 1); // create controls for run result information m_result_box = new wxStaticBox(panelinfo, -1, _("Run Result Information")); wxSizer *resultinfosizer = new wxStaticBoxSizer(m_result_box, wxVERTICAL); bsizerH = new wxBoxSizer(wxHORIZONTAL); m_result_ntests_label = new wxStaticText(panelinfo, -1, _("# Tests:"), wxDefaultPosition, wxSize(75,-1), wxALIGN_RIGHT); bsizerH->Add(m_result_ntests_label, 0, wxEXPAND | wxALL, 2); m_result_ntests_text = new wxTextCtrl(panelinfo, -1, _("n/a"), wxDefaultPosition, wxDefaultSize, wxNO_BORDER | wxTE_READONLY); m_result_ntests_text->SetBackgroundColour(panelinfo->GetBackgroundColour()); bsizerH->Add(m_result_ntests_text, 1, wxEXPAND | wxALL, 2); resultinfosizer->Add(bsizerH, 0, wxEXPAND | wxALL, 1); bsizerH = new wxBoxSizer(wxHORIZONTAL); m_result_nasserts_label = new wxStaticText(panelinfo, -1, _("# Asserts:"), wxDefaultPosition, wxSize(75,-1), wxALIGN_RIGHT); bsizerH->Add(m_result_nasserts_label, 0, wxEXPAND | wxALL, 2); m_result_nasserts_text = new wxTextCtrl(panelinfo, -1, _("n/a"), wxDefaultPosition, wxDefaultSize, wxNO_BORDER | wxTE_READONLY); m_result_nasserts_text->SetBackgroundColour(panelinfo->GetBackgroundColour()); bsizerH->Add(m_result_nasserts_text, 1, wxEXPAND | wxALL, 2); resultinfosizer->Add(bsizerH, 0, wxEXPAND | wxALL, 1); bsizerH = new wxBoxSizer(wxHORIZONTAL); m_result_nfailures_label = new wxStaticText(panelinfo, -1, _("# Failures:"), wxDefaultPosition, wxSize(75,-1), wxALIGN_RIGHT); bsizerH->Add(m_result_nfailures_label, 0, wxEXPAND | wxALL, 2); m_result_nfailures_text = new wxTextCtrl(panelinfo, -1, _("n/a"), wxDefaultPosition, wxDefaultSize, wxNO_BORDER | wxTE_READONLY); m_result_nfailures_text->SetBackgroundColour(panelinfo->GetBackgroundColour()); bsizerH->Add(m_result_nfailures_text, 1, wxEXPAND | wxALL, 2); resultinfosizer->Add(bsizerH, 0, wxEXPAND | wxALL, 1); page1sizer->Add(resultinfosizer, 0, wxEXPAND | wxALL, 1); // create controls for failure listing m_failure_listing_box = new wxStaticBox(panelinfo, -1, _("Failure Listing")); wxSizer *failurelistingsizer = new wxStaticBoxSizer(m_failure_listing_box, wxVERTICAL); m_failure_listing_text = new wxTextCtrl(panelinfo, -1, "", wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY); failurelistingsizer->Add(m_failure_listing_text, 1, wxEXPAND | wxALL, 1); page1sizer->Add(failurelistingsizer, 1, wxEXPAND | wxALL, 1); // add panelinfo to notebook panelinfo->SetSizer(page1sizer); notebook->AddPage(panelinfo, _("Info"), true); // create a sizer to manage page 2 of the notebook m_page2sizer = new wxBoxSizer(wxVERTICAL); wxPanel *panelrunsummary = new wxPanel(notebook, -1); // create controls to display run summary & failure listing m_run_summary_text = new wxStaticText(panelrunsummary, -1, "", wxDefaultPosition, wxSize(75,-1), wxALIGN_LEFT); m_run_summary_text->SetFont(wxFont(notebook->GetFont().GetPointSize(), wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL)); m_page2sizer->Add(m_run_summary_text, 0, wxEXPAND | wxALL, 20); wxSizer *allfailurelistingsizer = new wxStaticBoxSizer(wxVERTICAL, panelrunsummary, _("Failure Listing")); m_all_failure_listing_text = new wxTextCtrl(panelrunsummary, -1, "", wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxTE_READONLY); allfailurelistingsizer->Add(m_all_failure_listing_text, 1, wxEXPAND | wxALL, 1); m_page2sizer->Add(allfailurelistingsizer, 1, wxEXPAND | wxALL, 1); // add panelrunsummary to notebook panelrunsummary->SetSizer(m_page2sizer); notebook->AddPage(panelrunsummary, _("Run Summary"), false); // add notebook to topsizer topsizer->Add(notebook, 3, wxEXPAND | wxALL, 10); SetSizer(topsizer); // use the sizer for layout topsizer->SetSizeHints(this); // set size hints to honour minimum size DeactivateSuiteInfo(); DeactivateTestInfo(); DeactivateRunResultInfo(); // CREATE TESTS AND FILL IN TREE LISTING if (CU_TRUE == create_tests()) { CU_pTestRegistry pRegistry = CU_get_registry(); assert(NULL != pRegistry); wxTreeItemId root_item = m_treectrl->AddRoot(_("Test Registry")); CU_pSuite pSuite = pRegistry->pSuite; while (NULL != pSuite) { wxTreeItemId suite_item = m_treectrl->AppendItem(root_item, pSuite->pName, -1, -1, new TreeSuiteData(pSuite)); FormatTreeItem_Suite(m_treectrl, suite_item, (CU_TRUE == pSuite->fActive)); CU_pTest pTest = pSuite->pTest; while (NULL != pTest) { wxTreeItemId test_item = m_treectrl->AppendItem(suite_item, pTest->pName, -1, -1, new TreeTestData(pTest)); FormatTreeItem_Test(m_treectrl, test_item, (CU_TRUE == pTest->fActive), (CU_TRUE == pSuite->fActive)); pTest = pTest->pNext; } pSuite = pSuite->pNext; } } else { wxMessageBox(_("Tests creation failed!"), _("Test Creation Report"), wxOK | wxICON_EXCLAMATION); } // MAKE SURE CUNIT OPTIONS COORDINATED WITH INTERFACE CU_set_fail_on_inactive((true == m_option_fail_on_inactive) ? CU_TRUE : CU_FALSE); } void TopFrame::OnQuit(wxCommandEvent& WXUNUSED(event)) { Close(true); } void TopFrame::OnCloseWindow(wxCloseEvent& WXUNUSED(event)) { if (CU_FALSE == destroy_tests()) { wxMessageBox(_("Tests destruction failed!"), _("Test Destruction Report"), wxOK | wxICON_EXCLAMATION); } this->Destroy(); } void TopFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) { static wxString msg; if (msg.Len() == 0) { msg << _("CUnit - A Unit Testing Framework for C") << "\n" << _("http://cunit.sourceforge.net/") << "\n\n" << _("Copyright (c) 2001-2006 Anil Kumar, Jerry St.Clair") << "\n\n" << _("Made with wxWidgets:") << "\n" << _("http://www.wxwidgets.org"); } wxMessageBox(msg, _("About CUnit"), wxOK | wxICON_INFORMATION); } void TopFrame::OnTreeExpandAll(wxCommandEvent& WXUNUSED(event)) { ForEachSuite(m_treectrl, f_expand_item_functor); } void TopFrame::OnTreeCollapseAll(wxCommandEvent& WXUNUSED(event)) { ForEachSuite(m_treectrl, f_collapse_item_functor); } void TopFrame::OnTreeSelectionChanged(wxTreeEvent& event) { wxTreeItemId suite_item = event.GetItem(); wxTreeItemId test_item; if (false == suite_item.IsOk()) { DeactivateSuiteInfo(); DeactivateTestInfo(); DeactivateRunResultInfo(); return; } // Action depends on whether the item selected is a suite or test if (isTest(m_treectrl, suite_item)) { test_item = suite_item; suite_item = m_treectrl->GetItemParent(test_item); } // fill in suite info TreeSuiteData *data = dynamic_cast(m_treectrl->GetItemData(suite_item)); CU_pSuite pSuite = data->pSuite; ActivateSuiteInfo(); m_suite_name_text->SetValue(pSuite->pName); m_suite_init_text->SetLabel(wxString(((NULL != pSuite->pInitializeFunc) ? _("Yes") : _("No")))); m_suite_clean_text->SetLabel(wxString(((NULL != pSuite->pCleanupFunc) ? _("Yes") : _("No")))); m_suite_active_box->SetValue((CU_FALSE == pSuite->fActive) ? false : true); if (false == m_test_run_complete) { DeactivateRunResultInfo(); } else { ActivateRunResultInfo(); } if (true == test_item.IsOk()) { // selected item is a test - fill in test info TreeTestData *data = dynamic_cast(m_treectrl->GetItemData(test_item)); CU_pTest pTest = data->pTest; ActivateTestInfo(); // update test information m_test_name_text->SetValue(pTest->pName); m_test_active_box->SetValue((CU_FALSE == pTest->fActive) ? false : true); // update run result information if (true == m_test_run_complete) { m_result_ntests_label->SetForegroundColour("LIGHT GRAY"); m_result_ntests_label->Refresh(); m_result_ntests_text->SetForegroundColour("LIGHT GRAY"); m_result_ntests_text->Refresh(); m_result_ntests_text->SetValue(_("n/a")); wxString text; text << data->nAsserts; m_result_nasserts_text->SetValue(text); text.Clear(); text << data->nFailures; m_result_nfailures_text->SetValue(text); if (0 == data->nFailures) { m_failure_listing_text->SetValue("No failures."); } else { WriteFailureRecords(m_failure_listing_text, data->nFailures, data->pFirstFailure, true); } } } else { // a suite is selected - inactivate test information DeactivateTestInfo(); // update result information for the suite if (true == m_test_run_complete) { m_result_ntests_label->SetForegroundColour("BLACK"); m_result_ntests_label->Refresh(); m_result_ntests_text->SetForegroundColour("BLACK"); m_result_ntests_text->Refresh(); wxString text; text << data->nTestsRun; m_result_ntests_text->SetValue(text); text.Clear(); text << data->nAsserts; m_result_nasserts_text->SetValue(text); text.Clear(); text << data->nFailures; m_result_nfailures_text->SetValue(text); if (0 == data->nFailures) { m_failure_listing_text->SetValue("No failures."); } else { WriteFailureRecords(m_failure_listing_text, data->nFailures, data->pFirstFailure, true); } } } } void TopFrame::OnActivateSelected(wxCommandEvent& WXUNUSED(event)) { wxTreeItemId item = m_treectrl->GetSelection(); if (item.IsOk()) { if (isSuite(m_treectrl, item)) { f_activate_suite_item_functor.func(m_treectrl, item); } else { f_activate_test_item_functor.func(m_treectrl, item); } m_treectrl->SelectItem(item); // re-select item to make sure display is updated } } void TopFrame::OnDeactivateSelected(wxCommandEvent& WXUNUSED(event)) { wxTreeItemId item = m_treectrl->GetSelection(); if (item.IsOk()) { if (isSuite(m_treectrl, item)) { f_deactivate_suite_item_functor.func(m_treectrl, item); } else { f_deactivate_test_item_functor.func(m_treectrl, item); } m_treectrl->SelectItem(item); // re-select item to make sure display is updated } } void TopFrame::OnActivateAllSuites(wxCommandEvent& WXUNUSED(event)) { ForEachSuite(m_treectrl, f_activate_suite_item_functor); m_treectrl->SelectItem(m_treectrl->GetSelection()); // make sure display is updated } void TopFrame::OnDeactivateAllSuites(wxCommandEvent& WXUNUSED(event)) { ForEachSuite(m_treectrl, f_deactivate_suite_item_functor); m_treectrl->SelectItem(m_treectrl->GetSelection()); // make sure display is updated } void TopFrame::OnActivateAll(wxCommandEvent& WXUNUSED(event)) { ForEachSuiteAndTest(m_treectrl, f_activate_suite_item_functor, f_activate_test_item_functor); m_treectrl->SelectItem(m_treectrl->GetSelection()); // make sure display is updated } void TopFrame::OnDeactivateAll(wxCommandEvent& WXUNUSED(event)) { ForEachSuiteAndTest(m_treectrl, f_deactivate_suite_item_functor, f_deactivate_test_item_functor); m_treectrl->SelectItem(m_treectrl->GetSelection()); // make sure display is updated } void TopFrame::OnRunAll(wxCommandEvent& WXUNUSED(event)) { // set up CUnit test run message handlers CU_set_suite_start_handler(&TopFrame::SuiteStartMessageHandler); CU_set_test_start_handler(&TopFrame::TestStartMessageHandler); CU_set_test_complete_handler(&TopFrame::TestCompleteMessageHandler); CU_set_suite_complete_handler(&TopFrame::SuiteCompleteMessageHandler); // this is the active TopFrame to be updated with run results m_ActiveTopFrame = this; // clear previous stats and run tests ClearPreviousStats(); CU_run_all_tests(); m_test_run_complete = true; m_treectrl->SelectItem(m_treectrl->GetSelection()); // trigger updating the results info // fill in run summary results char *summary_cstring = CU_get_run_results_string(); wxString summary_string(summary_cstring); summary_string << "\n" << _("Failure count = ") << CU_get_number_of_failure_records(); CU_FREE(summary_cstring); m_run_summary_text->SetLabel(summary_string); if (0 == CU_get_number_of_failure_records()) { m_all_failure_listing_text->SetValue("No failures."); } else { WriteFailureRecords(m_all_failure_listing_text, CU_get_number_of_failure_records(), CU_get_failure_list(), true); } m_page2sizer->Layout(); } void TopFrame::OnOptionColorizeTreeItems(wxCommandEvent& event) { if (event.IsChecked() && (false == m_option_colorize_tree_items)) { m_option_colorize_tree_items = true; if (m_test_run_complete) { ForEachSuiteAndTest(m_treectrl, f_colorize_item_background, f_colorize_item_background); } } else if (!event.IsChecked() && (true == m_option_colorize_tree_items)) { m_option_colorize_tree_items = false; if (m_test_run_complete) { ForEachSuiteAndTest(m_treectrl, f_reset_item_background_color, f_reset_item_background_color); } } } void TopFrame::OnOptionFailOnInactive(wxCommandEvent& event) { if (event.IsChecked() && (false == m_option_fail_on_inactive)) { m_option_fail_on_inactive = true; CU_set_fail_on_inactive(CU_TRUE); } else if (!event.IsChecked() && (true == m_option_colorize_tree_items)) { m_option_fail_on_inactive = false; CU_set_fail_on_inactive(CU_FALSE); } } void TopFrame::OnSuiteActiveCheckbox(wxCommandEvent& event) { wxTreeItemId suite_item = m_treectrl->GetSelection(); if ((true == m_suite_info_active) && (true == suite_item.IsOk())) { // If a test is selected, act on it's suite if (isTest(m_treectrl, suite_item)) { suite_item = m_treectrl->GetItemParent(suite_item); } CU_pSuite pSuite = dynamic_cast(m_treectrl->GetItemData(suite_item))->pSuite; pSuite->fActive = (true == event.IsChecked()) ? CU_TRUE : CU_FALSE; } else { m_suite_active_box->Set3StateValue(wxCHK_UNDETERMINED); } } void TopFrame::OnTestActiveCheckbox(wxCommandEvent& event) { wxTreeItemId test_item = m_treectrl->GetSelection(); if ((true == m_test_info_active) && (true == test_item.IsOk())) { CU_pTest pTest = dynamic_cast(m_treectrl->GetItemData(test_item))->pTest; pTest->fActive = (true == event.IsChecked()) ? CU_TRUE : CU_FALSE; } else { m_test_active_box->Set3StateValue(wxCHK_UNDETERMINED); } } void TopFrame::SuiteStartMessageHandler(const CU_pSuite pSuite) { CU_UNREFERENCED_PARAMETER(pSuite); assert(NULL != m_ActiveTopFrame); m_ActiveTopFrame->m_RunSummary_suite = *(CU_get_run_summary()); } void TopFrame::TestStartMessageHandler(const CU_pTest pTest, const CU_pSuite pSuite) { CU_UNREFERENCED_PARAMETER(pTest); CU_UNREFERENCED_PARAMETER(pSuite); assert(NULL != m_ActiveTopFrame); m_ActiveTopFrame->m_RunSummary_test = *(CU_get_run_summary()); } void TopFrame::TestCompleteMessageHandler(const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure) { assert(NULL != m_ActiveTopFrame); wxTreeItemId test_item = m_ActiveTopFrame->FindTest(pSuite, pTest); if (test_item.IsOk()) { TopFrame *frame = m_ActiveTopFrame; wxTreeCtrl *tree = frame->m_treectrl; TreeTestData *data = dynamic_cast(tree->GetItemData(test_item)); data->nAsserts = CU_get_number_of_asserts() - frame->m_RunSummary_test.nAsserts; data->nFailures = CU_get_number_of_failure_records() - frame->m_RunSummary_test.nFailureRecords; data->pFirstFailure = pFailure; if (true == frame->m_option_colorize_tree_items) { f_colorize_item_background.func(tree, test_item); } } } void TopFrame::SuiteCompleteMessageHandler(const CU_pSuite pSuite, const CU_pFailureRecord pFailure) { assert(NULL != m_ActiveTopFrame); wxTreeItemId suite_item = m_ActiveTopFrame->FindSuite(pSuite); if (suite_item.IsOk()) { TopFrame *frame = m_ActiveTopFrame; wxTreeCtrl *tree = frame->m_treectrl; TreeSuiteData *data = dynamic_cast(tree->GetItemData(suite_item)); data->nTestsRun = CU_get_number_of_tests_run() - frame->m_RunSummary_suite.nTestsRun; data->nAsserts = CU_get_number_of_asserts() - frame->m_RunSummary_suite.nAsserts; data->nFailures = CU_get_number_of_failure_records() - frame->m_RunSummary_suite.nFailureRecords; data->pFirstFailure = pFailure; if (true == frame->m_option_colorize_tree_items) { f_colorize_item_background.func(tree, suite_item); } } } /* void TopFrame::OnButtonOk(wxCommandEvent& WXUNUSED(event)) { wxString report; wxTreeItemId item = m_treectrl->GetSelection(); if (isSuite(m_treectrl, item)) { TreeSuiteData *data = dynamic_cast(m_treectrl->GetItemData(item)); report << "Suite run summany:\n\n" << "Suite name: " << data->pSuite->pName << "\n" << "# Tests run: " << data->nTestsRun << "\n" << "# Asserts: " << data->nAsserts << "\n" << "# Failures: " << data->nFailures; } else if (isTest(m_treectrl, item)) { TreeTestData *data = dynamic_cast(m_treectrl->GetItemData(item)); report << "Test run summany:\n\n" << "Test name: " << data->pTest->pName << "\n" << "# Asserts: " << data->nAsserts << "\n" << "# Failures: " << data->nFailures; } wxMessageBox(report, "Run summary for selected node", wxOK); } void TopFrame::OnButtonCancel(wxCommandEvent& WXUNUSED(event)) { } */ /** @} */ cunit-2.1-3-dfsg/ChangeLog000066400000000000000000000330661260701235000153350ustar00rootroot00000000000000* Wed Apr 23 2014 Anil Kumar - Ability to build with a non-source directory build root - Fixed files included in the download source file * Tue Oct 14 2010 Martin Gerhardy - release 2.1.1 * Wed Oct 13 2010 Martin Gerhardy - fixed bug #2976958 - fixed other const related warnings * Wed May 10 2006 Jerry St.Clair - modified dtd and xsl files to support inactive suites/tests. - instrumented entire framework/interfaces for gettext (not activated yet, just instrumented source). * Sun Apr 30 2006 Jerry St.Clair - Added ability to deactivate suite/tests dynamically. - Removed constraint that suite/test names be unique. - Added lookup functions to TestDB.[ch] - Changed test run behavior so suite is run even if it has no tests - user may expect init & cleanup functions to be run as long as suite is active. - Modified console: suites/tests selected by number, inactive tests/suites reported, added help function, added option menu. - Modified curses: suites/tests selected by number, inactive tests/suites reported, added help function, added option menu. - Modified automated: inactive suites/tests reported. - Modified docs and internal unit tests for these changes. - Moved doxygen comments for public functions to headers. This will make them more accessible to clients without having to generate doxygen docs. * Wed Mar 22 2006 Jerry St.Clair - release 2.1.0 * Sat Mar 17 2006 Jerry St.Clair - Finalized upgrade of configure.in, Makefile.am. - Upgraded Jamfile set to build shared library on Linux. - Minor changes to repository management strategy. * Mon Feb 13 2006 Anil Kumar (anilsaharan@users.sourceforge.net) - Modified XSL for bgcolor properties and other tags * Sun Jan 28 2006 Jerry St.Clair - Upgraded source based on splint analysis. - Added VC8 project file set. - Changed defaults of some options in configure.in. - Added variables to configure.in and upgraded Jamrules.in conversion. - Updated copyright & change log information in source files. * Wed Aug 03 2005 Anil Kumar - Applied patch (1239181) for building shared library targets. - Applied patch (1250604) for enable options in configure.in. - Modified Makefile.am in various directories for conditional building based on the configuration options selection. Added new selections for the Basic and Console also. * Sun May 08 2005 Jerry St.Clair - Added 'CU_' prefix to BOOL, TRUE, FALSE in Headers/CUnit.h. - Added jam system option to build dll's on Windows. * Sun May 01 2005 Jerry St.Clair - Added callback for suite cleanup failure to TestRun. - Added processing of suite failure to interfaces. - Added output of version number from interfaces. * Sun Apr 24 2005 Jerry St.Clair - Streamlined jam build system. - jam now builds in compiler- and debug-specific subdirectories. - Bug fixes: - minor errors in doc/managing_tests.html. (cunit-Bugs-1161520) - fixed CU_ADD_TEST() macro definition in TestDB.h. (cunit-Bugs-1161527) - changed header Curses.h to CUCurses.h to avoid conflict with system curses.h on Windows. (cunit-Bugs-1185382) - removed const qualifier from CU_get_failure_list() and and CU_get_run_summary() return values. (cunit-Bugs-1106644) * Sun Jan 08 2005 Jerry St.Clair - Bug fix: failures reported incorrectly in Basic interface from basic.c::basic_test_complete_message_handler() (bug report cunit-Bugs-1093861). * Sat Oct 02 2004 Jerry St.Clair - Bug fix: update pReg after registry intialization in TestDB.c::test_CU_add_test(). * Sun Sep 26 2004 Jerry St.Clair - Bug fixes found in internal unit testing. - Update Linux build files. - Add Visual Studio 2003/VC7 solution & project files. * Sun Sep 19 2004 Jerry St.Clair - Changed test message handlers to pass test and suite (not just their names). This is for future use. - Clarified behavior of CU_translate_special_characters() when szDest is too small to hold converted string (found in testing!). - Split out suite and test creation into distinct functions create_suite() & create_test() in TestDB.c. - Moved CU_get_suite_by_name() & CU_get_test_by_name() to TestDB. - Removed need for registry to be initialized for CU_run_suite() and CU_run_test() in TestRun.c (registry no longer holds result info, so this dependence is no longer needed). - Provided functions to turn on & off memory allocation in MyMem.c for use in internal testing. - Initial implementation of internal CUnit testing. - Implement modified registration system (based on Cheung/Aurema code). * Wed Sep 01 2004 Jerry St.Clair - Implemented setjmp/longjmp mechanism for aborting test runs. - Add assertion to CU_assertImplementation() to trap calls outside a registered test function during a test run. - Added CU_PASS and CU_FAIL to assertions in CUnit.h. * Sat Aug 28 2004 Jerry St.Clair - Html documentation implemented. - Jamfile and Makefile.am included for html doc installation. * Sat Aug 21 2004 Jerry St.Clair - initial implementation of jds-v2-expt experimental version containing the following changes. Wed 18-Aug-2004 Jerry St.Clair - Updated manpages, consolidating all docs in CUnit.3. - Jamfiles now only install lib, headers, man, and docs. - Initial shot at having configure generate custom Jamrules from Jamrules.in. - Library & examples now build on Linux (Mandrake 9.1). Wed 11-Aug-2004 Jerry St.Clair - Added new Basic interface and example. Sun 8-Aug-2004 Jerry St.Clair - Bug had been introduced when test functions were allowed to have more than one assertion failure (in v1.1-1 a failed assertion would always return, so max failure = 1). The automated result file was not writing any failure records except the last one. Fixed by changing the behavior of TestRun::run_single_test so that it now sends a pointer to the 1st failure record belonging to the test in question. The handler then only has to walk the rest of the linked list to visit all failures for its test. - Consolidated all test result handling in TestRun. This included moving the failure list head out of CU_TestRegistry into a static variable in TestRun.c and moving assertImplementation into TestRun.c. - Created a structure (CU_RunSummary) and static variable in TestRun.c to hold the run counts and head of the failure record list. - Added tracking of assertions in addition to tests and suites. The counts are now reported in Automated, Console, and Curses. - Added function for retrieval of the entire run summary at once. - Consolidated example test functions in a single function called by each of the example interface programs. Modified Jamfiles. - Made all curses constants & functions static. Fri 30-Jul-2004 Jerry St.Clair - Created new function CU_list_all_to_file() in Automated.c to allow users & other modules to generate a test list file. Consolidated automated_list_all_tests() and automated_list_group_tests() into this new function. - Changed default output file root to "CUnitTest" and name endings for xml files to "-Listing.xml" and "-Results.xml". This makes the names more generic and descriptive. - CU_automated_run_tests no longer automatically generates a listing file. Users should generate a listing explicitly when needed. - Added assertion to protect against file writes when the file pointer is NULL. - xml bug fixes based on xml validation report ( must come before in Automated.c; wrong top element in document type declaration, incorrect element ordering in in MyMem.c). Tue 27-Jul-2004 Jerry St.Clair - fixed bugs in converted curses.c, MyMem.c - removed f_bCleanupResultSet from TestRun.c, since presence of results to be cleaned is indicated by non-null pRegistry->pResult. Sun 18-Jul-2004 Jerry St.Clair - Provided a set of jam build files (ftjam preferred - http://www.freetype.org/jam/index.html) which build on Linux and Windows (Borland and VC++7). - Converted all public names to CU_ prefixed names to minimize potential for name clashes with client code. - Provided support for old interface names when needed. - Modified terminology: 'Test Group' = 'Suite', 'Test Case' = 'Test'. Changed function & variable names, comments, DTD, and xml output to reflect the new terminology. - Eliminated global variables (except in deprecated interface). - Fixed direct references to 'global' test registry (mostly in TestDB.c) in cases where a specified pRegistry is meant to be used. - Changed CU_set_registry() so that existing registry is not destroyed. The functions running suites in the interface modules (automated, console, curses) take a pRegistry argument which was being ignored. These functions now set the registry (if it is different from the active one) and restore it after the tests are complete. - Added functions for creating and destroying a test registry independent of the CUnit internal system. Convenience, mostly for testing. - Added assertions preventing modification of the test registry during a test run. - Moved add_failure prototype to TestRun.h since implemented in TestRun.c. - Changed 'Errno.h' to 'CUError.h' to avoid confusion with standard header. - Error codes made an enum CU_ErrorCode. Changed signatures of functions returning an error code accordingly. - Moved all error-related code to new source file 'CUError.c'. - Made all local functions & callbacks static to minimize global names. - Modified assertions so that standard assertions do not include a 'return' statement. Provided new assertions with '_FATAL' suffix to allow user to request this when test function should return on a failure. - Modified XSL for list to more compact format. - Restructured memory tracking code so reallocations and multiple deletions tracked. - CU_dump_memory_usage now takes an argument specifying the filename for the memory dump output. The original version always overwrote the same output file, making tracking multiple dumps difficult. A default filename is used if a NULL or empty char* is specified. - Modified DTD and XSL for memory dump output to reflect new structure. - Initial doxygen comments added to code, and 'Doxyfile' configuration file added to base directory. - Restructured code to be more top-down (still have multiple returns in a couple of cases). - Provided default file name to automated interface in case user doesn't specify one. - Modified Automated::CU_set_output_filename to avoid buffer overrun for large szFileName. - Converted Examples to new interface. Old examples renamed 'xxx_v1.c' and building of the old examples under the deprecated interface added to Jam files. - Modified makefile.am set to reflect above changes (not working yet). * Sat Jul 26 2003 Anil Kumar - Applied a patch for correct XML output for first/last group display. * Mon Mar 17 2003 Anil Kumar - Added Macro's for different kind of comparisons. * Tue Jul 23 2002 Anil Kumar - Changed HTML to XML Format file generation for Automated Tests. * Tue Jun 25 2002 Anil Kumar - Added Memory Tracing Functions to check if there is any unreleased Memory. * Sat Apr 07 2002 Anil Kumar - Added #ifdef conditions to include extern "C" linkage directive in the header files. - Corrected Makefile.am for Headers Directory. * Sun Mar 24 2002 Anil Kumar - Added interface for automated run test. It generates HTML file. * Sun Feb 03 2002 Anil Kumar - Made modifications for moving RPM Creation in the root directory. - Cleaned up configure.in for checks not required and added some additonal header and library checks. - Made separate options for gzip, tar, zip and rpm creation in root directory. - Fixed Workspace file for Windows Build. * Sun Dec 23 2001 Anil Kumar - Made modifications for change in Directory Structure and Linking Options. - Included GPL Headers in all the files. * Sun Nov 25 2001 Anil Kumar - Added Curses based interface to the Package. - Modified some options for the Console Based Interface. * Sun Oct 28 2001 Anil Kumar - Integrated RPM creation in the package configuration. * Sun Oct 21 2001 Anil Kumar - Added a few Error Codes and respective description. - Added code for handling duplicate group/test name. cunit-2.1-3-dfsg/Doxyfile000066400000000000000000000200201260701235000152530ustar00rootroot00000000000000# Doxyfile 1.3.9.1 #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- PROJECT_NAME = "CUnit Programmers Reference" PROJECT_NUMBER = 2.0-2 OUTPUT_DIRECTORY = ./doc CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = NO BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES ABBREVIATE_BRIEF = ALWAYS_DETAILED_SEC = NO INLINE_INHERITED_MEMB = NO FULL_PATH_NAMES = NO STRIP_FROM_PATH = STRIP_FROM_INC_PATH = SHORT_NAMES = NO JAVADOC_AUTOBRIEF = YES MULTILINE_CPP_IS_BRIEF = NO DETAILS_AT_TOP = YES INHERIT_DOCS = YES DISTRIBUTE_GROUP_DOC = NO TAB_SIZE = 8 ALIASES = OPTIMIZE_OUTPUT_FOR_C = YES OPTIMIZE_OUTPUT_JAVA = NO SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- EXTRACT_ALL = NO EXTRACT_PRIVATE = YES EXTRACT_STATIC = YES EXTRACT_LOCAL_CLASSES = YES EXTRACT_LOCAL_METHODS = NO HIDE_UNDOC_MEMBERS = NO HIDE_UNDOC_CLASSES = NO HIDE_FRIEND_COMPOUNDS = NO HIDE_IN_BODY_DOCS = NO INTERNAL_DOCS = NO CASE_SENSE_NAMES = YES HIDE_SCOPE_NAMES = NO SHOW_INCLUDE_FILES = YES INLINE_INFO = YES SORT_MEMBER_DOCS = YES SORT_BRIEF_DOCS = NO SORT_BY_SCOPE_NAME = NO GENERATE_TODOLIST = YES GENERATE_TESTLIST = YES GENERATE_BUGLIST = YES GENERATE_DEPRECATEDLIST= YES ENABLED_SECTIONS = MAX_INITIALIZER_LINES = 30 SHOW_USED_FILES = YES SHOW_DIRECTORIES = YES #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- QUIET = NO WARNINGS = YES WARN_IF_UNDOCUMENTED = YES WARN_IF_DOC_ERROR = YES WARN_FORMAT = "$file:$line: $text" WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- INPUT = ./CUnit FILE_PATTERNS = *.c \ *.h RECURSIVE = YES EXCLUDE = ./CUnit/Sources/Win EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = EXAMPLE_PATH = EXAMPLE_PATTERNS = EXAMPLE_RECURSIVE = NO IMAGE_PATH = INPUT_FILTER = FILTER_PATTERNS = FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- SOURCE_BROWSER = NO INLINE_SOURCES = NO STRIP_CODE_COMMENTS = YES REFERENCED_BY_RELATION = YES REFERENCES_RELATION = YES VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- ALPHABETICAL_INDEX = NO COLS_IN_ALPHA_INDEX = 5 IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- GENERATE_HTML = YES HTML_OUTPUT = html HTML_FILE_EXTENSION = .html HTML_HEADER = HTML_FOOTER = HTML_STYLESHEET = HTML_ALIGN_MEMBERS = YES GENERATE_HTMLHELP = NO CHM_FILE = HHC_LOCATION = GENERATE_CHI = NO BINARY_TOC = NO TOC_EXPAND = NO DISABLE_INDEX = NO ENUM_VALUES_PER_LINE = 4 GENERATE_TREEVIEW = NO TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- GENERATE_LATEX = NO LATEX_OUTPUT = latex LATEX_CMD_NAME = latex MAKEINDEX_CMD_NAME = makeindex COMPACT_LATEX = NO PAPER_TYPE = a4wide EXTRA_PACKAGES = LATEX_HEADER = PDF_HYPERLINKS = NO USE_PDFLATEX = NO LATEX_BATCHMODE = NO LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- GENERATE_RTF = NO RTF_OUTPUT = rtf COMPACT_RTF = NO RTF_HYPERLINKS = NO RTF_STYLESHEET_FILE = RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- GENERATE_MAN = NO MAN_OUTPUT = man MAN_EXTENSION = .3 MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- GENERATE_XML = NO XML_OUTPUT = xml XML_SCHEMA = XML_DTD = XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- GENERATE_PERLMOD = NO PERLMOD_LATEX = NO PERLMOD_PRETTY = YES PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- ENABLE_PREPROCESSING = YES MACRO_EXPANSION = NO EXPAND_ONLY_PREDEF = NO SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = PREDEFINED = USE_DEPRECATED_CUNIT_NAMES EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- TAGFILES = GENERATE_TAGFILE = ALLEXTERNALS = NO EXTERNAL_GROUPS = YES PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- CLASS_DIAGRAMS = YES HIDE_UNDOC_RELATIONS = YES HAVE_DOT = NO CLASS_GRAPH = NO COLLABORATION_GRAPH = YES UML_LOOK = NO TEMPLATE_RELATIONS = NO INCLUDE_GRAPH = YES INCLUDED_BY_GRAPH = YES CALL_GRAPH = NO GRAPHICAL_HIERARCHY = YES DOT_IMAGE_FORMAT = png DOT_PATH = DOTFILE_DIRS = MAX_DOT_GRAPH_WIDTH = 1024 MAX_DOT_GRAPH_HEIGHT = 1024 MAX_DOT_GRAPH_DEPTH = 0 GENERATE_LEGEND = YES DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- SEARCHENGINE = NO cunit-2.1-3-dfsg/Examples/000077500000000000000000000000001260701235000153315ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/.deps/000077500000000000000000000000001260701235000163425ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/.deps/ExampleTests.Po000066400000000000000000000123611260701235000212630ustar00rootroot00000000000000ExampleTests.o: ExampleTests.c /usr/include/stdio.h \ /usr/include/sys/cdefs.h /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ /usr/include/string.h /usr/include/strings.h \ /usr/include/secure/_string.h /usr/include/assert.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUnit.h \ /usr/include/math.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUError.h \ /usr/include/errno.h /usr/include/sys/errno.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestDB.h \ /usr/include/setjmp.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestRun.h ExampleTests.h /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: /usr/include/assert.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUnit.h: /usr/include/math.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestDB.h: /usr/include/setjmp.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestRun.h: ExampleTests.h: cunit-2.1-3-dfsg/Examples/AutomatedTest/000077500000000000000000000000001260701235000201145ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/AutomatedTest/.deps/000077500000000000000000000000001260701235000211255ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/AutomatedTest/.deps/AutomatedTest.Po000066400000000000000000000125071260701235000242150ustar00rootroot00000000000000AutomatedTest.o: AutomatedTest.c /usr/include/stdio.h \ /usr/include/sys/cdefs.h /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ /usr/include/string.h /usr/include/strings.h \ /usr/include/secure/_string.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/Automated.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUnit.h \ /usr/include/math.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUError.h \ /usr/include/errno.h /usr/include/sys/errno.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestDB.h \ /usr/include/setjmp.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestRun.h \ ../ExampleTests.h /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/Automated.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUnit.h: /usr/include/math.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestDB.h: /usr/include/setjmp.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestRun.h: ../ExampleTests.h: cunit-2.1-3-dfsg/Examples/AutomatedTest/AutomatedTest.c000066400000000000000000000044531260701235000230510ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ #include #include #include #include "Automated.h" #include "ExampleTests.h" int main(int argc, char* argv[]) { CU_BOOL Run = CU_FALSE ; setvbuf(stdout, NULL, _IONBF, 0); if (argc > 1) { if (!strcmp("-i", argv[1])) { Run = CU_TRUE ; CU_set_error_action(CUEA_IGNORE); } else if (!strcmp("-f", argv[1])) { Run = CU_TRUE ; CU_set_error_action(CUEA_FAIL); } else if (!strcmp("-A", argv[1])) { Run = CU_TRUE ; CU_set_error_action(CUEA_ABORT); } else if (!strcmp("-e", argv[1])) { print_example_results(); } else { printf("\nUsage: AutomatedTest [option]\n\n" " Options: -i Run, ignoring framework errors [default].\n" " -f Run, failing on framework error.\n" " -A Run, aborting on framework error.\n" " -e Print expected test results and exit.\n" " -h Print this message.\n\n"); } } else { Run = CU_TRUE; CU_set_error_action(CUEA_IGNORE); } if (CU_TRUE == Run) { if (CU_initialize_registry()) { printf("\nInitialization of Test Registry failed."); } else { AddTests(); CU_set_output_filename("TestAutomated"); CU_list_tests_to_file(); CU_automated_run_tests(); CU_cleanup_registry(); } } return 0; } cunit-2.1-3-dfsg/Examples/AutomatedTest/AutomatedTest_v1.c000066400000000000000000000156071260701235000234620ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ #include #include #include #include "Automated.h" int success_init(void) { return 0; } int success_clean(void) { return 0; } void testSuccess1(void) { ASSERT(1); } void testSuccess2(void) { ASSERT(1); } void testSuccess3(void) { ASSERT(1); } int group_failure_init(void) { return 1;} int group_failure_clean(void) { return 1; } void testGroupFailure1(void) { ASSERT(0); } void testGroupFailure2(void) { ASSERT(2); } void testfailure1(void) { ASSERT(12 <= 10); } void testfailure2(void) { ASSERT(2); } void testfailure3(void) { ASSERT(3); } void test1(void) { ASSERT((char *)2 != "THis is positive test."); ASSERT((char *)2 == "THis is negative test. test 1"); } void test2(void) { ASSERT((char *)2 != "THis is positive test."); ASSERT((char *)3 == "THis is negative test. test 2"); } void testSuccessSimpleAssert(void) { ASSERT(1) ; ASSERT(!0) ; } void testSuccessAssertTrue(void) { ASSERT_TRUE(TRUE) ; ASSERT_TRUE(!FALSE) ; } void testSuccessAssertFalse(void) { ASSERT_FALSE(FALSE) ; ASSERT_FALSE(!TRUE) ; } void testSuccessAssertEqual(void) { ASSERT_EQUAL(10, 10) ; ASSERT_EQUAL(0, 0) ; ASSERT_EQUAL(0, -0) ; ASSERT_EQUAL(-12, -12) ; } void testSuccessAssertNotEqual(void) { ASSERT_NOT_EQUAL(10, 11) ; ASSERT_NOT_EQUAL(0, -1) ; ASSERT_NOT_EQUAL(-12, -11) ; } void testSuccessAssertPtrEqual(void) { ASSERT_PTR_EQUAL((void*)0x100, (void*)0x100) ; } void testSuccessAssertPtrNotEqual(void) { ASSERT_PTR_NOT_EQUAL((void*)0x100, (void*)0x101) ; } void testSuccessAssertPtrNull(void) { ASSERT_PTR_NULL(NULL) ; ASSERT_PTR_NULL(0x0) ; } void testSuccessAssertPtrNotNull(void) { ASSERT_PTR_NOT_NULL((void*)0x23) ; } void testSuccessAssertStringEqual(void) { char str1[] = "test" ; char str2[] = "test" ; ASSERT_STRING_EQUAL(str1, str2) ; } void testSuccessAssertStringNotEqual(void) { char str1[] = "test" ; char str2[] = "testtsg" ; ASSERT_STRING_NOT_EQUAL(str1, str2) ; } void testSuccessAssertNStringEqual(void) { char str1[] = "test" ; char str2[] = "testgfsg" ; ASSERT_NSTRING_EQUAL(str1, str2, strlen(str1)) ; ASSERT_NSTRING_EQUAL(str1, str1, strlen(str1)) ; ASSERT_NSTRING_EQUAL(str1, str1, strlen(str1) + 1) ; } void testSuccessAssertNStringNotEqual(void) { char str1[] = "test" ; char str2[] = "teet" ; char str3[] = "testgfsg" ; ASSERT_NSTRING_NOT_EQUAL(str1, str2, 3) ; ASSERT_NSTRING_NOT_EQUAL(str1, str3, strlen(str1) + 1) ; } void testSuccessAssertDoubleEqual(void) { ASSERT_DOUBLE_EQUAL(10, 10.0001, 0.0001) ; ASSERT_DOUBLE_EQUAL(10, 10.0001, -0.0001) ; ASSERT_DOUBLE_EQUAL(-10, -10.0001, 0.0001) ; ASSERT_DOUBLE_EQUAL(-10, -10.0001, -0.0001) ; } void testSuccessAssertDoubleNotEqual(void) { ASSERT_DOUBLE_NOT_EQUAL(10, 10.001, 0.0001) ; ASSERT_DOUBLE_NOT_EQUAL(10, 10.001, -0.0001) ; ASSERT_DOUBLE_NOT_EQUAL(-10, -10.001, 0.0001) ; ASSERT_DOUBLE_NOT_EQUAL(-10, -10.001, -0.0001) ; } void AddTests(void) { PTestGroup pGroup = NULL; PTestCase pTest = NULL; pGroup = add_test_group("Sucess", success_init, success_clean); pTest = add_test_case(pGroup, "testSuccess1", testSuccess1); pTest = add_test_case(pGroup, "testSuccess2", testSuccess2); pTest = add_test_case(pGroup, "testSuccess3", testSuccess3); pGroup = add_test_group("failure", NULL, NULL); pTest = add_test_case(pGroup, "testfailure1", testfailure1); pTest = add_test_case(pGroup, "testfailure2", testfailure2); pTest = add_test_case(pGroup, "testfailure3", testfailure3); pGroup = add_test_group("group_failure", group_failure_init, group_failure_clean); pTest = add_test_case(pGroup, "testGroupFailure1", testGroupFailure1); pTest = add_test_case(pGroup, "testGroupFailure2", testGroupFailure2); } void AddAssertTests(void) { PTestGroup pGroup = NULL; PTestCase pTest = NULL; pGroup = add_test_group("TestSimpleAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessSimpleAssert", testSuccessSimpleAssert); pGroup = add_test_group("TestBooleanAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertTrue", testSuccessAssertTrue); pTest = add_test_case(pGroup, "testSuccessAssertFalse", testSuccessAssertFalse); pGroup = add_test_group("TestEqualityAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertEqual", testSuccessAssertEqual); pTest = add_test_case(pGroup, "testSuccessAssertNotEqual", testSuccessAssertNotEqual); pGroup = add_test_group("TestPointerAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertPtrEqual", testSuccessAssertPtrEqual); pTest = add_test_case(pGroup, "testSuccessAssertPtrNotEqual", testSuccessAssertPtrNotEqual); pGroup = add_test_group("TestNullnessAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertPtrNull", testSuccessAssertPtrNull); pTest = add_test_case(pGroup, "testSuccessAssertPtrNotNull", testSuccessAssertPtrNotNull); pGroup = add_test_group("TestStringAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertStringEqual", testSuccessAssertStringEqual); pTest = add_test_case(pGroup, "testSuccessAssertStringNotEqual", testSuccessAssertStringNotEqual); pGroup = add_test_group("TestNStringAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertNStringEqual", testSuccessAssertNStringEqual); pTest = add_test_case(pGroup, "testSuccessAssertNStringNotEqual", testSuccessAssertNStringNotEqual); pGroup = add_test_group("TestDoubleAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertDoubleEqual", testSuccessAssertDoubleEqual); pTest = add_test_case(pGroup, "testSuccessAssertDoubleNotEqual", testSuccessAssertDoubleNotEqual); } int main(int argc, char* argv[]) { setvbuf(stdout, NULL, _IONBF, 0); if (argc > 1) { BOOL Run = FALSE ; set_output_filename("TestAutomated"); if (initialize_registry()) { printf("\nInitialize of test Registry failed."); } if (!strcmp("--test", argv[1])) { Run = TRUE ; AddTests(); } else if (!strcmp("--atest", argv[1])) { Run = TRUE ; AddAssertTests(); } else if (!strcmp("--alltest", argv[1])) { Run = TRUE ; AddTests(); AddAssertTests(); } if (TRUE == Run) { automated_run_tests(); } cleanup_registry(); } return 0; } cunit-2.1-3-dfsg/Examples/AutomatedTest/Jamfile000066400000000000000000000046421260701235000214140ustar00rootroot00000000000000# # Jamfile to build CUnit - Examples/AutomatedTest # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP Examples AutomatedTest ; if $(BUILD_EXAMPLES) && $(BUILD_AUTOMATED) { SubDirHdrs $(CUNIT_HDR_DIR) $(EXAMPLES_DIR) ; # set location for target, source, and temporary files LOCATE_TARGET = $(BUILD_DIR)$(SLASH)Examples$(SLASH)AutomatedTest ; SEARCH_SOURCE += $(EXAMPLES_DIR) ; Main AutomatedTest : AutomatedTest.c ExampleTests.c ; LinkLibraries AutomatedTest$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ; LINKLIBS on AutomatedTest$(SUFEXE) += $(SYS_LIBS) ; if $(USE_DEPRECATED_NAMES) { Main AutomatedTest_v1 : AutomatedTest_v1.c ; LinkLibraries AutomatedTest_v1$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ; LINKLIBS on AutomatedTest_v1$(SUFEXE) += $(SYS_LIBS) ; ObjectCcFlags AutomatedTest_v1.c : $(USE_DEPRECATED_NAMES) ; } if $(NT) && ($(BCCROOT) || ($(TOOLSET) = BORLANDC)) { # need to fix Borland to include library location LINKFLAGS on AutomatedTest$(SUFEXE) += -L$(STDLIBPATH) -tWC ; if $(USE_DEPRECATED_NAMES) { LINKFLAGS on AutomatedTest_v1$(SUFEXE) += -L$(STDLIBPATH) -tWC ; } } MakeLocate AutomatedTest$(SUFEXE) : $(BUILD_DIR) ; if $(USE_DEPRECATED_NAMES) { MakeLocate AutomatedTest_v1$(SUFEXE) : $(BUILD_DIR) ; } if $(INSTALL_EXAM_DIR) { InstallCUnitBin $(INSTALL_EXAM_DIR)$(SLASH)Automated : AutomatedTest$(SUFEXE) ; InstallCUnitFile $(INSTALL_EXAM_DIR)$(SLASH)Automated : README ; if $(USE_DEPRECATED_NAMES) { InstallCUnitBin $(INSTALL_EXAM_DIR)$(SLASH)Automated : AutomatedTest_v1$(SUFEXE) ; } } }cunit-2.1-3-dfsg/Examples/AutomatedTest/Makefile.am000066400000000000000000000006441260701235000221540ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in exampledir=${datadir}/@PACKAGE@/Examples/Automated if ENABLE_EXAMPLES if ENABLE_AUTOMATED example_PROGRAMS = AutomatedTest AutomatedTest_SOURCES = AutomatedTest.c AutomatedTest_LDADD = -lcunit -lcunitexamples AutomatedTest_LDFLAGS = -L.. -lm INCLUDES = -I.. if ENABLE_CURSES AutomatedTest_LDADD += -l$(CURSES_LIB) endif example_DATA = README endif endif cunit-2.1-3-dfsg/Examples/AutomatedTest/Makefile.in000066400000000000000000000545631260701235000221760ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_AUTOMATED_TRUE@@ENABLE_EXAMPLES_TRUE@example_PROGRAMS = AutomatedTest$(EXEEXT) @ENABLE_AUTOMATED_TRUE@@ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@am__append_1 = -l$(CURSES_LIB) subdir = Examples/AutomatedTest DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp README 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(exampledir)" "$(DESTDIR)$(exampledir)" PROGRAMS = $(example_PROGRAMS) am__AutomatedTest_SOURCES_DIST = AutomatedTest.c @ENABLE_AUTOMATED_TRUE@@ENABLE_EXAMPLES_TRUE@am_AutomatedTest_OBJECTS = AutomatedTest.$(OBJEXT) AutomatedTest_OBJECTS = $(am_AutomatedTest_OBJECTS) am__DEPENDENCIES_1 = @ENABLE_AUTOMATED_TRUE@@ENABLE_EXAMPLES_TRUE@AutomatedTest_DEPENDENCIES = $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = AutomatedTest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AutomatedTest_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(AutomatedTest_SOURCES) DIST_SOURCES = $(am__AutomatedTest_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } DATA = $(example_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ exampledir = ${datadir}/@PACKAGE@/Examples/Automated @ENABLE_AUTOMATED_TRUE@@ENABLE_EXAMPLES_TRUE@AutomatedTest_SOURCES = AutomatedTest.c @ENABLE_AUTOMATED_TRUE@@ENABLE_EXAMPLES_TRUE@AutomatedTest_LDADD = \ @ENABLE_AUTOMATED_TRUE@@ENABLE_EXAMPLES_TRUE@ -lcunit \ @ENABLE_AUTOMATED_TRUE@@ENABLE_EXAMPLES_TRUE@ -lcunitexamples \ @ENABLE_AUTOMATED_TRUE@@ENABLE_EXAMPLES_TRUE@ $(am__append_1) @ENABLE_AUTOMATED_TRUE@@ENABLE_EXAMPLES_TRUE@AutomatedTest_LDFLAGS = -L.. -lm @ENABLE_AUTOMATED_TRUE@@ENABLE_EXAMPLES_TRUE@INCLUDES = -I.. @ENABLE_AUTOMATED_TRUE@@ENABLE_EXAMPLES_TRUE@example_DATA = README all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Examples/AutomatedTest/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Examples/AutomatedTest/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-examplePROGRAMS: $(example_PROGRAMS) @$(NORMAL_INSTALL) @list='$(example_PROGRAMS)'; test -n "$(exampledir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(exampledir)'"; \ $(MKDIR_P) "$(DESTDIR)$(exampledir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(exampledir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(exampledir)$$dir" || exit $$?; \ } \ ; done uninstall-examplePROGRAMS: @$(NORMAL_UNINSTALL) @list='$(example_PROGRAMS)'; test -n "$(exampledir)" || 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)$(exampledir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(exampledir)" && rm -f $$files clean-examplePROGRAMS: @list='$(example_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 AutomatedTest$(EXEEXT): $(AutomatedTest_OBJECTS) $(AutomatedTest_DEPENDENCIES) $(EXTRA_AutomatedTest_DEPENDENCIES) @rm -f AutomatedTest$(EXEEXT) $(AM_V_CCLD)$(AutomatedTest_LINK) $(AutomatedTest_OBJECTS) $(AutomatedTest_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AutomatedTest.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-exampleDATA: $(example_DATA) @$(NORMAL_INSTALL) @list='$(example_DATA)'; test -n "$(exampledir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(exampledir)'"; \ $(MKDIR_P) "$(DESTDIR)$(exampledir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(exampledir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(exampledir)" || exit $$?; \ done uninstall-exampleDATA: @$(NORMAL_UNINSTALL) @list='$(example_DATA)'; test -n "$(exampledir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(exampledir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(DATA) installdirs: for dir in "$(DESTDIR)$(exampledir)" "$(DESTDIR)$(exampledir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-examplePROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-exampleDATA install-examplePROGRAMS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-exampleDATA uninstall-examplePROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-examplePROGRAMS clean-generic clean-libtool \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exampleDATA install-examplePROGRAMS install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-exampleDATA \ uninstall-examplePROGRAMS # 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: cunit-2.1-3-dfsg/Examples/AutomatedTest/README000066400000000000000000000000471260701235000207750ustar00rootroot00000000000000Usage of Example : ./AutomatedTest -h cunit-2.1-3-dfsg/Examples/BasicTest/000077500000000000000000000000001260701235000172125ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/BasicTest/.deps/000077500000000000000000000000001260701235000202235ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/BasicTest/.deps/BasicTest.Po000066400000000000000000000124671260701235000224160ustar00rootroot00000000000000BasicTest.o: BasicTest.c /usr/include/stdio.h /usr/include/sys/cdefs.h \ /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ /usr/include/string.h /usr/include/strings.h \ /usr/include/secure/_string.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/Basic.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUnit.h \ /usr/include/math.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUError.h \ /usr/include/errno.h /usr/include/sys/errno.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestDB.h \ /usr/include/setjmp.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestRun.h \ ../ExampleTests.h /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/Basic.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUnit.h: /usr/include/math.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestDB.h: /usr/include/setjmp.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestRun.h: ../ExampleTests.h: cunit-2.1-3-dfsg/Examples/BasicTest/BasicTest.c000066400000000000000000000051561260701235000212460ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2004 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ #include #include #include #include "Basic.h" #include "ExampleTests.h" int main(int argc, char* argv[]) { CU_BasicRunMode mode = CU_BRM_VERBOSE; CU_ErrorAction error_action = CUEA_IGNORE; int i; setvbuf(stdout, NULL, _IONBF, 0); for (i=1 ; i&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@example_PROGRAMS = \ @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@ BasicTest$(EXEEXT) @ENABLE_BASIC_TRUE@@ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@am__append_1 = -l$(CURSES_LIB) subdir = Examples/BasicTest DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp README 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(exampledir)" "$(DESTDIR)$(exampledir)" PROGRAMS = $(example_PROGRAMS) am__BasicTest_SOURCES_DIST = BasicTest.c @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@am_BasicTest_OBJECTS = \ @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@ BasicTest.$(OBJEXT) BasicTest_OBJECTS = $(am_BasicTest_OBJECTS) am__DEPENDENCIES_1 = @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@BasicTest_DEPENDENCIES = $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = BasicTest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(BasicTest_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(BasicTest_SOURCES) DIST_SOURCES = $(am__BasicTest_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } DATA = $(example_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ exampledir = ${datadir}/@PACKAGE@/Examples/Basic @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@BasicTest_SOURCES = BasicTest.c @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@BasicTest_LDADD = -lcunit \ @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@ -lcunitexamples \ @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@ $(am__append_1) @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@BasicTest_LDFLAGS = -L.. -lm @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@INCLUDES = -I.. @ENABLE_BASIC_TRUE@@ENABLE_EXAMPLES_TRUE@example_DATA = README all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Examples/BasicTest/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Examples/BasicTest/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-examplePROGRAMS: $(example_PROGRAMS) @$(NORMAL_INSTALL) @list='$(example_PROGRAMS)'; test -n "$(exampledir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(exampledir)'"; \ $(MKDIR_P) "$(DESTDIR)$(exampledir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(exampledir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(exampledir)$$dir" || exit $$?; \ } \ ; done uninstall-examplePROGRAMS: @$(NORMAL_UNINSTALL) @list='$(example_PROGRAMS)'; test -n "$(exampledir)" || 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)$(exampledir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(exampledir)" && rm -f $$files clean-examplePROGRAMS: @list='$(example_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 BasicTest$(EXEEXT): $(BasicTest_OBJECTS) $(BasicTest_DEPENDENCIES) $(EXTRA_BasicTest_DEPENDENCIES) @rm -f BasicTest$(EXEEXT) $(AM_V_CCLD)$(BasicTest_LINK) $(BasicTest_OBJECTS) $(BasicTest_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/BasicTest.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-exampleDATA: $(example_DATA) @$(NORMAL_INSTALL) @list='$(example_DATA)'; test -n "$(exampledir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(exampledir)'"; \ $(MKDIR_P) "$(DESTDIR)$(exampledir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(exampledir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(exampledir)" || exit $$?; \ done uninstall-exampleDATA: @$(NORMAL_UNINSTALL) @list='$(example_DATA)'; test -n "$(exampledir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(exampledir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(DATA) installdirs: for dir in "$(DESTDIR)$(exampledir)" "$(DESTDIR)$(exampledir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-examplePROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-exampleDATA install-examplePROGRAMS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-exampleDATA uninstall-examplePROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-examplePROGRAMS clean-generic clean-libtool \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exampleDATA install-examplePROGRAMS install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-exampleDATA \ uninstall-examplePROGRAMS # 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: cunit-2.1-3-dfsg/Examples/BasicTest/README000066400000000000000000000000401260701235000200640ustar00rootroot00000000000000Usage of Example : ./BasicTest cunit-2.1-3-dfsg/Examples/ConsoleTest/000077500000000000000000000000001260701235000175735ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/ConsoleTest/.deps/000077500000000000000000000000001260701235000206045ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/ConsoleTest/.deps/ConsoleTest.Po000066400000000000000000000124771260701235000233610ustar00rootroot00000000000000ConsoleTest.o: ConsoleTest.c /usr/include/stdio.h \ /usr/include/sys/cdefs.h /usr/include/sys/_symbol_aliasing.h \ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \ /usr/include/AvailabilityInternal.h /usr/include/_types.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/i386/_types.h /usr/include/sys/_types/_va_list.h \ /usr/include/sys/_types/_size_t.h /usr/include/sys/_types/_null.h \ /usr/include/sys/_types/_off_t.h /usr/include/sys/_types/_ssize_t.h \ /usr/include/secure/_stdio.h /usr/include/secure/_common.h \ /usr/include/stdlib.h /usr/include/sys/wait.h \ /usr/include/sys/_types/_pid_t.h /usr/include/sys/_types/_id_t.h \ /usr/include/sys/signal.h /usr/include/sys/appleapiopts.h \ /usr/include/machine/signal.h /usr/include/i386/signal.h \ /usr/include/machine/_mcontext.h /usr/include/i386/_mcontext.h \ /usr/include/mach/i386/_structs.h \ /usr/include/sys/_types/_sigaltstack.h \ /usr/include/sys/_types/_ucontext.h \ /usr/include/sys/_types/_pthread_attr_t.h \ /usr/include/sys/_types/_sigset_t.h /usr/include/sys/_types/_uid_t.h \ /usr/include/sys/resource.h \ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h \ /usr/include/stdint.h /usr/include/sys/_types/_int8_t.h \ /usr/include/sys/_types/_int16_t.h /usr/include/sys/_types/_int32_t.h \ /usr/include/sys/_types/_int64_t.h /usr/include/_types/_uint8_t.h \ /usr/include/_types/_uint16_t.h /usr/include/_types/_uint32_t.h \ /usr/include/_types/_uint64_t.h /usr/include/sys/_types/_intptr_t.h \ /usr/include/sys/_types/_uintptr_t.h /usr/include/_types/_intmax_t.h \ /usr/include/_types/_uintmax_t.h /usr/include/sys/_types/_timeval.h \ /usr/include/machine/endian.h /usr/include/i386/endian.h \ /usr/include/sys/_endian.h /usr/include/libkern/_OSByteOrder.h \ /usr/include/libkern/i386/_OSByteOrder.h /usr/include/alloca.h \ /usr/include/sys/_types/_ct_rune_t.h /usr/include/sys/_types/_rune_t.h \ /usr/include/sys/_types/_wchar_t.h /usr/include/machine/types.h \ /usr/include/i386/types.h /usr/include/sys/_types/___offsetof.h \ /usr/include/sys/_types/_dev_t.h /usr/include/sys/_types/_mode_t.h \ /usr/include/string.h /usr/include/strings.h \ /usr/include/secure/_string.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/Console.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUnit.h \ /usr/include/math.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUError.h \ /usr/include/errno.h /usr/include/sys/errno.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestDB.h \ /usr/include/setjmp.h \ /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestRun.h \ ../ExampleTests.h /usr/include/stdio.h: /usr/include/sys/cdefs.h: /usr/include/sys/_symbol_aliasing.h: /usr/include/sys/_posix_availability.h: /usr/include/Availability.h: /usr/include/AvailabilityInternal.h: /usr/include/_types.h: /usr/include/sys/_types.h: /usr/include/machine/_types.h: /usr/include/i386/_types.h: /usr/include/sys/_types/_va_list.h: /usr/include/sys/_types/_size_t.h: /usr/include/sys/_types/_null.h: /usr/include/sys/_types/_off_t.h: /usr/include/sys/_types/_ssize_t.h: /usr/include/secure/_stdio.h: /usr/include/secure/_common.h: /usr/include/stdlib.h: /usr/include/sys/wait.h: /usr/include/sys/_types/_pid_t.h: /usr/include/sys/_types/_id_t.h: /usr/include/sys/signal.h: /usr/include/sys/appleapiopts.h: /usr/include/machine/signal.h: /usr/include/i386/signal.h: /usr/include/machine/_mcontext.h: /usr/include/i386/_mcontext.h: /usr/include/mach/i386/_structs.h: /usr/include/sys/_types/_sigaltstack.h: /usr/include/sys/_types/_ucontext.h: /usr/include/sys/_types/_pthread_attr_t.h: /usr/include/sys/_types/_sigset_t.h: /usr/include/sys/_types/_uid_t.h: /usr/include/sys/resource.h: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/stdint.h: /usr/include/stdint.h: /usr/include/sys/_types/_int8_t.h: /usr/include/sys/_types/_int16_t.h: /usr/include/sys/_types/_int32_t.h: /usr/include/sys/_types/_int64_t.h: /usr/include/_types/_uint8_t.h: /usr/include/_types/_uint16_t.h: /usr/include/_types/_uint32_t.h: /usr/include/_types/_uint64_t.h: /usr/include/sys/_types/_intptr_t.h: /usr/include/sys/_types/_uintptr_t.h: /usr/include/_types/_intmax_t.h: /usr/include/_types/_uintmax_t.h: /usr/include/sys/_types/_timeval.h: /usr/include/machine/endian.h: /usr/include/i386/endian.h: /usr/include/sys/_endian.h: /usr/include/libkern/_OSByteOrder.h: /usr/include/libkern/i386/_OSByteOrder.h: /usr/include/alloca.h: /usr/include/sys/_types/_ct_rune_t.h: /usr/include/sys/_types/_rune_t.h: /usr/include/sys/_types/_wchar_t.h: /usr/include/machine/types.h: /usr/include/i386/types.h: /usr/include/sys/_types/___offsetof.h: /usr/include/sys/_types/_dev_t.h: /usr/include/sys/_types/_mode_t.h: /usr/include/string.h: /usr/include/strings.h: /usr/include/secure/_string.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/Console.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUnit.h: /usr/include/math.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/CUError.h: /usr/include/errno.h: /usr/include/sys/errno.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestDB.h: /usr/include/setjmp.h: /Users/aks/code/os/cunit/cunit/CUnit/Headers/TestRun.h: ../ExampleTests.h: cunit-2.1-3-dfsg/Examples/ConsoleTest/ConsoleTest.c000066400000000000000000000042131260701235000222010ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ #include #include #include #include "Console.h" #include "ExampleTests.h" int main(int argc, char* argv[]) { CU_BOOL Run = CU_FALSE ; setvbuf(stdout, NULL, _IONBF, 0); if (argc > 1) { if (!strcmp("-i", argv[1])) { Run = CU_TRUE ; CU_set_error_action(CUEA_IGNORE); } else if (!strcmp("-f", argv[1])) { Run = CU_TRUE ; CU_set_error_action(CUEA_FAIL); } else if (!strcmp("-A", argv[1])) { Run = CU_TRUE ; CU_set_error_action(CUEA_ABORT); } else if (!strcmp("-e", argv[1])) { print_example_results(); } else { printf("\nUsage: ConsoleTest [option]\n\n" "Options: -i Run, ignoring framework errors [default].\n" " -f Run, failing on framework error.\n" " -A run, aborting on framework error.\n" " -e Print expected test results and exit.\n" " -h Print this message.\n\n"); } } else { Run = CU_TRUE; CU_set_error_action(CUEA_IGNORE); } if (CU_TRUE == Run) { if (CU_initialize_registry()) { printf("\nInitialization of Test Registry failed."); } else { AddTests(); CU_console_run_tests(); CU_cleanup_registry(); } } return 0; } cunit-2.1-3-dfsg/Examples/ConsoleTest/ConsoleTest_v1.c000066400000000000000000000155271260701235000226210ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ #include #include #include #include "Console.h" int success_init(void) { return 0; } int success_clean(void) { return 0; } void testSuccess1(void) { ASSERT(1); } void testSuccess2(void) { ASSERT(1); } void testSuccess3(void) { ASSERT(1); } int group_failure_init(void) { return 1;} int group_failure_clean(void) { return 1; } void testGroupFailure1(void) { ASSERT(0); } void testGroupFailure2(void) { ASSERT(2); } void testfailure1(void) { ASSERT(0); } void testfailure2(void) { ASSERT(2); } void testfailure3(void) { ASSERT(3); } void test1(void) { ASSERT((char *)2 != "THis is positive test."); ASSERT((char *)2 == "THis is negative test. test 1"); } void test2(void) { ASSERT((char *)2 != "THis is positive test."); ASSERT((char *)3 == "THis is negative test. test 2"); } void testSuccessSimpleAssert(void) { ASSERT(1) ; ASSERT(!0) ; } void testSuccessAssertTrue(void) { ASSERT_TRUE(TRUE) ; ASSERT_TRUE(!FALSE) ; } void testSuccessAssertFalse(void) { ASSERT_FALSE(FALSE) ; ASSERT_FALSE(!TRUE) ; } void testSuccessAssertEqual(void) { ASSERT_EQUAL(10, 10) ; ASSERT_EQUAL(0, 0) ; ASSERT_EQUAL(0, -0) ; ASSERT_EQUAL(-12, -12) ; } void testSuccessAssertNotEqual(void) { ASSERT_NOT_EQUAL(10, 11) ; ASSERT_NOT_EQUAL(0, -1) ; ASSERT_NOT_EQUAL(-12, -11) ; } void testSuccessAssertPtrEqual(void) { ASSERT_PTR_EQUAL((void*)0x100, (void*)0x101) ; } void testSuccessAssertPtrNotEqual(void) { ASSERT_PTR_NOT_EQUAL((void*)0x100, (void*)0x100) ; } void testSuccessAssertPtrNull(void) { ASSERT_PTR_NULL((void*)0x23) ; } void testSuccessAssertPtrNotNull(void) { ASSERT_PTR_NOT_NULL(NULL) ; ASSERT_PTR_NOT_NULL(0x0) ; } void testSuccessAssertStringEqual(void) { char str1[] = "test" ; char str2[] = "test" ; ASSERT_STRING_EQUAL(str1, str2) ; } void testSuccessAssertStringNotEqual(void) { char str1[] = "test" ; char str2[] = "testtsg" ; ASSERT_STRING_NOT_EQUAL(str1, str2) ; } void testSuccessAssertNStringEqual(void) { char str1[] = "test" ; char str2[] = "testgfsg" ; ASSERT_NSTRING_EQUAL(str1, str2, strlen(str1)) ; ASSERT_NSTRING_EQUAL(str1, str1, strlen(str1)) ; ASSERT_NSTRING_EQUAL(str1, str1, strlen(str1) + 1) ; } void testSuccessAssertNStringNotEqual(void) { char str1[] = "test" ; char str2[] = "teet" ; char str3[] = "testgfsg" ; ASSERT_NSTRING_NOT_EQUAL(str1, str2, 3) ; ASSERT_NSTRING_NOT_EQUAL(str1, str3, strlen(str1) + 1) ; } void testSuccessAssertDoubleEqual(void) { ASSERT_DOUBLE_EQUAL(10, 10.0001, 0.0001) ; ASSERT_DOUBLE_EQUAL(10, 10.0001, -0.0001) ; ASSERT_DOUBLE_EQUAL(-10, -10.0001, 0.0001) ; ASSERT_DOUBLE_EQUAL(-10, -10.0001, -0.0001) ; } void testSuccessAssertDoubleNotEqual(void) { ASSERT_DOUBLE_NOT_EQUAL(10, 10.001, 0.0001) ; ASSERT_DOUBLE_NOT_EQUAL(10, 10.001, -0.0001) ; ASSERT_DOUBLE_NOT_EQUAL(-10, -10.001, 0.0001) ; ASSERT_DOUBLE_NOT_EQUAL(-10, -10.001, -0.0001) ; } void AddTests(void) { PTestGroup pGroup = NULL; PTestCase pTest = NULL; pGroup = add_test_group("Sucess", success_init, success_clean); pTest = add_test_case(pGroup, "testSuccess1", testSuccess1); pTest = add_test_case(pGroup, "testSuccess2", testSuccess2); pTest = add_test_case(pGroup, "testSuccess3", testSuccess3); pGroup = add_test_group("failure", NULL, NULL); pTest = add_test_case(pGroup, "testfailure1", testfailure1); pTest = add_test_case(pGroup, "testfailure2", testfailure2); pTest = add_test_case(pGroup, "testfailure3", testfailure3); pGroup = add_test_group("group_failure", group_failure_init, group_failure_clean); pTest = add_test_case(pGroup, "testGroupFailure1", testGroupFailure1); pTest = add_test_case(pGroup, "testGroupFailure2", testGroupFailure2); } void AddAssertTests(void) { PTestGroup pGroup = NULL; PTestCase pTest = NULL; pGroup = add_test_group("TestSimpleAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessSimpleAssert", testSuccessSimpleAssert); pGroup = add_test_group("TestBooleanAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertTrue", testSuccessAssertTrue); pTest = add_test_case(pGroup, "testSuccessAssertFalse", testSuccessAssertFalse); pGroup = add_test_group("TestEqualityAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertEqual", testSuccessAssertEqual); pTest = add_test_case(pGroup, "testSuccessAssertNotEqual", testSuccessAssertNotEqual); pGroup = add_test_group("TestPointerAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertPtrEqual", testSuccessAssertPtrEqual); pTest = add_test_case(pGroup, "testSuccessAssertPtrNotEqual", testSuccessAssertPtrNotEqual); pGroup = add_test_group("TestNullnessAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertPtrNull", testSuccessAssertPtrNull); pTest = add_test_case(pGroup, "testSuccessAssertPtrNotNull", testSuccessAssertPtrNotNull); pGroup = add_test_group("TestStringAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertStringEqual", testSuccessAssertStringEqual); pTest = add_test_case(pGroup, "testSuccessAssertStringNotEqual", testSuccessAssertStringNotEqual); pGroup = add_test_group("TestNStringAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertNStringEqual", testSuccessAssertNStringEqual); pTest = add_test_case(pGroup, "testSuccessAssertNStringNotEqual", testSuccessAssertNStringNotEqual); pGroup = add_test_group("TestDoubleAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertDoubleEqual", testSuccessAssertDoubleEqual); pTest = add_test_case(pGroup, "testSuccessAssertDoubleNotEqual", testSuccessAssertDoubleNotEqual); } int main(int argc, char* argv[]) { setvbuf(stdout, NULL, _IONBF, 0); if (argc > 1) { BOOL Run = FALSE ; if (initialize_registry()) { printf("\nInitialize of test Registry failed."); } if (!strcmp("--test", argv[1])) { Run = TRUE ; AddTests(); } else if (!strcmp("--atest", argv[1])) { Run = TRUE ; AddAssertTests(); } else if (!strcmp("--alltest", argv[1])) { Run = TRUE ; AddTests(); AddAssertTests(); } if (TRUE == Run) { console_run_tests(); } cleanup_registry(); } return 0; } cunit-2.1-3-dfsg/Examples/ConsoleTest/Jamfile000066400000000000000000000045531260701235000210740ustar00rootroot00000000000000# # Jamfile to build CUnit - Examples/ConsoleTest # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP Examples ConsoleTest ; if $(BUILD_EXAMPLES) && $(BUILD_CONSOLE) { SubDirHdrs $(CUNIT_HDR_DIR) $(EXAMPLES_DIR) ; # set location for target, source, and temporary files LOCATE_TARGET = $(BUILD_DIR)$(SLASH)Examples$(SLASH)ConsoleTest ; SEARCH_SOURCE += $(EXAMPLES_DIR) ; Main ConsoleTest : ConsoleTest.c ExampleTests.c ; LinkLibraries ConsoleTest$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ; LINKLIBS on ConsoleTest$(SUFEXE) += $(SYS_LIBS) ; if $(USE_DEPRECATED_NAMES) { Main ConsoleTest_v1 : ConsoleTest_v1.c ; LinkLibraries ConsoleTest_v1$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ; LINKLIBS on ConsoleTest_v1$(SUFEXE) += $(SYS_LIBS) ; ObjectCcFlags ConsoleTest_v1.c : $(USE_DEPRECATED_NAMES) ; } if $(NT) && ($(BCCROOT) || ($(TOOLSET) = BORLANDC)) { # need to fix Borland to include library location LINKFLAGS on ConsoleTest$(SUFEXE) += -L$(STDLIBPATH) -tWC ; if $(USE_DEPRECATED_NAMES) { LINKFLAGS on ConsoleTest_v1$(SUFEXE) += -L$(STDLIBPATH) -tWC ; } } MakeLocate ConsoleTest$(SUFEXE) : $(BUILD_DIR) ; if $(USE_DEPRECATED_NAMES) { MakeLocate ConsoleTest_v1$(SUFEXE) : $(BUILD_DIR) ; } if $(INSTALL_EXAM_DIR) { InstallCUnitBin $(INSTALL_EXAM_DIR)$(SLASH)Console : ConsoleTest$(SUFEXE) ; InstallCUnitFile $(INSTALL_EXAM_DIR)$(SLASH)Console : README ; if $(USE_DEPRECATED_NAMES) { InstallCUnitBin $(INSTALL_EXAM_DIR)$(SLASH)Console : ConsoleTest_v1$(SUFEXE) ; } } } cunit-2.1-3-dfsg/Examples/ConsoleTest/Makefile.am000066400000000000000000000006231260701235000216300ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in exampledir=${datadir}/@PACKAGE@/Examples/Console if ENABLE_EXAMPLES if ENABLE_CONSOLE example_PROGRAMS = ConsoleTest ConsoleTest_SOURCES = ConsoleTest.c ConsoleTest_LDADD = -lcunit -lcunitexamples ConsoleTest_LDFLAGS = -L.. -lm INCLUDES = -I.. if ENABLE_CURSES ConsoleTest_LDADD += -l$(CURSES_LIB) endif example_DATA = README endif endif cunit-2.1-3-dfsg/Examples/ConsoleTest/Makefile.in000066400000000000000000000544411260701235000216500ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_CONSOLE_TRUE@@ENABLE_EXAMPLES_TRUE@example_PROGRAMS = ConsoleTest$(EXEEXT) @ENABLE_CONSOLE_TRUE@@ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@am__append_1 = -l$(CURSES_LIB) subdir = Examples/ConsoleTest DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp README 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(exampledir)" "$(DESTDIR)$(exampledir)" PROGRAMS = $(example_PROGRAMS) am__ConsoleTest_SOURCES_DIST = ConsoleTest.c @ENABLE_CONSOLE_TRUE@@ENABLE_EXAMPLES_TRUE@am_ConsoleTest_OBJECTS = ConsoleTest.$(OBJEXT) ConsoleTest_OBJECTS = $(am_ConsoleTest_OBJECTS) am__DEPENDENCIES_1 = @ENABLE_CONSOLE_TRUE@@ENABLE_EXAMPLES_TRUE@ConsoleTest_DEPENDENCIES = $(am__DEPENDENCIES_1) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = ConsoleTest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(ConsoleTest_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(ConsoleTest_SOURCES) DIST_SOURCES = $(am__ConsoleTest_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } DATA = $(example_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ exampledir = ${datadir}/@PACKAGE@/Examples/Console @ENABLE_CONSOLE_TRUE@@ENABLE_EXAMPLES_TRUE@ConsoleTest_SOURCES = ConsoleTest.c @ENABLE_CONSOLE_TRUE@@ENABLE_EXAMPLES_TRUE@ConsoleTest_LDADD = \ @ENABLE_CONSOLE_TRUE@@ENABLE_EXAMPLES_TRUE@ -lcunit \ @ENABLE_CONSOLE_TRUE@@ENABLE_EXAMPLES_TRUE@ -lcunitexamples \ @ENABLE_CONSOLE_TRUE@@ENABLE_EXAMPLES_TRUE@ $(am__append_1) @ENABLE_CONSOLE_TRUE@@ENABLE_EXAMPLES_TRUE@ConsoleTest_LDFLAGS = -L.. -lm @ENABLE_CONSOLE_TRUE@@ENABLE_EXAMPLES_TRUE@INCLUDES = -I.. @ENABLE_CONSOLE_TRUE@@ENABLE_EXAMPLES_TRUE@example_DATA = README all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Examples/ConsoleTest/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Examples/ConsoleTest/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-examplePROGRAMS: $(example_PROGRAMS) @$(NORMAL_INSTALL) @list='$(example_PROGRAMS)'; test -n "$(exampledir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(exampledir)'"; \ $(MKDIR_P) "$(DESTDIR)$(exampledir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(exampledir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(exampledir)$$dir" || exit $$?; \ } \ ; done uninstall-examplePROGRAMS: @$(NORMAL_UNINSTALL) @list='$(example_PROGRAMS)'; test -n "$(exampledir)" || 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)$(exampledir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(exampledir)" && rm -f $$files clean-examplePROGRAMS: @list='$(example_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 ConsoleTest$(EXEEXT): $(ConsoleTest_OBJECTS) $(ConsoleTest_DEPENDENCIES) $(EXTRA_ConsoleTest_DEPENDENCIES) @rm -f ConsoleTest$(EXEEXT) $(AM_V_CCLD)$(ConsoleTest_LINK) $(ConsoleTest_OBJECTS) $(ConsoleTest_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ConsoleTest.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-exampleDATA: $(example_DATA) @$(NORMAL_INSTALL) @list='$(example_DATA)'; test -n "$(exampledir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(exampledir)'"; \ $(MKDIR_P) "$(DESTDIR)$(exampledir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(exampledir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(exampledir)" || exit $$?; \ done uninstall-exampleDATA: @$(NORMAL_UNINSTALL) @list='$(example_DATA)'; test -n "$(exampledir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(exampledir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(DATA) installdirs: for dir in "$(DESTDIR)$(exampledir)" "$(DESTDIR)$(exampledir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-examplePROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-exampleDATA install-examplePROGRAMS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-exampleDATA uninstall-examplePROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-examplePROGRAMS clean-generic clean-libtool \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exampleDATA install-examplePROGRAMS install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-exampleDATA \ uninstall-examplePROGRAMS # 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: cunit-2.1-3-dfsg/Examples/ConsoleTest/README000066400000000000000000000000421260701235000204470ustar00rootroot00000000000000Usage of Example : ./ConsoleTest cunit-2.1-3-dfsg/Examples/CursesTest/000077500000000000000000000000001260701235000174355ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/CursesTest/.deps/000077500000000000000000000000001260701235000204465ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/CursesTest/.deps/CursesTest.Po000066400000000000000000000000101260701235000230410ustar00rootroot00000000000000# dummy cunit-2.1-3-dfsg/Examples/CursesTest/CursesTest.c000066400000000000000000000042441260701235000217110ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ #include #include #include #include "CUCurses.h" #include "ExampleTests.h" int main(int argc, char* argv[]) { CU_BOOL Run = CU_FALSE ; setvbuf(stdout, NULL, _IONBF, 0); if (argc > 1) { if (!strcmp("-i", argv[1])) { Run = CU_TRUE ; CU_set_error_action(CUEA_IGNORE); } else if (!strcmp("-f", argv[1])) { Run = CU_TRUE ; CU_set_error_action(CUEA_FAIL); } else if (!strcmp("-A", argv[1])) { Run = CU_TRUE ; CU_set_error_action(CUEA_ABORT); } else if (!strcmp("-e", argv[1])) { print_example_results(); } else { printf("\nUsage: CursesTest [option]\n\n" " Options: -i Run, ignoring framework errors [default].\n" " -f Run, failing on framework error.\n" " -A Run, aborting on framework error.\n" " -e Print expected test results and exit.\n" " -h Print this message.\n\n"); } } else { Run = CU_TRUE; CU_set_error_action(CUEA_IGNORE); } if (CU_TRUE == Run) { if (CU_initialize_registry()) { printf("\nInitialization of Test Registry failed."); } else { AddTests(); CU_curses_run_tests(); CU_cleanup_registry(); } } return 0; } cunit-2.1-3-dfsg/Examples/CursesTest/CursesTest_v1.c000066400000000000000000000156231260701235000223220ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ #include #include #include #include "CUCurses.h" int success_init(void) { return 0; } int success_clean(void) { return 0; } void testSuccess1(void) { ASSERT(1); } void testSuccess2(void) { ASSERT(1); } void testSuccess3(void) { ASSERT(1); } void testfailure1(void) { ASSERT(0); } void testfailure2(void) { ASSERT(2); } void testfailure3(void) { ASSERT(3); } int group_failure_init(void) { return 1;} int group_failure_clean(void) { return 1; } void testGroupFailure1(void) { ASSERT(0); } void testGroupFailure2(void) { ASSERT(2); } int init(void) { return 0; } int clean(void) { return 0; } void test1(void) { ASSERT((char *)2 != "THis is positive test."); ASSERT((char *)2 == "THis is negative test. test 1"); } void test2(void) { ASSERT((char *)2 != "THis is positive test."); ASSERT((char *)3 == "THis is negative test. test 2"); } void testSuccessSimpleAssert(void) { ASSERT(1) ; ASSERT(!0) ; } void testSuccessAssertTrue(void) { ASSERT_TRUE(TRUE) ; ASSERT_TRUE(!FALSE) ; } void testSuccessAssertFalse(void) { ASSERT_FALSE(FALSE) ; ASSERT_FALSE(!TRUE) ; } void testSuccessAssertEqual(void) { ASSERT_EQUAL(10, 10) ; ASSERT_EQUAL(0, 0) ; ASSERT_EQUAL(0, -0) ; ASSERT_EQUAL(-12, -12) ; } void testSuccessAssertNotEqual(void) { ASSERT_NOT_EQUAL(10, 11) ; ASSERT_NOT_EQUAL(0, -1) ; ASSERT_NOT_EQUAL(-12, -11) ; } void testSuccessAssertPtrEqual(void) { ASSERT_PTR_EQUAL((void*)0x100, (void*)0x101) ; } void testSuccessAssertPtrNotEqual(void) { ASSERT_PTR_NOT_EQUAL((void*)0x100, (void*)0x100) ; } void testSuccessAssertPtrNull(void) { ASSERT_PTR_NULL((void*)0x23) ; } void testSuccessAssertPtrNotNull(void) { ASSERT_PTR_NOT_NULL(NULL) ; ASSERT_PTR_NOT_NULL(0x0) ; } void testSuccessAssertStringEqual(void) { char str1[] = "test" ; char str2[] = "test" ; ASSERT_STRING_EQUAL(str1, str2) ; } void testSuccessAssertStringNotEqual(void) { char str1[] = "test" ; char str2[] = "testtsg" ; ASSERT_STRING_NOT_EQUAL(str1, str2) ; } void testSuccessAssertNStringEqual(void) { char str1[] = "test" ; char str2[] = "testgfsg" ; ASSERT_NSTRING_EQUAL(str1, str2, strlen(str1)) ; ASSERT_NSTRING_EQUAL(str1, str1, strlen(str1)) ; ASSERT_NSTRING_EQUAL(str1, str1, strlen(str1) + 1) ; } void testSuccessAssertNStringNotEqual(void) { char str1[] = "test" ; char str2[] = "teet" ; char str3[] = "testgfsg" ; ASSERT_NSTRING_NOT_EQUAL(str1, str2, 3) ; ASSERT_NSTRING_NOT_EQUAL(str1, str3, strlen(str1) + 1) ; } void testSuccessAssertDoubleEqual(void) { ASSERT_DOUBLE_EQUAL(10, 10.0001, 0.0001) ; ASSERT_DOUBLE_EQUAL(10, 10.0001, -0.0001) ; ASSERT_DOUBLE_EQUAL(-10, -10.0001, 0.0001) ; ASSERT_DOUBLE_EQUAL(-10, -10.0001, -0.0001) ; } void testSuccessAssertDoubleNotEqual(void) { ASSERT_DOUBLE_NOT_EQUAL(10, 10.001, 0.0001) ; ASSERT_DOUBLE_NOT_EQUAL(10, 10.001, -0.0001) ; ASSERT_DOUBLE_NOT_EQUAL(-10, -10.001, 0.0001) ; ASSERT_DOUBLE_NOT_EQUAL(-10, -10.001, -0.0001) ; } void AddTests(void) { PTestGroup pGroup = NULL; PTestCase pTest = NULL; pGroup = add_test_group("Sucess", success_init, success_clean); pTest = add_test_case(pGroup, "testSuccess1", testSuccess1); pTest = add_test_case(pGroup, "testSuccess2", testSuccess2); pTest = add_test_case(pGroup, "testSuccess3", testSuccess3); pGroup = add_test_group("failure", NULL, NULL); pTest = add_test_case(pGroup, "testfailure1", testfailure1); pTest = add_test_case(pGroup, "testfailure2", testfailure2); pTest = add_test_case(pGroup, "testfailure3", testfailure3); pGroup = add_test_group("group_failure", group_failure_init, group_failure_clean); pTest = add_test_case(pGroup, "testGroupFailure1", testGroupFailure1); pTest = add_test_case(pGroup, "testGroupFailure2", testGroupFailure2); } void AddAssertTests(void) { PTestGroup pGroup = NULL; PTestCase pTest = NULL; pGroup = add_test_group("TestSimpleAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessSimpleAssert", testSuccessSimpleAssert); pGroup = add_test_group("TestBooleanAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertTrue", testSuccessAssertTrue); pTest = add_test_case(pGroup, "testSuccessAssertFalse", testSuccessAssertFalse); pGroup = add_test_group("TestEqualityAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertEqual", testSuccessAssertEqual); pTest = add_test_case(pGroup, "testSuccessAssertNotEqual", testSuccessAssertNotEqual); pGroup = add_test_group("TestPointerAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertPtrEqual", testSuccessAssertPtrEqual); pTest = add_test_case(pGroup, "testSuccessAssertPtrNotEqual", testSuccessAssertPtrNotEqual); pGroup = add_test_group("TestNullnessAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertPtrNull", testSuccessAssertPtrNull); pTest = add_test_case(pGroup, "testSuccessAssertPtrNotNull", testSuccessAssertPtrNotNull); pGroup = add_test_group("TestStringAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertStringEqual", testSuccessAssertStringEqual); pTest = add_test_case(pGroup, "testSuccessAssertStringNotEqual", testSuccessAssertStringNotEqual); pGroup = add_test_group("TestNStringAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertNStringEqual", testSuccessAssertNStringEqual); pTest = add_test_case(pGroup, "testSuccessAssertNStringNotEqual", testSuccessAssertNStringNotEqual); pGroup = add_test_group("TestDoubleAssert", NULL, NULL); pTest = add_test_case(pGroup, "testSuccessAssertDoubleEqual", testSuccessAssertDoubleEqual); pTest = add_test_case(pGroup, "testSuccessAssertDoubleNotEqual", testSuccessAssertDoubleNotEqual); } int main(int argc, char* argv[]) { setvbuf(stdout, NULL, _IONBF, 0); if (argc > 1) { BOOL Run = FALSE ; if (initialize_registry()) { printf("\nInitialize of test Registry failed."); } if (!strcmp("--test", argv[1])) { Run = TRUE ; AddTests(); } else if (!strcmp("--atest", argv[1])) { Run = TRUE ; AddAssertTests(); } else if (!strcmp("--alltest", argv[1])) { Run = TRUE ; AddTests(); AddAssertTests(); } if (TRUE == Run) { curses_run_tests(); } cleanup_registry(); } return 0; } cunit-2.1-3-dfsg/Examples/CursesTest/Jamfile000066400000000000000000000045471260701235000207410ustar00rootroot00000000000000# # Jamfile to build CUnit - Examples/CursesTest # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP Examples CursesTest ; if $(BUILD_EXAMPLES) && $(BUILD_CURSES) { SubDirHdrs $(CUNIT_HDR_DIR) $(CUNIT_WIN_DIR) ; # set location for temporary files LOCATE_TARGET = $(BUILD_DIR)$(SLASH)Examples$(SLASH)CursesTest ; SEARCH_SOURCE += $(EXAMPLES_DIR) ; Main CursesTest : CursesTest.c ExampleTests.c ; LinkLibraries CursesTest$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ; LINKLIBS on CursesTest$(SUFEXE) += $(SYS_LIBS) ; MakeLocate CursesTest$(SUFEXE) : $(BUILD_DIR) ; LOCATE on libncurses$(SUFLIB) = $(SYS_LIB_DIR) ; if $(USE_DEPRECATED_NAMES) { Main CursesTest_v1 : CursesTest_v1.c ; LinkLibraries CursesTest_v1$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ; LINKLIBS on CursesTest_v1$(SUFEXE) += $(SYS_LIBS) ; MakeLocate CursesTest_v1$(SUFEXE) : $(BUILD_DIR) ; ObjectCcFlags CursesTest_v1.c : $(USE_DEPRECATED_NAMES) ; } if $(NT) && ($(BCCROOT) || ($(TOOLSET) = BORLANDC)) { # need to fix Borland to include library location LINKFLAGS on CursesTest$(SUFEXE) += -L$(STDLIBPATH) -tW ; if $(USE_DEPRECATED_NAMES)InstallCunitFile { LINKFLAGS on CursesTest_v1$(SUFEXE) += -L$(STDLIBPATH) -tW ; } } if $(INSTALL_EXAM_DIR) { InstallCUnitBin $(INSTALL_EXAM_DIR)$(SLASH)Curses : CursesTest$(SUFEXE) ; InstallCUnitFile $(INSTALL_EXAM_DIR)$(SLASH)Curses : README ; if $(USE_DEPRECATED_NAMES) { InstallCUnitBin $(INSTALL_EXAM_DIR)$(SLASH)Curses : CursesTest_v1$(SUFEXE) ; } } } cunit-2.1-3-dfsg/Examples/CursesTest/Makefile.am000066400000000000000000000006121260701235000214700ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in exampledir=${datadir}/@PACKAGE@/Examples/Curses if ENABLE_EXAMPLES if ENABLE_CURSES example_PROGRAMS = CursesTest CursesTest_SOURCES = CursesTest.c CursesTest_LDADD = -lcunit -lcunitexamples CursesTest_LDFLAGS = -L.. -lm INCLUDES = -I.. if ENABLE_CURSES CursesTest_LDADD += -l$(CURSES_LIB) endif example_DATA = README endif endif cunit-2.1-3-dfsg/Examples/CursesTest/Makefile.in000066400000000000000000000541061260701235000215100ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ @ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@example_PROGRAMS = \ @ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@ CursesTest$(EXEEXT) subdir = Examples/CursesTest DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp README 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(exampledir)" "$(DESTDIR)$(exampledir)" PROGRAMS = $(example_PROGRAMS) am__CursesTest_SOURCES_DIST = CursesTest.c @ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@am_CursesTest_OBJECTS = CursesTest.$(OBJEXT) CursesTest_OBJECTS = $(am_CursesTest_OBJECTS) CursesTest_DEPENDENCIES = AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = CursesTest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(CursesTest_LDFLAGS) $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(CursesTest_SOURCES) DIST_SOURCES = $(am__CursesTest_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } DATA = $(example_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ exampledir = ${datadir}/@PACKAGE@/Examples/Curses @ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@CursesTest_SOURCES = CursesTest.c @ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@CursesTest_LDADD = -lcunit \ @ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@ -lcunitexamples \ @ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@ -l$(CURSES_LIB) @ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@CursesTest_LDFLAGS = -L.. -lm @ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@INCLUDES = -I.. @ENABLE_CURSES_TRUE@@ENABLE_EXAMPLES_TRUE@example_DATA = README all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Examples/CursesTest/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Examples/CursesTest/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-examplePROGRAMS: $(example_PROGRAMS) @$(NORMAL_INSTALL) @list='$(example_PROGRAMS)'; test -n "$(exampledir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(exampledir)'"; \ $(MKDIR_P) "$(DESTDIR)$(exampledir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ || test -f $$p1 \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(exampledir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(exampledir)$$dir" || exit $$?; \ } \ ; done uninstall-examplePROGRAMS: @$(NORMAL_UNINSTALL) @list='$(example_PROGRAMS)'; test -n "$(exampledir)" || 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)$(exampledir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(exampledir)" && rm -f $$files clean-examplePROGRAMS: @list='$(example_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 CursesTest$(EXEEXT): $(CursesTest_OBJECTS) $(CursesTest_DEPENDENCIES) $(EXTRA_CursesTest_DEPENDENCIES) @rm -f CursesTest$(EXEEXT) $(AM_V_CCLD)$(CursesTest_LINK) $(CursesTest_OBJECTS) $(CursesTest_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CursesTest.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-exampleDATA: $(example_DATA) @$(NORMAL_INSTALL) @list='$(example_DATA)'; test -n "$(exampledir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(exampledir)'"; \ $(MKDIR_P) "$(DESTDIR)$(exampledir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(exampledir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(exampledir)" || exit $$?; \ done uninstall-exampleDATA: @$(NORMAL_UNINSTALL) @list='$(example_DATA)'; test -n "$(exampledir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(exampledir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(DATA) installdirs: for dir in "$(DESTDIR)$(exampledir)" "$(DESTDIR)$(exampledir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-examplePROGRAMS clean-generic clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-exampleDATA install-examplePROGRAMS install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-exampleDATA uninstall-examplePROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-examplePROGRAMS clean-generic clean-libtool \ cscopelist-am ctags ctags-am distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exampleDATA install-examplePROGRAMS install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-am uninstall uninstall-am uninstall-exampleDATA \ uninstall-examplePROGRAMS # 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: cunit-2.1-3-dfsg/Examples/CursesTest/README000066400000000000000000000000411260701235000203100ustar00rootroot00000000000000Usage of Example : ./CursesTest cunit-2.1-3-dfsg/Examples/Demo_fprintf/000077500000000000000000000000001260701235000177455ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/Demo_fprintf/CUnitExample.c000066400000000000000000000067461260701235000224640ustar00rootroot00000000000000/* * Simple example of a CUnit unit test. * * This program (crudely) demonstrates a very simple "black box" * test of the standard library functions fprintf() and fread(). * It uses suite initialization and cleanup functions to open * and close a common temporary file used by the test functions. * The test functions then write to and read from the temporary * file in the course of testing the library functions. * * The 2 test functions are added to a single CUnit suite, and * then run using the CUnit Basic interface. The output of the * program (on CUnit version 2.0-2) is: * * CUnit : A Unit testing framework for C. * http://cunit.sourceforge.net/ * * Suite: Suite_1 * Test: test of fprintf() ... passed * Test: test of fread() ... passed * * --Run Summary: Type Total Ran Passed Failed * suites 1 1 n/a 0 * tests 2 2 2 0 * asserts 5 5 5 0 */ #include #include #include "CUnit/Basic.h" /* Pointer to the file used by the tests. */ static FILE* temp_file = NULL; /* The suite initialization function. * Opens the temporary file used by the tests. * Returns zero on success, non-zero otherwise. */ int init_suite1(void) { if (NULL == (temp_file = fopen("temp.txt", "w+"))) { return -1; } else { return 0; } } /* The suite cleanup function. * Closes the temporary file used by the tests. * Returns zero on success, non-zero otherwise. */ int clean_suite1(void) { if (0 != fclose(temp_file)) { return -1; } else { temp_file = NULL; return 0; } } /* Simple test of fprintf(). * Writes test data to the temporary file and checks * whether the expected number of bytes were written. */ void testFPRINTF(void) { int i1 = 10; if (NULL != temp_file) { CU_ASSERT(0 == fprintf(temp_file, "")); CU_ASSERT(2 == fprintf(temp_file, "Q\n")); CU_ASSERT(7 == fprintf(temp_file, "i1 = %d", i1)); } } /* Simple test of fread(). * Reads the data previously written by testFPRINTF() * and checks whether the expected characters are present. * Must be run after testFPRINTF(). */ void testFREAD(void) { unsigned char buffer[20]; if (NULL != temp_file) { rewind(temp_file); CU_ASSERT(9 == fread(buffer, sizeof(unsigned char), 20, temp_file)); CU_ASSERT(0 == strncmp(buffer, "Q\ni1 = 10", 9)); } } /* The main() function for setting up and running the tests. * Returns a CUE_SUCCESS on successful running, another * CUnit error code on failure. */ int main() { CU_pSuite pSuite = NULL; /* initialize the CUnit test registry */ if (CUE_SUCCESS != CU_initialize_registry()) return CU_get_error(); /* add a suite to the registry */ pSuite = CU_add_suite("Suite_1", init_suite1, clean_suite1); if (NULL == pSuite) { CU_cleanup_registry(); return CU_get_error(); } /* add the tests to the suite */ /* NOTE - ORDER IS IMPORTANT - MUST TEST fread() AFTER fprintf() */ if ((NULL == CU_add_test(pSuite, "test of fprintf()", testFPRINTF)) || (NULL == CU_add_test(pSuite, "test of fread()", testFREAD))) { CU_cleanup_registry(); return CU_get_error(); } /* Run all tests using the console interface */ CU_basic_set_mode(CU_BRM_VERBOSE); CU_basic_run_tests(); CU_cleanup_registry(); return CU_get_error(); } cunit-2.1-3-dfsg/Examples/ExampleTests.c000066400000000000000000000337461260701235000201300ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004, 2005 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ #include #include #include #include #include "CUnit.h" #include "ExampleTests.h" /* WARNING - MAINTENANCE NIGHTMARE AHEAD * * If you change any of the tests & suites below, you also need * to keep track of changes in the result statistics and reflect * any changes in the result report counts in print_example_results(). * * Yes, this could have been designed better using a more * automated mechanism. No, it was not done that way. */ /* Suite initialization/cleanup functions */ static int suite_success_init(void) { return 0; } static int suite_success_clean(void) { return 0; } static int suite_failure_init(void) { return 1;} static int suite_failure_clean(void) { return 1; } static void testSuccess1(void) { CU_ASSERT(1); } static void testSuccess2(void) { CU_ASSERT(2); } static void testSuccess3(void) { CU_ASSERT(3); } static void testSuiteFailure1(void) { CU_ASSERT(0); } static void testSuiteFailure2(void) { CU_ASSERT(2); } static void testFailure1(void) { CU_ASSERT(0); } static void testFailure2(void) { CU_ASSERT(0); } static void testFailure3(void) { CU_ASSERT(0); } /* Test functions for CUnit assertions */ static void testSimpleAssert(void) { CU_ASSERT(1); CU_ASSERT(!0); CU_TEST(1); CU_ASSERT(0); CU_ASSERT(!1); CU_TEST(0); } static void testFail(void) { CU_FAIL("This is a failure."); CU_FAIL("This is another failure."); } static void testAssertTrue(void) { CU_ASSERT_TRUE(CU_TRUE); CU_ASSERT_TRUE(!CU_FALSE); CU_ASSERT_TRUE(!CU_TRUE); CU_ASSERT_TRUE(CU_FALSE); } static void testAssertFalse(void) { CU_ASSERT_FALSE(CU_FALSE); CU_ASSERT_FALSE(!CU_TRUE); CU_ASSERT_FALSE(!CU_FALSE); CU_ASSERT_FALSE(CU_TRUE); } static void testAssertEqual(void) { CU_ASSERT_EQUAL(10, 10); CU_ASSERT_EQUAL(0, 0); CU_ASSERT_EQUAL(0, -0); CU_ASSERT_EQUAL(-12, -12); CU_ASSERT_EQUAL(10, 11); CU_ASSERT_EQUAL(0, 1); CU_ASSERT_EQUAL(0, -1); CU_ASSERT_EQUAL(-12, 12); } static void testAssertNotEqual(void) { CU_ASSERT_NOT_EQUAL(10, 11); CU_ASSERT_NOT_EQUAL(0, -1); CU_ASSERT_NOT_EQUAL(-12, -11); CU_ASSERT_NOT_EQUAL(10, 10); CU_ASSERT_NOT_EQUAL(0, -0); CU_ASSERT_NOT_EQUAL(0, 0); CU_ASSERT_NOT_EQUAL(-12, -12); } static void testAssertPtrEqual(void) { CU_ASSERT_PTR_EQUAL((void*)0x100, (void*)0x100); CU_ASSERT_PTR_EQUAL((void*)0x100, (void*)0x101); } static void testAssertPtrNotEqual(void) { CU_ASSERT_PTR_NOT_EQUAL((void*)0x100, (void*)0x101); CU_ASSERT_PTR_NOT_EQUAL((void*)0x100, (void*)0x100); } static void testAssertPtrNull(void) { CU_ASSERT_PTR_NULL((void*)(NULL)); CU_ASSERT_PTR_NULL((void*)(0x0)); CU_ASSERT_PTR_NULL((void*)0x23); } static void testAssertPtrNotNull(void) { CU_ASSERT_PTR_NOT_NULL((void*)0x100); CU_ASSERT_PTR_NOT_NULL(NULL); CU_ASSERT_PTR_NOT_NULL((void*)0x0); } static void testAssertStringEqual(void) { char str1[] = "test"; char str2[] = "test"; char str3[] = "suite"; CU_ASSERT_STRING_EQUAL(str1, str2); CU_ASSERT_STRING_EQUAL(str1, str3); CU_ASSERT_STRING_EQUAL(str3, str2); } static void testAssertStringNotEqual(void) { char str1[] = "test"; char str2[] = "test"; char str3[] = "suite"; CU_ASSERT_STRING_NOT_EQUAL(str1, str3); CU_ASSERT_STRING_NOT_EQUAL(str3, str2); CU_ASSERT_STRING_NOT_EQUAL(str1, str2); } static void testAssertNStringEqual(void) { char str1[] = "test"; char str2[] = "testgfsg"; char str3[] = "tesgfsg"; CU_ASSERT_NSTRING_EQUAL(str1, str2, strlen(str1)); CU_ASSERT_NSTRING_EQUAL(str1, str1, strlen(str1)); CU_ASSERT_NSTRING_EQUAL(str1, str1, strlen(str1) + 1); CU_ASSERT_NSTRING_EQUAL(str2, str3, 4); CU_ASSERT_NSTRING_EQUAL(str1, str3, strlen(str1)); } static void testAssertNStringNotEqual(void) { char str1[] = "test"; char str2[] = "tevt"; char str3[] = "testgfsg"; CU_ASSERT_NSTRING_NOT_EQUAL(str1, str2, 3); CU_ASSERT_NSTRING_NOT_EQUAL(str1, str3, strlen(str1) + 1); CU_ASSERT_NSTRING_NOT_EQUAL(str1, str2, 2); CU_ASSERT_NSTRING_NOT_EQUAL(str2, str3, 2); } static void testAssertDoubleEqual(void) { CU_ASSERT_DOUBLE_EQUAL(10, 10.0001, 0.0001); CU_ASSERT_DOUBLE_EQUAL(10, 10.0001, -0.0001); CU_ASSERT_DOUBLE_EQUAL(-10, -10.0001, 0.0001); CU_ASSERT_DOUBLE_EQUAL(-10, -10.0001, -0.0001); CU_ASSERT_DOUBLE_EQUAL(10, 10.0001, 0.00001); CU_ASSERT_DOUBLE_EQUAL(10, 10.0001, -0.00001); CU_ASSERT_DOUBLE_EQUAL(-10, -10.0001, 0.00001); CU_ASSERT_DOUBLE_EQUAL(-10, -10.0001, -0.00001); } static void testAssertDoubleNotEqual(void) { CU_ASSERT_DOUBLE_NOT_EQUAL(10, 10.001, 0.0001); CU_ASSERT_DOUBLE_NOT_EQUAL(10, 10.001, -0.0001); CU_ASSERT_DOUBLE_NOT_EQUAL(-10, -10.001, 0.0001); CU_ASSERT_DOUBLE_NOT_EQUAL(-10, -10.001, -0.0001); CU_ASSERT_DOUBLE_NOT_EQUAL(10, 10.001, 0.01); CU_ASSERT_DOUBLE_NOT_EQUAL(10, 10.001, -0.01); CU_ASSERT_DOUBLE_NOT_EQUAL(-10, -10.001, 0.01); CU_ASSERT_DOUBLE_NOT_EQUAL(-10, -10.001, -0.01); } static void testAbort(void) { CU_TEST_FATAL(CU_TRUE); CU_TEST_FATAL(CU_FALSE); fprintf(stderr, "\nFatal assertion failed to abort test in testAbortIndirect1\n"); exit(1); } static void testAbortIndirect(void) { testAbort(); fprintf(stderr, "\nFatal assertion failed to abort test in testAbortIndirect2\n"); exit(1); } static void testFatal(void) { CU_TEST_FATAL(CU_TRUE); testAbortIndirect(); fprintf(stderr, "\nFatal assertion failed to abort test in testFatal\n"); exit(1); } static CU_TestInfo tests_success[] = { { "testSuccess1", testSuccess1 }, { "testSuccess2", testSuccess2 }, { "testSuccess3", testSuccess3 }, CU_TEST_INFO_NULL, }; static CU_TestInfo tests_failure[] = { { "testFailure1", testFailure1 }, { "testFailure2", testFailure2 }, { "testFailure3", testFailure3 }, CU_TEST_INFO_NULL, }; static CU_TestInfo tests_suitefailure[] = { { "testSuiteFailure1", testSuiteFailure1 }, { "testSuiteFailure2", testSuiteFailure2 }, CU_TEST_INFO_NULL, }; static CU_TestInfo tests_simple[] = { { "testSimpleAssert", testSimpleAssert }, { "testFail", testFail }, CU_TEST_INFO_NULL, }; static CU_TestInfo tests_bool[] = { { "testAssertTrue", testAssertTrue }, { "testAssertFalse", testAssertFalse }, CU_TEST_INFO_NULL, }; static CU_TestInfo tests_equal[] = { { "testAssertEqual", testAssertEqual }, { "testAssertNotEqual", testAssertNotEqual }, CU_TEST_INFO_NULL, }; static CU_TestInfo tests_ptr[] = { { "testAssertPtrEqual", testAssertPtrEqual }, { "testAssertPtrNotEqual", testAssertPtrNotEqual }, CU_TEST_INFO_NULL, }; static CU_TestInfo tests_null[] = { { "testAssertPtrNull", testAssertPtrNull }, { "testAssertPtrNotNull", testAssertPtrNotNull }, CU_TEST_INFO_NULL, }; static CU_TestInfo tests_string[] = { { "testAssertStringEqual", testAssertStringEqual }, { "testAssertStringNotEqual", testAssertStringNotEqual }, CU_TEST_INFO_NULL, }; static CU_TestInfo tests_nstring[] = { { "testAssertNStringEqual", testAssertNStringEqual }, { "testAssertNStringNotEqual", testAssertNStringNotEqual }, CU_TEST_INFO_NULL, }; static CU_TestInfo tests_double[] = { { "testAssertDoubleEqual", testAssertDoubleEqual }, { "testAssertDoubleNotEqual", testAssertDoubleNotEqual }, CU_TEST_INFO_NULL, }; static CU_TestInfo tests_fatal[] = { { "testFatal", testFatal }, CU_TEST_INFO_NULL, }; static CU_SuiteInfo suites[] = { { "suite_success_both", suite_success_init, suite_success_clean, NULL, NULL, tests_success}, { "suite_success_init", suite_success_init, NULL, NULL, NULL, tests_success}, { "suite_success_clean", NULL, suite_success_clean, NULL, NULL, tests_success}, { "test_failure", NULL, NULL, NULL, NULL, tests_failure}, { "suite_failure_both", suite_failure_init, suite_failure_clean, NULL, NULL, tests_suitefailure}, /* tests should not run */ { "suite_failure_init", suite_failure_init, NULL, NULL, NULL, tests_suitefailure}, /* tests should not run */ { "suite_success_but_failure_clean", NULL, suite_failure_clean, NULL, NULL, tests_suitefailure}, /* tests will run, suite counted as running, but suite tagged as a failure */ { "TestSimpleAssert", NULL, NULL, NULL, NULL, tests_simple}, { "TestBooleanAssert", NULL, NULL, NULL, NULL, tests_bool}, { "TestEqualityAssert", NULL, NULL, NULL, NULL, tests_equal}, { "TestPointerAssert", NULL, NULL, NULL, NULL, tests_ptr}, { "TestNullnessAssert", NULL, NULL, NULL, NULL, tests_null}, { "TestStringAssert", NULL, NULL, NULL, NULL, tests_string}, { "TestNStringAssert", NULL, NULL, NULL, NULL, tests_nstring}, { "TestDoubleAssert", NULL, NULL, NULL, NULL, tests_double}, { "TestFatal", NULL, NULL, NULL, NULL, tests_fatal}, CU_SUITE_INFO_NULL, }; void AddTests(void) { assert(NULL != CU_get_registry()); assert(!CU_is_test_running()); /* Register suites. */ if (CU_register_suites(suites) != CUE_SUCCESS) { fprintf(stderr, "suite registration failed - %s\n", CU_get_error_msg()); exit(EXIT_FAILURE); } /* implementation without shortcut registration CU_pSuite pSuite; pSuite = CU_add_suite("suite_success_both", suite_success_init, suite_success_clean); CU_add_test(pSuite, "testSuccess1", testSuccess1); CU_add_test(pSuite, "testSuccess2", testSuccess2); CU_add_test(pSuite, "testSuccess3", testSuccess3); pSuite = CU_add_suite("suite_success_init", suite_success_init, NULL); CU_add_test(pSuite, "testSuccess1", testSuccess1); CU_add_test(pSuite, "testSuccess2", testSuccess2); CU_add_test(pSuite, "testSuccess3", testSuccess3); pSuite = CU_add_suite("suite_success_clean", NULL, suite_success_clean); CU_add_test(pSuite, "testSuccess1", testSuccess1); CU_add_test(pSuite, "testSuccess2", testSuccess2); CU_add_test(pSuite, "testSuccess3", testSuccess3); pSuite = CU_add_suite("test_failure", NULL, NULL); CU_add_test(pSuite, "testFailure1", testFailure1); CU_add_test(pSuite, "testFailure2", testFailure2); CU_add_test(pSuite, "testFailure3", testFailure3); / * tests should not run * / pSuite = CU_add_suite("suite_failure_both", suite_failure_init, suite_failure_clean); CU_add_test(pSuite, "testSuiteFailure1", testSuiteFailure1); CU_add_test(pSuite, "testSuiteFailure2", testSuiteFailure2); / * tests should not run * / pSuite = CU_add_suite("suite_failure_init", suite_failure_init, NULL); CU_add_test(pSuite, "testSuiteFailure1", testSuiteFailure1); CU_add_test(pSuite, "testSuiteFailure2", testSuiteFailure2); / * tests will run, suite counted as running, but suite tagged as a failure * / pSuite = CU_add_suite("suite_success_but_failure_clean", NULL, suite_failure_clean); CU_add_test(pSuite, "testSuiteFailure1", testSuiteFailure1); CU_add_test(pSuite, "testSuiteFailure2", testSuiteFailure2); pSuite = CU_add_suite("TestSimpleAssert", NULL, NULL); CU_add_test(pSuite, "testSimpleAssert", testSimpleAssert); CU_add_test(pSuite, "testFail", testFail); pSuite = CU_add_suite("TestBooleanAssert", NULL, NULL); CU_add_test(pSuite, "testAssertTrue", testAssertTrue); CU_add_test(pSuite, "testAssertFalse", testAssertFalse); pSuite = CU_add_suite("TestEqualityAssert", NULL, NULL); CU_add_test(pSuite, "testAssertEqual", testAssertEqual); CU_add_test(pSuite, "testAssertNotEqual", testAssertNotEqual); pSuite = CU_add_suite("TestPointerAssert", NULL, NULL); CU_add_test(pSuite, "testAssertPtrEqual", testAssertPtrEqual); CU_add_test(pSuite, "testAssertPtrNotEqual", testAssertPtrNotEqual); pSuite = CU_add_suite("TestNullnessAssert", NULL, NULL); CU_add_test(pSuite, "testAssertPtrNull", testAssertPtrNull); CU_add_test(pSuite, "testAssertPtrNotNull", testAssertPtrNotNull); pSuite = CU_add_suite("TestStringAssert", NULL, NULL); CU_add_test(pSuite, "testAssertStringEqual", testAssertStringEqual); CU_add_test(pSuite, "testAssertStringNotEqual", testAssertStringNotEqual); pSuite = CU_add_suite("TestNStringAssert", NULL, NULL); CU_add_test(pSuite, "testAssertNStringEqual", testAssertNStringEqual); CU_add_test(pSuite, "testAssertNStringNotEqual", testAssertNStringNotEqual); pSuite = CU_add_suite("TestDoubleAssert", NULL, NULL); CU_add_test(pSuite, "testAssertDoubleEqual", testAssertDoubleEqual); CU_add_test(pSuite, "testAssertDoubleNotEqual", testAssertDoubleNotEqual); pSuite = CU_add_suite("TestFatal", NULL, NULL); CU_add_test(pSuite, "testFatal", testFatal); */ } void print_example_results(void) { fprintf(stdout, "\n\nExpected Test Results:" "\n\n Error Handling Type # Run # Pass # Fail" "\n\n ignore errors suites%9u%9u%9u" "\n tests %9u%9u%9u" "\n asserts%8u%9u%9u" "\n\n stop on error suites%9u%9u%9u" "\n tests %9u%9u%9u" "\n asserts%8u%9u%9u\n\n", 14, 14, 3, 31, 10, 21, 89, 47, 42, 4, 4, 1, 12, 9, 3, 12, 9, 3); } cunit-2.1-3-dfsg/Examples/ExampleTests.h000066400000000000000000000021541260701235000201220ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2001 Anil Kumar * Copyright (C) 2004 Anil Kumar, Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ #ifndef CUNIT_EXAMPLETESTS_H_SEEN #define CUNIT_EXAMPLETESTS_H_SEEN #ifdef __cplusplus extern "C" { #endif void AddTests(void); void print_example_results(void); #ifdef __cplusplus } #endif #endif /* CUNIT_EXAMPLETESTS_H_SEEN */ cunit-2.1-3-dfsg/Examples/Jamfile000066400000000000000000000037121260701235000166260ustar00rootroot00000000000000# # Jamfile to build CUnit - Examples root Directory # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP Examples ; if $(BUILD_AUTOMATED) { DEPENDS examples : AutomatedTest$(SUFEXE) ; if $(USE_DEPRECATED_NAMES) { DEPENDS examples : AutomatedTest_v1$(SUFEXE) ; } } if $(BUILD_BASIC) { DEPENDS examples : BasicTest$(SUFEXE) ; } if $(BUILD_CONSOLE) { DEPENDS examples : ConsoleTest$(SUFEXE) ; if $(USE_DEPRECATED_NAMES) { DEPENDS examples : ConsoleTest_v1$(SUFEXE) ; } } if $(BUILD_CURSES) { DEPENDS examples : CursesTest$(SUFEXE) ; if $(USE_DEPRECATED_NAMES) { DEPENDS examples : CursesTest_v1$(SUFEXE) ; } } if $(BUILD_WINDOWS) { DEPENDS examples : WinTest$(SUFEXE) ; if $(USE_DEPRECATED_NAMES) { DEPENDS examples : WinTest_v1$(SUFEXE) ; } } DEPENDS all : examples ; NOTFILE examples ; if $(BUILD_AUTOMATED) { SubInclude TOP Examples AutomatedTest ; } if $(BUILD_BASIC) { SubInclude TOP Examples BasicTest ; } if $(BUILD_CONSOLE) { SubInclude TOP Examples ConsoleTest ; } if $(BUILD_CURSES) { SubInclude TOP Examples CursesTest ; } if $(BUILD_WINDOWS) { SubInclude TOP Examples WinTest ; } cunit-2.1-3-dfsg/Examples/Makefile.am000066400000000000000000000010621260701235000173640ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in EXAMPLE_DIRS = . if ENABLE_BASIC BASIC_EXAMPLE_DIRS = BasicTest endif if ENABLE_CONSOLE CONSOLE_EXAMPLE_DIRS = ConsoleTest endif if ENABLE_CURSES CURSES_EXAMPLE_DIRS = CursesTest endif if ENABLE_AUTOMATED AUTOMATED_EXAMPLE_DIRS = AutomatedTest endif EXAMPLE_DIRS += $(BASIC_EXAMPLE_DIRS) $(CONSOLE_EXAMPLE_DIRS) $(CURSES_EXAMPLE_DIRS) $(AUTOMATED_EXAMPLE_DIRS) SUBDIRS = ${EXAMPLE_DIRS} if ENABLE_EXAMPLES noinst_LIBRARIES = libcunitexamples.a libcunitexamples_a_SOURCES = ExampleTests.c endif cunit-2.1-3-dfsg/Examples/Makefile.in000066400000000000000000000541361260701235000174070ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = Examples DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp 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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru AM_V_AR = $(am__v_AR_@AM_V@) am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) am__v_AR_0 = @echo " AR " $@; am__v_AR_1 = libcunitexamples_a_AR = $(AR) $(ARFLAGS) libcunitexamples_a_LIBADD = am__libcunitexamples_a_SOURCES_DIST = ExampleTests.c @ENABLE_EXAMPLES_TRUE@am_libcunitexamples_a_OBJECTS = \ @ENABLE_EXAMPLES_TRUE@ ExampleTests.$(OBJEXT) libcunitexamples_a_OBJECTS = $(am_libcunitexamples_a_OBJECTS) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(libcunitexamples_a_SOURCES) DIST_SOURCES = $(am__libcunitexamples_a_SOURCES_DIST) RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = . BasicTest ConsoleTest CursesTest AutomatedTest DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ EXAMPLE_DIRS = . $(BASIC_EXAMPLE_DIRS) $(CONSOLE_EXAMPLE_DIRS) \ $(CURSES_EXAMPLE_DIRS) $(AUTOMATED_EXAMPLE_DIRS) @ENABLE_BASIC_TRUE@BASIC_EXAMPLE_DIRS = BasicTest @ENABLE_CONSOLE_TRUE@CONSOLE_EXAMPLE_DIRS = ConsoleTest @ENABLE_CURSES_TRUE@CURSES_EXAMPLE_DIRS = CursesTest @ENABLE_AUTOMATED_TRUE@AUTOMATED_EXAMPLE_DIRS = AutomatedTest SUBDIRS = ${EXAMPLE_DIRS} @ENABLE_EXAMPLES_TRUE@noinst_LIBRARIES = libcunitexamples.a @ENABLE_EXAMPLES_TRUE@libcunitexamples_a_SOURCES = ExampleTests.c all: all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Examples/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Examples/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libcunitexamples.a: $(libcunitexamples_a_OBJECTS) $(libcunitexamples_a_DEPENDENCIES) $(EXTRA_libcunitexamples_a_DEPENDENCIES) $(AM_V_at)-rm -f libcunitexamples.a $(AM_V_AR)$(libcunitexamples_a_AR) libcunitexamples.a $(libcunitexamples_a_OBJECTS) $(libcunitexamples_a_LIBADD) $(AM_V_at)$(RANLIB) libcunitexamples.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ExampleTests.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(LIBRARIES) installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool \ clean-noinstLIBRARIES cscopelist-am ctags ctags-am distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am # 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: cunit-2.1-3-dfsg/Examples/WinTest/000077500000000000000000000000001260701235000167265ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/WinTest/Jamfile000066400000000000000000000035721260701235000202270ustar00rootroot00000000000000# # Jamfile to build CUnit - Examples/WinTest # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP Examples WinTest ; if $(BUILD_EXAMPLES) && $(BUILD_WINDOWS) { SubDirHdrs $(CUNIT_HDR_DIR) $(CUNIT_WIN_DIR) ; # set location for temporary files LOCATE_TARGET = $(BUILD_DIR)$(SLASH)Examples$(SLASH)WinTest ; Main WinTest : StdAfx.cpp WinTest.cpp ; LinkLibraries WinTest$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ; if $(USE_DEPRECATED_NAMES) { Main WinTest_v1 : StdAfx.cpp WinTest_v1.cpp ; LinkLibraries WinTest_v1$(SUFEXE) : $(CUNIT_LIB_NAME)$(SUFLIB) ; ObjectC++Flags WinTest_v1.cpp : $(CCFLAGS) $(USE_DEPRECATED_NAMES) ; } if $(NT) && ($(BCCROOT) || ($(TOOLSET) = BORLANDC)) { # need to fix Borland to include library location LINKFLAGS on WinTest$(SUFEXE) += -L$(STDLIBPATH) -tW ; if $(USE_DEPRECATED_NAMES) { LINKFLAGS on WinTest_v1$(SUFEXE) += -L$(STDLIBPATH) -tW ; } } MakeLocate WinTest$(SUFEXE) : $(BUILD_DIR) ; if $(USE_DEPRECATED_NAMES) { MakeLocate WinTest_v1$(SUFEXE) : $(BUILD_DIR) ; } } cunit-2.1-3-dfsg/Examples/WinTest/ReadMe.txt000066400000000000000000000022341260701235000206250ustar00rootroot00000000000000======================================================================== WIN32 APPLICATION : WinTest ======================================================================== AppWizard has created this WinTest application for you. This file contains a summary of what you will find in each of the files that make up your WinTest application. WinTest.cpp This is the main application source file. WinTest.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. ///////////////////////////////////////////////////////////////////////////// Other standard files: StdAfx.h, StdAfx.cpp These files are used to build a precompiled header (PCH) file named WinTest.pch and a precompiled types file named StdAfx.obj. ///////////////////////////////////////////////////////////////////////////// Other notes: AppWizard uses "TODO:" to indicate parts of the source code you should add to or customize. ///////////////////////////////////////////////////////////////////////////// cunit-2.1-3-dfsg/Examples/WinTest/StdAfx.cpp000066400000000000000000000004361260701235000206260ustar00rootroot00000000000000// stdafx.cpp : source file that includes just the standard includes // WinTest.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file cunit-2.1-3-dfsg/Examples/WinTest/StdAfx.h000066400000000000000000000014011260701235000202640ustar00rootroot00000000000000// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) #define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #include // TODO: reference additional headers your program requires here #include "CUnit.h" //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_) cunit-2.1-3-dfsg/Examples/WinTest/WinTest.cpp000066400000000000000000000010171260701235000210260ustar00rootroot00000000000000// WinTest.cpp : Defines the entry point for the application. // #include "stdafx.h" extern "C" { #include "Win.h" } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { CU_UNREFERENCED_PARAMETER(hInstance); CU_UNREFERENCED_PARAMETER(hPrevInstance); CU_UNREFERENCED_PARAMETER(lpCmdLine); CU_UNREFERENCED_PARAMETER(nCmdShow); // TODO: Place code here. CU_win_run_tests(); return 0; } cunit-2.1-3-dfsg/Examples/WinTest/WinTest_v1.cpp000066400000000000000000000010131260701235000214300ustar00rootroot00000000000000// WinTest.cpp : Defines the entry point for the application. // #include "stdafx.h" extern "C" { #include "Win.h" } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { CU_UNREFERENCED_PARAMETER(hInstance); CU_UNREFERENCED_PARAMETER(hPrevInstance); CU_UNREFERENCED_PARAMETER(lpCmdLine); CU_UNREFERENCED_PARAMETER(nCmdShow); // TODO: Place code here. win_run_tests(); return 0; } cunit-2.1-3-dfsg/Examples/wxWidgetsTest/000077500000000000000000000000001260701235000201565ustar00rootroot00000000000000cunit-2.1-3-dfsg/Examples/wxWidgetsTest/Makefile.am000066400000000000000000000006411260701235000222130ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in exampledir=${datadir}/@PACKAGE@/Examples/Console if ENABLE_EXAMPLES if ENABLE_CONSOLE example_PROGRAMS = ConsoleTest ConsoleTest_SOURCES = ConsoleTest.c ConsoleTest.h ConsoleTest_LDADD = -lcunit -lcunitexamples ConsoleTest_LDFLAGS = -L.. -lm INCLUDES = -I.. if ENABLE_CURSES ConsoleTest_LDADD += -l$(CURSES_LIB) endif example_DATA = README endif endif cunit-2.1-3-dfsg/Examples/wxWidgetsTest/README000066400000000000000000000000421260701235000210320ustar00rootroot00000000000000Usage of Example : ./ConsoleTest cunit-2.1-3-dfsg/Examples/wxWidgetsTest/wxWidgetsTest.c000066400000000000000000000022321260701235000231460ustar00rootroot00000000000000/* * CUnit - A Unit testing framework library for C. * Copyright (C) 2006 Jerry St.Clair * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library 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 */ #include #include #include #include "wxWidget.h" #include "ExampleTests.h" CU_BOOL create_tests(void) { if (CU_initialize_registry()) { return CU_FALSE; } else { AddTests(); return CU_TRUE; } } CU_BOOL destroy_tests(void) { CU_cleanup_registry(); return CU_TRUE; } cunit-2.1-3-dfsg/Examples/wxWidgetsTest/wxWidgetsTest.rc000066400000000000000000000000641260701235000233310ustar00rootroot00000000000000#define wxUSE_NO_MANIFEST 1 #include "wx/msw/wx.rc" cunit-2.1-3-dfsg/INSTALL000066400000000000000000000172271260701235000146150ustar00rootroot00000000000000Basic 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. cunit-2.1-3-dfsg/Jambase000066400000000000000000001407421260701235000150500ustar00rootroot00000000000000# # /+\ # +\ Copyright 1993, 2000 Christopher Seiwald. # \+/ # # This file is part of Jam - see jam.c for Copyright information. # # # JAMBASE - jam 2.3 ruleset providing make(1)-like functionality # # Supports UNIX, NT, and VMS. # # 12/27/93 (seiwald) - purturb library sources with SOURCE_GRIST # 04/18/94 (seiwald) - use '?=' when setting OS specific vars # 04/21/94 (seiwald) - do RmTemps together # 05/05/94 (seiwald) - all supported C compilers support -o: relegate # RELOCATE as an option; set Ranlib to "" to disable it # 06/01/94 (seiwald) - new 'actions existing' to do existing sources # 08/25/94 (seiwald) - new ObjectCcFlags rule to append to per-target CCFLAGS # 08/29/94 (seiwald) - new ObjectHdrs rule to append to per-target HDRS # 09/19/94 (seiwald) - LinkLibraries and Undefs now append # - Rule names downshifted. # 10/06/94 (seiwald) - Dumb yyacc stuff moved into Jamfile. # 10/14/94 (seiwald) - (Crude) support for .s, .C, .cc, .cpp, and .f files. # 01/08/95 (seiwald) - Shell now handled with awk, not sed # 01/09/95 (seiwald) - Install* now take dest directory as target # 01/10/95 (seiwald) - All entries sorted. # 01/10/95 (seiwald) - NT support moved in, with LauraW's help. # 01/10/95 (seiwald) - VMS support moved in. # 02/06/95 (seiwald) - ObjectC++Flags and SubDirC++Flags added. # 02/07/95 (seiwald) - Iron out when HDRSEARCH uses "" or SEARCH_SOURCE. # 02/08/95 (seiwald) - SubDir works on VMS. # 02/14/95 (seiwald) - MkDir and entourage. # 04/30/95 (seiwald) - Use install -c flag so that it copies, not moves. # 07/10/95 (taylor) - Support for Microsoft C++. # 11/21/96 (peterk) - Support for BeOS # 07/19/99 (sickel) - Support for Mac OS X Server (and maybe client) # 02/18/00 (belmonte)- Support for Cygwin. # 11/05/04 (st.clair)- Modified MinGW variables and actions # Special targets defined in this file: # # all - parent of first, shell, files, lib, exe # first - first dependent of 'all', for potential initialization # shell - parent of all Shell targets # files - parent of all File targets # lib - parent of all Library targets # exe - parent of all Main targets # dirs - parent of all MkDir targets # clean - removes all Shell, File, Library, and Main targets # uninstall - removes all Install targets # # Rules defined by this file: # # as obj.o : source.s ; .s -> .o # Bulk dir : files ; populate directory with many files # Cc obj.o : source.c ; .c -> .o # C++ obj.o : source.cc ; .cc -> .o # Clean clean : sources ; remove sources with 'jam clean' # File dest : source ; copy file # Fortran obj.o : source.f ; .f -> .o # GenFile source.c : program args ; make custom file # Hardlink target : source ; make link from source to target # HdrRule source : headers ; handle #includes # InstallInto dir : sources ; install any files # InstallBin dir : sources ; install binaries # InstallLib dir : sources ; install files # InstallFile dir : sources ; install files # InstallMan dir : sources ; install man pages # InstallShell dir : sources ; install shell scripts # Lex source.c : source.l ; .l -> .c # Library lib : source ; archive library from compiled sources # LibraryFromObjects lib : objects ; archive library from objects # LinkLibraries images : libraries ; bag libraries onto Mains # Main image : source ; link executable from compiled sources # MainFromObjects image : objects ; link executable from objects # MkDir dir ; make a directory, if not there # Object object : source ; compile object from source # ObjectCcFlags source : flags ; add compiler flags for object # ObjectC++Flags source : flags ; add compiler flags for object # ObjectHdrs source : dirs ; add include directories for object # Objects sources ; compile sources # RmTemps target : sources ; remove temp sources after target made # Setuid images ; mark executables Setuid # SubDir TOP d1 d2 ... ; start a subdirectory Jamfile # SubDirCcFlags flags ; add compiler flags until next SubDir # SubDirC++Flags flags ; add compiler flags until next SubDir # SubDirHdrs dirs ; add include dirs until next SubDir # SubInclude TOP d1 d2 ... ; include a subdirectory Jamfile # Shell exe : source ; make a shell executable # Undefines images : symbols ; save undef's for linking # UserObject object : source ; handle unknown suffixes for Object # Yacc source.c : source.y ; .y -> .c # # Utility rules that have no side effects (not supported): # # FAppendSuffix f1 f2 ... : $(SUF) ; return $(<) with suffixes # FConcat value ... ; return contatenated values # FDirName d1 d2 ... ; return path from root to dir # FGrist d1 d2 ... ; return d1!d2!... # FGristFiles value ; return $(value:G=$(SOURCE_GRIST)) # FGristSourceFiles value ; return $(value:G=$(SOURCE_GRIST)) # FRelPath d1 : d2 ; return rel path from d1 to d2 # FSubDir d1 d2 ... ; return path to root # # Brief review of the jam language: # # Statements: # rule RULE - statements to process a rule # actions RULE - system commands to carry out target update # # Modifiers on actions: # together - multiple instances of same rule on target get executed # once with their sources ($(>)) concatenated # updated - refers to updated sources ($(>)) only # ignore - ignore return status of command # quietly - don't trace its execution unless verbose # piecemeal - iterate command each time with a small subset of $(>) # existing - refers to currently existing sources ($(>)) only # bind vars - subject to binding before expanding in actions # # Special rules: # ALWAYS - always build a target # DEPENDS - builds the dependency graph # ECHO - blurt out targets on stdout # EXIT - blurt out targets and exit # INCLUDES - marks sources as headers for target (a codependency) # NOCARE - don't panic if the target can't be built # NOUPDATE - create the target if needed but never update it # NOTFILE - ignore the timestamp of the target (it's not a file) # TEMPORARY - target need not be present if sources haven't changed # # Special variables set by jam: # $(<) - targets of a rule (to the left of the :) # $(>) - sources of a rule (to the right of the :) # $(xxx) - true on xxx (UNIX, VMS, NT, OS2, MAC) # $(OS) - name of OS - varies wildly # $(JAMVERSION) - version number (2.3) # # Special variables used by jam: # SEARCH - where to find something (used during binding and actions) # LOCATE - where to plop something not found with SEARCH # HDRRULE - rule to call to handle include files # HDRSCAN - egrep regex to extract include files # # Special targets: # all - default if none given on command line # # Initialize variables # # # OS specific variable settings # if $(NT) { # the list of supported toolsets on Windows NT and Windows 95/98 # local SUPPORTED_TOOLSETS = "BORLANDC" "VISUALC" "VISUALC16" "INTELC" "WATCOM" "MINGW" "LCC" ; # this variable holds the current toolset # TOOLSET = "" ; # if the JAM_TOOLSET environment variable is defined, check that it is # one of our supported values # if $(JAM_TOOLSET) { local t ; for t in $(SUPPORTED_TOOLSETS) { if $(t) = $(JAM_TOOLSET) { TOOLSET = $(t) ; } } if ! $(TOOLSET) { ECHO "The JAM_TOOLSET environment variable is defined but its value" ; ECHO "is invalid, please use one of the following:" ; ECHO ; for t in $(SUPPORTED_TOOLSETS) { ECHO " " $(t) ; } EXIT ; } } # if TOOLSET is empty, we'll try to detect the toolset from other # environment variables to remain backwards compatible with Jam 2.3 # if ! $(TOOLSET) { if $(BCCROOT) { TOOLSET = BORLANDC ; BORLANDC = $(BCCROOT) ; } else if $(MSVC) { TOOLSET = VISUALC16 ; VISUALC16 = $(MSVC) ; } else if $(MSVCNT) { TOOLSET = VISUALC ; VISUALC = $(MSVCNT) ; } else if $(MINGW) { TOOLSET = MINGW ; } else { ECHO "Jam cannot be run because you didn't indicate which compilation toolset" ; ECHO "to use. To do so, follow these simple instructions:" ; ECHO ; ECHO " - define one of the following environment variable, with the" ; ECHO " appropriate value according to this list:" ; ECHO ; ECHO " Variable Toolset Description" ; ECHO ; ECHO " BORLANDC Borland C++ BC++ install path" ; ECHO " VISUALC Microsoft Visual C++ VC++ install path" ; ECHO " VISUALC16 Microsoft Visual C++ 16 bit VC++ 16 bit install" ; ECHO " INTELC Intel C/C++ IC++ install path" ; ECHO " WATCOM Watcom C/C++ Watcom install path" ; ECHO " MINGW MinGW (gcc) MinGW install path" ; ECHO " LCC Win32-LCC LCC-Win32 install path" ; ECHO ; ECHO " - define the JAM_TOOLSET environment variable with the *name*" ; ECHO " of the toolset variable you want to use." ; ECHO ; ECHO " e.g.: set VISUALC=C:\Visual6" ; ECHO " set JAM_TOOLSET=VISUALC" ; ECHO ; EXIT ; } } CP ?= copy ; RM ?= del ; MV ?= move /Y ; SLASH ?= \\ ; SUFLIB ?= .lib ; SUFOBJ ?= .obj ; SUFEXE ?= .exe ; if $(TOOLSET) = BORLANDC { ECHO "Compiler is Borland C++" ; AR ?= tlib /C /P64 ; CC ?= bcc32 ; CCFLAGS ?= -q -y -d -v -w-par -w-ccc -w-rch -w-pro -w-aus ; C++ ?= bcc32 ; C++FLAGS ?= -q -y -d -v -w-par -w-ccc -w-rch -w-pro -w-aus -P ; STDLIBPATH ?= $(BORLANDC)\\lib ; STDHDRS ?= $(BORLANDC)\\include ; LINK ?= $(CC) ; LINKFLAGS ?= $(CCFLAGS) -L$(STDLIBPATH) ; NOARSCAN ?= true ; } else if $(TOOLSET) = VISUALC16 { ECHO "Compiler is Microsoft Visual C++ 16 bit" ; AR ?= lib /nologo ; CC ?= cl /nologo ; CCFLAGS ?= /D \"WIN\" ; C++ ?= $(CC) ; C++FLAGS ?= $(CCFLAGS) ; LINK ?= $(CC) ; LINKFLAGS ?= $(CCFLAGS) ; LINKLIBS ?= #$(VISUALC16)\\lib\\advapi32.lib #$(VISUALC16)\\lib\\libcmt.lib $(VISUALC16)\\lib\\mlibce.lib #$(VISUALC16)\\lib\\slibce.lib $(VISUALC16)\\lib\\oldnames.lib #$(VISUALC16)\\lib\\kernel32.lib ; LINKLIBS ?= ; NOARSCAN ?= true ; OPTIM ?= "" ; STDHDRS ?= $(VISUALC16)\\include ; UNDEFFLAG ?= "/u _" ; } else if $(TOOLSET) = VISUALC { ECHO "Compiler is Microsoft Visual C++" ; AR ?= lib ; AS ?= masm386 ; CC ?= cl /nologo ; CCFLAGS ?= "" ; C++ ?= $(CC) ; C++FLAGS ?= $(CCFLAGS) ; LINK ?= link /nologo ; LINKFLAGS ?= "" ; LINKLIBS ?= /LIBPATH:$(VISUALC)\\lib /LIBPATH:$(VISUALC)\\PlatformSDK\\lib advapi32.lib libc.lib oldnames.lib gdi32.lib user32.lib kernel32.lib ; OPTIM ?= "" ; STDHDRS ?= $(VISUALC)\\include $(VISUALC)\\PlatformSDK\\include ; UNDEFFLAG ?= "/u _" ; } else if $(TOOLSET) = INTELC { ECHO "Compiler is Intel C/C++" ; if ! $(VISUALC) { ECHO "As a special exception, when using the Intel C++ compiler, you need" ; ECHO "to define the VISUALC environment variable to indicate the location" ; ECHO "of your Visual C++ installation. Aborting.." ; EXIT ; } AR ?= lib ; AS ?= masm386 ; CC ?= icl /nologo ; CCFLAGS ?= "" ; C++ ?= $(CC) ; C++FLAGS ?= $(CCFLAGS) ; LINK ?= link /nologo ; LINKFLAGS ?= "" ; LINKLIBS ?= $(VISUALC)\\lib\\advapi32.lib $(VISUALC)\\lib\\libc.lib $(VISUALC)\\lib\\oldnames.lib $(VISUALC)\\lib\\kernel32.lib ; OPTIM ?= "" ; STDHDRS ?= $(INTELC)\include $(VISUALC)\\include ; UNDEFFLAG ?= "/u _" ; } else if $(TOOLSET) = WATCOM { ECHO "Compiler is Watcom C/C++" ; AR ?= wlib ; CC ?= wcc386 ; CCFLAGS ?= /zq /DWIN32 /I$(WATCOM)\\h ; # zq=quiet C++ ?= wpp386 ; C++FLAGS ?= $(CCFLAGS) ; DOT ?= . ; DOTDOT ?= .. ; FORTRAN ?= wfc386 ; LINK ?= wcl386 ; LINKFLAGS ?= /zq ; # zq=quiet LINKLIBS ?= ; NOARSCAN ?= true ; OPTIM ?= ; STDHDRS ?= $(WATCOM)\\h $(WATCOM)\\h\\nt ; UNDEFFLAG ?= "/u _" ; } else if $(TOOLSET) = MINGW { ECHO "Compiler is GCC with Mingw" ; AR ?= ar -ru ; CC ?= gcc ; CCFLAGS ?= "" ; C++ ?= $(CC) ; C++FLAGS ?= $(CCFLAGS) ; FORTRAN ?= g77 ; LINK ?= $(CC) ; LINKFLAGS ?= "" ; LINKLIBS ?= "" ; OPTIM ?= ; SUFOBJ = .o ; SUFLIB = .a ; # NOARSCAN ?= true ; } else if $(TOOLSET) = LCC { ECHO "Compiler is Win32-LCC" ; AR ?= lcclib ; CC ?= lcc ; CCFLAGS ?= "" ; C++ ?= $(CC) ; C++FLAGS ?= $(CCFLAGS) ; LINK ?= lcclnk ; LINKFLAGS ?= "" ; LINKLIBS ?= "" ; OPTIM ?= ; NOARSCAN = true ; } else { EXIT On NT, did not recognize compiler type. ; } } else if $(OS2) { # the list of supported toolsets on Windows NT and Windows 95/98 # local SUPPORTED_TOOLSETS = "EMX" "WATCOM" ; # this variable holds the current toolset # TOOLSET = "" ; # if the JAM_TOOLSET environment variable is defined, check that it is # one of our supported values # if $(JAM_TOOLSET) { local t ; for t in $(SUPPORTED_TOOLSETS) { if $(t) = $(JAM_TOOLSET) { TOOLSET = $(t) ; } } if ! $(TOOLSET) { ECHO "The JAM_TOOLSET environment variable is defined but its value" ; ECHO "is invalid, please use one of the following:" ; ECHO ; for t in $(SUPPORTED_TOOLSETS) { ECHO " " $(t) ; } EXIT ; } } # if TOOLSET is empty, we'll try to detect the toolset from other # environment variables to remain backwards compatible with Jam 2.3 # if ! $(TOOLSET) { if $(watcom) { WATCOM = $(watcom) ; TOOLSET = WATCOM ; } else { ECHO "Jam cannot be run because you didn't indicate which compilation toolset" ; ECHO "to use. To do so, follow these simple instructions:" ; ECHO ; ECHO " - define one of the following environment variable, with the" ; ECHO " appropriate value according to this list:" ; ECHO ; ECHO " Variable Toolset Description" ; ECHO ; ECHO " WATCOM Watcom C/C++ Watcom install path" ; ECHO " EMX EMX (gcc) EMX install path" ; ECHO " VISUALAGE IBM Visual Age C/C++ VisualAge install path" ; ECHO ; ECHO " - define the JAM_TOOLSET environment variable with the *name*" ; ECHO " of the toolset variable you want to use." ; ECHO ; ECHO " e.g.: set WATCOM=C:\WATCOM" ; ECHO " set JAM_TOOLSET=WATCOM" ; ECHO ; EXIT ; } } RM = del /f ; CP = copy ; MV ?= move ; DOT ?= . ; DOTDOT ?= .. ; SUFLIB ?= .lib ; SUFOBJ ?= .obj ; SUFEXE ?= .exe ; if $(TOOLSET) = WATCOM { AR ?= wlib ; BINDIR ?= \\os2\\apps ; CC ?= wcc386 ; CCFLAGS ?= /zq /DOS2 /I$(WATCOM)\\h ; # zq=quiet C++ ?= wpp386 ; C++FLAGS ?= $(CCFLAGS) ; LINK ?= wcl386 ; LINKFLAGS ?= /zq ; # zq=quiet LINKLIBS ?= ; NOARSCAN ?= true ; OPTIM ?= ; SLASH ?= \\ ; STDHDRS ?= $(WATCOM)\\h ; UNDEFFLAG ?= "/u _" ; } else if $(TOOLSET) = EMX { ECHO "Compiler is GCC-EMX" ; AR ?= ar -ru ; CC ?= gcc ; CCFLAGS ?= "" ; C++ ?= $(CC) ; C++FLAGS ?= $(CCFLAGS) ; LINK ?= $(CC) ; LINKFLAGS ?= "" ; LINKLIBS ?= "" ; OPTIM ?= ; SUFOBJ = .o ; SUFLIB = .a ; UNDEFFLAG ?= "-U" ; SLASH = / ; # NOARSCAN ?= true ; } else { # should never happen EXIT "Sorry, but the $(JAM_TOOLSET) toolset isn't supported for now" ; } } else if $(VMS) { C++ ?= cxx ; C++FLAGS ?= ; CC ?= cc ; CCFLAGS ?= ; CHMOD ?= set file/prot= ; CP ?= copy/replace ; CRELIB ?= true ; DOT ?= [] ; DOTDOT ?= [-] ; EXEMODE ?= (w:e) ; FILEMODE ?= (w:r) ; HDRS ?= ; LINK ?= link ; LINKFLAGS ?= "" ; LINKLIBS ?= ; MKDIR ?= create/dir ; MV ?= rename ; OPTIM ?= "" ; RM ?= delete ; RUNVMS ?= mcr ; SHELLMODE ?= (w:er) ; SLASH ?= . ; STDHDRS ?= decc$library_include ; SUFEXE ?= .exe ; SUFLIB ?= .olb ; SUFOBJ ?= .obj ; switch $(OS) { case OPENVMS : CCFLAGS ?= /stand=vaxc ; case VMS : LINKLIBS ?= sys$library:vaxcrtl.olb/lib ; } } else if $(MAC) { local OPT ; CW ?= "{CW}" ; MACHDRS ?= "$(UMACHDRS):Universal:Interfaces:CIncludes" "$(CW):MSL:MSL_C:MSL_Common:Include" "$(CW):MSL:MSL_C:MSL_MacOS:Include" ; MACLIBS ?= "$(CW):MacOS Support:Universal:Libraries:StubLibraries:Interfacelib" "$(CW):MacOS Support:Universal:Libraries:StubLibraries:Mathlib" ; MPWLIBS ?= "$(CW):MacOS Support:Libraries:Runtime:Runtime PPC:MSL MPWCRuntime.lib" "$(CW):MSL:MSL_C:MSL_MacOS:Lib:PPC:MSL C.PPC MPW.Lib" ; MPWNLLIBS ?= "$(CW):MacOS Support:Libraries:Runtime:Runtime PPC:MSL MPWCRuntime.lib" "$(CW):MSL:MSL_C:MSL_MacOS:Lib:PPC:MSL C.PPC MPW(NL).Lib" ; SIOUXHDRS ?= ; SIOUXLIBS ?= "$(CW):MacOS Support:Libraries:Runtime:Runtime PPC:MSL RuntimePPC.lib" "$(CW):MSL:MSL_C:MSL_MacOS:Lib:PPC:MSL SIOUX.PPC.Lib" "$(CW):MSL:MSL_C:MSL_MacOS:Lib:PPC:MSL C.PPC.Lib" ; C++ ?= mwcppc ; C++FLAGS ?= -w off -nomapcr ; CC ?= mwcppc ; CCFLAGS ?= -w off -nomapcr ; CP ?= duplicate -y ; DOT ?= ":" ; DOTDOT ?= "::" ; HDRS ?= $(MACHDRS) $(MPWHDRS) ; LINK ?= mwlinkppc ; LINKFLAGS ?= -mpwtool -warn ; LINKLIBS ?= $(MACLIBS) $(MPWLIBS) ; MKDIR ?= newfolder ; MV ?= rename -y ; NOARSCAN ?= true ; OPTIM ?= ; RM ?= delete -y ; SLASH ?= ":" ; STDHDRS ?= ; SUFLIB ?= .lib ; SUFOBJ ?= .o ; } else if $(OS) = BEOS && $(METROWERKS) { AR ?= mwld -xml -o ; BINDIR ?= /boot/apps ; CC ?= mwcc ; CCFLAGS ?= -nosyspath ; C++ ?= $(CC) ; C++FLAGS ?= -nosyspath ; FORTRAN ?= "" ; LIBDIR ?= /boot/develop/libraries ; LINK ?= mwld ; LINKFLAGS ?= "" ; MANDIR ?= /boot/documentation/"Shell Tools"/HTML ; NOARSCAN ?= true ; STDHDRS ?= /boot/develop/headers/posix ; } else if $(OS) = BEOS { BINDIR ?= /boot/apps ; CC ?= gcc ; C++ ?= $(CC) ; FORTRAN ?= "" ; LIBDIR ?= /boot/develop/libraries ; LINK ?= gcc ; LINKLIBS ?= -lnet ; NOARSCAN ?= true ; STDHDRS ?= /boot/develop/headers/posix ; } else if $(UNIX) { switch $(OS) { case AIX : LINKLIBS ?= -lbsd ; case AMIGA : CC ?= gcc ; YACC ?= bison ; case CYGWIN : CC ?= gcc ; CCFLAGS += -D__cygwin__ ; LEX ?= flex ; JAMSHELL ?= sh -c ; RANLIB ?= "" ; SUFEXE ?= .exe ; YACC ?= bison ; case DGUX : RANLIB ?= "" ; RELOCATE ?= true ; case HPUX : RANLIB ?= "" ; case INTERIX : CC ?= gcc ; JAMSHELL ?= sh -c ; RANLIB ?= "" ; case IRIX : RANLIB ?= "" ; case MPEIX : CC ?= gcc ; C++ ?= gcc ; CCFLAGS += -D_POSIX_SOURCE ; HDRS += /usr/include ; RANLIB ?= "" ; NOARSCAN ?= true ; NOARUPDATE ?= true ; case MVS : RANLIB ?= "" ; case NEXT : AR ?= libtool -o ; RANLIB ?= "" ; case MACOSX : AR ?= libtool -o ; C++ ?= c++ ; MANDIR ?= /usr/local/share/man ; RANLIB ?= "" ; case NCR : RANLIB ?= "" ; case PTX : RANLIB ?= "" ; case QNX : AR ?= wlib ; CC ?= cc ; CCFLAGS ?= -Q ; # quiet C++ ?= $(CC) ; C++FLAGS ?= -Q ; # quiet LINK ?= $(CC) ; LINKFLAGS ?= -Q ; # quiet NOARSCAN ?= true ; RANLIB ?= "" ; case SCO : RANLIB ?= "" ; RELOCATE ?= true ; case SINIX : RANLIB ?= "" ; case SOLARIS : RANLIB ?= "" ; AR ?= "/usr/ccs/bin/ar ru" ; case UNICOS : NOARSCAN ?= true ; OPTIM ?= -O0 ; case UNIXWARE : RANLIB ?= "" ; RELOCATE ?= true ; } # UNIX defaults CCFLAGS ?= ; C++FLAGS ?= $(CCFLAGS) ; CHMOD ?= chmod ; LEX ?= lex ; LINKFLAGS ?= $(CCFLAGS) ; LINKLIBS ?= ; OPTIM ?= -O ; RANLIB ?= ranlib ; YACC ?= yacc ; YACCFILES ?= y.tab ; YACCFLAGS ?= -d ; } # # General defaults; a lot like UNIX # AR ?= ar ru ; AS ?= as ; ASFLAGS ?= ; AWK ?= awk ; BINDIR ?= /usr/local/bin ; C++ ?= gcc ; C++FLAGS ?= ; CC ?= gcc ; CCFLAGS ?= ; CP ?= cp -f ; CRELIB ?= ; DOT ?= . ; DOTDOT ?= .. ; EXEMODE ?= 711 ; FILEMODE ?= 644 ; FORTRAN ?= g77 ; FORTRANFLAGS ?= ; HDRS ?= ; JAMFILE ?= Jamfile ; JAMRULES ?= Jamrules ; LEX ?= lex ; LIBDIR ?= /usr/local/lib ; LINK ?= $(CC) ; LINKFLAGS ?= ; LINKLIBS ?= ; LN ?= ln ; MANDIR ?= /usr/local/man ; MKDIR ?= mkdir ; MV ?= mv -f ; OPTIM ?= ; RCP ?= rcp ; RM ?= rm -f ; RSH ?= rsh ; SED ?= sed ; SHELLHEADER ?= "#!/bin/sh" ; SHELLMODE ?= 755 ; SLASH ?= / ; STDHDRS ?= /usr/include ; SUFEXE ?= "" ; SUFLIB ?= .a ; SUFOBJ ?= .o ; UNDEFFLAG ?= "-u _" ; YACC ?= ; YACCFILES ?= ; YACCFLAGS ?= ; HDRPATTERN = "^[ ]*#[ ]*include[ ]*[<\"]([^\">]*)[\">].*$" ; OSFULL = $(OS)$(OSVER)$(OSPLAT) $(OS)$(OSPLAT) $(OS)$(OSVER) $(OS) ; # # Base dependencies - first for "bootstrap" kinds of rules # DEPENDS all : shell files lib exe obj ; DEPENDS all shell files lib exe obj : first ; NOTFILE all first shell files lib exe obj dirs clean uninstall ; ALWAYS clean uninstall ; # # Rules # rule As { DEPENDS $(<) : $(>) ; ASFLAGS on $(<) += $(ASFLAGS) $(SUBDIRASFLAGS) ; } rule Bulk { local i ; for i in $(>) { File $(i:D=$(<)) : $(i) ; } } rule Cc { local _h ; DEPENDS $(<) : $(>) ; # Just to clarify here: this sets the per-target CCFLAGS to # be the current value of (global) CCFLAGS and SUBDIRCCFLAGS. CCFLAGS on $(<) += $(CCFLAGS) $(SUBDIRCCFLAGS) ; # If the compiler's -o flag doesn't work, relocate the .o if $(RELOCATE) { CcMv $(<) : $(>) ; } _h = $(SEARCH_SOURCE) $(HDRS) $(SUBDIRHDRS) ; if $(VMS) && $(_h) { SLASHINC on $(<) = "/inc=(" $(_h[1]) ,$(_h[2-]) ")" ; } else if $(MAC) && $(_h) { local _i _j ; _j = $(_h[1]) ; for _i in $(_h[2-]) { _j = $(_j),$(_i) ; } MACINC on $(<) = \"$(_j)\" ; } } rule C++ { local _h ; DEPENDS $(<) : $(>) ; C++FLAGS on $(<) += $(C++FLAGS) $(SUBDIRC++FLAGS) ; if $(RELOCATE) { CcMv $(<) : $(>) ; } _h = $(SEARCH_SOURCE) $(HDRS) $(SUBDIRHDRS) ; if $(VMS) && $(_h) { SLASHINC on $(<) = "/inc=(" $(_h[1]) ,$(_h[2-]) ")" ; } else if $(MAC) && $(_h) { local _i _j ; _j = $(_h[1]) ; for _i in $(_h[2-]) { _j = $(_j),$(_i) ; } MACINC on $(<) = \"$(_j)\" ; } } rule Chmod { if $(CHMOD) { Chmod1 $(<) ; } } rule File { DEPENDS files : $(<) ; DEPENDS $(<) : $(>) ; SEARCH on $(>) = $(SEARCH_SOURCE) ; MODE on $(<) = $(FILEMODE) ; Chmod $(<) ; } rule Fortran { DEPENDS $(<) : $(>) ; } rule GenFile { local _t = [ FGristSourceFiles $(<) ] ; local _s = [ FAppendSuffix $(>[1]) : $(SUFEXE) ] ; Depends $(_t) : $(_s) $(>[2-]) ; GenFile1 $(_t) : $(_s) $(>[2-]) ; Clean clean : $(_t) ; } rule GenFile1 { MakeLocate $(<) : $(LOCATE_SOURCE) ; SEARCH on $(>) = $(SEARCH_SOURCE) ; } rule HardLink { DEPENDS files : $(<) ; DEPENDS $(<) : $(>) ; SEARCH on $(>) = $(SEARCH_SOURCE) ; } rule HdrMacroFile { # HdrMacroFile file ; # # this rule is used to indicate that a given file contains definitions # for filename macros (e.g. "#define MYFILE_H ") that can # later be used in #include statements in the rest of the source # # theses files must be parsed before any make is tried.. # HDRMACRO $(<) ; } rule HdrRule { # HdrRule source : headers ; # N.B. This rule is called during binding, potentially after # the fate of many targets has been determined, and must be # used with caution: don't add dependencies to unrelated # targets, and don't set variables on $(<). # Tell Jam that anything depending on $(<) also depends on $(>), # set SEARCH so Jam can find the headers, but then say we don't # care if we can't actually find the headers (they may have been # within ifdefs), local s ; if $(HDRGRIST) { s = $(>:G=$(HDRGRIST)) ; } else { s = $(>) ; } INCLUDES $(<) : $(s) ; SEARCH on $(s) = $(HDRSEARCH) ; NOCARE $(s) ; # Propagate on $(<) to $(>) HDRSEARCH on $(s) = $(HDRSEARCH) ; HDRSCAN on $(s) = $(HDRSCAN) ; HDRRULE on $(s) = $(HDRRULE) ; HDRGRIST on $(s) = $(HDRGRIST) ; } rule InstallInto { local i t ; t = $(>:G=installed) ; DEPENDS install : $(t) ; DEPENDS $(t) : $(>) ; SEARCH on $(>) = $(SEARCH_SOURCE) ; MakeLocate $(t) : $(<) ; # Arrange for jam uninstall Clean uninstall : $(t) ; for i in $(>) { Install $(i:G=installed) : $(i) ; } Chmod $(t) ; if $(UNIX) { if $(OWNER) { Chown $(t) ; OWNER on $(t) = $(OWNER) ; } if $(GROUP) { Chgrp $(t) ; GROUP on $(t) = $(GROUP) ; } } } rule InstallBin { local _t = [ FAppendSuffix $(>) : $(SUFEXE) ] ; InstallInto $(<) : $(_t) ; MODE on $(_t:G=installed) = $(EXEMODE) ; } rule InstallFile { InstallInto $(<) : $(>) ; MODE on $(>:G=installed) = $(FILEMODE) ; } rule InstallLib { InstallInto $(<) : $(>) ; MODE on $(>:G=installed) = $(FILEMODE) ; } rule InstallMan { # Really this just strips the . from the suffix local i s d ; for i in $(>) { switch $(i:S) { case .1 : s = 1 ; case .2 : s = 2 ; case .3 : s = 3 ; case .4 : s = 4 ; case .5 : s = 5 ; case .6 : s = 6 ; case .7 : s = 7 ; case .8 : s = 8 ; case .l : s = l ; case .n : s = n ; case .man : s = 1 ; } d = man$(s) ; InstallInto $(d:R=$(<)) : $(i) ; } MODE on $(>:G=installed) = $(FILEMODE) ; } rule InstallShell { InstallInto $(<) : $(>) ; MODE on $(>:G=installed) = $(SHELLMODE) ; } rule Lex { LexMv $(<) : $(>) ; DEPENDS $(<) : $(>) ; MakeLocate $(<) : $(LOCATE_SOURCE) ; Clean clean : $(<) ; } rule Library { LibraryFromObjects $(<) : $(>:S=$(SUFOBJ)) ; Objects $(>) ; } rule LibraryFromObjects { local _i _l _s ; # Add grist to file names _s = [ FGristFiles $(>) ] ; _l = $(<:S=$(SUFLIB)) ; # library depends on its member objects if $(KEEPOBJS) { DEPENDS obj : $(_s) ; } else { DEPENDS lib : $(_l) ; } # Set LOCATE for the library and its contents. The bound # value shows up as $(NEEDLIBS) on the Link actions. # For compatibility, we only do this if the library doesn't # already have a path. if ! $(_l:D) { MakeLocate $(_l) $(_l)($(_s:BS)) : $(LOCATE_TARGET) ; } if $(NOARSCAN) { # If we can't scan the library to timestamp its contents, # we have to just make the library depend directly on the # on-disk object files. DEPENDS $(_l) : $(_s) ; } else { # If we can scan the library, we make the library depend # on its members and each member depend on the on-disk # object file. DEPENDS $(_l) : $(_l)($(_s:BS)) ; for _i in $(_s) { DEPENDS $(_l)($(_i:BS)) : $(_i) ; } } Clean clean : $(_l) ; if $(CRELIB) { CreLib $(_l) : $(_s[1]) ; } Archive $(_l) : $(_s) ; if $(RANLIB) { Ranlib $(_l) ; } # If we can't scan the library, we have to leave the .o's around. if ! ( $(NOARSCAN) || $(KEEPOBJS) ) { RmTemps $(_l) : $(_s) ; } } rule Link { MODE on $(<) = $(EXEMODE) ; Chmod $(<) ; } rule LinkLibraries { # make library dependencies of target # set NEEDLIBS variable used by 'actions Main' local _t = [ FAppendSuffix $(<) : $(SUFEXE) ] ; DEPENDS $(_t) : $(>:S=$(SUFLIB)) ; NEEDLIBS on $(_t) += $(>:S=$(SUFLIB)) ; } rule Main { MainFromObjects $(<) : $(>:S=$(SUFOBJ)) ; Objects $(>) ; } rule MainFromObjects { local _s _t ; # Add grist to file names # Add suffix to exe _s = [ FGristFiles $(>) ] ; _t = [ FAppendSuffix $(<) : $(SUFEXE) ] ; if $(_t) != $(<) { DEPENDS $(<) : $(_t) ; NOTFILE $(<) ; } # make compiled sources a dependency of target DEPENDS exe : $(_t) ; DEPENDS $(_t) : $(_s) ; MakeLocate $(_t) : $(LOCATE_TARGET) ; Clean clean : $(_t) ; Link $(_t) : $(_s) ; } rule MakeLocate { if $(>) { LOCATE on $(<) = $(>) ; Depends $(<) : $(>[1]) ; MkDir $(>[1]) ; } } rule MkDir { # If dir exists, don't update it # Do this even for $(DOT). NOUPDATE $(<) ; if $(<) != $(DOT) && ! $($(<)-mkdir) { local s ; # Cheesy gate to prevent multiple invocations on same dir # MkDir1 has the actions # Arrange for jam dirs $(<)-mkdir = true ; MkDir1 $(<) ; Depends dirs : $(<) ; # Recursively make parent directories. # $(<:P) = $(<)'s parent, & we recurse until root s = $(<:P) ; if $(NT) { switch $(s) { case *: : s = ; case *:\\ : s = ; } } if $(s) && $(s) != $(<) { Depends $(<) : $(s) ; MkDir $(s) ; } else if $(s) { NOTFILE $(s) ; } } } rule Object { local h ; # locate object and search for source, if wanted Clean clean : $(<) ; MakeLocate $(<) : $(LOCATE_TARGET) ; SEARCH on $(>) = $(SEARCH_SOURCE) ; # Save HDRS for -I$(HDRS) on compile. # We shouldn't need -I$(SEARCH_SOURCE) as cc can find headers # in the .c file's directory, but generated .c files (from # yacc, lex, etc) are located in $(LOCATE_TARGET), possibly # different from $(SEARCH_SOURCE). HDRS on $(<) = $(SEARCH_SOURCE) $(HDRS) $(SUBDIRHDRS) ; # handle #includes for source: Jam scans for headers with # the regexp pattern $(HDRSCAN) and then invokes $(HDRRULE) # with the scanned file as the target and the found headers # as the sources. HDRSEARCH is the value of SEARCH used for # the found header files. Finally, if jam must deal with # header files of the same name in different directories, # they can be distinguished with HDRGRIST. # $(h) is where cc first looks for #include "foo.h" files. # If the source file is in a distant directory, look there. # Else, look in "" (the current directory). if $(SEARCH_SOURCE) { h = $(SEARCH_SOURCE) ; } else { h = "" ; } HDRRULE on $(>) = HdrRule ; HDRSCAN on $(>) = $(HDRPATTERN) ; HDRSEARCH on $(>) = $(HDRS) $(SUBDIRHDRS) $(h) $(STDHDRS) ; HDRGRIST on $(>) = $(HDRGRIST) ; # if source is not .c, generate .c with specific rule switch $(>:S) { case .asm : As $(<) : $(>) ; case .c : Cc $(<) : $(>) ; case .C : C++ $(<) : $(>) ; case .cc : C++ $(<) : $(>) ; case .cpp : C++ $(<) : $(>) ; case .f : Fortran $(<) : $(>) ; case .l : Cc $(<) : $(<:S=.c) ; Lex $(<:S=.c) : $(>) ; case .s : As $(<) : $(>) ; case .y : Cc $(<) : $(<:S=.c) ; Yacc $(<:S=.c) : $(>) ; case * : UserObject $(<) : $(>) ; } } rule ObjectCcFlags { CCFLAGS on [ FGristFiles $(<:S=$(SUFOBJ)) ] += $(>) ; } rule ObjectC++Flags { C++FLAGS on [ FGristFiles $(<:S=$(SUFOBJ)) ] += $(>) ; } rule ObjectHdrs { HDRS on [ FGristFiles $(<:S=$(SUFOBJ)) ] += $(>) ; } rule Objects { local _i ; for _i in [ FGristFiles $(<) ] { Object $(_i:S=$(SUFOBJ)) : $(_i) ; DEPENDS obj : $(_i:S=$(SUFOBJ)) ; } } rule RmTemps { TEMPORARY $(>) ; } rule Setuid { MODE on [ FAppendSuffix $(<) : $(SUFEXE) ] = 4711 ; } rule Shell { DEPENDS shell : $(<) ; DEPENDS $(<) : $(>) ; SEARCH on $(>) = $(SEARCH_SOURCE) ; MODE on $(<) = $(SHELLMODE) ; Clean clean : $(<) ; Chmod $(<) ; } rule SubDir { local _r _s ; # # SubDir TOP d1 [ ... ] # # This introduces a Jamfile that is part of a project tree # rooted at $(TOP). It (only once) includes the project-specific # rules file $(TOP)/Jamrules and then sets search & locate stuff. # # If the variable $(TOPRULES) is set (where TOP is the first arg # to SubDir), that file is included instead of $(TOP)/Jamrules. # # d1 ... are the directory elements that lead to this directory # from $(TOP). We construct the system dependent path from these # directory elements in order to set search&locate stuff. # if ! $($(<[1])) { if ! $(<[1]) { EXIT SubDir syntax error ; } $(<[1]) = [ FSubDir $(<[2-]) ] ; } # # If $(TOP)/Jamrules hasn't been included, do so. # if ! $($(<[1])-included) { # Gated entry. $(<[1])-included = TRUE ; # File is $(TOPRULES) or $(TOP)/Jamrules. _r = $($(<[1])RULES) ; if ! $(_r) { _r = $(JAMRULES:R=$($(<[1]))) ; } # Include it. include $(_r) ; } # Get path to current directory from root using SubDir. # Save dir tokens for other potential uses. _s = [ FDirName $(<[2-]) ] ; SUBDIR = $(_s:R=$($(<[1]))) ; SUBDIR_TOKENS = $(<[2-]) ; # Now set up SEARCH_SOURCE, LOCATE_TARGET, SOURCE_GRIST # These can be reset if needed. For example, if the source # directory should not hold object files, LOCATE_TARGET can # subsequently be redefined. SEARCH_SOURCE = $(SUBDIR) ; LOCATE_SOURCE = $(ALL_LOCATE_TARGET) $(SUBDIR) ; LOCATE_TARGET = $(ALL_LOCATE_TARGET) $(SUBDIR) ; SOURCE_GRIST = [ FGrist $(<[2-]) ] ; # Reset per-directory ccflags, hdrs SUBDIRCCFLAGS = ; SUBDIRC++FLAGS = ; SUBDIRHDRS = ; } rule SubDirCcFlags { SUBDIRCCFLAGS += $(<) ; } rule SubDirC++Flags { SUBDIRC++FLAGS += $(<) ; } rule SubDirHdrs { SUBDIRHDRS += $(<) ; } rule SubInclude { local _s ; # That's # SubInclude TOP d1 [ d2 [ d3 [ d4 ] ] ] # # to include a subdirectory's Jamfile. if ! $($(<[1])) { EXIT Top level of source tree has not been set with $(<[1]) ; } _s = [ FDirName $(<[2-]) ] ; include $(JAMFILE:D=$(_s):R=$($(<[1]))) ; } rule Undefines { UNDEFS on [ FAppendSuffix $(<) : $(SUFEXE) ] += $(UNDEFFLAG)$(>) ; } rule UserObject { EXIT "Unknown suffix on" $(>) "- see UserObject rule in Jamfile(5)." ; } rule Yacc { local _h ; _h = $(<:BS=.h) ; # Some places don't have a yacc. MakeLocate $(<) $(_h) : $(LOCATE_SOURCE) ; if $(YACC) { DEPENDS $(<) $(_h) : $(>) ; Yacc1 $(<) $(_h) : $(>) ; YaccMv $(<) $(_h) : $(>) ; Clean clean : $(<) $(_h) ; } # make sure someone includes $(_h) else it will be # a deadly independent target INCLUDES $(<) : $(_h) ; } # # Utility rules; no side effects on these # rule FGrist { # Turn individual elements in $(<) into grist. local _g _i ; _g = $(<[1]) ; for _i in $(<[2-]) { _g = $(_g)!$(_i) ; } return $(_g) ; } rule FGristFiles { if ! $(SOURCE_GRIST) { return $(<) ; } else { return $(<:G=$(SOURCE_GRIST)) ; } } rule FGristSourceFiles { # Produce source file name name with grist in it, # if SOURCE_GRIST is set. # Leave header files alone, because they have a global # visibility. if ! $(SOURCE_GRIST) { return $(<) ; } else { local _i _o ; for _i in $(<) { switch $(_i) { case *.h : _o += $(_i) ; case * : _o += $(_i:G=$(SOURCE_GRIST)) ; } } return $(_o) ; } } rule FConcat { # Puts the variables together, removing spaces. local _t _r ; $(_r) = $(<[1]) ; for _t in $(<[2-]) { $(_r) = $(_r)$(_t) ; } return $(_r) ; } rule FSubDir { local _i _d ; # If $(>) is the path to the current directory, compute the # path (using ../../ etc) back to that root directory. # Sets result in $(<) if ! $(<[1]) { _d = $(DOT) ; } else { _d = $(DOTDOT) ; for _i in $(<[2-]) { _d = $(_d:R=$(DOTDOT)) ; } } return $(_d) ; } rule FDirName { local _s _i ; # Turn individual elements in $(<) into a usable path. if ! $(<) { _s = $(DOT) ; } else if $(VMS) { # This handles the following cases: # a -> [.a] # a b c -> [.a.b.c] # x: -> x: # x: a -> x:[a] # x:[a] b -> x:[a.b] switch $(<[1]) { case *:* : _s = $(<[1]) ; case \\[*\\] : _s = $(<[1]) ; case * : _s = [.$(<[1])] ; } for _i in [.$(<[2-])] { _s = $(_i:R=$(_s)) ; } } else if $(MAC) { _s = $(DOT) ; for _i in $(<) { _s = $(_i:R=$(_s)) ; } } else { _s = $(<[1]) ; for _i in $(<[2-]) { _s = $(_i:R=$(_s)) ; } } return $(_s) ; } rule _makeCommon { # strip common initial elements if $($(<)[1]) && $($(<)[1]) = $($(>)[1]) { $(<) = $($(<)[2-]) ; $(>) = $($(>)[2-]) ; _makeCommon $(<) : $(>) ; } } rule FRelPath { local _l _r ; # first strip off common parts _l = $(<) ; _r = $(>) ; _makeCommon _l : _r ; # now make path to root and path down _l = [ FSubDir $(_l) ] ; _r = [ FDirName $(_r) ] ; # Concatenate and save # XXX This should be better if $(_r) = $(DOT) { return $(_l) ; } else { return $(_r:R=$(_l)) ; } } rule FAppendSuffix { # E.g., "FAppendSuffix yacc lex foo.bat : $(SUFEXE) ;" # returns (yacc,lex,foo.bat) on Unix and # (yacc.exe,lex.exe,foo.bat) on NT. if $(>) { local _i _o ; for _i in $(<) { if $(_i:S) { _o += $(_i) ; } else { _o += $(_i:S=$(>)) ; } } return $(_o) ; } else { return $(<) ; } } rule unmakeDir { if $(>[1]:D) && $(>[1]:D) != $(>[1]) && $(>[1]:D) != \\\\ { unmakeDir $(<) : $(>[1]:D) $(>[1]:BS) $(>[2-]) ; } else { $(<) = $(>) ; } } rule FConvertToSlashes { local _d, _s, _i ; unmakeDir _d : $(<) ; _s = $(_d[1]) ; for _i in $(_d[2-]) { _s = $(_s)/$(_i) ; } return $(_s) ; } # # Actions # # # First the defaults # actions updated together piecemeal Archive { $(AR) $(<) $(>) } actions As { $(AS) $(ASFLAGS) -I$(HDRS) -o $(<) $(>) } actions C++ { $(C++) -c $(C++FLAGS) $(OPTIM) -I$(HDRS) -o $(<) $(>) } actions Cc { $(CC) -c $(CCFLAGS) $(OPTIM) -I$(HDRS) -o $(<) $(>) } actions Chgrp { chgrp $(GROUP) $(<) } actions Chmod1 { $(CHMOD) $(MODE) $(<) } actions Chown { chown $(OWNER) $(<) } actions piecemeal together existing Clean { $(RM) $(>) } actions File { $(CP) $(>) $(<) } actions GenFile1 { $(>[1]) $(<) $(>[2-]) } actions Fortran { $(FORTRAN) $(FORTRANFLAGS) -o $(<) $(>) } actions HardLink { $(RM) $(<) && $(LN) $(>) $(<) } actions Install { $(CP) $(>) $(<) } actions Lex { $(LEX) $(>) } actions LexMv { $(MV) lex.yy.c $(<) } actions Link bind NEEDLIBS { $(LINK) $(LINKFLAGS) -o $(<) $(UNDEFS) $(>) $(NEEDLIBS) $(LINKLIBS) } actions MkDir1 { $(MKDIR) $(<) } actions together Ranlib { $(RANLIB) $(<) } actions quietly updated piecemeal together RmTemps { $(RM) $(>) } actions Shell { $(AWK) ' NR == 1 { print "$(SHELLHEADER)" } NR == 1 && /^[#:]/ { next } /^##/ { next } { print } ' < $(>) > $(<) } actions Yacc1 { $(YACC) $(YACCFLAGS) $(>) } actions YaccMv { $(MV) $(YACCFILES).c $(<[1]) $(MV) $(YACCFILES).h $(<[2]) } # # RELOCATE - for compilers with broken -o flags # if $(RELOCATE) { actions C++ { $(C++) -c $(C++FLAGS) $(OPTIM) -I$(HDRS) $(>) } actions Cc { $(CC) -c $(CCFLAGS) $(OPTIM) -I$(HDRS) $(>) } actions ignore CcMv { [ $(<) != $(>:BS=$(SUFOBJ)) ] && $(MV) $(>:BS=$(SUFOBJ)) $(<) } } # # NOARUPDATE - can't update an archive # if $(NOARUPDATE) { actions Archive { $(AR) $(<) $(>) } } # # NT specific actions # if $(NT) { if $(TOOLSET) = VISUALC || $(TOOLSET) = INTELC { actions updated together piecemeal Archive { if exist $(<) set _$(<:B)_=$(<) $(AR) /out:$(<) %_$(<:B)_% $(>) } actions As { $(AS) /Ml /p /v /w2 $(>) $(<) ,nul,nul; } actions Cc { $(CC) /c $(CCFLAGS) $(OPTIM) /Fo$(<) /I$(HDRS) /I$(STDHDRS) $(>) } actions C++ { $(C++) /c $(C++FLAGS) $(OPTIM) /Fo$(<) /I$(HDRS) /I$(STDHDRS) /Tp$(>) } actions Link bind NEEDLIBS { $(LINK) $(LINKFLAGS) /out:$(<) $(UNDEFS) $(>) $(NEEDLIBS) $(LINKLIBS) } } else if $(TOOLSET) = VISUALC16 { actions updated together piecemeal Archive { $(AR) $(<) -+$(>) } actions Cc { $(CC) /c $(CCFLAGS) $(OPTIM) /Fo$(<) /I$(HDRS) $(>) } actions C++ { $(C++) /c $(C++FLAGS) $(OPTIM) /Fo$(<) /I$(HDRS) /Tp$(>) } actions Link bind NEEDLIBS { $(LINK) $(LINKFLAGS) /out:$(<) $(UNDEFS) $(>) $(NEEDLIBS) $(LINKLIBS) } } else if $(TOOLSET) = BORLANDC { actions updated together piecemeal Archive { $(AR) $(<) -+$(>) } actions Link bind NEEDLIBS { $(LINK) -e$(<) $(LINKFLAGS) $(UNDEFS) -L$(LINKLIBS) $(NEEDLIBS) $(>) } actions C++ { $(C++) -c $(C++FLAGS) $(OPTIM) -I$(STDHDRS) -I$(HDRS) -o$(<) $(>) } actions Cc { $(CC) -c $(CCFLAGS) $(OPTIM) -I$(STDHDRS) -I$(HDRS) -o$(<) $(>) } } else if $(TOOLSET) = MINGW { # actions together piecemeal Archive # { # $(AR) $(<) $(>:T) # } # actions Cc # { # $(CC) $(CCFLAGS) $(OPTIM) -I$(HDRS) -o$(<) $(>) # } # actions C++ # { # $(C++) $(C++FLAGS) $(OPTIM) -I$(HDRS) -o$(<) $(>) # } } else if $(TOOLSET) = WATCOM { actions together piecemeal Archive { $(AR) $(<) +-$(>) } actions Cc { $(CC) $(CCFLAGS) $(OPTIM) /Fo=$(<) /I$(HDRS) $(>) } actions C++ { $(C++) $(C++FLAGS) $(OPTIM) /Fo=$(<) /I$(HDRS) $(>) } actions Fortran { $(FORTRAN) $(FORTRANFLAGS) /FO=$(<) $(>) } actions Link bind NEEDLIBS { $(LINK) $(LINKFLAGS) /Fe=$(<) $(UNDEFS) $(>) $(NEEDLIBS) $(LINKLIBS) } actions Shell { $(CP) $(>) $(<) } } else if $(TOOLSET) = LCC { actions together piecemeal Archive { $(AR) /out:$(<) $(>) } actions Cc { $(CC) $(CCFLAGS) $(OPTIM) -Fo$(<) -I$(HDRS) $(>) } actions Link bind NEEDLIBS { $(LINK) $(LINKFLAGS) -o $(<) $(UNDEFS) $(>) $(NEEDLIBS) $(LINKLIBS) } actions Shell { $(CP) $(>) $(<) } } } # # OS2 specific actions # else if $(OS2) { if $(TOOLSET) = WATCOM { actions together piecemeal Archive { $(AR) $(<) +-$(>) } actions Cc { $(CC) $(CCFLAGS) $(OPTIM) /Fo=$(<) /I$(HDRS) $(>) } actions C++ { $(C++) $(C++FLAGS) $(OPTIM) /Fo=$(<) /I$(HDRS) $(>) } actions Link bind NEEDLIBS { $(LINK) $(LINKFLAGS) /Fe=$(<) $(UNDEFS) $(>) $(NEEDLIBS) $(LINKLIBS) } actions Shell { $(CP) $(>) $(<) } } else if $(TOOLSET) = EMX { actions together piecemeal Archive { $(AR) $(<) $(>:T) } actions Cc { $(CC) -c $(CCFLAGS) $(OPTIM) -I$(HDRS) -o$(<) $(>) } actions C++ { $(C++) -c $(C++FLAGS) $(OPTIM) -I$(HDRS) -o$(<) $(>) } } } # # VMS specific actions # else if $(VMS) { actions updated together piecemeal Archive { lib/replace $(<) $(>[1]) ,$(>[2-]) } actions Cc { $(CC)/obj=$(<) $(CCFLAGS) $(OPTIM) $(SLASHINC) $(>) } actions C++ { $(C++)/obj=$(<) $(C++FLAGS) $(OPTIM) $(SLASHINC) $(>) } actions piecemeal together existing Clean { $(RM) $(>[1]);* ,$(>[2-]);* } actions together quietly CreLib { if f$search("$(<)") .eqs. "" then lib/create $(<) } actions GenFile1 { mcr $(>[1]) $(<) $(>[2-]) } actions Link bind NEEDLIBS { $(LINK)/exe=$(<) $(LINKFLAGS) $(>[1]) ,$(>[2-]) ,$(NEEDLIBS)/lib ,$(LINKLIBS) } actions quietly updated piecemeal together RmTemps { $(RM) $(>[1]);* ,$(>[2-]);* } actions Shell { $(CP) $(>) $(<) } } # # Mac specific actions # else if $(MAC) { actions together Archive { $(LINK) -library -o $(<) $(>) } actions Cc { set -e MWCincludes $(MACINC) $(CC) -o $(<) $(CCFLAGS) $(OPTIM) $(>) } actions C++ { set -e MWCincludes $(MACINC) $(CC) -o $(<) $(C++FLAGS) $(OPTIM) $(>) } actions Link bind NEEDLIBS { $(LINK) -o $(<) $(LINKFLAGS) $(>) $(NEEDLIBS) "$(LINKLIBS)" } } # # Backwards compatibility with jam 1, where rules were uppercased. # rule BULK { Bulk $(<) : $(>) ; } rule FILE { File $(<) : $(>) ; } rule HDRRULE { HdrRule $(<) : $(>) ; } rule INSTALL { Install $(<) : $(>) ; } rule LIBRARY { Library $(<) : $(>) ; } rule LIBS { LinkLibraries $(<) : $(>) ; } rule LINK { Link $(<) : $(>) ; } rule MAIN { Main $(<) : $(>) ; } rule SETUID { Setuid $(<) ; } rule SHELL { Shell $(<) : $(>) ; } rule UNDEFINES { Undefines $(<) : $(>) ; } # Old INSTALL* didn't take dest directory. rule INSTALLBIN { InstallBin $(BINDIR) : $(<) ; } rule INSTALLLIB { InstallLib $(LIBDIR) : $(<) ; } rule INSTALLMAN { InstallMan $(MANDIR) : $(<) ; } # Compatibility with jam 2.2. rule addDirName { $(<) += [ FDirName $(>) ] ; } rule makeDirName { $(<) = [ FDirName $(>) ] ; } rule makeGristedName { $(<) = [ FGristSourceFiles $(>) ] ; } rule makeRelPath { $(<[1]) = [ FRelPath $(<[2-]) : $(>) ] ; } rule makeSuffixed { $(<[1]) = [ FAppendSuffix $(>) : $(<[2]) ] ; } # # Now include the user's Jamfile. # { if $(JAMFILE) { include $(JAMFILE) ; } } cunit-2.1-3-dfsg/Jamfile000066400000000000000000000020531260701235000150450ustar00rootroot00000000000000# # Jamfile to build CUnit - Root Directory # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP ; SubInclude TOP CUnit ; SubInclude TOP Examples ; SubInclude TOP Man ; SubInclude TOP Share ; SubInclude TOP doc ; cunit-2.1-3-dfsg/Jamrules000066400000000000000000000206301260701235000152610ustar00rootroot00000000000000# # Jamrules file to build CUnit - Root Directory # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- # On Linux, basic build options are set by configure. # See else clause below for other platforms. if $(OS) = LINUX || $(UNIX) { SLASH = / ; VERSION = 2.1 ; RELEASE = 3 ; VERSION_MAJOR = 2 ; VERSION_MINOR = 1 ; # root of install path prefix = /Users/aks/CUnitHome ; # choice of interfaces to build into library if TRUE = TRUE { BUILD_AUTOMATED = 1 ; } if TRUE = TRUE { BUILD_BASIC = 1 ; } if TRUE = TRUE { BUILD_CONSOLE = 1 ; } if FALSE != FALSE { BUILD_CURSES = 1 ; SYS_LIBS = -l ; } # BUILD_WINDOWS = 1 ; # choice of whether to build examples if TRUE = TRUE { BUILD_EXAMPLES = 1 ; } # choice of whether to build test program if TRUE = TRUE { BUILD_TEST = 1 ; } # choice of whether to build shared library if @ENABLE_SHARED@ = TRUE { BUILD_SHARED_LIB = 1 ; } # choice of whether to build static library if @ENABLE_STATIC@ = TRUE { BUILD_STATIC_LIB = 1 ; } # debug compilation mode if TRUE = FALSE { NODEBUG = 1 ; } # Use memory tracing if TRUE = TRUE { USE_MEMTRACE = -DMEMTRACE ; } # Recognize deprecated version 1.1 function names and build V1.1 examples if FALSE = TRUE { USE_DEPRECATED_NAMES = -DUSE_DEPRECATED_CUNIT_NAMES ; } } # On other platforms, comment out the option to disable it else { SLASH = \\ ; # Version number set manually so may be out-of-date VERSION = 2.1 ; RELEASE = 0 ; VERSION_MAJOR = 2 ; VERSION_MINOR = 1 ; # Set the root of install path prefix = c:\\dev\\CUnit_install ; # Comment to not include interface in library BUILD_AUTOMATED = 1 ; BUILD_BASIC = 1 ; BUILD_CONSOLE = 1 ; # BUILD_CURSES = 1 ; BUILD_WINDOWS = 1 ; # Comment to not build examples BUILD_EXAMPLES = 1 ; # Comment to not build test program BUILD_TEST = 1 ; # Comment to not build CUnit shared library BUILD_SHARED_LIB = 1 ; # Comment to not build CUnit static library BUILD_STATIC_LIB = 1 ; # Comment to compile with debugging & assertions enabled NODEBUG = 1 ; # Uncomment to perform memory tracing #USE_MEMTRACE = -DMEMTRACE ; # Uncomment to recognize deprecated version 1.1 function names # and build V1.1 examples #USE_DEPRECATED_NAMES = -DUSE_DEPRECATED_CUNIT_NAMES ; } #--------------------------------------------------------------------------- # Options from here on should not require routine tweaking PACKAGE = CUnit ; # Install locations - comment out to not install that class of file INSTALL_BIN_DIR = $(prefix)$(SLASH)bin ; INSTALL_LIB_DIR = $(prefix)$(SLASH)lib ; INSTALL_INC_DIR = $(prefix)$(SLASH)include$(SLASH)CUnit ; INSTALL_DOC_DIR = $(prefix)$(SLASH)doc$(SLASH)CUnit ; INSTALL_MAN_DIR = $(prefix)$(SLASH)man ; INSTALL_SHARE_DIR = $(prefix)$(SLASH)share$(SLASH)CUnit ; #INSTALL_EXAM_DIR = $(prefix)$(SLASH)share$(SLASH)CUnit$(SLASH)Examples ; #INSTALL_TEST_DIR = $(prefix)$(SLASH)share$(SLASH)CUnit$(SLASH)Test ; # Build directory - - will be qualified for compiler & build type BUILD_DIR_ROOT = $(TOP) ; EXAMPLES_DIR = $(TOP)$(SLASH)Examples ; CUNIT_HDR_DIR = $(TOP)$(SLASH)CUnit$(SLASH)Headers ; CUNIT_LIB_NAME = libcunit ; # Comment for normal jam deletion of object files after building targets KEEPOBJS = true ; if $(NODEBUG) { CCFLAGS += -DNDEBUG ; BUILD_SUBDIR = $(SLASH)Release ; } else { BUILD_SUBDIR = $(SLASH)Debug ; } if $(NT) { # variables not set properly for Windows/Win9x in Jambase 2.3 RM = del ; MV = move /Y ; SUFSHR = .dll ; # Windows-specific defines CCFLAGS = -DWIN32 -D_LIB -D_MBCS -D_DELAYTEST ; CUNIT_WIN_DIR = $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Win ; if $(BCCROOT) || ( $(TOOLSET) = BORLANDC ) { CCFLAGS += -q -d -g0 -j0 ; CCWARN = -w -w-8004 ; if $(NODEBUG) { CCDEBUG = -v- -O2 ; } else { CCDEBUG = -v -y -Od ; } BUILD_SUBDIR = $(BUILD_SUBDIR)$(SLASH)bcc ; } else if $(MSVCNT) || ( $(TOOLSET) = VISUALC ) { CCFLAGS += /Ze ; CCWARN = /W4 ; if $(NODEBUG) { CCDEBUG = /O2 ; } else { CCDEBUG = /Zi /Od ; } # Libraries are in different paths depending on VC version LINKFLAGS += /LIBPATH:$(VISUALC)\\lib /LIBPATH:$(VISUALC)\\PlatformSDK\\lib\\ ; LINKLIBS = advapi32.lib libc.lib oldnames.lib gdi32.lib user32.lib kernel32.lib ; BUILD_SUBDIR = $(BUILD_SUBDIR)$(SLASH)msvc ; } else if $(MINGW) || ( $(TOOLSET) = MINGW ) { # uncomment to select desired warning level and ansi-strictness CCWARN += -Wall ; CCWARN += -W ; CCWARN += -pedantic ; CCWARN += -Wshadow ; CCWARN += -ansi ; if $(NODEBUG) { CCDEBUG = -O3 ; } else { CCDEBUG = -g -O0 ; } BUILD_SUBDIR = $(BUILD_SUBDIR)$(SLASH)mingw ; } else if $(WATCOM) || ( $(TOOLSET) = WATCOM ) { CCFLAGS += /fr ; CCWARN = /wx ; if $(NODEBUG) { CCDEBUG = /ox ; } else { CCDEBUG = /od /d2 ; } BUILD_SUBDIR = $(BUILD_SUBDIR)$(SLASH)watcom ; } } else if $(OS) = LINUX { SUFSHR = .so ; # uncomment to select desired warning level and ansi-strictness CCWARN += -Wall ; CCWARN += -W ; CCWARN += -pedantic ; CCWARN += -Wshadow ; CCWARN += -ansi ; if $(NODEBUG) { CCDEBUG = -O3 ; } else { CCDEBUG = -g -O0 ; } BUILD_SUBDIR = $(BUILD_SUBDIR)$(SLASH)linux ; } CCFLAGS += $(USE_MEMTRACE) $(CCWARN) $(CCDEBUG) ; C++FLAGS += $(CCFLAGS) ; BUILD_DIR = $(BUILD_DIR_ROOT)$(BUILD_SUBDIR) ; #---------------------------------------------------------------------- # CUnit-specific rules & actions #---------------------------------------------------------------------- # If anyone can figure out a better way, good for you # (and let me (jds) know)! Here's the problem... # The built-in Jam install rules all convert the grist of # the source file to (:G=installed). As a result, they # seem unable to handle files having the same name in # different directories. If we want to install such files # as the Jamfile's or Makefile.am's or README's, the built-ins # can't handle it (in my hands, anyway). As a workaround, # we define a new rule which does not monkey with the grist # in this way. Duplicate file names will need to explicitly # use grist so Jam knows the difference, but the standard # <$(SOURCE_GRIST)> works in most cases. # rule DoInstallCUnitFile { local i t ; t = $(>:D=$(<)) ; DEPENDS install : $(t) ; DEPENDS $(t) : $(>) ; SEARCH on $(>) = $(SEARCH_SOURCE) ; MakeLocate $(t) : $(<) ; # Arrange for jam uninstall Clean uninstall : $(t) ; for i in $(>) { Install $(i:D=$(<)) : $(i) ; Chmod $(i:D=$(<)) ; } if $(UNIX) { if $(OWNER) { Chown $(t) ; OWNER on $(t) = $(OWNER) ; } if $(GROUP) { Chgrp $(t) ; GROUP on $(t) = $(GROUP) ; } } } rule InstallCUnitBin { DoInstallCUnitFile $(<) : $(>) ; MODE on $(>:D=$(<)) = $(EXEMODE) ; } rule InstallCUnitFile { DoInstallCUnitFile $(<) : $(>) ; MODE on $(>:D=$(<)) = $(FILEMODE) ; } #---------------------------------------------------------- # MakeImportLibrary # # This is a dummy rule. Import libraries are built in # the dll linking directive. However, jam doesn't know # that, so we provide a rule which does nothing more # than define a dependency. # # Parameters: # # 1 - name of the dll # 2 - name of the import library #---------------------------------------------------------- rule MakeImportLibrary { DEPENDS $(>) : $(<) ; LOCATE on $(>) = $(BUILD_DIR) ; } cunit-2.1-3-dfsg/Jamrules.in000066400000000000000000000210451260701235000156670ustar00rootroot00000000000000# # Jamrules file to build CUnit - Root Directory # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- # On Linux, basic build options are set by configure. # See else clause below for other platforms. if $(OS) = LINUX || $(UNIX) { SLASH = / ; VERSION = @VERSION@ ; RELEASE = @RELEASE@ ; VERSION_MAJOR = @VERSION_MAJOR@ ; VERSION_MINOR = @VERSION_MINOR@ ; # root of install path prefix = @prefix@ ; # choice of interfaces to build into library if @BUILD_AUTOMATED@ = TRUE { BUILD_AUTOMATED = 1 ; } if @BUILD_BASIC@ = TRUE { BUILD_BASIC = 1 ; } if @BUILD_CONSOLE@ = TRUE { BUILD_CONSOLE = 1 ; } if @BUILD_CURSES@ != FALSE { BUILD_CURSES = 1 ; SYS_LIBS = -l@CURSES_LIB@ ; } # BUILD_WINDOWS = 1 ; # choice of whether to build examples if @BUILD_EXAMPLES@ = TRUE { BUILD_EXAMPLES = 1 ; } # choice of whether to build test program if @BUILD_TEST@ = TRUE { BUILD_TEST = 1 ; } # choice of whether to build shared library if @ENABLE_SHARED@ = TRUE { BUILD_SHARED_LIB = 1 ; } # choice of whether to build static library if @ENABLE_STATIC@ = TRUE { BUILD_STATIC_LIB = 1 ; } # debug compilation mode if @ENABLE_DEBUG@ = FALSE { NODEBUG = 1 ; } # Use memory tracing if @ENABLE_MEMTRACE@ = TRUE { USE_MEMTRACE = -DMEMTRACE ; } # Recognize deprecated version 1.1 function names and build V1.1 examples if @ENABLE_DEPRECATED@ = TRUE { USE_DEPRECATED_NAMES = -DUSE_DEPRECATED_CUNIT_NAMES ; } } # On other platforms, comment out the option to disable it else { SLASH = \\ ; # Version number set manually so may be out-of-date VERSION = 2.1 ; RELEASE = 0 ; VERSION_MAJOR = 2 ; VERSION_MINOR = 1 ; # Set the root of install path prefix = c:\\dev\\CUnit_install ; # Comment to not include interface in library BUILD_AUTOMATED = 1 ; BUILD_BASIC = 1 ; BUILD_CONSOLE = 1 ; # BUILD_CURSES = 1 ; BUILD_WINDOWS = 1 ; # Comment to not build examples BUILD_EXAMPLES = 1 ; # Comment to not build test program BUILD_TEST = 1 ; # Comment to not build CUnit shared library BUILD_SHARED_LIB = 1 ; # Comment to not build CUnit static library BUILD_STATIC_LIB = 1 ; # Comment to compile with debugging & assertions enabled NODEBUG = 1 ; # Uncomment to perform memory tracing #USE_MEMTRACE = -DMEMTRACE ; # Uncomment to recognize deprecated version 1.1 function names # and build V1.1 examples #USE_DEPRECATED_NAMES = -DUSE_DEPRECATED_CUNIT_NAMES ; } #--------------------------------------------------------------------------- # Options from here on should not require routine tweaking PACKAGE = CUnit ; # Install locations - comment out to not install that class of file INSTALL_BIN_DIR = $(prefix)$(SLASH)bin ; INSTALL_LIB_DIR = $(prefix)$(SLASH)lib ; INSTALL_INC_DIR = $(prefix)$(SLASH)include$(SLASH)CUnit ; INSTALL_DOC_DIR = $(prefix)$(SLASH)doc$(SLASH)CUnit ; INSTALL_MAN_DIR = $(prefix)$(SLASH)man ; INSTALL_SHARE_DIR = $(prefix)$(SLASH)share$(SLASH)CUnit ; #INSTALL_EXAM_DIR = $(prefix)$(SLASH)share$(SLASH)CUnit$(SLASH)Examples ; #INSTALL_TEST_DIR = $(prefix)$(SLASH)share$(SLASH)CUnit$(SLASH)Test ; # Build directory - - will be qualified for compiler & build type BUILD_DIR_ROOT = $(TOP) ; EXAMPLES_DIR = $(TOP)$(SLASH)Examples ; CUNIT_HDR_DIR = $(TOP)$(SLASH)CUnit$(SLASH)Headers ; CUNIT_LIB_NAME = libcunit ; # Comment for normal jam deletion of object files after building targets KEEPOBJS = true ; if $(NODEBUG) { CCFLAGS += -DNDEBUG ; BUILD_SUBDIR = $(SLASH)Release ; } else { BUILD_SUBDIR = $(SLASH)Debug ; } if $(NT) { # variables not set properly for Windows/Win9x in Jambase 2.3 RM = del ; MV = move /Y ; SUFSHR = .dll ; # Windows-specific defines CCFLAGS = -DWIN32 -D_LIB -D_MBCS -D_DELAYTEST ; CUNIT_WIN_DIR = $(TOP)$(SLASH)CUnit$(SLASH)Sources$(SLASH)Win ; if $(BCCROOT) || ( $(TOOLSET) = BORLANDC ) { CCFLAGS += -q -d -g0 -j0 ; CCWARN = -w -w-8004 ; if $(NODEBUG) { CCDEBUG = -v- -O2 ; } else { CCDEBUG = -v -y -Od ; } BUILD_SUBDIR = $(BUILD_SUBDIR)$(SLASH)bcc ; } else if $(MSVCNT) || ( $(TOOLSET) = VISUALC ) { CCFLAGS += /Ze ; CCWARN = /W4 ; if $(NODEBUG) { CCDEBUG = /O2 ; } else { CCDEBUG = /Zi /Od ; } # Libraries are in different paths depending on VC version LINKFLAGS += /LIBPATH:$(VISUALC)\\lib /LIBPATH:$(VISUALC)\\PlatformSDK\\lib\\ ; LINKLIBS = advapi32.lib libc.lib oldnames.lib gdi32.lib user32.lib kernel32.lib ; BUILD_SUBDIR = $(BUILD_SUBDIR)$(SLASH)msvc ; } else if $(MINGW) || ( $(TOOLSET) = MINGW ) { # uncomment to select desired warning level and ansi-strictness CCWARN += -Wall ; CCWARN += -W ; CCWARN += -pedantic ; CCWARN += -Wshadow ; CCWARN += -ansi ; if $(NODEBUG) { CCDEBUG = -O3 ; } else { CCDEBUG = -g -O0 ; } BUILD_SUBDIR = $(BUILD_SUBDIR)$(SLASH)mingw ; } else if $(WATCOM) || ( $(TOOLSET) = WATCOM ) { CCFLAGS += /fr ; CCWARN = /wx ; if $(NODEBUG) { CCDEBUG = /ox ; } else { CCDEBUG = /od /d2 ; } BUILD_SUBDIR = $(BUILD_SUBDIR)$(SLASH)watcom ; } } else if $(OS) = LINUX { SUFSHR = .so ; # uncomment to select desired warning level and ansi-strictness CCWARN += -Wall ; CCWARN += -W ; CCWARN += -pedantic ; CCWARN += -Wshadow ; CCWARN += -ansi ; if $(NODEBUG) { CCDEBUG = -O3 ; } else { CCDEBUG = -g -O0 ; } BUILD_SUBDIR = $(BUILD_SUBDIR)$(SLASH)linux ; } CCFLAGS += $(USE_MEMTRACE) $(CCWARN) $(CCDEBUG) ; C++FLAGS += $(CCFLAGS) ; BUILD_DIR = $(BUILD_DIR_ROOT)$(BUILD_SUBDIR) ; #---------------------------------------------------------------------- # CUnit-specific rules & actions #---------------------------------------------------------------------- # If anyone can figure out a better way, good for you # (and let me (jds) know)! Here's the problem... # The built-in Jam install rules all convert the grist of # the source file to (:G=installed). As a result, they # seem unable to handle files having the same name in # different directories. If we want to install such files # as the Jamfile's or Makefile.am's or README's, the built-ins # can't handle it (in my hands, anyway). As a workaround, # we define a new rule which does not monkey with the grist # in this way. Duplicate file names will need to explicitly # use grist so Jam knows the difference, but the standard # <$(SOURCE_GRIST)> works in most cases. # rule DoInstallCUnitFile { local i t ; t = $(>:D=$(<)) ; DEPENDS install : $(t) ; DEPENDS $(t) : $(>) ; SEARCH on $(>) = $(SEARCH_SOURCE) ; MakeLocate $(t) : $(<) ; # Arrange for jam uninstall Clean uninstall : $(t) ; for i in $(>) { Install $(i:D=$(<)) : $(i) ; Chmod $(i:D=$(<)) ; } if $(UNIX) { if $(OWNER) { Chown $(t) ; OWNER on $(t) = $(OWNER) ; } if $(GROUP) { Chgrp $(t) ; GROUP on $(t) = $(GROUP) ; } } } rule InstallCUnitBin { DoInstallCUnitFile $(<) : $(>) ; MODE on $(>:D=$(<)) = $(EXEMODE) ; } rule InstallCUnitFile { DoInstallCUnitFile $(<) : $(>) ; MODE on $(>:D=$(<)) = $(FILEMODE) ; } #---------------------------------------------------------- # MakeImportLibrary # # This is a dummy rule. Import libraries are built in # the dll linking directive. However, jam doesn't know # that, so we provide a rule which does nothing more # than define a dependency. # # Parameters: # # 1 - name of the dll # 2 - name of the import library #---------------------------------------------------------- rule MakeImportLibrary { DEPENDS $(>) : $(<) ; LOCATE on $(>) = $(BUILD_DIR) ; } cunit-2.1-3-dfsg/Makefile.am000066400000000000000000000066741260701235000156240ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in COMPILE_DIRS = CUnit doc Man Share if ENABLE_EXAMPLES EXAMPLE_COMPILE_DIR = Examples endif COMPILE_DIRS += $(EXAMPLE_COMPILE_DIR) SUBDIRS = ${COMPILE_DIRS} distdir=${PACKAGE}-${VERSION}-${RELEASE} WD=`pwd` RPM_BUILD_ROOT=${WD}/BUILD RPM_SOURCE_DIR=${WD}/SOURCES #RPM_DEFINES=--define "_topdir ${WD}" --define "_prefix ${RPM_BUILD_ROOT}" --define "_unpackaged_files_terminate_build 0" RPM_DEFINES=--define "_topdir ${WD}" --define "_unpackaged_files_terminate_build 0" --define "_prefix /usr/local" RPMFLAGS=--buildroot ${RPM_BUILD_ROOT} ZIP=zip RPM=rpmbuild PACKAGE_TMPSPEC=./SPECS/@PACKAGE@-@VERSION@-@RELEASE@.spec SPECFILE=@PACKAGE@".spec" CHANGELOG="ChangeLog" SOURCE_GZIP_FILE=@PACKAGE@-@VERSION@-@RELEASE@.tar.gz SOURCE_ZIP_FILE=@PACKAGE@-@VERSION@-@RELEASE@.zip SOURCE_TAR_FILE=@PACKAGE@-@VERSION@-@RELEASE@.tar TAR_EXCLUDES=--exclude '*/BUILD/*' --exclude '*/SOURCES/*' --exclude '*/RPMS/*' --exclude '*/SRPMS/*' \ --exclude '*/SPECS/*' --exclude '*.tar' --exclude '*.zip' --exclude '*~' --exclude '*.gz' \ --exclude '*.rpm' --exclude 'autom4te.cache' ZIP_EXCLUDES=-x "*/BUILD/*" -x "*/SOURCES/*" -x "*/RPMS/*" -x "*/SRPMS/*" -x "*/SPECS/*" \ -x "*.tar" -x "*.zip" -x "*~" -x "*.gz" -x "*.rpm" -x "autom4te.cache" RPM_ATHLON=./RPMS/athlon/@PACKAGE@-@VERSION@-@RELEASE@.athlon.rpm RPM_I386=./RPMS/i386/@PACKAGE@-@VERSION@-@RELEASE@.i386.rpm RPM_I486=./RPMS/i486/@PACKAGE@-@VERSION@-@RELEASE@.i486.rpm RPM_I586=./RPMS/i586/@PACKAGE@-@VERSION@-@RELEASE@.i586.rpm RPM_I686=./RPMS/i686/@PACKAGE@-@VERSION@-@RELEASE@.i686.rpm RPM_K6=./RPMS/athlon/@PACKAGE@-@VERSION@-@RELEASE@.k6.rpm RPM_SRC=./SRPMS/@PACKAGE@-@VERSION@-@RELEASE@.src.rpm EXTRA_DIST=cunit.pc.in EXTRA_REMOVE=CUnit-Memory-Dump.lst ${SOURCE_TAR_FILE} ${SOURCE_ZIP_FILE} ${SOURCE_GZIP_FILE} \ *.rpm *.o *.ncb *.plg *.opt *.clw *.ilk *.exe *.pdb *.lib pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = cunit.pc RPMDIRS=BUILD SOURCES RPMS RPMS/i386 SRPMS SPECS clean-all: clean rm -f ${SOURCE_GZIP_FILE} ${SOURCE_ZIP_FILE} ${SOURCE_TAR_FILE} *.rpm rm -rf ${RPMDIRS} `find . -name "Temp"` `find . -name "Debug"` for file in ${EXTRA_REMOVE}; do rm -f `find . -name "${file}"`; done distclean-all: distclean rm -f ${SOURCE_GZIP_FILE} ${SOURCE_ZIP_FILE} ${SOURCE_TAR_FILE} *.rpm rm -rf ${RPMDIRS} rpm: rpm-package zip: clean cd .. && \ rm -f ${SOURCE_ZIP_FILE} && \ ${ZIP} -rT ${SOURCE_ZIP_FILE} @PACKAGE@-@VERSION@-@RELEASE@/* ${ZIP_EXCLUDES} && \ cp -f ${SOURCE_ZIP_FILE} ./@PACKAGE@-@VERSION@-@RELEASE@/ && \ cd @PACKAGE@-@VERSION@-@RELEASE@ tarball: clean set -x cd .. && \ rm -f ${SOURCE_TAR_FILE} && \ tar cvf ${SOURCE_TAR_FILE} ${TAR_EXCLUDES} @PACKAGE@-@VERSION@-@RELEASE@/* && \ cp -f ${SOURCE_TAR_FILE} ./@PACKAGE@-@VERSION@-@RELEASE@/ && \ rm -f ${SOURCE_TAR_FILE} && \ cd @PACKAGE@-@VERSION@-@RELEASE@ gzip: clean tarball rm -f ${SOURCE_GZIP_FILE} && \ gzip ${SOURCE_TAR_FILE} rpm-package: gzip rm -rf ${RPMDIRS} && \ mkdir -p ${RPMDIRS} && \ cp ${SPECFILE} ${PACKAGE_TMPSPEC} && \ echo "%changelog" >> ${PACKAGE_TMPSPEC} && \ cat ${CHANGELOG} >> ${PACKAGE_TMPSPEC} && \ export RPM_BUILD_ROOT=${RPM_BUILD_ROOT} && \ cp ${SOURCE_GZIP_FILE} ${RPM_SOURCE_DIR} ${RPM} ${RPM_DEFINES} ${RPMFLAGS} -bb ${PACKAGE_TMPSPEC} && \ ( (cp -f ${RPM_ATHLON} .) || (cp -f ${RPM_I386} .) || (cp -f ${RPM_I486} .) \ || (cp -f ${RPM_I586} .) || (cp -f ${RPM_I686} .) \ || (cp -f ${RPM_K6} .) || (cp -f ${RPM_NOARCH} .) ) && \ rm -rf ${RPMDIRS} cunit-2.1-3-dfsg/Makefile.in000066400000000000000000000755701260701235000156360ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/configure $(am__configure_deps) \ $(srcdir)/config.h.in mkinstalldirs $(srcdir)/Jamrules.in \ $(srcdir)/CUnit.spec.in $(srcdir)/cunit.pc.in COPYING TODO \ compile config.guess config.sub depcomp install-sh missing \ ltmain.sh 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 = Jamrules CUnit.spec cunit.pc CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pkgconfigdir)" DATA = $(pkgconfig_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = CUnit doc Man Share Examples DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ COMPILE_DIRS = CUnit doc Man Share $(EXAMPLE_COMPILE_DIR) @ENABLE_EXAMPLES_TRUE@EXAMPLE_COMPILE_DIR = Examples SUBDIRS = ${COMPILE_DIRS} distdir = ${PACKAGE}-${VERSION}-${RELEASE} WD = `pwd` RPM_BUILD_ROOT = ${WD}/BUILD RPM_SOURCE_DIR = ${WD}/SOURCES #RPM_DEFINES=--define "_topdir ${WD}" --define "_prefix ${RPM_BUILD_ROOT}" --define "_unpackaged_files_terminate_build 0" RPM_DEFINES = --define "_topdir ${WD}" --define "_unpackaged_files_terminate_build 0" --define "_prefix /usr/local" RPMFLAGS = --buildroot ${RPM_BUILD_ROOT} ZIP = zip RPM = rpmbuild PACKAGE_TMPSPEC = ./SPECS/@PACKAGE@-@VERSION@-@RELEASE@.spec SPECFILE = @PACKAGE@".spec" CHANGELOG = "ChangeLog" SOURCE_GZIP_FILE = @PACKAGE@-@VERSION@-@RELEASE@.tar.gz SOURCE_ZIP_FILE = @PACKAGE@-@VERSION@-@RELEASE@.zip SOURCE_TAR_FILE = @PACKAGE@-@VERSION@-@RELEASE@.tar TAR_EXCLUDES = --exclude '*/BUILD/*' --exclude '*/SOURCES/*' --exclude '*/RPMS/*' --exclude '*/SRPMS/*' \ --exclude '*/SPECS/*' --exclude '*.tar' --exclude '*.zip' --exclude '*~' --exclude '*.gz' \ --exclude '*.rpm' --exclude 'autom4te.cache' ZIP_EXCLUDES = -x "*/BUILD/*" -x "*/SOURCES/*" -x "*/RPMS/*" -x "*/SRPMS/*" -x "*/SPECS/*" \ -x "*.tar" -x "*.zip" -x "*~" -x "*.gz" -x "*.rpm" -x "autom4te.cache" RPM_ATHLON = ./RPMS/athlon/@PACKAGE@-@VERSION@-@RELEASE@.athlon.rpm RPM_I386 = ./RPMS/i386/@PACKAGE@-@VERSION@-@RELEASE@.i386.rpm RPM_I486 = ./RPMS/i486/@PACKAGE@-@VERSION@-@RELEASE@.i486.rpm RPM_I586 = ./RPMS/i586/@PACKAGE@-@VERSION@-@RELEASE@.i586.rpm RPM_I686 = ./RPMS/i686/@PACKAGE@-@VERSION@-@RELEASE@.i686.rpm RPM_K6 = ./RPMS/athlon/@PACKAGE@-@VERSION@-@RELEASE@.k6.rpm RPM_SRC = ./SRPMS/@PACKAGE@-@VERSION@-@RELEASE@.src.rpm EXTRA_DIST = cunit.pc.in EXTRA_REMOVE = CUnit-Memory-Dump.lst ${SOURCE_TAR_FILE} ${SOURCE_ZIP_FILE} ${SOURCE_GZIP_FILE} \ *.rpm *.o *.ncb *.plg *.opt *.clw *.ilk *.exe *.pdb *.lib pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = cunit.pc RPMDIRS = BUILD SOURCES RPMS RPMS/i386 SRPMS SPECS all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @test -f $@ || rm -f stamp-h1 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 Jamrules: $(top_builddir)/config.status $(srcdir)/Jamrules.in cd $(top_builddir) && $(SHELL) ./config.status $@ CUnit.spec: $(top_builddir)/config.status $(srcdir)/CUnit.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ cunit.pc: $(top_builddir)/config.status $(srcdir)/cunit.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pkgconfigdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-pkgconfigDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-pkgconfigDATA .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ clean-libtool cscope cscopelist-am ctags ctags-am dist \ dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ dist-xz dist-zip distcheck distclean distclean-generic \ distclean-hdr distclean-libtool distclean-tags distcleancheck \ distdir distuninstallcheck dvi dvi-am html html-am info \ info-am install install-am install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-pkgconfigDATA \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-pkgconfigDATA clean-all: clean rm -f ${SOURCE_GZIP_FILE} ${SOURCE_ZIP_FILE} ${SOURCE_TAR_FILE} *.rpm rm -rf ${RPMDIRS} `find . -name "Temp"` `find . -name "Debug"` for file in ${EXTRA_REMOVE}; do rm -f `find . -name "${file}"`; done distclean-all: distclean rm -f ${SOURCE_GZIP_FILE} ${SOURCE_ZIP_FILE} ${SOURCE_TAR_FILE} *.rpm rm -rf ${RPMDIRS} rpm: rpm-package zip: clean cd .. && \ rm -f ${SOURCE_ZIP_FILE} && \ ${ZIP} -rT ${SOURCE_ZIP_FILE} @PACKAGE@-@VERSION@-@RELEASE@/* ${ZIP_EXCLUDES} && \ cp -f ${SOURCE_ZIP_FILE} ./@PACKAGE@-@VERSION@-@RELEASE@/ && \ cd @PACKAGE@-@VERSION@-@RELEASE@ tarball: clean set -x cd .. && \ rm -f ${SOURCE_TAR_FILE} && \ tar cvf ${SOURCE_TAR_FILE} ${TAR_EXCLUDES} @PACKAGE@-@VERSION@-@RELEASE@/* && \ cp -f ${SOURCE_TAR_FILE} ./@PACKAGE@-@VERSION@-@RELEASE@/ && \ rm -f ${SOURCE_TAR_FILE} && \ cd @PACKAGE@-@VERSION@-@RELEASE@ gzip: clean tarball rm -f ${SOURCE_GZIP_FILE} && \ gzip ${SOURCE_TAR_FILE} rpm-package: gzip rm -rf ${RPMDIRS} && \ mkdir -p ${RPMDIRS} && \ cp ${SPECFILE} ${PACKAGE_TMPSPEC} && \ echo "%changelog" >> ${PACKAGE_TMPSPEC} && \ cat ${CHANGELOG} >> ${PACKAGE_TMPSPEC} && \ export RPM_BUILD_ROOT=${RPM_BUILD_ROOT} && \ cp ${SOURCE_GZIP_FILE} ${RPM_SOURCE_DIR} ${RPM} ${RPM_DEFINES} ${RPMFLAGS} -bb ${PACKAGE_TMPSPEC} && \ ( (cp -f ${RPM_ATHLON} .) || (cp -f ${RPM_I386} .) || (cp -f ${RPM_I486} .) \ || (cp -f ${RPM_I586} .) || (cp -f ${RPM_I686} .) \ || (cp -f ${RPM_K6} .) || (cp -f ${RPM_NOARCH} .) ) && \ rm -rf ${RPMDIRS} # 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: cunit-2.1-3-dfsg/Man/000077500000000000000000000000001260701235000142665ustar00rootroot00000000000000cunit-2.1-3-dfsg/Man/Jamfile000066400000000000000000000017271260701235000155670ustar00rootroot00000000000000# # Jamfile to build CUnit - man Directory # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP Man ; SubInclude TOP Man man3 ; cunit-2.1-3-dfsg/Man/Makefile.am000066400000000000000000000001151260701235000163170ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in SUBDIRS = \ man3 cunit-2.1-3-dfsg/Man/Makefile.in000066400000000000000000000441061260701235000163400ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = Man DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ SUBDIRS = \ man3 all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Man/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Man/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am # 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: cunit-2.1-3-dfsg/Man/man3/000077500000000000000000000000001260701235000151245ustar00rootroot00000000000000cunit-2.1-3-dfsg/Man/man3/CUnit.3000066400000000000000000000706041260701235000162410ustar00rootroot00000000000000.TH CUnit 3 "August 2004" "CUnit-2.0-1" "CUnit Programmer's Manual" .SH NAME CUnit - A unit testing framework for C .SH SYNOPSIS .PD 0.4v .TP 30 .B #include ASSERT definitions, test management. .TP 30 .B #include Automated interface with xml output. .TP 30 .B #include Basic interface with console output. .TP 30 .B #include Interactive console interface. .TP 30 .B #include Interactive curses interface. .PD 2v .SH DESCRIPTION CUnit is a system for writing, administering, and running unit tests in C. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. CUnit is built as a static library which is linked with the user's testing code. .SH "STRUCTURE & GENERAL USAGE" CUnit is a combination of a platform-independent framework with various user interfaces. The core framework provides basic support for managing a test registry, suites, and test cases. The user interfaces facilitate interaction with the framework to run tests and view results. .P The basic hierarchichal organization of CUnit is depicted here: .P .br Test Registry | ----------------------------- | | Suite '1' . . . . Suite 'N' | | --------------- --------------- | | | | Test '11' ... Test '1M' Test 'N1' ... Test 'NM' .br .P Individual test cases are packaged into suites, which are registered with the active test registry. Suites can have setup and teardown functions which are automatically called before and after running the suite's tests. All suites/tests in the registry may be run using a single function call, or selected suites or tests can be run. .P The typical usage of CUnit is: .HP 3 .PD 0.2v 1. Write functions for tests (and suite init/cleanup if necessary). .HP 3 2. Initialize the test registry using .B CU_initialize_registry() .HP 3 3. Add test suites to the registry using .B CU_add_suite() .HP 3 4. Add test cases to the suites using .B CU_add_test() .TP 3 5. Run tests using the desired interface, e.g. .B CU_console_run_tests() to use the interactive console. .HP 3 6. Cleanup the test registry using .B CU_cleanup_registry() .PD 2v .P All public names in CUnit are prefixed with 'CU_'. This helps minimize clashes with names in user code. Note that earlier versions CUnit used different names without this prefix. The older API names are deprecated but still supported. To use the older names, user code must now be compiled with .B USE_DEPRECATED_CUNIT_NAMES defined. .SH "WRITING TEST FUNCTIONS" A "test" is a C function having the signature: .B "void test_func(void)." There are no restrictions on the content of a test function, except that it should not modify the CUnit framework (e.g. add suites or tests, modify the test registry, or initiate a test run). A test function may call other functions (which also may not modify the framework). Registering a test will cause it's function to be run when the test is run. .P CUnit provides a set of assertions for testing logical conditions. The success or failure of these assertions is tracked by the framework, and can be viewed when a test run is complete. Each assertion tests a single logical condition, and fails if the condition evaluates to CU_FALSE. Upon failure, the test continues unless the user chooses the 'xxx_FATAL' version of an assertion. In that case, the test function returns immediately. CUnit provides a set of assertions for testing logical conditions. The success or failure of these assertions is tracked by the framework, and can be viewed when a test run is complete. .P Each assertion tests a single logical condition, and fails if the condition evaluates to CU_FALSE. Upon failure, the test function continues unless the user chooses the 'xxx_FATAL' version of an assertion. In that case, the test function is aborted and returns immediately. .B "FATAL versions of assertions should be used with caution!" There is no opportunity for the test function to clean up after itself once a FATAL assertion fails. The normal suite cleanup function is not affected, however. .P There are also special "assertions" for registering a pass or fail with the framework without performing a logical test. These are useful for testing flow of control or other conditions not requiring a logical test. .P Other functions called by a registered test function may use the CUnit assertions freely. These assertions will be counted for the calling function. They may also use FATAL versions of assertions - failure will abort the original test function and its entire call chain. .P The assertions defined by CUnit are: .P .B #include .P .B CU_ASSERT(int expression) .br .B CU_ASSERT_FATAL(int expression) .br .B CU_TEST(int expression) .br .B CU_TEST_FATAL(int expression) .RS 5 Assert that expression is CU_TRUE (non-zero). .RE .P .B CU_ASSERT_TRUE(value) .br .B CU_ASSERT_TRUE_FATAL(value) .RS 5 Assert that value is CU_TRUE (non-zero). .RE .P .B CU_ASSERT_FALSE(value) .br .B CU_ASSERT_FALSE_FATAL(value) .RS 5 Assert that value is CU_FALSE (zero). .RE .P .B CU_ASSERT_EQUAL(actual, expected) .br .B CU_ASSERT_EQUAL_FATAL(actual, expected) .RS 5 Assert that actual == expected. .RE .P .B CU_ASSERT_NOT_EQUAL(actual, expected) .br .B CU_ASSERT_NOT_EQUAL_FATAL(actual, expected) .RS 5 Assert that actual != expected. .RE .P .B CU_ASSERT_PTR_EQUAL(actual, expected) .br .B CU_ASSERT_PTR_EQUAL_FATAL(actual, expected) .RS 5 Assert that pointers actual == expected. .RE .P .B CU_ASSERT_PTR_NOT_EQUAL(actual, expected) .br .B CU_ASSERT_PTR_NOT_EQUAL_FATAL(actual, expected) .RS 5 Assert that pointers actual != expected. .RE .P .B CU_ASSERT_PTR_NULL(value) .br .B CU_ASSERT_PTR_NULL_FATAL(value) .RS 5 Assert that pointer value == NULL. .RE .P .B CU_ASSERT_PTR_NOT_NULL(value) .br .B CU_ASSERT_PTR_NOT_NULL_FATAL(value) .RS 5 Assert that pointer value != NULL. .RE .P .B CU_ASSERT_STRING_EQUAL(actual, expected) .br .B CU_ASSERT_STRING_EQUAL_FATAL(actual, expected) .RS 5 Assert that strings actual and expected are equivalent. .RE .P .B CU_ASSERT_STRING_NOT_EQUAL(actual, expected) .br .B CU_ASSERT_STRING_NOT_EQUAL_FATAL(actual, expected) .RS 5 Assert that strings actual and expected differ. .RE .P .B CU_ASSERT_NSTRING_EQUAL(actual, expected, count) .br .B CU_ASSERT_NSTRING_EQUAL_FATAL(actual, expected, count) .RS 5 Assert that 1st count chars of actual and expected are the same. .RE .P .B CU_ASSERT_NSTRING_NOT_EQUAL(actual, expected, count) .br .B CU_ASSERT_NSTRING_NOT_EQUAL_FATAL(actual, expected, count) .RS 5 Assert that 1st count chars of actual and expected differ. .RE .P .B CU_ASSERT_DOUBLE_EQUAL(actual, expected, granularity) .br .B CU_ASSERT_DOUBLE_EQUAL_FATAL(actual, expected, granularity) .RS 5 Assert that |actual - expected| <= |granularity|. .br Math library must be linked in for this assertion. .RE .P .B CU_ASSERT_DOUBLE_NOT_EQUAL(actual, expected, granularity) .br .B CU_ASSERT_DOUBLE_NOT_EQUAL_FATAL(actual, expected, granularity) .RS 5 Assert that |actual - expected| > |granularity|. .br Math library must be linked in for this assertion. .RE .P .B CU_PASS(message) .RS 5 Register a success without performing a logical test. .RE .P .B CU_FAIL(message) .br .B CU_FAIL_FATAL(message) .RS 5 Register a failure without performing a logical test. .RE .SH "THE TEST REGISTRY" The test registry is the repository for suites and associated tests. The user normally only needs to initialize the registry before use and clean up afterwards. However, other functions are provided to manipulate the registry when necessary. .P The main functions needed by clients are: .P .B #include (included automatically by ) .TP 5 .B "CU_ErrorCode CU_initialize_registry(void)" Initializes the framework. This function should be called before any other CUnit functions. Failure to do so will likely result in a crash. An error status code is returned: .RS 5 .TP 15 CUE_SUCCESS if initialization is successful. .TP 15 CUE_NOMEMORY if memory allocation failed. .RE .TP 5 .B "CU_BOOL CU_registry_initialized(void)" Checks whether the framework has been initialized. This may be useful if the registry setup is distributed over multiple files that need to make sure the registry is ready for test registration. .TP 5 .B "void CU_cleanup_registry(void)" Cleans up and releases memory used by the framework. No CUnit functions (other than .B CU_initialize_registry() ) should be called after this function. Failure to call .B CU_cleanup_registry() will result in memory leaks. Note also that this function will destroy all suites (and associated tests) in the registry. .P Other registry functions are primarily for internal and testing purposes. However, general users may find use for them and should be aware of them. These include: .TP 5 .B "CU_pTestRegistry CU_get_registry(void)" Retrieve a pointer to the active test registry. The registry is a variable of data type CU_Testregistry (declared in ). Note that the returned pointer will be invalidated by a call to .B CU_cleanup_registry() or .B CU_initialize_registry() \. .TP 5 .B "CU_pTestRegistry CU_set_registry(CU_pTestRegistry pTestRegistry)" Replace the active registry with the specified one. A pointer to the previous registry is returned. .B "It is the caller's responsibility to destroy the old registry." This can be accomplished using .B CU_destroy_existing_registry() on the returned pointer. Alternatively, the old registry can be set as the active one. A subsequent call to .B CU_cleanup_registry() will then destroy it automatically. Care should be taken not to explicitly destroy a registry that is set as the active one. This will result in multiple frees of the same memory and a likely crash. .TP 5 .B "CU_pTestRegistry CU_create_new_registry(void)" Create a new registry and return a pointer to it. The new registry will not contain any suites or tests. It is the caller's responsibility to destroy the new registry by one of the mechanisms described previously. .TP 5 .B "void CU_destroy_existing_registry(CU_pTestRegistry* ppRegistry)" Destroy the specified test registry, including any registered suites. This function should not be called for a registry which is set as the active test registry. This will result in a multiple free of the same memory when .B CU_cleanup_registry() is called. ppRegistry may not be NULL, but the pointer it points to may be. Note that *ppRegistry will be NULL on return. .SH "MANAGING TESTS AND SUITES" In order for a test to be run by CUnit, it must be added to a test collection (suite) which is registered with the test registry. .SS "Adding Suites to the Registry" The first step in setting up a test system is creating and registering one or more test collections (suites). Each suite has a name which may be used to reference the suite. Therefore, it is recommended (but not required) that each registered suite have a unique name. The current implementation does not support the creation of suites independent of the test registry. Suites are simultaneously created and added to the active registry as follows. .P .B #include (included automatically by ) .TP 5 .B "CU_pSuite CU_add_suite(const char* strName, CU_InitializeFunc pInit, CU_CleanupFunc pClean)" This creates and registers a new suite having the specified name, initialization function, and cleanup function. A pointer to the new suite is returned for use in adding tests to the suite. This pointer will be NULL if a fatal error occurs. In addition, the framework error status is set as follows: .RS 5 .TP 18 CUE_SUCCESS The suite was successfully created and registered. .TP 18 CUE_NOREGISTRY Error: Test Registry is not initialized. .TP 18 CUE_NO_SUITENAME Error: Suite name is not specified or NULL. .TP 18 CUE_DUP_SUITE Warning: The registry already has a suite with this name. .TP 18 CUE_NOMEMORY Error: Memory allocation failed. .RE .IP "" 5 The initialization and cleanup functions are optional. Both are C functions having the signature .B "int func_name(void)." These functions can perform setup and teardown operations needed to support the suite's tests. They are called before and after the suite's tests are run, even if only 1 of the suite's tests is run. They take no arguments, and should return NULL if they complete successfully (non-NULL otherwise). If either function is not required for a particular suite, pass NULL to .B CU_add_suite(). .SS "Adding Tests to Suites" Tests are created and added to suites. Each test has a name which may be used to reference the test later. Therefore, it is recommended (but not required) that the name be unique among all tests added to a single suite. The current implementation does not support the creation of tests independent of registered suites. Tests are simultaneously created and added to a suite as follows. .P .B #include (included automatically by ) .TP 5 .B "CU_pTest CU_add_test(CU_pSuite pSuite, const char* strName, CU_TestFunc pTestFunc)" This creates a new test having the specified name and test function, and adds it to the indicated suite. The suite should have been previously created using .B CU_add_suite(). A pointer to the new test is returned, which will be NULL if a fatal error occurred. In addition, the framework error status is set as follows: .RS 5 .TP 18 CUE_SUCCESS The test was successfully created and added. .TP 18 CUE_NOREGISTRY Error: Test Registry is not initialized. .TP 18 CUE_NOSUITE Error: Specified suite is NULL or invalid. .TP 18 CUE_NO_TESTNAME Error: Test name is not specified or NULL. .TP 18 CUE_NOTEST Error: Test function is not specified or NULL. .TP 18 CUE_DUP_TEST Warning: The suite already has a test with this name. .TP 18 CUE_NOMEMORY Error: Memory allocation failed. .SS Activation of Suites and Tests A suite or test must be active to be executed during a test run (all suites and tests are active by default upon creation). The active state of a suite or test is available as pSuite->fActive and pTest->fActive, respectively. The flag will be CU_TRUE when the entity is active, CU_FALSE otherwise. Use the following functions to selectively deactivate suites and tests to choose subsets of tests to run dynamically. Note that it is a framework error to deactivate a test or suite and then specifically request that it be run. .P .B #include (included automatically by ) .TP 5 .B "CU_ErrorCode CU_set_suite_active(CU_pSuite pSuite, CU_BOOL fNewActive)" .TP 5 .B "CU_ErrorCode CU_set_test_active(CU_pTest pTest, CU_BOOL fNewActive)" Pass CU_TRUE to these functions to activate a suite/test, CU_FALSE to deactivate it. These functions return CUE_NOSUITE and CUE_NOTEST, respectively, if the specified suite or test is NULL. .SS Modifying Other Attributes of Suites and Tests Normally the attributes of suites and tests are set at creation time. In some cases, a client may wish to manipulate these to modify the test structure dynamically. The following functions are provided for this purpose, and should be used instead of directly setting the value of the data structure members. All return CUE_SUCCESS on success, and the indicated error code on failure. .P .TP5 .B "CU_ErrorCode CU_set_suite_name(CU_pSuite pSuite, const char *strNewName)" .TP 5 .B "CU_ErrorCode CU_set_test_name(CU_pTest pTest, const char *strNewName)" These functions change the name of registered suites and tests. The current names are available as the .B pSuite->pName and .BpTest->pName data structure members. If the suite or test is NULL, then CUE_NOSUITE or CUE_NOTEST is returned, respectively. If strNewName is NULL, then CUE_NO_SUITENAME or CUE_NO_TESTNAME is returned, respectively. .P .TP 5 .B "CU_ErrorCode CU_set_suite_initfunc(CU_pSuite pSuite, CU_InitializeFunc pNewInit)" .TP 5 .B "CU_ErrorCode CU_set_suite_cleanupfunc(CU_pSuite pSuite, CU_CleanupFunc pNewClean)" These functions change the initialization and cleanup functions for a registered suite. The current functions are available as the .B pSuite->pInitializeFunc and .B pSuite->pCleanupFunc data structure members. If the suite is NULL then CUE_NOSUITE is returned. .P .TP 5 .B "CU_ErrorCode CU_set_test_func(CU_pTest pTest, CU_TestFunc pNewFunc)" This function changes the test function for a registered test. The current test function is available as the .B pTest->pTestFunc data structure member. If either pTest or pNewFunc is NULL, then CUE_NOTEST is returned. .SS Lookup of Individual Suites and Tests In most cases, clients will have references to registered suites and tests as pointers returned from .B CU_add_suite() and .B CU_add_test(). Occassionally, a client may need to be able to retrieve a reference to a suite or test. The following functions are provided to assist clients with this when the client has some information about the entity (name or order of registration). In cases where nothing is known about the suite or test, the client will need to iterate the internal data structures to enumerate the suites and tests. This is not directly supported in the client API. .P .TP5 .B "CU_pSuite CU_get_suite(const char* strName)" .TP5 .B "CU_pSuite CU_get_suite_at_pos(unsigned int pos)" .TP5 .B "unsigned int CU_get_suite_pos(CU_pSuite pSuite)" .TP5 .B "unsigned int CU_get_suite_pos_by_name(const char* strName)"

These functions facilitate lookup of suites registered in the active test registry. The first 2 functions allow lookup of the suite by name or position and return NULL if the suite cannot be found. The position is a 1-based index in the range [1 .. .B CU_get_registry() ->uiNumberOfSuites]. This may be helpful when suites having duplicate names are registered, in which case lookup by name can only retrieve the 1st suite having that name. The second 2 functions help the client identify the position of a registered suite. These return 0 if the suite cannot be found. In addition, all these functions set the CUnit error state to CUE_NOREGISTRY> if the registry is not initialized. As appropriate, CUE_NO_SUITENAME is set if strName is NULL, and CUE_NOSUITE is set if pSuite is NULL. .P .TP5 .B "CU_pTest CU_get_test(CU_pSuite pSuite, const char *strName)" .TP5 .B "CU_pTest CU_get_test_at_pos<(CU_pSuite pSuite, unsigned int pos)" .TP5 .B "unsigned int CU_get_test_pos<(CU_pSuite pSuite, CU_pTest pTest)" .TP5 .B "unsigned int CU_get_test_pos_by_name(CU_pSuite pSuite, const char *strName)" These functions facilitate lookup of tests registered in suites. The first 2 functions allow lookup of the test by name or position and return NULL if the test cannot found. The position is a 1-based index in the range [1 .. pSuite->uiNumberOfSuites]. This may be helpful when tests having duplicate names are registered, in which case lookup by name can only retrieve the 1st test having that name. The second 2 functions help the client identify the position of a test in a suite. These return 0 if the test cannot be found. In addition, all these functions set the CUnit error state to CUE_NOREGISTRY if the registry is not initialized, and to CUE_NOSUITE if pSuite is NULL. As appropriate, CUE_NO_TESTNAME is set if strName is NULL, and CUE_NOTEST is set if pTest is NULL. .SH "RUNNING TESTS" CUnit supports running all tests in all registered suites, but individual tests or suites can also be run. During each run, the framework keeps track of the number of suites, tests, and assertions run, passed, and failed. Note that the previous results are cleared each time a test run is initiated (even if it fails). .P While CUnit provides primitive functions for running suites and tests, most users will want to use one of the user interfaces. These interfaces handle the details of interaction with the framework and provide output of test details and results for the user. For more about the primitive functions, see .B . .SS "Test Results" The interfaces present results of test runs, but client code may sometimes need to access the results directly. These results include various run counts, as well as a linked list of failure records holding the failure details. Test results must be retrieved before attempting to run other tests, which resets the result information. Functions for accessing the test results are: .P .B #include (included automatically by ) .TP 5 .B "unsigned int CU_get_number_of_suites_run(void)' Retrieve the number of suites run. Suite having initialization functions which fail are not run. To get the total number of registered suites, use .B "CU_get_registry()->uiNumberOfSuites." .TP 5 .B "unsigned int CU_get_number_of_suites_failed(void)" Retrieve the number of suites which had initialization or cleanup functions which failed (returned non-NULL). .TP 5 .B "unsigned int CU_get_number_of_tests_run(void)" Retrieve the number of tests run. Tests in suites having initialization functions which fail are not run. To get the total number of registered tests , use .B "CU_get_registry()->uiNumberOfTests." .TP 5 .B "unsigned int CU_get_number_of_tests_failed(void)" Retrieve the number of tests which contained at least 1 failed assertion. .TP 5 .B "unsigned int CU_get_number_of_asserts(void)" Retrieve the number of CUnit assertions made during the test run. .TP 5 .B "unsigned int CU_get_number_of_successes(void)" Retrieve the number of assertions which passed. .TP 5 .B "unsigned int CU_get_number_of_failures(void)" Retrieve the number of assertions which failed. .TP 5 .B "const CU_pRunSummary CU_get_run_summary(void)" Retrieve a .B CU_RunSummary containing all the run count information. This data structure is declared in .B and includes the (self-explanatory) .I "unsigned int" fields nSuitesRun, nSuitesFailed, nTestsRun, nTestsFailed, nAsserts, and nAssertsFailed. .TP 5 .B "const CU_pFailureRecord CU_get_failure_list(void)" Retrieve the head of the linked list of failure records for the last run. Each assertion failure or suite init/cleanup function failure is registered in a new .B CU_FailureRecord in the linked list. This data structure is declared in .B and includes the following fields: .br .RS 10 .B "unsigned int uiLineNumber" .br .B "char* strFileName" .br .B "char* strCondition" .br .B "CU_pTest pTest" .br .B "CU_pSuite pSuite" .RE .SS "Automated Interface" The automated interface is non-interactive. The current implementation only supports running all registered suites. Results are output to an xml file to be viewed by appropriate external tools. Registered tests can also be listed to an xml file for viewing. The following public functions are available: .P .B #include .TP 5 .B "void CU_automated_run_tests(void)" Run all tests in all registered (and active) suites. Results are output to a file named .I "ROOT-Results.xml." The filename 'ROOT' is set using .B CU_set_output_filename(), or else the default 'CUnitAutomated' is used. This means that the same filename is used each run (and the results file overwritten) if the user does not explicitly set the 'ROOT' for each run. .TP 5 .B "CU_ErrorCode CU_list_tests_to_file(void)" Lists the registered suites and associated tests to file. The listing file is named .I "ROOT-Listing.xml." The filename 'ROOT' is set using .B CU_set_output_filename(), or else the default 'CUnitAutomated' is used. This means that the same filename is used each run (and the listing file overwritten) if the user does not explicitly set the 'ROOT' for each run. .TP 5 .B "void CU_set_output_filename(const char* szFilenameRoot)" Set the filename root to use for automated results and listing files. .SS "Basic Interface (non-interactive)" The basic interface is also non-interactive, with results output to stdout. This interface supports running individual suites or tests, and allows client code to control the type of output displayed during each run. This interface provides the most flexibility to clients desiring simplified access to the CUnit API. The following public functions are provided: .P .B #include .TP 5 .B "CU_ErrorCode CU_basic_run_tests(void)" Run all tests in all registered suites. Only the active suites are run, and it is not considered an error if inactive suites are encountered and skipped. Returns the 1st error code occurring during the test run. The type of output is controlled by the current run mode, which can be set using .B CU_basic_set_mode(). .TP 5 .B "CU_ErrorCode CU_basic_run_suite(CU_pSuite pSuite)" Run all tests in single specified suite. Returns the 1st error code occurring during the test run. .B CU_basic_run_suite() itself generates CUE_NOSUITE if pSuite is NULL, and CUE_SUITE_INACTIVE if the requested suite is not active. The type of output is controlled by the current run mode. .TP 5 .B "CU_ErrorCode CU_basic_run_test(CU_pSuite pSuite, CU_pTest pTest)" Run a single test in a specified suite. Returns the 1st error code occurring during the test run. .B BU_basic_run_test() itself generates CUE_NOSUITE of pSuite is NULL; CUE_NOTEST if pTest is NULL; CUE_SUITE_INACTIVE if pSuite is not active for execution, CUE_TEST_NOT_IN_SUITE if pTest is not a registered member of pSuite, and CUE_TEST_INACTIVE if pTest is not active for execution. The type of output is controlled by the current run mode. .TP 5 .B "void CU_basic_set_mode(CU_BasicRunMode mode)" Set the basic run mode, which controls the output during the run. Choices are: .RS 10 .TP 15 CU_BRM_NORMAL Failures and run summary are printed. .PD 0.4v .TP 15 CU_BRM_SILENT No output is printed except error messages. .TP 15 CU_BRM_VERBOSE Maximum output of run details. .RE .PD 2v .TP 5 .B "CU_BasicRunMode CU_basic_get_mode(void)" Retrieve the current basic run mode code. .TP 5 .B "void CU_basic_show_failures(CU_pFailureRecord pFailure)" Prints a summary of all failures to stdout. Does not depend on the run mode. .SS "Interactive Console Interface" The console interface is interactive. All the client needs to do is initiate the console session, and the user controls the test run interactively. This include selection & running of suites and tests, and viewing test results. .P .B #include .TP 5 .B "void CU_console_run_tests(void)" Initiate an interactive test run in the console. .SS "Interactive Curses Interface" The curses interface is interactive. All the client needs to do is initiate the curses session, and the user controls the test run interactively. This include selection & running of suites and tests, and viewing test results. Use of this interface requires linking the ncurses library into the application. .P .B #include .TP 5 .B "void CU_curses_run_tests(void)" Initiate an interactive test run in curses. .SH ERROR HANDLING .SS CUnit Error Status Codes Many CUnit functions set a framework error code when an exception occurs. The error codes are an .I enum named .B CU_ErrorCode declared in header file .B (included automatically by .B ). The following functions are provided for retrieving the framework error status: .P .B #include (included automatically by ) .TP 5 .B "CU_ErrorCode CU_get_error(void)" Returns the framework error status code. .TP 5 .B "const char* CU_get_error_msg(void)" Returns a message for the current error code. .SS Error Actions By default, CUnit continues running tests when a framework error occurs. In this context, failed assertions are not considered "framework errors". All other error conditions including suite initialization or cleanup failures, inactive suites or tests which are run explicitly, etc. are included. This 'error action' can be changed by the user if desired. The following functions are provided: .P .B #include (included automatically by ) .TP 5 .B "void CU_set_error_action(CU_ErrorAction action)" Set the framework error action. .TP 5 .B "CU_ErrorAction CU_get_error_action(void)" Retrieve the current error action. .P The error actions are defined in .B "enum CU_ErrorAction" in header file .B (included automatically by .B ) as follows: .RS 5 .TP 15 CUEA_IGNORE Continue test runs on framework errors (default). .PD 0.4v .TP 15 CUEA_FAIL Stop test runs on a framework error. .TP 15 CUEA_ABORT Exit the application on a framework error. .PD 2v .RE .SH AUTHORS Anil Kumar .br Jerry St.Clair .SH WEBSITE http://cunit.sourceforge.net cunit-2.1-3-dfsg/Man/man3/Jamfile000066400000000000000000000020151260701235000164140ustar00rootroot00000000000000# # Jamfile to build CUnit - man/man3 Directory # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP Man man3 ; if $(INSTALL_MAN_DIR) { InstallMan $(INSTALL_MAN_DIR) : CUnit.3 ; } cunit-2.1-3-dfsg/Man/man3/Makefile.am000066400000000000000000000001211260701235000171520ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in man_MANS = \ CUnit.3 cunit-2.1-3-dfsg/Man/man3/Makefile.in000066400000000000000000000356251260701235000172040ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = Man/man3 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man3dir = $(mandir)/man3 am__installdirs = "$(DESTDIR)$(man3dir)" NROFF = nroff MANS = $(man_MANS) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ man_MANS = \ CUnit.3 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Man/man3/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Man/man3/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man3: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man3dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man3dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man3dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.3[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \ done; } uninstall-man3: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man3dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.3[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man3dir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man3dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man3 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-man uninstall-man: uninstall-man3 .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-man3 install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags-am uninstall uninstall-am uninstall-man \ uninstall-man3 # 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: cunit-2.1-3-dfsg/NEWS000066400000000000000000000002111260701235000142440ustar00rootroot00000000000000The latest release for this package can be download from the projects home page located at http://www.sourceforge.net/projects/cunit/ . cunit-2.1-3-dfsg/PACKAGE000066400000000000000000000000061260701235000145250ustar00rootroot00000000000000CUnit cunit-2.1-3-dfsg/README000066400000000000000000000144631260701235000144430ustar00rootroot00000000000000 CUnit : A Unit Testing Framework http://cunit.sourceforge.net CUnit is a Unit testing framework for C. The basic framework is platform/version independent and should be portable to all platforms. CUnit provides various interfaces to the framework, some of which are platform dependent (e.g. curses on *nix). Building other interfaces should be straightforward with the facilities provided in the framework. CUnit is built as either a static or shared library which provides framework support when linked into user testing code. The framework complies with the conventional structure of test cases bundled into suites which are registered with the framework for running. See the documentation for more about the structure and use of the framework. Note - the windows-specific gui interface is not yet written. It is still necessary to use either the automated, basic, or console interfaces to CUnit on Windows at this time. ------------------------------------------------------- Important Note - Changes to CUnit Structure & Interface ------------------------------------------------------- As of version 2.0, the interface functions used to interact with the CUnit framework have changed. The original interface did not attempt to protect user code from name clashes with public CUnit functions and variables. To minimize such name clashes, all CUnit public functions are now prefixed with 'CU_'. The old public names are deprecated as of Version 2.0, but continue to be supported with conversion macros. In order to compile older code using the original interface, it is now necessary to compile with the macro -USE_DEPRECATED_CUNIT_NAMES defined. If there are any problems compiling older code, please file a bug report. In addition, the DTD and XSL files for output from the automated test interface have been updated to support both old and new file structure. That is, a List or Run file generated using the version 1.1 library should be (1) valid under the version 2 DTD's and (2) formatted correctly by the version 2 XSL's. Note, however, that this has not been extended to the Memory-Dump DTD and XSL files. That is, memory dumps created using version 1.1 are ill-formed and incorrectly formatted using the version 2 DTD and XSL files. Another exception to backward compatibility occurs if the user has directly manipulated the global variables in version 1.1. The original CUnit structure included global variables error_number and g_pTestRegistry which have been removed from the global namespace as of Version 2.0. Any user code which directly accessed these variables will break. The variables must be retrieved using the accessor functions CU__get_error() and CU_get_registry(). Similarly, user code retrieving the active test registry and directly manipulating the uiNumberOfFailures or pResult members will break. These members have been moved to the TestRun.c part of the framework and are no longer available in the test registry as of version 2.0. Another change in Version 2.0 is the update of the framework terminology. What were termed 'test groups' in the original structure are now called "suites", and "test cases" are now just "tests". This change was made to bring CUnit in conformance with standard testing terminology, and results in a change in the name of some functions (e.g. run_group_tests() is now CU_run_suite(). --------------------------------------- Building the CUnit Library and Examples --------------------------------------- All Platforms: As of Version 2.0, a set of Jamfiles is provided for cross-platform building of the library, examples, and tests. The jam build system was implemented using ftjam 2.3.2 (http://www.freetype.org/jam/index.html). It may work under the original Perforce jam implementation, but has not been tested. It has been tested under gcc on Linux, and Borland C++ 5.5, VC7, MinGW 3.2.3, and Open Watcom 1.3 on Windows. Due to the nature of jam, the build system should be readily extensible to other platforms. The jam file set supports both standard and custom symbolic build targets (install, uninstall, clean, libcunit, examples, test). A customized Jambase file is provided which sorts out some of the rough edges for MinGW and Watcom on Windows. It may not be necessary when using gcc, Borland, or VC, but it won't hurt either. The files generated during the build are placed in a subdirectory given by /, where: = Debug or Release = bcc, mingw, msvc, watcom, linux This allows easy switching between compilers without overlap of the output files. The is determined by whether NODEBUG is defined in your Jamrules file. is set automatically in Jamrules. To build using jam: 1. Set the working directory to the top of the source tree 2. Generate Jamrules a. On Linux, run autoconf & configure b. On Windows, copy Jamrules.in to Jamrules 3. Edit the top section of Jamrules to match your preferences 4. jam -f Jambase install Linux: In addition to jam, the standard GNU build system is still supported. The usual sequence of steps should succeed in building and installing CUnit: 1. aclocal (if necessary) 2. autoconf (if necessary) 3. automake (if necessary) 4. chmod u+x configure (if necessary) 5. ./configure --prefix 6. make 7. make install What's installed: 1. libcunit.a (Library file) 2. CUnit Header files 3. DTD and XSL files supporting xml output files in share directory 4. Man Pages in relevant man directories under the installation path. 5. HTML users guide in the doc subdirectory of the installation path. 6. Example & test programs in the share subdirectory of the install path. Windows: Jam is the preferred build system for Windows. A set of old VC6 project files is included which have been partially updated but not tested. If they don't work and you get them working, we'd be happy to include them in the CUnit distribution. A set of Visual Studio 2003/VC7 solution and project files has also been provided in the VC7 subdirectory. Similarly, a set of Visual Studio 2005/VC8 solution and project files is located in the VC8 subdirectory. The latter should work with all versions of VC 2005, including the Express edition. cunit-2.1-3-dfsg/Share/000077500000000000000000000000001260701235000146155ustar00rootroot00000000000000cunit-2.1-3-dfsg/Share/CUnit-List.dtd000066400000000000000000000032641260701235000172520ustar00rootroot00000000000000 cunit-2.1-3-dfsg/Share/CUnit-List.xsl000066400000000000000000000104161260701235000173020ustar00rootroot00000000000000 CUnit - Suite and Test Case Organization in Test Registry

CUnit - A Unit testing framework for C
http://cunit.sourceforge.net/

Listing of Registered Suites & Tests

Initialize Function? Cleanup Function? Test Count Active?
Suite Test Suite Initialize Function? Cleanup Function? Test Count Test Cases


cunit-2.1-3-dfsg/Share/CUnit-Run.dtd000066400000000000000000000027031260701235000171000ustar00rootroot00000000000000 cunit-2.1-3-dfsg/Share/CUnit-Run.xsl000066400000000000000000000104731260701235000171360ustar00rootroot00000000000000 CUnit - Automated Test Run Summary Report

CUnit - A Unit testing framework for C.
http://cunit.sourceforge.net/

Automated Test Run Results

Running Suite Running Group Running test ... Passed Running test ... Failed
File Name Line Number
Condition
Running Suite ... Running Group ...

Cumulative Summary for Run
Type Total Run Succeeded Failed Inactive


cunit-2.1-3-dfsg/Share/Jamfile000066400000000000000000000024401260701235000161070ustar00rootroot00000000000000# # Jamfile to build CUnit - share Directory # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP Share ; if $(INSTALL_SHARE_DIR) { InstallFile $(INSTALL_SHARE_DIR) : CUnit-List.dtd ; InstallFile $(INSTALL_SHARE_DIR) : CUnit-List.xsl ; InstallFile $(INSTALL_SHARE_DIR) : CUnit-Run.dtd ; InstallFile $(INSTALL_SHARE_DIR) : CUnit-Run.xsl ; InstallFile $(INSTALL_SHARE_DIR) : Memory-Dump.dtd ; InstallFile $(INSTALL_SHARE_DIR) : Memory-Dump.xsl ; } cunit-2.1-3-dfsg/Share/Makefile.am000066400000000000000000000002661260701235000166550ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in pkgdata_DATA = \ CUnit-List.dtd \ CUnit-List.xsl \ CUnit-Run.dtd \ CUnit-Run.xsl \ Memory-Dump.dtd \ Memory-Dump.xsl cunit-2.1-3-dfsg/Share/Makefile.in000066400000000000000000000342071260701235000166700ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = Share DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pkgdatadir)" DATA = $(pkgdata_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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@ pkgdata_DATA = \ CUnit-List.dtd \ CUnit-List.xsl \ CUnit-Run.dtd \ CUnit-Run.xsl \ Memory-Dump.dtd \ Memory-Dump.xsl all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Share/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Share/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \ done uninstall-pkgdataDATA: @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(pkgdatadir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-pkgdataDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkgdataDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ cscopelist-am ctags-am distclean distclean-generic \ distclean-libtool distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-pkgdataDATA install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags-am uninstall uninstall-am uninstall-pkgdataDATA # 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: cunit-2.1-3-dfsg/Share/Memory-Dump.dtd000066400000000000000000000022571260701235000174730ustar00rootroot00000000000000 cunit-2.1-3-dfsg/Share/Memory-Dump.xsl000066400000000000000000000051641260701235000175260ustar00rootroot00000000000000 CUnit Memory Debugger Dumper - All Allocation/Deallocation Report.

CUnit - A Unit testing framework for C.
http://cunit.sourceforge.net/

CUnit Memory Debugger Report
Memory Allocation/Deallocation Records


Pointer Allocation File Line # Deallocation File Line # Data Size

Cumulative Summary for Memory Debugger Dumper Run
Valid Records
Invalid Records
Total Number of Allocation/Deallocation Records


cunit-2.1-3-dfsg/Share/md2xml.pl000077500000000000000000000026201260701235000163600ustar00rootroot00000000000000#!/usr/bin/perl # This is in perl script for Memeory Debugging Report Generator use warnings; use strict; use locale; # Constant Declarations use constant SIZE_INDEX => 0; use constant POINTER_INDEX => 1; use constant ALLOC_FILENAME_INDEX => 2; use constant ALLOC_LINE_INDEX => 3; use constant DEALLOC_FILENAME_INDEX => 4; use constant DEALLOC_LINE_INDEX => 5; use constant STATUS_INDEX => 6; # Global Definitions my @mem_list; sub BuildDataList { open(LIST_FD, $ARGV[0]) or die "Failed to Open file $ARGV[0]"; while (!eof(LIST_FD)) { my $line = ; $line =~s/^[ \t]*//g; $line =~s/[ \t\n\r]*$//g; if (length($line) == 0 || index($line, "--") == 0) { next; } my @arr = split("\t", $line); my @alloc_arr = split(":", $arr[2]); my @dealloc_arr = split(":", $arr[3]); my $count = $#mem_list + 1; $mem_list[$count + 0] = $arr[0]; $mem_list[$count + 1] = hex($arr[1]); $mem_list[$count + 2] = $alloc_arr[0]; $mem_list[$count + 3] = $alloc_arr[1]; $mem_list[$count + 4] = $dealloc_arr[0]; $mem_list[$count + 5] = $dealloc_arr[1]; $mem_list[$count + 6] = $arr[4]; printf("%d %d ", $mem_list[$count + SIZE_INDEX], $mem_list[$count + POINTER_INDEX]) } close(LIST_FD); return 0; } sub PrintDataList { my $count = 0; while ($#mem_list > $count) { # printf("%d ", $mem_list[$count + $SIZE_INDEX]); $count += STATUS_INDEX; } } BuildDataList(); PrintDataList(); cunit-2.1-3-dfsg/TODO000066400000000000000000000013711260701235000142450ustar00rootroot00000000000000Longer term CUnit upgrade ideas: 1. Internationalize CUnit. 2. Signal handling based exception catching for some invalid memory access by the group or test case in which case the test case/group execution should be terminated and it should proceed with the next test case/group in line. 3. Consider having CU_automated_run_tests take an argument specifying the filename root. 4. Run tests in a separate thread, provide mechanism for pausing or halting test run. 5. Provide mechanism to parse a source tree and automatically generate a test runner to call all suite set-up functions defined in the tree. 6. Make test framework multi-thread safe. The current dependence on static globals without access control will need to be addressed. cunit-2.1-3-dfsg/VC7/000077500000000000000000000000001260701235000141525ustar00rootroot00000000000000cunit-2.1-3-dfsg/VC7/AutomatedTest/000077500000000000000000000000001260701235000167355ustar00rootroot00000000000000cunit-2.1-3-dfsg/VC7/AutomatedTest/AutomatedTest.vcproj000066400000000000000000000073231260701235000227520ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC7/AutomatedTest_v1/000077500000000000000000000000001260701235000173435ustar00rootroot00000000000000cunit-2.1-3-dfsg/VC7/AutomatedTest_v1/AutomatedTest_v1.vcproj000066400000000000000000000071751260701235000237730ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC7/BasicTest/000077500000000000000000000000001260701235000160335ustar00rootroot00000000000000cunit-2.1-3-dfsg/VC7/BasicTest/BasicTest.vcproj000066400000000000000000000072731260701235000211520ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC7/CUnit.sln000066400000000000000000000104461260701235000157170ustar00rootroot00000000000000Microsoft Visual Studio Solution File, Format Version 8.00 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcunit", "libcunit\libcunit.vcproj", "{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_cunit", "test_cunit\test_cunit.vcproj", "{0336E4F1-B2E5-4E56-AA33-2709A75004F8}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AutomatedTest", "AutomatedTest\AutomatedTest.vcproj", "{479DCA79-9205-4958-A75B-51F6C2E75D61}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BasicTest", "BasicTest\BasicTest.vcproj", "{479DCA79-9205-4958-A75B-51F6C2E75D61}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ConsoleTest", "ConsoleTest\ConsoleTest.vcproj", "{479DCA79-9205-4958-A75B-51F6C2E75D61}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AutomatedTest_v1", "AutomatedTest_v1\AutomatedTest_v1.vcproj", "{479DCA79-9205-4958-A75B-51F6C2E75D61}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ConsoleTest_v1", "ConsoleTest_v1\ConsoleTest_v1.vcproj", "{479DCA79-9205-4958-A75B-51F6C2E75D61}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Global GlobalSection(SolutionConfiguration) = preSolution Debug = Debug Release = Release EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug.ActiveCfg = Debug|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug.Build.0 = Debug|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release.ActiveCfg = Release|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release.Build.0 = Release|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug.ActiveCfg = Debug|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug.Build.0 = Debug|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release.ActiveCfg = Release|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release.Build.0 = Release|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug.ActiveCfg = Debug|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug.Build.0 = Debug|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release.ActiveCfg = Release|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release.Build.0 = Release|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug.ActiveCfg = Debug|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug.Build.0 = Debug|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release.ActiveCfg = Release|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release.Build.0 = Release|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug.ActiveCfg = Debug|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug.Build.0 = Debug|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release.ActiveCfg = Release|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release.Build.0 = Release|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug.ActiveCfg = Debug|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug.Build.0 = Debug|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release.ActiveCfg = Release|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release.Build.0 = Release|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug.ActiveCfg = Debug|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug.Build.0 = Debug|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release.ActiveCfg = Release|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release.Build.0 = Release|Win32 EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection GlobalSection(ExtensibilityAddIns) = postSolution EndGlobalSection EndGlobal cunit-2.1-3-dfsg/VC7/CUnit.suo000066400000000000000000000410001260701235000157170ustar00rootroot00000000000000ÐÏࡱá>þÿ þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýÿÿÿ þÿÿÿþÿÿÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿRoot Entryÿÿÿÿÿÿÿÿ @áPèGÅÀ+ProjInfoExÿÿÿÿÿÿÿÿTaskListUserTasks$ÿÿÿÿDebuggerWatches  ÿÿÿÿÿÿÿÿþÿÿÿþÿÿÿþÿÿÿŸþÿÿÿ þÿÿÿþÿÿÿþÿÿÿþÿÿÿ¢þÿÿÿ()þÿÿÿþÿÿÿ !"#$%&'7G*+H-./012345þÿÿÿ8A9:;<=>?@þÿÿÿBCDEFXeIJKVMNOPQRSTUþÿÿÿfYZ[\]^_`abcdy”ghijklmnþÿÿÿpqrstuvwxþÿÿÿz{|}~Ž€âï \Øo¤M‰o—ž jðC TC:\dev\archive\CUnit\win\cun€C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\crt\src\ŽC:\Program Files\MicroDebuggerBreakpoints(ÿÿÿÿÿÿÿÿ`DebuggerExceptions&ÿÿÿÿÿÿÿÿÿÿÿÿDebuggerFindSource&ÿÿÿÿ¼DebuggerFindSymbol&ÿÿÿÿÿÿÿÿÿÿÿÿ soft Visual Studio .NET 2003\Vc7\atlmfc\src\mfc\ŽC:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\src\atl\DebuggerMemoryWindows, ÿÿÿÿ TExternalFilesProjectContents: ÿÿÿÿÿÿÿÿDocumentWindowPositions0 ÿÿÿÿÿÿÿÿÇDocumentWindowUserData.ÿÿÿÿÿÿÿÿ d„ ÿÿ(ˆ;f  cunit-2.1-3-dfsg/VC7/ConsoleTest_v1/000077500000000000000000000000001260701235000170225ustar00rootroot00000000000000cunit-2.1-3-dfsg/VC7/ConsoleTest_v1/ConsoleTest_v1.vcproj000066400000000000000000000071611260701235000231240ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC7/Readme.txt000066400000000000000000000001731260701235000161110ustar00rootroot00000000000000Visual Studio 2003 solution and Visual C++ 7 project files to build the CUnit library, example programs, and test program.cunit-2.1-3-dfsg/VC7/libcunit/000077500000000000000000000000001260701235000157635ustar00rootroot00000000000000cunit-2.1-3-dfsg/VC7/libcunit/libcunit.vcproj000066400000000000000000000111651260701235000210250ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC7/test_cunit/000077500000000000000000000000001260701235000163335ustar00rootroot00000000000000cunit-2.1-3-dfsg/VC7/test_cunit/test_cunit.vcproj000066400000000000000000000110031260701235000217340ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC8/000077500000000000000000000000001260701235000141535ustar00rootroot00000000000000cunit-2.1-3-dfsg/VC8/AutomatedTest.vcproj000066400000000000000000000241771260701235000201760ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC8/AutomatedTest_v1.vcproj000066400000000000000000000237751260701235000206070ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC8/BasicTest.vcproj000066400000000000000000000241351260701235000172660ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC8/CUnit.sln000066400000000000000000000253341260701235000157220ustar00rootroot00000000000000Microsoft Visual Studio Solution File, Format Version 9.00 # Visual C++ Express 2005 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcunit", "libcunit.vcproj", "{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_cunit", "test_cunit.vcproj", "{0336E4F1-B2E5-4E56-AA33-2709A75004F8}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AutomatedTest", "AutomatedTest.vcproj", "{479DCA79-9205-4958-A75B-51F6C2E75D61}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BasicTest", "BasicTest.vcproj", "{0CA5681A-DDB0-4E57-8EB4-351924679FD0}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ConsoleTest", "ConsoleTest.vcproj", "{C6339A24-F233-4D77-8087-0C97E73A81D7}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AutomatedTest_v1", "AutomatedTest_v1.vcproj", "{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ConsoleTest_v1", "ConsoleTest_v1.vcproj", "{80779234-C19A-4E5C-8487-8BDAAAC25A0B}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wxWidgetsTest", "wxWidgetsTest.vcproj", "{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug - DLL|Win32 = Debug - DLL|Win32 Debug - Static Lib with MEMTRACE|Win32 = Debug - Static Lib with MEMTRACE|Win32 Debug - Static Lib|Win32 = Debug - Static Lib|Win32 Release - DLL|Win32 = Release - DLL|Win32 Release - Static Lib|Win32 = Release - Static Lib|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal cunit-2.1-3-dfsg/VC8/CUnit.suo000066400000000000000000011060001260701235000157230ustar00rootroot00000000000000ÐÏࡱá>þÿ þÿÿÿ€ô€ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýÿÿÿ  -%“Ð,*#$&"'()+9.!7801235G6CU:@;<=>?AB/4MEFH\IJKLQNOPDRSTVc`XYZ[]li_baWdefo™xjknmz|’qrstuvwŒyŠ{}~…Root Entryÿÿÿÿÿÿÿÿð°í¬†ÆÀJProjInfoExÿÿÿÿÿÿÿÿÿÿÿÿTaskListUserTasks$ÿÿÿÿDebuggerWatches ÿÿÿÿÿÿÿÿÿÿÿÿÂþÿÿÿþÿÿÿÆþÿÿÿ   þÿÿÿÃþÿÿÿ(þÿÿÿþÿÿÿ !"#$¸&')G*+7-./012345þÿÿÿ8A9:;<=>?@þÿÿÿBzDEFHeIJþÿÿÿVMNOPQRSTUþÿÿÿXfYZþÿÿÿ\]^_`abÓþÿÿÿþÿÿÿ”ghijklmnþÿÿÿpqrstuvwxþÿÿÿ·{|}¿€˜=:¹üúD• %m:ï.ðC m_ptestJm_ActiveTopFrameC:\dev\archive\CUnit\CUnit_n€C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\crt\src\ŽC:\Program Files\Microsoft Visual Studio .NET 2003\Vc7DebuggerBreakpoints(ÔÿÿÿÿÿÿÿÿÉDebuggerExceptions&4ÿÿÿÿDebuggerFindSource&ÿÿÿÿÿÿÿÿ,DebuggerFindSymbol&ÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿ\atlmfc\src\mfc\ŽC:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\src\atl\d:\`f:\rtm\vctools\crt_bld\sel •ˆÍ«4ïþîÿ(8&Í«4ïþîÿDGS$ ýA+ÁH±ÚªÏ¥WLÉlü #Oÿ‡øÏ¤ELç%Ò¯##G¶åá}'bm4DebuggerMemoryWindows,ÿÿÿÿ ÿÿÿÿ TExternalFilesProjectContents: ÿÿÿÿÿÿÿÿy€DocumentWindowPositions0ÿÿÿÿÿÿÿÿÿÿÿÿ¡O DocumentWindowUserData. ÿÿÿÿÜS8fÂþÂL¤d®—ï9LÉlü #Oÿ‡øÏ¤ELç%Ò¯##G¶åá}'bm48fÂþÂL¤d®—ï9LÉlü #Oÿ‡øÏ¤ELç%Ò¯##G¶åá}'bm4Q pC:\dev\archive\CUnit\CUnit_neNSܾï MŠ%˜¿Ÿøç%Ò¯##G¶åá}'bm4Élü #Oÿ‡øÏ¤Eiw\VC8\AutomatedTest.vcprojvCXÏ Device ControlsCrystal ReportsData XML Schema Dialog EditorMobile Web Forms Web Forms ComponSolutionConfiguration,ÿÿÿÿÿÿÿÿÿÿÿÿÌObjMgrContentsÿÿÿÿClassViewContents$ÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿProjExplorerState$ÿÿÿÿÿÿÿÿÌUnloadedProjects"ÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿTaskListShortcuts$ÿÿÿÿÿÿÿÿÿÿÿÿIVSMDPropertyBrowser* ÿÿÿÿþÿÿÿIToolboxService  ÿÿÿÿÿÿÿÿÂents Windows FormsHTMLClipboard RingGeneral:\dev\archive\CUnit\CUnit_new\VC8\AutomatedTest_v1.vcprojhC:\dev\archive\CUnit\CUnit_new\VC8\BasicTest.vcprojSource FileslC:\dev\archive\CUnit\CUnit_new\VC8\ConsoleTest.vcprojrC:\dev\archive\CUnit\CUnit_new\VC8\ConsoleTest_v1.vcprojfC:\dev\archive\CUnit\CUnit_new\VC8\libcunit.vcprojSource FilesjC:\dev\archive\CUnit\CUnit_n$Bookmarks V001.01Bookmark3lc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestDB.h BoolibcunitsBasicTestû"Automkmark17‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.c±Bookmark20Debug|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTlibcunitÿÿÿÿÿÿÿÿÿÿÿÿ,ltest_cunitÿÿÿÿ6lAutomatedTest ÿÿÿÿLlBasicTestÿÿÿÿWlool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesMakeToolDebug|Win32DebugSettings‚c:\dev\archive\CUnit\CUnit_new\ô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralCCUnit\Sources\Framework\TestRun.cÜBookmark62‚d:\dev\arcvc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\CUnit.hÏå¶ACFHKM!P.RV [\] atedTest_v1kConsoleTest_v1ÃU^_` =? BD GI!;n1ptÿÿÿÿ7\AutomatedTest_vtc:\dev\archive\CUnit\CUnit_cvs\Debug|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesit\test_cuCUnit\CUnit\Headers\Util.h/ŒnYDebug|Win32DebugSettings(>?BC /C!FR)TVWÿÿÿÿ479DCA79-9205-4958-A75B-ˆc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\Util.cÙªQ¸4588EFQRcSd€‡=ˆ”•˜™žŸ¢!£¶·ºÂÄ"»ËÌÍ6ÓN)O[;4{0CA5681A-DDB0-4E57-8EB4-1924679FD0}.dwStartupOpt=;ConsoleTest£test_cunit[Autoô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesDebug|Win32DebugSettingsConsoleTestÿÿÿÿÿÿÿÿÿÿÿÿolAutomatedTest_v1"#-ÿÿÿÿ‚lConsoleTest_v1ÿÿÿÿÿÿÿÿŒlProperty Manager"y…ÿÿÿÿcô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesC:\tools\wxWidgets-2.6.3\sampleshive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.cBookmark92†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidge€d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestDB.cŽƒ„…†‡ˆ‰Š‹þÿÿÿ—‘’“•þÿÿÿ–Ÿ˜™š›œžþÿÿÿ ¡­£¤¥¦§¨©ª«¬þÿÿÿ®¯°±²³´Õ¶þÿÿÿþÿÿÿ½º»¼1¾ÄÁÂ8¾ÆþÿÿÿÈÉþÿÿÿËÌÍÎÏÐÑÒþÿÿÿÔþÿÿÿÖרþÿÿÿÚÛÜÝÞßàáâãþÿÿÿåæþÿÿÿèéþÿÿÿëìíîïðñòóôõþÿÿÿ÷øùúûþÿÿÿýþÿž&QÛEU)Vi%koqz&|€<‚ŒDebug|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralCDebug|Win32DebugSettingsô.õ.ö. ø.÷.ù.[Ž«F­»H½ÐPÒàQâð+ò//6:8SRUyC{‰E‹žC ®;°Å?ÇÝ>ßýKÿL465SmatedTestk6C2E75D61}.Release|Wi:UXYl=m€b‘«¬¶+·ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesù.ú.ÏÐÛFÜúûþÿÿÿ     þÿÿÿ !"#$%&'()*+,-./0þÿÿÿ23456789:;<=>?@AB¨DþÿÿÿFGHIJŸLMNOPQRSTþÿÿÿVWXYZ[\]^_`abcdefghijklmnopqrþÿÿÿtuvwxyz{|}~€‚ƒ„…þÿÿÿ‡ˆ‰Š‹ŒŽþÿÿÿ’þÿÿÿ™þÿÿÿ–þÿÿÿ˜þÿÿÿš›œžŸ þÿÿÿ¢£¥À§¨©ª«¬­®¯°±²³´µ»·¸¹ºÇ¼þÿÿÿý¿þÿÿÿÁÂÃĦÆûÈÉÊËÌÍÎØÐÑÒÓÔÕÖ×þÿÿÿþÿÿÿÚÛÜÝÞßàáâãäåæçèéêþÿÿÿìíîïðñòóôõö÷øùúþÿÿÿüþÿÿÿþÿþÿÿÿVsToolboxService"ÿÿÿÿdObjMgrContentsV8"ÿÿÿÿÿÿÿÿ‚HiddenSlnFolders"ÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿOutliningStateDir$ÕÿÿÿÿpàROutliningState6 (,ÿÿÿÿ¢®OutliningState11"ÿÿÿÿ0ÿÿÿÿÇ–OutliningState7 ÿÿÿÿÿÿÿÿÿÿÿÿÊOutliningState5 ÿÿÿÿÿÿÿÿÿÿÿÿÕÖ!HO$PV$W['\`#ae&fk'ls*t{(|…+†'—*˜Ÿ ³´Ù Úûÿÿÿÿebug - DLPl}~†D‡˜™E›-œ§?©µS·ÊFÌßàãçëìïðó-õ* +,/#0ÓÔÙ.Ú1567<*=ÅÆÉ"ÊŠ‹-`c:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.3æ`ŒãÿÿÿÿÜß\notebook\notebook.cpp<open> ew\VC8\test_cunit.vcprojpC:\ld:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestDB.hV|Œ8EEGNfgquŽšžÁdev\archive\CUnit\CUnit_new\VC8\wxWidgetsTest.vcprojpC:\dev\at\wxWidget.cpp4Bookmark93G !"+(,67D9Ebck–c:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\ConsoleTest\ConsoleTest_v1.cnÜÞ©!"$%()*/05"6; <A!BGnc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestRun.h[¨±ANUYej,Í«4ïþîÿ• &Í«4ïþîÿKR#Í«4ïþîÿrchive\CUnit\CUnit_new\VC8\wxWid^c:\dev\archive\CUnit\CUnit_cvs\CUnit\ChangeLogÃ¥ù4ÿÿÿÿ24300C0E}†c:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Curses\Curses.c¿²¸9ÿÿÿÿA75004F8}.Release - DŽc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\CUError.cÓ—t€10231EIJK%BQR\]abm"nrs/€„…‹(Œ‘›6œÛÜÝáÞÿÿÿÿ58-A75B-51F6C2E75D61}.Debug -\Œ#½$¾îïüÎüÿÿÿÿ4958-A75B-51F6Šc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\MyMem.cW¤³k7ŠDFÿÿÿÿtchBld=;4{0CA568žc:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\AutomatedTest\AutomatedTest_v1.cÿ^šƒ!"$%()*/05"6; <A!BG!HO$PV$W[OutliningState4 !'ÿÿÿÿÙ¶OutliningState15"%1ÿÿÿÿäšOutliningState16"ÿÿÿÿÿÿÿÿÿÿÿÿçŽOutliningState9 ÿÿÿÿÿÿÿÿÿÿÿÿêÎ'\`#af&gk'ls*t{(|…+†'—*˜Ÿ ³´Ù ÚýÿÿÿÿD7}.DŠC:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Basic\Makefile.am`Ë ÿÿÿÿ7}.Release - DLL|Wi~C:\dev\archive\CUnit\CUnit_cvs\BookmarkStateÿÿÿÿÿÿÿÿÿÿÿÿ%xOutliningState3 ÿÿÿÿÿÿÿÿÿÿÿÿCžOutliningState2 ÿÿÿÿ$ÿÿÿÿKOutliningState1 "ÿÿÿÿ[dþÿÿÿ      !"#$%þÿÿÿ'þÿÿÿ)þÿÿÿ+þÿÿÿ-þÿÿÿ/þÿÿÿ723I56žþÿÿÿ;:é<=>m@AÑCDEFGþÿÿÿ‡JKL‘NOPQR¸çUVWXYZ[\]^_`abcúefghiþÿÿÿkl nopþÿÿÿrs¡uvwxyzþÿÿÿ|}~€CUnit\CUnit\Sources\Makefile.am'ê µÿÿÿÿ|Win32.fBatchBld=;4{zc:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\ExampleTests.cd¹ ,%$'($*+./#1256"8BCH IQ!RZ![g$hs$tnC:\dev\archive\CUnit\CUnit_new\ÆÉ$Ê-ËÌÏ!ÄÏÐZÓÂÕÙEÚÞîò€c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestDB.cEˆaßEY)Zm%oCUnit\Sources\po\en_.poZ›·ÿÿÿÿnvzH{€„ˆrd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Automated.hhÛ‘–™ ¢¥H«ÈHÌÎßâùüH(+H6JNPVXnc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Console.h*'F$!22478 ,De:\CUnit_new\CUnit\Headers\Util.h¦Ó7,*:PS\_filoruxz{~ 1!‚Ž+’“ÿÿÿÿnit\Sources\Basic\MaXe:\CUnit_new\CUnit\Sources\Fram 48EIX\ko}Ž’Ÿ£±µÄÈéíûÿjc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUnit.h©¥øDACFHKM!P.RU0VY0Z^ cdeghO]ijk!Fy1{>C:\tools\gnu\include\libintl.hlc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestDB.h«G`8EEGNfgquŽšžÁOutliningState22"ÿÿÿÿ7ÿÿÿÿT OutliningState25"ÿÿÿÿÿÿÿÿÿÿÿÿ{jOutliningState24"6<ÿÿÿÿªOutliningState27"ÿÿÿÿÿÿÿÿÿÿÿÿÀþ!ÄÏÐZÓÂÕÙEÚÞîò 48EIX\ko}Ž’Ÿ£±µÄÈéíûÿ $59HL]aru’“–šŸ ¥¯¶¸Ã!Åâ!æU  E /28<HLX~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.h[mÚ(47:<JPSW`aþÿÿÿ‚F„…!1ˆ‰Š‹ŒŽþÿÿÿÖ’“”•–—º™š›ñ¹Ÿ Ï¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·bþÿÿÿ μ½¾¿À“¶ÄÅþÿÿÿÇÈþÿÿÿÊËÌÍ‘ðÐPþÿÿÿÓþÿÿÿÕàרÙÚÛÜÝÞþÿÿÿ¼þÿÿÿâãäøæuïéêëìíîïð¦òóôõö÷þÿÿÿù  üýþÿz'{#‚‰&Š‘'’*ž©(ª·+¸Ä'ÅÑ*ÒÞßæ#çíîõöR_§S© ª»ÿÿÿÿzc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\CUError.h%ëOutliningState8 &+ÿÿÿÿöROutliningState10"3ÿÿÿÿü¶OutliningState12"ÿÿÿÿÿÿÿÿÿÿÿÿ¾OutliningState14"ÿÿÿÿÿÿÿÿÿÿÿÿ&r/ =XZ`aetu{| l|!&0ƒ…†ÿÿÿÿzc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\TestRun.hƒèw­7CIDEPU^bgipsx{~„!³Rµ¸¹¼½ @½8¾ÀÁÿÿÿÿŽC:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\TestRun.cß Ùäv/|’“?—L˜œ>žUŸ£¤E¥a¦ª«®b¯³´·k¸¼½C¾:¿ÃÄBÅ@ÆÊËCÌHÍÑÒÕIÖÚÛÞOßãäë.ìðñö1÷ûü- 0 + -!%&*,+/0637;<B+CGHN'OSTc#dŠ‹+ž»¼Ð:Ñ$ "$#'(*"+/03 489I'P‹Œ™\š­®µ>¶ÎÏÚRÛ  ONOPTZ\bFh#€ŽL—C™¡G¢¨>©°A±¸¼½¾Ê'Ëšž£'¥B#Dˆ"ŠB 2D H 5J N 1P T 4V Z /\ ` 1b f 0h l *n r )t x +z ~ *€ „ )† Š .Œ 0  - +  '  &  " g i ˆ Qˆ ÿÿÿÿbc:\dev\archive\CUnit\CUnit_cvs\CUnit\Jamrules.in\±‰‘ÿÿÿÿOutliningState13"./ÿÿÿÿ(tOutliningState17"*2ÿÿÿÿ*hOutliningState18"ÿÿÿÿÿÿÿÿÿÿÿÿ,dOutliningState19")>ÿÿÿÿ.jdc:\dev\archive\CUnit\CUnit_cvs\CUnit\configure.inÖôçJÿÿÿÿXc:\dev\archive\CUnit\CUnit_cvs\CUnit\READMEp‹B„ÿÿÿÿTc:\dev\archive\CUnit\CUnit_cvs\CUnit\TODO{Á/þÿÿÿÿZc:\dev\archive\CUnit\CUnit_cvs\CUnit\VERSION!¤ ÿÿÿÿXmlPackageOptions$ÿÿÿÿÿÿÿÿÿÿÿÿ<ðOutliningState20"ÿÿÿÿÿÿÿÿÿÿÿÿÅnOutliningState21"58ÿÿÿÿ4˜OutliningState23"ÿÿÿÿÿÿÿÿÿÿÿÿM’ 1a.c)eÿÿÿÿ®;°Å?ÇÙ>Ûù|c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\Util.cv ‰2>?BBQ]_fiuxH…‹–ž«!­R¯²³¶·CUnit\Headers\TestRun.hÖ›[ $59HL]aru’“–šŸ ¥¯¶¸ÃÊÍ3Øâ!ÅâþAÿ!æU  E /28<HLX\\c:\dev\archive\CUnit\CUnit_new\doc\index.html&‹ÿF    !$ (#†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Automated\Automatesu~&€„<†[’¯F±¿HÁÔPÖäQæô+ö/°L²¶U¸¼X¾ÂaÄÈbÊÎkÐÔ<ÖÚ:Üà@âæBèìHîòIôøOúþ.1 3 -02"+$(-*.,04OutliningState26"9;ÿÿÿÿq–OutliningState30"CÿÿÿÿÿÿÿÿœbOutliningState31"BAÿÿÿÿ 6OutliningState32"ÿÿÿÿÿÿÿÿÿÿÿÿ˜œ36: <E+GK'MQ#Sx+z˜:šò$ôø$úþ"  < //&0(ƒ„›'£ßàí\î >&'5R6œ¬O­ïðñöþF)#+97:BLCKCMUDW_G`f>gnAovw….‘1;<=Q'R!%+*-'’#' ") g h l .m á "ã * , : ÿÿÿÿá â æ .ç d.c=CáÉE]!^7~c:\dev\archive\CUnit\CUnit_new\‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cŒ«,¬%> ?DDEjmpkŠ‹”B•ÙÚà7á+,0+1NOXhc:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.xsl7æ[T  vc:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Basic\Basic.c§9y)ÿÿÿÿEK%LZ1\g->m_RunSummary_suiteHm_ActiveTopFrame->m_RunSummary_test¸C¹ÇÈÍ5ÎHC:\dev\archive\CUnit\CUnit_new\VC8\†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cpp**"9CUnit\Sources\Console\Console.c /6:8SRU J·B¸º»ÿÿÿÿ‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.c…¯ßEŽ/”ªO¬hc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Util.hné.<SV_bilorux{~ƒ„‡ˆ 5ˆ!‹™/›žÿÿÿÿaders\TestRun.hÖ›[~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.c78ï 6 7K0LRSYZ^!_c(dh+im nt$uŠ1Ž›ÿÿÿÿnc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUError.hÓï–nc:\dev\archive\CUnit\CUnit_new\doc\error_handling.htmlbòíÇ  aŠC:\dev\archive\gsl-pkg\gsl-1.6\ework\Util.c nÖV:;>>M#NY\wVZ›.®=°¼¾Ã!ÅØáã"Úêëì ùAûþÿ6ô|+}“)” ¡Ñ#Ò$34BíBÿÿÿÿUnit_nnd:\dev\archive\CUnit\CUnit_new\yC{‰E‹žC 8%9;<ÿÿÿÿC8\Depc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUCurses.hSÊD`ÿÿÿÿtc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUnit_intl.h¥-½;HOS_dosHtvz~ƒ†Š’H˜­H±³ÄÇÞáHýÿ H-0268H?EGJPXe!gRilmpq Dq<rtuÿÿÿÿ>?†d:\dev\archive\CUnit\CUnit_new\!:>ÿÿÿÿ:<~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\MyMem.cJk×@9B2FJQX]2aWc5do\d:\dev\archive\CUnit\CUnit_new\doc\index.htmlº.$ŒÈœ^šY-nc:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.có‚G',&$()$+,/0#2367"9CDI JR!S[!\h$it$u{'|‚#ƒŠ&‹’'“ž*Ÿª(«¸+¹þÿÿÿþÿÿÿþÿÿÿ    ¨þÿÿÿMþÿÿÿ@"#$%&'()*+,-þÿÿÿ/0>2þÿÿÿ4þÿÿÿ6þÿÿÿ8þÿÿÿ:;þÿÿÿ=þÿÿÿ?þÿÿÿABCDEJGHI¯KLþÿÿÿNOþÿÿÿQRSTVWXþÿÿÿZ[\]^þÿÿÿ`abcdþÿÿÿfghijklmnopqrstþÿÿÿvwxyz{|}þÿÿÿþÿÿÿÅ'ÆÒ*Óßà), 3+47 @6AD NCOR WQXY2ab&_ d g k l pgfqe r^s]t[uwxÿÿÿÿchive\CUnit\CUnit_|d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\Util.c>©rc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Automated.h¨X°Î$08;BEL!N:RUV ,D)=>AAP#Q\_zV]¢.¤µ=·ÃÅÊ!Ìßèê"áñòó A6û‚+ƒ™)š¦§×#Ø$ 9:HôHÿÿÿÿq‡)ˆ”•Å#~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.c\ H–3 4H0I‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\CUError.cI¥£•60781AEFG%>MOS"UY/[_(aefq6r±²³·å´åÿÿÿÿœÛÑ(ÒkÓ÷ø:ùþ (+367:;>?BCFGJKNORSVWZ[^_bcfgjknorsvwz{~‚2ƒ1„’˜›œŸ £¤§—¨°³´·¸»¯¼ÁÅÆÊaÀ˾ÌÎÏÿÿÿÿ³´jc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\MyMem.hwùEOutliningState33"?ÿÿÿÿÿÿÿÿƒîOutliningState34"@Vÿÿÿÿ†šOutliningState28":=ÿÿÿÿµpOutliningState29"ÿÿÿÿÿÿÿÿÿÿÿÿª*2;DE!QTgsl-1.6-1-bin\contrib\gsl-1.6\COPYINGà¤ä¿ÿÿÿÿ ÌÏÐTC:\tools\gnu\contrib\autoconf-2.59\README5½ÿÿÿÿVC:\tools\gnu\contrib\autoconf-2.59\COPYINGrÿNÿÿÿÿ1@JBnC:\tools\gnu\contrib\groff\1.19chive\CUnit\CUnit_new\CUnit\Headers\CUCurses.hV¦C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.dtd\`C:\tools\wxWidgets-2.6.3\include\wx\setup_inc.h¤~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Console\Console.cTjd:\dev\archive\CUnit\CUnit_new\doc\introduction.htmlJ\c:\dev\archive\CUnit\CUnit_new\doc\index.html jc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUnit.h~C:\dev\archive\CUnit\CUnit_new\Examples\WinTest\WinTest_v1.cpp`Xe:\CUnit_new\CUnit\Sources\FramepBq7r‘’>“A—¹º&»A¿Ð\hlw{‡‰‚d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\CUError.cÅ<À30451>BCD%;JLP"RV/X\(^bcn6o®¯°´â±âÿÿÿÿœÛnd:\dev\archive\CUnit\CUnit_new\ÎC:\Documents and Settings\Jerry\My Documents\temp\chsuf-0.9-bin\contrib\chsuf\0.9\chsuf-0.9-src\README£‰¦ÿÿÿÿeaders\TestRun.h7 `ÿÿÿÿebug - DLL|Win32.fBatchwork\Util.c?jC:\tools\wxWidgets-2.6.3\samples\widgets\widgets.cpp¡jc:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.xslq€c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestDB.cžc:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\AutomatedTest\Au‚ƒ„…†‡ˆ‰Š‹ŒŽþÿÿÿ‘’“”•þÿÿÿ—þÿÿÿ™š›œþÿÿÿžŸ ¡¢£¤¥Å§¨þÿÿÿª«¬­°¯þÿÿÿ±²³´þÿÿÿ¶·¸¹î»þÿÿÿ½¾¿ÀÁÂÃÄþÿÿÿÆEÈÉÊÏÌÍÎþÿÿÿÐþÿÿÿÒÓÔÜÖרÙÚÛþÿÿÿÝÞßàáâãäåæçèéêëìíìïðñòóôõö÷øùúûüýþÿtomatedTest_v1.c‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.cvC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\StdAfx.cppapc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\wxWidget.hu†c:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Curses\Curses.c nd:\dev\archive\CUnit\CUnit_new\doc\managing_tests.htmlLnC:\tools\wxWidgets-2.6.3\samples\treectrl\treetest.cpp¨lc:\dev\archive\CUnit\CUnit_new\doc\writing_tests.htmlEŠc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\MyMem.c~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.crd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Automated.hRvC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\ReadMe.txt^hC:\tools\wxWidgets-2.6.3\samples\widgets\button.cpp«\COutliningState63"^bÿÿÿÿH4OutliningState55"RXÿÿÿÿËüOutliningState62"ÿÿÿÿÿÿÿÿÿÿÿÿÇ|OutliningState45"LÿÿÿÿÿÿÿÿÑâ6;<?@CDGHKLO#PYckr…†Ša€‹~ŒŽÿÿÿÿ\Headers\lc:\dev\archive\CUnit\CUnit_new\doc\writing_tests.htmlPÅÖó  a.1\groff-1.19.1\LICENSE1 œOÿÿÿÿ]˜C:\tools\gnu\contrib\groff\1.19.1\groff-1.19.1\groff-1.19.1-GnuWin32.READMEêm;™ÿÿÿÿm{nC:\tools\gnu\contrib\popt-1.8\popt-1.8-GnuWin32.README'‰Oÿÿÿÿ\`cd /d+eghÿÿÿÿ  aWú  : I 8!D"'(;)04U*?@/A1B:‘'™ž¢%£§8©®:°Á<Ã/ =Z\bcgr}€ŒœŸ¦¨©®º¼½ n½!À&ÂÔÕðñ  :<G’Gÿÿÿÿrs\Basic.hNjd:\dev\archive\CUOPVW[!\`(ae+fj kq$r1ƒÿÿÿÿOutliningState35"ÿÿÿÿÿÿÿÿÿÿÿÿ3dOutliningState36"DFÿÿÿÿ5fOutliningState37"ÿÿÿÿÿÿÿÿÿÿÿÿ7~OutliningState38"EKÿÿÿÿ9¨OutliningState39"ÿÿÿÿÿÿÿÿÿÿÿÿ<~OutliningState40"HJÿÿÿÿ.OutliningState41"ÿÿÿÿÿÿÿÿÿÿÿÿdBOutliningState42"I_ÿÿÿÿ~p®;°Å?ÇÙ>ÛùKûL061O:QTUh=i|}Œb§¨²+³ËÌ×FØö÷~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\MyMem.c§,®{7ŠD:\tools\wxWidgets-2.6.3\include\wx\msw\app.h…Rd:\dev\archive\CUnit\CUnit_new\ChangeLog;\c:\tools\wxwidgets-2.6.3\src\msw\toplevel.cpp”xC:\dev\archive\CUnit\CUnit_new\Share\Copy of CUnit-List.xsltTc:\tools\wxwidgets-2.6.3\src\msw\main.cpp‡bd:\dev\¹1Tc:\dev\archive\CUnit\CUnit_cvs\CUnit\TODOHd:\dev\archive\CUnit\CUnit_new\TODO<bC:\tools\wxWidgets-2.6.3\samples\richedit\README´fC:\tools\wxWidgets-2.6.3\samples\widgets\widgets.h¢†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cppw>C:\tools\gnu\include\libintl.hf~C:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Makefile.am¤C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.dtdYŠC:\dev\archive\gsl-pkg\gsl-1.6\gsl-1.6-1-bin\contrib\gsl-1.6\COPYING"lc:\dev\archive\CUnit\CUnit_new\doc\running_tests.htmlHrC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\StdAfx.hb^C:\tools\wxWidgets-2.6.3\src\common\string.cpp~ŠC:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Basic\Makefile.amZC:\tools\wxWidgets-2.6.3\include\wx/string.h¥zc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\CUError.hnc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUError.h‚d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.c-^c:\tools\wxwidgets-2.6.3\src\common\appcmn.cppŽbc:\tools\wxwidgets-2.6.3\src\common\utilscmn.cpp–TC:\tools\wxWidgets-2.6.3\include\wx\app.h„ld:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestDB.h+jd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\MyMem.h=jd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Basic.hNfC:\tools\wxWidgets-2.6.3\samples\widgets\gauge.cpp¬\d:\dev\archive\CUnit\CUnit_new\doc\index.html9nc:\dev\archive\CUnit\CUnit_new\doc\error_handling.html!¼C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Listing.xml[vc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\CUnit.hRc:\tools\wxwidgets-2.6.3\src\msw\pen.cpp›Hc:\dev\archive\CUnit\CUnit_new\TODO_Zc:\tools\wxwidgets-2.6.3\src\common\init.cppˆzc:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Curses\Curses.cWDe:\CUnit_new\CUnit\Headers\Util.h@|d:\dev\archive\CUnit\CUnit_new\Examples\BasicTest\BasicTest.cPXc:\tools\wxwidgets-2.6.3\src\common\log.cpp‘\c:\tools\wxwidgets-2.6.3\src\msw\treectrl.cpp©bc:\dev\archive\CUn "." .J:; AOA O ] bgijmn Bn9oqrÿÿÿÿs\CUnit\CUnit\Sources\Automated\Automated.c[º(|EZ![|7~™$›¤¥®?¯ÀÁÄBÅÝÞä^åÿUQRUZV•–™Pš°±´SµËÌÏ2Ðæçï`ðQRSÿÿÿÿØÛ2Üö÷û"üÕÖÚ-ÛYZ_)`hd:\dev\archive\CUnit\CUnit_new\OutliningState43"ÿÿÿÿ`ÿÿÿÿ¹ðOutliningState46"GQÿÿÿÿûªOutliningState47"ÿÿÿÿSÿÿÿÿÞOutliningState49"ÿÿÿÿÿÿÿÿÿÿÿÿOutliningState50"NÿÿÿÿÿÿÿÿDOutliningState51"P]ÿÿÿÿjOutliningState53"TUÿÿÿÿUÊOutliningState48"ÿÿÿÿOÿÿÿÿYBFÿÿÿÿ~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.h[mÚ(47:<JPSW`a 1a.c)eÿÿÿÿjd:\dev\archive\CUnit\CUnit_new\OutliningState52"ÿÿÿÿÿÿÿÿÿÿÿÿ_jOutliningState54"ÿÿÿÿÿÿÿÿÿÿÿÿeîOutliningState57"MYÿÿÿÿåœOutliningState58"ÿÿÿÿ[ÿÿÿÿ€ØCUnit\Headers\CUnit.hâÚK,ACFHKM!P.RV [\]_`OUabc!>q1swÿÿÿÿnd:\dev\archive\CUnit\CUnit_new\doc\error_handling.htmlbòíÇ  a (+367:;>?BCFGJKNORSVWZ[^_bcfgjknorsvwz{~‚2ƒ1„’ýÿÿÿ‚ƒ„†g‡ˆ‰hŽ^–‘•®š˜Ÿ­±ž°œ½¬¨ ¡¢£¤¥¦§©—ª«”ÁÈÅɺ²³´µ¶·¸¹›»Æ¾¿ÀÄÂïÓíÇÌÍÊ˼ÎÔÏàPáÕÚÖרÙÛÝÜÞæßäðãÒþåçÑèéêëìâîþÿÿÿñòóõýÿÿÿöøþÿÿÿù ûü)"ÿ˜›œŸ £¤§—¨°³´·¸»¯¼ÁÅÆÊaÀ˾ÌÎÏÿÿÿÿ    !$ (#), 3+47 @6AD MCNQ VPWX2`a&^ c f j k ogepd q]r\sZtvwÿÿÿÿd q]bd:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.css¨²ÈŠÿÿÿÿld:\dev\archive\CUnit\CUnit_new\doc\test_registry.htmlœãÙ  a*7@TWX[S\R]_bn2of}‡Ž&‘’#‘#’™›Ÿ¡«¶¹º½ À ÿ Ä Æ ÉÅ Ê¾Ë Î ÑÍ Ò Ô ×Ó ØÌÙÚÝÞáâåæéêíµîó÷øüaòýðþÿÿÿÿOutliningState56"ÿÿÿÿÿÿÿÿÿÿÿÿªOutliningState60"Wiÿÿÿÿ–XOutliningState61"ÿÿÿÿ\ÿÿÿÿ˜OutliningState59"ÿÿÿÿÿÿÿÿÿÿÿÿ®bCUnit\Headers\CUError.hÓï–/ =Z\bcgr}€ŒœŸ¦¨©®º¼½ n½!À&Â0ÄÆÇÿÿÿÿHd:\dev\archive\CUnit\CUnit_new\TODO]®Zÿÿÿÿjd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\MyMem.hwùE*2;DE!QT`cd /d+eghÿÿÿÿG'((23@9A^_gPhyz‚Dƒ”•E—-˜£?¥±S³ÆOÈØFÚíCïþÿ   -9*;FGK#L . bfghm*nç#èîïö÷S`¨Tª «¼ÿÿÿÿ_new\CUnit\Sources\Framework\Tejc:\dev\archive\CUnit\CUnit_new\doc\introduction.htmlhü.ó  a$'(+,/2 4058 :Rd:\dev\archive\CUnit\CUnit_new\ChangeLogŒJdBÿÿÿÿdev\archive\CUnCUnit\Headers\Util.h†‘wš.<SV_bilorux{`d:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.3æ`Œãü <G%;,F,%/ÿÿÿÿ-9}~‚ 5‚!ease - Static Lib|Win32.fBatchBld=;J{C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - Static Lib|Win32.fBatchBld=;4{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.dwStartupOpt=;X{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib with MEMTRACE|Winit\CUnit_new\doc\CUnit_doc.cssC|c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\Util.cgVc:\tools\wxwidgets-2.6.3\include\wx\defs.hyjC:\tools\wxWidgets-2.6.3\samples\notebook\notebook.h²VC:\tools\wxWidgets-2.6.3\include\wx\init.hƒpc:\dev\arú-ü,3 +'#I+Kr:tÄ$ÆÊ$ÌÐ"ÒÖ ØÜ<Þá/äèéþ'BCP\Qfgo>pˆ‰˜R™ÔÕäOå32.fBatchBld=;E{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - DLL|Win32.fBatchBld=;C{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - DLL|Win32.fBatchBld=;L{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - Static Lib|Win32.fBatchBld=;J{6A6    ”| !"#$þÿÿÿ&'þÿÿÿ)*+,-./012345þÿÿÿ789:;<=>?þÿÿÿABCDEFGHIJKLMNOPQRSTXVWþÿÿÿYZ[o]þÿÿÿ_`aþÿÿÿcdþÿÿÿfgþÿÿÿijþÿÿÿlmnþÿÿÿpqrstuvwxyz{†}~€…“/•—˜ÿÿÿÿ‚d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.c¥Qv™Ex/~”L–šUœ a¢¦b¨)Ï&ÑÜ&Þ-5,7€„#…ÏÐÓ#B4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib|Win32.fBatchBld=;4{80779234-C19A-4E5C-8487-8BDAAAC25A0B}.dwStartupOpt=;X{80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{80779234-C19A-4E5C-8487archive\CUnit\CUnit_new\doc\CUnit_doc.cssI~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.h)\c:\tools\wxwidgets-2.6.3\include\wx\evtloop.h—’c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\TestRegistryTree.h°‚c:\dev\archive\CUnit‚ƒ„…†‡ˆ‰Š‹ŒþÿÿÿŽ‘’“”•–—˜™š›œžþÿÿÿþÿÿÿ¡þÿÿÿ£¤¥¦§©þÿÿÿª«¬­®°þÿÿÿ±²³¾µ¶·¸¹º»¼½ä¿ÀîòÃþÿÿÿÅÆÇÈÉÊËÌÍÎÏþÿÿÿÑÒþÿÿÿÔÕÖרþÿÿÿÚÛÜÝÞßàáâãþÿÿÿåæçèêëþÿÿÿíþÿÿÿþñeþÿÿÿôõö÷øùúûüýÿ c6;<?@CDGHKLO#PYckr…†Ša€‹~ŒŽÿÿÿÿDB0-4E57-ld:\dev\archive\CUnit\CUnit_new\doc\writing_tests.htmlPÅÖó  aÔ= "? i j m "n Û #Ý ñ  ó ÷  ø ü  ý     %/ m o ˆ äˆ ÿÿÿÿ¬k®²:´¸@º¾HÀÄIÆÊOÌÐ.ÒÖ1ØÜ3Þâ-äè0êî2ðô+ö#),2F9T#VdLemCowGx~>†A‡Ž.©ISTUe'f *v'xø#ú "M \ c[e h kg lfn q tpOutliningState75"ÿÿÿÿÿÿÿÿÿÿÿÿU\OutliningState76"kpÿÿÿÿsZOutliningState77"ÿÿÿÿÿÿÿÿÿÿÿÿdOutliningState81"ÿÿÿÿÿÿÿÿÿÿÿÿÄ "." .J:; AOA O ] b\ c[e h kg lfn q tp uow z }y ~x€ ƒ †‚ ‡‰ Œ ‹ Š’ • ˜” ™OutliningState44"ÿÿÿÿÿÿÿÿÿÿÿÿ®OutliningState64"ÿÿÿÿÿÿÿÿÿÿÿÿBXOutliningState65"acÿÿÿÿßbOutliningState66"ÿÿÿÿÿÿÿÿÿÿÿÿèÂ\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cvTc:\tools\wxwidgets-2.6.3\include\wx\log.hŠnC:\tools\wxWidgets-2.6.3\samples\memcheck\memcheck.cpp †d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Automated\Automated.cAnC:\tools\wxWidgets-2.6.3\samples\chV%WYZÿÿÿÿive\C(0.03478;*/+<"'#=/?0EGJKNOR*F+S">#T/V0\^abefi*]+j"U#k/m0su0ÄÆÇÿÿÿÿ\dev\archivxy|*t+}"l#~/€0†ˆ‹Œ*‡+"#‘/“0™›žŸ¢*š+£"zc:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Curses\Curses.cc* zC DEE HDI MRRT UY¿ÁÄÅÈ*À+ÉRc:\dev\archive\CUnit\CUnit_new\ZC:\dev\archive\CUnit\CUnit_new\VC8\CUError.iO½êÿÿÿÿ679FD0}.dwSnd:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.cd¹ ,%$'($*+./#1256"8OutliningState68"ÿÿÿÿeÿÿÿÿ©nOutliningState69"ÿÿÿÿÿÿÿÿÿÿÿÿµ\OutliningState70"djÿÿÿÿØOutliningState71"ÿÿÿÿhÿÿÿÿZ uow z }y ~x€ ƒ †‚ ‡‰ Œ ‹ Š’ • ˜” ™“› ž ¡ ¢œ¤ § ª¦ «¥­ ° ³¯ ´®¶ ¹ ¼¸ ½·¿  ÅÁ ÆÀÈ Ë ÎÊ ÏÉÑ Ô ×Ó ØÙ ÜÒÝ à ãß äå èÞé ì îë ïð òêó ö ùõ úû ýôþZÿ  !"%&)*-.12569:=>ABEFI JOSTXaNYLZ\]ÿÿÿÿlc:\dev\archive\CUnit\CUnit_new\doc\test_registry.htmlœãÙ  a*7@TWX[S\R]_bn2of}‡Ž&‘’#‘#’™›Ÿ¡«¶¹º½ À ÿ Ä Æ ÉÅ Ê¾Ë Î ÑÍ Ò Ô ×Ó ØÌÙÚÝÞáâåæéêíµîó÷øüaòýðþÿÿÿÿnc:\dev\archive\CUnit\CUnit_new\doc\managing_tests.html?«h{  aIMgjmnqruvyz}i~hƒ•˜›œŸ £¤§¨«¬¯°³—´–µ¹:»"¼¿ÀGÇÈÏÐ;ÙÚàá%êëíîôõ÷øûþ "#&',-/047?@EUOPFSTYUabZepstwx{|€ƒ„‡ˆ‹Œ“”—˜›œŸ £¤§¨«¬¯°³´·o¸½ÁÂÆa¼ÇºÈÊËÿÿÿÿlc:\dev\archive\CUnit\CUnit_new\doc\running_tests.htmlUí  a'+-138Laefjkoptuy`z_{ŠOutliningState72"ÿÿÿÿÿÿÿÿÿÿÿÿ1´OutliningState67"ZfÿÿÿÿCrOutliningState73"gsÿÿÿÿ~rOutliningState74"ÿÿÿÿlÿÿÿÿKn “– £ÐÓÔרÛÏÜÎÝ1ùü+ù üý -' K%%(,-;J=B><?BGHWJYBZX[3]_-] _`5cknq touvyz}~j‚‡‹Œa†‘„bc:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.css¨²ÈŠÿÿÿÿ&'&)cdg-h€,‚ËÌÏ#Ð   # ˆ "Š ´ µ ¸ "¹ & #( <  > B  C G  H L  M Q %z ¸ º Ó jd:\dev\archive\CUnit\CUnit_new\doc\introduction.htmlhü.ó  a$'(+,/2 4058 :BCH IQ!RZ![g$hs$tz'{#‚‰&Š‘'’*ž©(ª·+¸Ä'ÅÑ*ÒÞßæ#çíîõöR_§S© ª»ÿÿÿÿ679FD0}.Release - Static Lib|WiOutliningState80"qoÿÿÿÿдOutliningState78"nrÿÿÿÿÓjOutliningState79"ÿÿÿÿÿÿÿÿÿÿÿÿÙŽOutliningState82"mÿÿÿÿ96-8BDAAAC25A0B}.Release - DLL|Win32.fBatchBld=;C{80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - DLL|Win32.fBatchBld=;L{80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Release - Static Lib|Win32.fBatchBld=;J{80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - ;'HIO!¬¯C$08;BEL!N:RUV ,V%WYZÿÿÿÿC:\deN R .S Ç "É    ÿÿÿÿefile.amŠC:\"¸#Ê/Ì0ÒÔ×.61S”UVX Yecklst\checklst.cpp|Œc:\dev\archive\CUnit\CUnit_new\Examples\wxWidgetsTest\wxWidgetsTest.c}¤C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.xslXRC:\tools\wxWidgets-2.6.3\include\wx\wx.h€\C:\dev\archive\CUnit\CUnit_new\“› ž ¡ ¢œ¤ § ª¦ «¥­ ° ³¯ ´®¶ ¹ ¼¸ ½·¿  ÅÁ ÆÀÈ Ë ÎÊ ÏÉÑ Ô ×Ó ØÙ ÜÒÝ à ãß äå èÞé ì îë ïð òêó ö ùõ úû ýôþZÿ  !"%&)*-.12569:=>ABEFI JOSTXaNYLZ\]ÿÿÿÿnd:\dev\archive\CUnit\CUnit_new\doc\managing_tests.html?«h{  aIMgjmnqruvyz}i~hƒ•˜›œŸ £¤§¨«¬¯°³—´–µ¹:»"¼¿ÀGÇÈÏÐ;ÙÚàá%êëíîôõ÷øûþ "#&',-/047?@EUOPFSTYUabZepstwx{|€ƒ„‡ˆ‹Œ“”—˜›œŸ £¤§¨«¬¯°³´·o¸½ÁÂÆa¼ÇºÈÊËÿÿÿÿld:\dev\archive\CUnit\CUnit_new\doc\running_tests.html¡Ãy¢  a'+-138I^bcghlmqrv]w\x‡ “  ÍÐÑÔÕØÌÙËÚ-ý'ý %J'B(&),12AJCBDBE3GI-G IJ5MUX[ ^Y_`cdghkTlquvzap{n|~ÿÿÿÿÓ ÿÿÿÿ¾ × ÿÿÿÿstDB.h+\ŠŽ BŽ9‘’ÿÿÿÿª«ÿÿÿÿchive\¼C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Listing.xml3ì~Ð%& % & /0 !$*+%"#&/VC8\wxWidget.i‹nC:\tools\gnu\contrib\popt-1.8\popt-1.8-GnuWin32.README'~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.c3hd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Util.h>´C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Memory-Dump.xmls‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\CUError.cxC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\WinTest.cppcXC:\tools\wxWidgets-2.6.3\include\wx\build.h‚Zc:\tools\wxwidgets-2.6.3\include\wx\wxchar.h™D𮝴<µ¼½ÄLÅÌÍ?Î&ÏÙÚÞ[ßåæëRîW+,/M09:`(cdeh j1mpkpr sq#vyzL}€{Y,[\eeghssEÕÖìí/ð')$ñ@A4B&CZ[)\!]mn o&p‰Š'‹)Œ“”"•(–¢’#¤/¦0¬®±²µ*­+¶"¥#·/¹0€‚"ƒ$†‰Š’‹’”$•“%™ž£¦Ÿ¦¨"©§$­°±6¶¹²¹»$¼º%ÁÄÅ*ÌϤC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.xslɲ    -Z$- ,!'#%"'(+-/*/'1368/59-;=@B.?CFHL O%KPJQ.ERUX/TY\_/[`fm+ov2nw-d x)by~€${2ƒÿÿÿÿease - Static Lib|Wi¤C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.dtdH‘m$ÿÿÿÿhBld=|d:\dev\archive\CUnit\CUnit_new\Examples\BasicTest\BasicTest.c«ý°, Tÿÿÿÿjd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Basic.hƒº +/2:=FITWZ]`cjlm 'm npqÿÿÿÿvd:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Basic\Basic.c‘þ± EH%IW1Yd@fs,uy'{7Œ”*•©ª³C´ÂÃÈ5ÉÎÏÖK×ÜÝáZâòóøUû #V$ABELFOPSOT]^_ÿÿÿÿ£4¤7¥²³&´,µÇÈ"É(ÊÛÜ"Ý(Þïð$ñ#ò  H ! &¦C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.xsl³pŸª   - ## /%!#($& '6(.5#- 7-*83:Static Lib|Win32.fBatchBld=;4{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.dwStartupOpt=;X{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - DLL|Win32.fBatchBld¶fc:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.dtdoXc:\dev\archive\CUnit\CUnit_cvs\CUnit\README†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Automated\Automated.c~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.h0`c:\dev\archive\CUnit\CUnit_new\libcunit_dll.def¯`d:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.37nd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestRun.h,\c:\tools\wxwidgets-2.6.3\src\msw\settings.cppš~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\MyMem.cOutliningState83"ÿÿÿÿÿÿÿÿÿÿÿÿ?öOutliningState84"tvÿÿÿÿºšOutliningState85"ÿÿÿÿÿÿÿÿÿÿÿÿÁbOutliningState86"uxÿÿÿÿÒ€H5á%A BGGEmpsnŽ—ChangeLog)7 ÿÿÿÿŽ—jC:\tools\wxWidgets-2.6.3\samples\widgets\widgets.cpp͘ԕ'<=8DEOIMERJU `1af-ge)l v{„ˆWŽ.”š›Ÿ¤¥J¢³º0» ¼9¾H´Á‘Ç ÇÊ× Ø@ÙÝ<ÞöJ÷ùúýþZ [W\ET]ÿØÛ*Ó+Ü"Ë#Ý/P·¸¼!6½&',P-<=BSCjkqsŽ<*‘¡¢9£3¤¾¿Â3Ã(?@@ABhim*njŽc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\CUError.clC:\tools\wxWidgets-2.6.3\samples\widgets\combobox.cpp±ˆc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\Util.chc:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.dtOutliningState87"ÿÿÿÿÿÿÿÿÿÿÿÿ´ÊOutliningState88"w}ÿÿÿÿ˜OutliningState89"ÿÿÿÿ{ÿÿÿÿ%´OutliningState90"ÿÿÿÿ|ÿÿÿÿ(^dn`c:\tools\wxwidgets-2.6.3\include\wx\msw\frame.h“^c:\tools\wxwidgets-2.6.3\include\wx\treebase.hªjc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Basic.hdjc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\MyMem.h(rc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Automated.h^c:\dev\archive\CUnit\CUnit_cvs\CUnit\ChangeLogÎC:\Documents and Settings\Jerry\My Documents\temp\chsuf-0.9-bin\contrib\chsuf\0.9\chsuf-0.9-src\README/¦C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Listþÿÿÿ3<    þÿÿÿþÿÿÿ[m !"#$%&'()*+,-./012þÿÿÿ456789:;L=þÿÿÿT@ABCDEFGHIJKþÿÿÿMNOPþRS]UVWXYZ[\þÿÿÿ^þÿÿÿ`aicdefghþÿÿÿjklmnopqrstuvwxyz{þÿÿÿ}~€OutliningState108$ŠÿÿÿÿÿÿÿÿÁÔOutliningState109$†¡ÿÿÿÿ0~OutliningState110$ÿÿÿÿÿÿÿÿ‘xOutliningState111$ÿÿÿÿÿÿÿÿÿÿÿÿ•vFNOQ?BR:TV2[](^`Ya,Xb4df&km$pr$uw$z|i}?h~*„†2ƒ‡ˆ‰‹:€Œ‘“$Ž”Ojc:\dev\archive\CUnit\CUnit_new\<?F>>G L N O QKT.JU9IW3Y[^j>]k(qs1ptn t9mv{}#x~O€ÿÿÿÿß0åçêëî*æ+ï"Þ#ð/ò0øúOutliningState91"ÿÿÿÿÿÿÿÿÿÿÿÿ¢ÀOutliningState92"zÿÿÿÿU¶OutliningState93"ÿÿÿÿÿÿÿÿÿÿÿÿ@ OutliningState95"ƒÿÿÿÿ\Xýþ*ù+"ñ#/0  * +"#/0 #$'*+("#)/+01367:*2+;"*#</>0DFI*E+J"=#KLMNOÿÿÿÿ¼C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Results.xmlÖI" #  "# "#  "#  !"##%" &"(#*' + ,-"2#41 5"7#96 :"<#>; ?/ @.A"F#KE L"N#SM T"V#[U \C ]B^` c_df iej"o#tn u"w#yv zl {k|~ }‚"‡#Œ† "#”Ž •"—#œ– "Ÿ#¤ž ¥"§#¬¦ ­„ ®ƒ¯"´#¹¦C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.dtdx¼›ÿÿÿÿ³ º"¼#Á» Â"Ä#Éà Ê"Ì#ÑË Ò± Ó°Ô"Ù#ÞØ ß"á#æà çHc:\dev\archive\CUnit\CUnit_new\TODOÒcõPÿÿÿÿxC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\WinTest.cppù¦)ÚOutliningState99"ÿÿÿÿÿÿÿÿÿÿÿÿ^ÄOutliningState98"‚€ÿÿÿÿb¾OutliningState97"„ÿÿÿÿÿÿÿÿešOutliningState94"~ÿÿÿÿÿÿÿÿh† ( ÿÿÿÿrC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\StdAfx.h§µ KÿÿÿÿvC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\StdAfx.cpplt>ÖÿÿÿÿvC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\ReadMe.txtU @nÿÿÿÿ~C:\dev\archive\CUnit\CUnit_new\Examples\WinTest\WinTest_v1.cpp°WâÖ ( ÿÿÿÿ"é#îè ï"ñ#öOutliningState96"ÿÿÿÿÿÿÿÿÿÿÿÿkÊOutliningState101$ÿÿÿÿÿÿÿÿtOutliningState102$ŒÿÿÿÿSŠOutliningState103$ÿÿÿÿÿÿÿÿÿÿÿÿjlð ÷"ù#þø ÿ"# " # "# Ö Õ"## $"&#+% , -."3#82 9";#@: A"C#HB I0 J/K"P#UO V"X#]W ^"`#e_ fM gLh"m#rl s"u#zt {"}#‚| ÆÏÑ&ÒÐ&×Û?Ý9àãÞãå&æä&éì=íòõîõ÷.øö*.xslZZC:\dev\archive\CUnit\CUnit_new\VC8\CUError.iiZc:\tools\wxwidgets-2.6.3\include\wx\gdicmn.h’bC:\tools\wxWidgets-2.6.3\include\msvc\wx\setup.h£hc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Util.he~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Share\Memory-Dump.xslŸë’g    *!!" *&+07)/8%-9(>@ADFIKN-= P";Q!SW2YÿÿÿÿM?cppJBQó"#$')DIQZK³´µ¶ÌÍ=äèêåïð=ò#öøóüý=ÿnc:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.h2o~;.*<4>@CE–ÿÿÿÿTV2SWQfc:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.xslÐ åS    -$ %- ',('*,"./3526/18':ûþ3ÿ  @ 3?7 !"#;CFNQgimsz{ 2{}ÿÿÿÿƒ"…#Š„ ‹j Œi"’#—‘ ˜"š#Ÿ™  "¢#§¡ ¨"ª#¯© °"²#·± ¸"º#¿¹ À"Â#ÇÁ È"Ê#ÏÉ Ð ÑŽÒ"×#ÜÖ ÝÔ ÞÓßàâéêñòùáúûOutliningState105$‰ÿÿÿÿÿÿÿÿÂjOutliningState104$‡ÿÿÿÿÿÿÿÿÔ¬OutliningState106$ˆ‹ÿÿÿÿáÂOutliningState107$ÿÿÿÿÿÿÿÿÿÿÿÿÆüýÿÿÿÿCUnit\CUnit_new\hc:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.dtdv¥Ãÿÿÿÿ¬cEYijp7qv;ÿÿÿÿ-AA33-2709A75004F8}|test_cufc:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.dtdÃ{@Oÿÿÿÿmeworjc:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.dtdØQ?èÿÿÿÿ¬cw~M„…C‘©ª·P¸ÐÑÕ3Ö  (=>??@abf\gxy~ƒ†S‹ŒX•–™N𢣦Q§®¯°ÿÿÿÿŠC:\dev\archive\Œc:\dev\archive\CUnit\CUnit_new\Examples\wxWidgetsTest\wxWidgetsTest.cqü $†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.Vc:\tools\wxwidgets-2.6.3\include\wx\intl.híÖ"· 0%L'B12O7=?&9CDOFHUVOXZcdOginr+uvw+}ƒH…‹šF›ž9Ÿ¢£¦I§«¬®¯±²¶ ¸¹º»C¿Â3ÈÐMÒÕÖÙMÝà:âå/ïùúÿ  2 o!"<&7*1/3;;A,B%@ CH3I<KNO  . $$ 0%!#($& '7(,.0239$/ Q)RT'U%P V Xÿÿÿÿ#($'<().pc:\dev\archive\CUnit\CUnit_new\Í«4ïþîÿJZÍ«4ïþîÿÍ«4ïþîÿ Í«4ïþîÿ Í«4ïþîÿ =;C{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - DLL|Win32.fBatchBld=;L{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - Static Lib|Win32.fBatchBld=;J{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib|Win32.fBatchBld=;4{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}.dwStartupOpt=; ActiveCfg=&Debug - Static Lib with MEMTRACE|Win32;atchBld=;J{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib|Win32.fBatchBld=;4{C6339A24-F233-4D77-8087-0C97E73A81D7}.dwStartupOpt=;XRC:\tools\wxWidgets-2.6.3\includœ$ž§¨±?²ÃÄÇBÈàáç^è U WX[Z\¤¥¨P©ÀÁÄSÅÜÝà2áøù`nopÿÿÿÿc Lib with MEMTFramework\MyMem.c5ld:\dev\archive\CUnit\CUnit_new\doc\writing_tests.htmlKvc:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Basic\Basic.cknd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUError.h8ld:\dev\archive\CUnit\CUnit_new\doc\test_registry.html:|c:\dev\archive\CUnit\CUnit_new\Examples\BasicTest\BasicTest.c¸hC:\tools\wxWidgets-2.6.3\samples\treectrl\icon1.xpm¦bc:\dev\archive\CUnit\CUnit_cvs\CUnit\Jamrules.invd:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Basic\Basic.cO¼C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Results.xml]Xc:\tools\wxwidgets-2.6.3\src\msw\window.cpp•`c:\tools\wxwidgets-2.6.3\src\common\textcmn.cppµnd:\dev\archive\CUnit\CUnit_new\doc\error_handling.html6Vc:\dev\archive\CUnit\CUnit_new\config.h.inxjC:\tools\wxWidgets-2.6.3\samples\treectrl\treetest.h§\c:\tools\wxwidgets-2.6.3\src\common\event.cpp³jc:\dev\archive\CUnit\CUnit_new\doc\introduction.htmlD|d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\Util.c2XC:\tools\w ïT  þÿÿÿ-JM !I#$%&'(ú*+þÿÿÿ¥Z/01234>6789:;<=.?@ABCDEFGHþÿÿÿKL\éNOVŒÈþÿÿÿU×[þÿÿÿ¼Ygcf^_Ãa™ˆdeihbSj}umnopqrstRvxÙyz{Ý»~xWidgets-2.6.3\include\wx\debug.hžnc:\dev\archive\CUnit\CUnit_new\doc\managing_tests.htmlG˜C:\tools\gnu\contrib\groff\1.19.1\groff-1.19.1\groff-1.19.1-GnuWin32.README&Zc:\dev\archive\CUnit\CUnit_cvs\CUnit\VERSION`c:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.3nd:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.cQTC:\tools\gnu\contrib\autoconf-2.59\README#tc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\Util.hnC:\dev\archive\CUnit\CUnit_new\CUnit\Sources\po\en_.pom`c:\tools\wxwidget\CUnit\CUnit_new\Share\CUnit-List.dtd6d:\dev\archive\CUnit\CUnit_new\doc\error_handling.html-c:\dev\archive\CUnit\CUnit_new\doc\index.html]C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Results.xml2C:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.xsl2C:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.xslxsl2c:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.xsl$http://www.w3.org/1999/XSL/Transform>RC:\dev\ars-2.6.3\src\common\appbase.cpp†Žc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\TestRun.c ld:\dev\archive\CUnit\CUnit_new\doc\running_tests.htmlMZC:\tools\wxWidgets-2.6.3\include\wx\string.hjd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUnit.h4nC:\tools\wxWidgets-2.6.3\samples\notebook\notebook.cpp®lc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestDB.hpc:\program files\microsoft platform sdk\include\winnt.hz^C:\tools\wxWidgets-2.6.3\include\wx\ptr_scpd.h‰Rc:\tools\wxwidgets-1&2B7ST9koK„…Aš+§¨+²µS·¹¾ÅÍÎßàòþ*ÿ!ó  4331?JBE9GJKP>QTGUX[]*^_*`dKfijm@ps"z}„+‡ŠBŒ•S–¡¤¨«®°³µ¹»ÍÎÔØæçíîò÷ýÿ   *,/1469;?AKMQ.Xsuw}~‚‹8Œƒ"*+,/5G6=&?BSDfKgiMjF~D€`‚ †˜› ¢VC:\tools\wxWidgets-2.6.3\include\wx\defs.h-DÇ +227#+ ,/035&89 IIMQ'S@UYB^b}cAyz*~‰Œ57!“7”™6šœ:<@B?C/>D-FHMOKQ.JRWYU[(b d(f h ` i4l n j o_ p%^q]r.Ts%wyz|v}/u~%‚„…‡ˆ/€‰(Ž‘˜,š ¡3™¢- £)‹¤$¦ª2¬ÿÿÿÿ382828-xC:\dev\archive\CUnit\CUnit_new\Share\Copy of CUnit-List.xsl±Gt    . $$ 0%!¼ÍÑ×ÎØÜâÙãçíîôäõùÿö    !%+",06-7;A8BFLCMQWX^N_ci`jntkuyv€„Š‹•Œ–š —¡¥«¢¬°¶­·»Á¸ÂÆÌÃÍÑ×ÎØÜâãéÙêîôëõùÿö    !%+",067=>D-EIOFPTZQ[_e\fjpgqu{r|€†}‡‹‘ˆ’–œ“¡§ž¨¬²©³·½´¾ÂÈ¿ÉÍÓÊÔØÞÕßãéàêîôëõùÿö    !%+",06-7;A8BFLCMQWNX\bciYjntkuyv€„Š‹•Œ–š —¡¥«¢¬°¶­·»Á¸ÂÆÌÃÍÑ×ÎØÜâÙãçíäîòøïùý ú   !%+,2"37=4>BH?IMSTZJ[_e\fjpgqu{|‚rƒ‡„Ž’˜™£š¤¨®¥¯OutliningState112$Ž’ÿÿÿÿ—zOutliningState113$ÿÿÿÿÿÿÿÿÿÿÿÿÏ2OutliningState114$‘“ÿÿÿÿÙrOutliningState115$ÿÿÿÿÿÿÿÿÿÿÿÿ Œ)%*ÿÿÿÿive\CUnit\CUnit_new\^c:\tools\wxwidgets-2.6.3\src\common\appcmn.cppžƒ|0&&1C256STW!bMek2l<fvwz{…6†‰)ŠŸ@¡›¢2.6.3\src\msw\app.cppnc:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.cBzc:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\ExampleTests.c ^C:\tools\wxWidgets-2.6.3\include\wx\apptrait.h˜ZC:\tools\wxWidgets-2.6.3\include\wx\arrstr.htC:\dev\arch³¹°º¾ÄÅËÌÒ»Ó×ÝÔÞâèßéíóêôøþõÿ           &  ' + 1 ( 2 6 < = C 3 ´C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Memory-Dump.xml,8’ %&*0'15;2<@F=GKQHRV\S]ag^hlrisw}t~‚ˆ‰“Š”˜ž•Ÿ£© ª®´«µ¹¿¶ÀÄÊÁËÏÕÌÖÚà×áåëâìðöí÷ûø  "#'-$.28/9=C:DHNEOSYPZ^d[eiofptzq{…|†Š‡‘•›’œ ¦§«±¨²¶¼³½ÁǾÈÌÒÉÓ×ÝÔÞâèßéíóêôøþõÿ    $*!+/5,6:@7AEKBLPVMW[aXbflcmqwnx|‚yƒ‡„Ž’˜™£š¤¨®¥¯³¹°º¾Ä»ÅÉÏÆÐÔÚÑÛßåÜæêðçñõûòüý !'(,2)37=4>BH?IMSJTX^U_ci`jntkuyv€„Š‹•Œ–š —¡¥«¢¬°¶­·»Á¸ÂÆÌÃÍÑ×ÎØÜâÙãçíäîòøïùýú$%)/&04:1;?E<FJPGQU[R\`f]gkqhrv|s}‡~ˆŒ’‰“—ž¤”¥©¯¦°´º±»¿ÅÆÌD H N E O S Y P Z ^ d [ e i o f p t z q {  … | † Š  ‘ — ‡ ˜ œ ¢ ™ £ § ­ ¤ ® ² ¸ ¯ ¹ ½ à º Ä È Î Å Ï Ó Ù Ú à Ð á å ë â ì ð ö í ÷ û  ø           "  # ' - $ . 2 8 / 9 = C : D H N E O S Y P Z ^ d e k [ l p v w } ~ „ m … ‰  †  ” š ‘ › Ÿ ¥ œ ¦ ª ° § ± µ » ² ¼ À Æ ½ Ç Ë Ñ È Ò Ö Ü Ó Ý á ç Þ è ì ò é ó ÷ ý ô þ     ÿ     ! " (  ) - 3 * 4 8 > 5 ? C I @ J K L P  Q R "R ÿÿÿÿOutliningState116$œÿÿÿÿëäOutliningState118$š—ÿÿÿÿ»žOutliningState121$™ÿÿÿÿÿÿÿÿý.OutliningState123$˜ÿÿÿÿ¦N#($& '7(,.$/ 1.*2446&;=$@B$EG$JL9M?8N*TV2SWQXY[:P\4^`&eg$jl$oq$tvcw?bx*~2}‚{ƒ„†:z‡ŒŽ$‰O‘ÿÿÿÿ !!ÿÿÿÿÿÿÿÿ˜'¡ ˆ¯CUnit\Headers\wxWidget.h3Y¡4-. '. /12ÿÿÿÿ '. MultiStartupProj=;4{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.dwStartupOpt=;X{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - DLL|Win32.fBatchBld=;C{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - DLL|Win32.fBatchBld=;L{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - Static Lib|Win32.fBatchBld=;J{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib|Win32.fBatchBld=;4{0336E4F1-B2E5-4E5›6œ=ž '¢4£=¥<¦$¨3©.ª6«'­6®=°²%´<¿4Ã:ÄMÆEÇ1É9Ê;Ë<Ì4Î<Ï)Ð,ÑEÒ.Ó2ÔÖ8Ø6Ù/Ú0Û ÜÞ ßàAäBåDçCèIêJëFî@ð4óJôgetsTest.vcprojHeader FilesResource FilesSource Files:\dev\archive\CUnit\CUnit_†c:\dev\archive\CUnit\CUnit_neXC:\tools\wxWidgets-2.6.3\includRc:\tools\wxwidgets-2.6.3\src\msw\app.cppBÉ|¤0"/:;O@C4FH KLU!Vbj_DkoNq5u)vy;z{3}~Q€‡O‰’B•š“ž¡°¶G·+ŸÅ"ÆÊÓ%Õ7ËÛÞFß.Üâì$î/ãòó   '2*+4./342@55>?0FG1MSHT#N˜™œ¡Ï%Ô×<Ú5ÝÞã!æì îÕñòõöúý6þû   9&- +,/7056:728@A E3H IKKNn+p v;wƒ6„Y ’J–F™š›¢5£ ¡¤³.´¹!º ÄÆ$œŸ7 ¢"£¥N¦¨ ©¯ˆ°:´¸¿Á*³Â ÉÊ ÍÎ5èê=ëî;ïñ7òô"õöç ÷úûüý5=  !% !  2)!0"#($'<().*3C+FP5DBQ R/S22 TU+V5] _=` c\ di-j5h'k=l'pg qt7v1y z| €‚†I‰&Ž’ ”'•H–'—E˜ ™.š {›w!œ H¤¦2§ ¨"ª¥¬­¯³´·8¸2¹ º»½Â&ÃÄ(ÅÆÇÓJ×'Øàâèáéí:î3ï4ðñòøúûüÿ+P1B?".#&.*+1,-+.2/349597:;-<@5AB+CF0IJ)KL#MP9QS1TU=WR X[%`!bgaJhk o#rs!{$}y ~,x‚=†‡­®-²µ¶·S¹1»¼À ÂÃÄÌ ÏÐÑÙ ïðù;   '(''" "#(ý) *,+ú ,- ]bd@e$g$hjk;pw{|I}‚"ƒ+u†‰KŠ"%‡’s’–"ž¡/¢.£§¨&«2¬'¯L°%³\´'·¸(»¼'¿@À&ÇÈ Ð1Ñ"ÒØ&Ù Ú3ÛÖ#ãçHèé ì1îïñòõ ö÷ ø ùCúô ûÿK#  4 !@' '! "%)/#0§©° °±&²³ÊÕF×ÌVX_W_cpqt uîîðñóùÿ      C& ' ++ D- . @0 -3 > G ƒ † <Ç Ê é  ñ ò  %  " 4" '# $ 1% î & )* g j ‘ .• ­ ° ë Aî ï ð ñ ô :ø û "ü                 = 2> ? 4@ A 3B C 0D @2 F ! K ÿÿÿÿ ¦ † <Ç Ê é  ñ ò  %  " 4" '# $ 1% î & + A )* !F H L M O z €  † Kˆ OŠ )Œ  ‹ K j ‘ .• ­  *Æ Ç *Ë Ò *Ô ç /S XIab v{~Œ=Ž« §0¨¬,¯4°±³2­¶C·¼½À?ÂÈMÊÐDÒØ:ÚßLáçèEñHòö-÷û L  4 eý  " '  ; )> OutliningState122$–ÿÿÿÿÿÿÿÿ5ì4OutliningState119$ÿÿÿÿÿÿÿÿÿÿÿÿ¤*OutliningState117$ÿÿÿÿÿÿÿÿÿÿÿÿ½äOutliningState127$ÿÿÿÿÿÿÿÿÿÿÿÿš •±(µ·(³7·Á6ÂÃ%ĽƻÆÎOÐÔÞ"àãêMø O7dj Ÿàâåí÷%(-.7=@JRTX[^€ƒœ¢6¿"ÂÆ!ÊÎ ÑÕ ØÜ)âé(ëò'ôû'ý + *)) %2'/1190;C0EMOQW[#]`be(giln$ptx…¡è,êò#ôýÿH. 0468@BDGKMU_fhlsuy|H€¢°*²·¾ÈTÞ2àá.âñôöùýÿ% # &),.#13"68+:EGI*X["]`jm p{„†ˆŠŒ–˜+šŸ¢¤&¦«ÌÏÐÓïó ýø   !<$ %-4;HJQ6U^1`j4ls/uy/{}4…5‡‰3‹Ž=“,•—œ ­¯¹»ÐÒ êö," &, ./ 1 +44(5(lt*v~¹Ã"$'&+.0#257= DF(?GMOSV[_c}ƒ… •ž ¢« ­´ ¾ÁÃOÇÓÜ àúü  $*13J`K#;m+p‘&„•*˜¥¨ÎÐÞâä çòó?ú ý 2 4h jAkop!rz­¯$±´¸º½¿Ëpc:\program files\microsoft platform sdk\include\winnt.hËJd% g#)*,(0&23%58;>(?=@A4CFRSVY^Ve-fgh-l0mnokp-t0uvwsx&|&}~'#{€ƒG„/ˆ/‰Š‹‡Œ.0‘’“”˜1™š›—œ ¡¢£Ÿ¤B¨3©ª«§¬°/±²³¯´¸!¹º»·¼-ÀÂÃÅ¿ÆÉÒÓÕØÚ4àáâ äçéë$íîõùû ý ;  B %'(7:=8D L[NO0QUW_be"fgh o'pq)r&kxy€œ¨+ª«­°µ¸•»=¿ÀËÕÖ ÙÜ ÝàØãç è ëî ïòêõùþ  E!%?@ISYcistuv"wy'z†+‡–—šŸ¥ÌÏöùú ¢ú  ! #,/) /;=ADGJNRV[dz£^¤¥/¦©,ª«,¬¯´¸º½ÁÄÌÓ-ÔÕ#ÖÚVÛàãý ^dIžÈÉãôû +<>BC[^hj0kltS¢D¤w¦°       J      9   ! - / + ? c e y œ ¨ ° Ÿ ± ´ · » ¼ J¸ å è é  ( é   ë ÷ ý ð *          " &) * & * + ; +ï > B D L N R T V j "o y } … ‰ ™  ¡ ª ­ ± ´ » ¾ Ç Ê Ó × ‡ Û í ò ó þ  ì ÿ é  æ  C ¼ SÀ 4  7 âéê ìó"÷þ"  "0;?I[]acgiqtv{€†#‹ŽÍ%¼å)çõ'÷ !I%&I*"-1 37!9< >>@A>C^Dc8fDg8hDi2t@u€!ƒ‹ •˜$“¡¥E«9¬E­9´Eµ9·7¹9Ð7ÑÞß âaãçèí ð ëòêøþ  4!)*TV ZK[ _L` eIf juknboq>ruw} € | ‚„ ‡ˆ Š ƒ ‹ z Ž ‘˜y™"ž )¤©¯±¿Á ÄÇ ÃÊÏÑßàòô45bdxy™›¥¦#$ '* &, 1E267%9=BDQS+\dhn&p|~€$‚… Š"‰ –›"•œ¦¨%±¸%»Â Å=ÌÍ=Ô ØÛ,Ü^ß'×äçé-ëð)òöø( #' * &-0 3 .4.%57>/@C+FILS)UZ\^`uwŒ ŽG‘G“–/Ÿ¥4§­2¯µ,·»ÀÆÇËÌÐÓÕ%×à)ðù (9 $!% *-&'.0B+DR^_$T` b-de4g0kMlot0w[x'v}&‚‡c‰ •™#Ÿ¤(«D¬$¦­)³Ù!Üô&°õøþ ÿ      # & .  3 7 1 8 / 9  ; `Ÿ ´ Ó Ö × Þ Ï ã È ã &ç ë &ï ó %õ ø ú !! ! !)!!)! !!! "!.!/!-2!3!-6!9!;!H!J!U!W!]!_!f!m!*|!„!Œ!!$‰!–!-«!±!+³!º!¾!À!Ç!É!Ó!Õ!0¼!Ù!Û!Ý!ô!ö!$n"r"‰"‹"½"¿"+¶"Â".Ç"Ê"2Ô"Û"Þ"á"@ç"þ"7####!###+#.#6#=#O#Z#?#[#]#^#a#b# e#j#l#p#r#s#t#u#w#}#¥#§#4«#N¬#4®#N¯#4±#D²#4´#I¶#Â#Ä#Ê#Ë#Ð#Ò#Ú#Û#Þ#â#î#ñ#,õ#Uö#$$$ $($*$0$3$"5$<$">$D$#F$K$O$Q$V$Y$[$]$f$i$k$m$ t$x$z$|$!‚$†$ˆ$Š$!—$œ$ž$¤$0Ä$NÆ$É$Ê$)ô$%%%)% %%%)%%%%)% %"%$%%*%.%1%3%#:%>%@%B%%C%K%)N%o%+y%z%w%z%{%Š%+s%Œ%S%C˜%›%œ% œ%ÿÿÿÿÍÐOÒÖA×#ÔôÎô÷ú"ÿ ' ûÿÿÿÿ.€¥¨Oª· ¿Ã"Å Í6¯Ýàîñþ8Þ¦    %6-AA33-2709A75004F8}.dwStartupOpt=;StartupProject=&{0336E4F1-B2E5-4E56-AA33-2709A75004F8};X{0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - DLL|Win32.f $,&##)*+!.1$567/:;>AC?HK"LIUe\wx\wx.hm³nsST V X[ÿÿÿÿ XC:\tools\wxWidgets-2.6.3\includnC:\tools\wxWidgets-2.6.3\sampleBatchBld=;C{0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - DLL|Win32.fBatchBld=;L{0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - Static Lib|Win32.fBatchBld=;J{0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib|Win32.fBatchBld=;4{4Cõ@ö øCùEú@ûIüCý@ÿ)6)8! 7 a  O) C-!$$'*:034567:;<=%-B@FIJO!QRUVWX+C_ +_:ehijkl%bs@w}~ƒ!…†+t`’˜>›;œ>ž>Ÿ >¡;¢>£¤>¥¦>§¨>©ª>«¬>­®>¯°>±²>³´>µ¶>·¸>¹º>»¼>½¿CÁ2ÂCÃ2ÄCÅ2ÆCÇ2ÈÀ2ÈBÊ/ËBÌ/ÍBÎ/ÏBÐ/ÑÉ/ÑKÕ-ÖK×-ØÔ-ØJÚ*ÛJÜ*ÝÙ*Ý™ßâã3çèðö邃„…†‡ˆ‰Š‹ŒµŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´þÿÿÿ¶·¸¹º»þÿÿÿ½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌ ÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàþÿÿÿâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿÿÿÿ‚ƒ„þÿÿÿ†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžþÿÿÿ þÿÿÿ¢£¤þÿÿÿ¦§¨©ª«¬t®¯°±²³´þÿÿÿ¶·¸¹þÿÿÿ»¼½¾¿ÀÁÂÃÄÅþÿÿÿÇÈÉÊËÌÍÎÏÐÑÒÓþÿÿÿÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿÿÿÿ,c l Em s t y  € z 7† ‡ ‰  ) >• ¤ 9¦ ´  µ º :» ¿ +À Ä É *Ê Å Í 6Î Û Û DÞ â Eã ç ÿÿÿÿß=ãæçð2ò+ä$()273D+EF+GH*IJKO;PQ$RT;UV$W [)\](^†!‡ˆ‰ƒ{ ’ÿÿÿÿý3TVW$F[ [ÿÿÿÿx\init.hR÷ /Tc:\tools\wxwidgets-2.6.3\includive\CUnit\CUnit_new\CUnit\Headers\CUnit_intl.hhnC:\tools\gnu\contrib\groff\1.19.1\groff-1.19.1\LICENSE%dc:\dev\archive\CUnit\CUnit_cvs\CUnit\configure.in €d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestDB.c*Vc:\tools\wxwidgets-2.6.3\srce\wx\app.hú-    '"()"+9>\c:\tools\wxwidgets-2.6.3\include\wx\msw\app.hÑ®t 0-.4)595<HAIG.JMNQ6RYZ4^abe!fg&húÿÿÿÿÅÆÍÎÏÐ%ÒÓ&Õ×ÙßáæçîHð øý%þ#ÿ%%  K'3C&'5782:;<=>5?A\BC4DOutliningState146$·ÿÿÿÿÿÿÿÿ`æOutliningState147$¬®ÿÿÿÿ|(OutliningState148$ÿÿÿÿ¯ÿÿÿÿÌ OutliningState149$ÿÿÿÿÿÿÿÿÿÿÿÿ­,-Zc:\tools\wxwidgets-2.6.3\include\wx\gdicmn.hÇ£„ 0 0Ts,tv3w y~V…†+‡Š–˜%š›%ž6 ¡6£¤6¦§'©ª'¬­%¯²´+¶G·¸@¿ÀBÁÄNÊÔÕ%ÙÚ!Þß#ãä å?æ çéíîðñòóôKõ(öýÌN%0!%#$''()*+(-.23N5OutliningState128$• ÿÿÿÿ²OutliningState126$ž›ÿÿÿÿljOutliningState124$ÿÿÿÿŸÿÿÿÿ?OutliningState125$ÿÿÿÿÿÿÿÿÿÿÿÿ¡Øi#j {ÿÿÿÿà3›?OAKRVWX[_`aMbe;fi4kn s#tuv+ˆ'“)”•+˜™,œžŸ§©9º¿EÅÉÖÛLãæ3îs\checklst\checklst.cpp0¢mW   $B%). 670VWgh|"}‰*•˜›@Ð6Ñø?ùý@þI K JC!@"üý%p#.-*.6H7?@HIQ/R[8\efnow5zŽx”ÿÿÿÿ)|"}!\c:\tools\wxwidgets-2.6.3\src\msw\settings.cpp<ÖCñ#2$*!+4=>V%W[%\abil,n‹CŒ ²@µÉ;ÊË&Ì@jÒÓÖ ä@åãDè êKìí/îïð-×ÿ  G :!"+…ˆ Š‹T† >¡¯°³¹ ¼¸à"¶æ$´æÿÿÿÿ7€‚„…0†Vc:\tools\wxwidgets-2.6.3\src\msw\utils.cpp“ˆ2B,/a36>?i; @CCFprstu0w&yz k~$„4…$‡ˆ<Œ•–O˜«G¬­L®¶1·ØOÚ&ãå$éêîïòó ÜùúOÿ F * -J$+( !,$%()*',=@OBb>eijmIq$€„ †‰BŠœ žÿÿÿÿ#è0ìîïñøGùþHÿIL  @?!OutliningState132$ÿÿÿÿÿÿÿÿÿÿÿÿ_dOutliningState134$ÿÿÿÿÿÿÿÿÿÿÿÿÐ OutliningState136$ÿÿÿÿÿÿÿÿÿÿÿÿ|öOutliningState135$£ªÿÿÿÿÍñô;øùûüý)þ#ÿ3  -5V-C <!#$'.)+12GH#CKLON P(,O- / BCEH&TW^g%m1r.s'ouvBx'{|~=‚‡ˆ&‰Œ! ML” ——˜™°ÿÿÿÿ¥M©¬7Zc:\tools\wxwidgets-2.6.3\src\common\init.cppSoC¯ /I1- 3'+4.(47K;?@AB<EFJ S*TOXY_Kbcdijklepqrsxy+}~€…Œ1Žˆ‘•–œ7Ÿ™ †¤¤­7°»/>06J7T?U\C]aEbf-g›2ž£3£<¥§¤§ÿÿÿÿxGy’0”˜XYV^_c&dhilFmy†:‡&z‹£A¥¿Â2È ÎÐ4ÀOutliningState129$ÿÿÿÿÿÿÿÿÿÿÿÿÅÎOutliningState130$”°ÿÿÿÿ>pOutliningState131$ÿÿÿÿ¤ÿÿÿÿQOutliningState133$¢¥ÿÿÿÿb¬ÔÕØÝÞßáVC:\tools\wxWidgets-2.6.3\include\wx\init.hR÷ /35JNPQSe\wx\build.hàýŸò $5&'N),!-.$/2%34"5:J<=)>?MAB*C¼Ê®ÊÍOÑÕ5Ù Ô,ÚÒßáíðóú=ý'3#4$1D4 0(5+î:)`c:\tools\wxwidgets-2.6.3\src\common\appbase.cppäÜø2);*-F.12V5&7;/< ==>: ?E(FCGBHINGOV,d€M‚„}…wˆ‰Ž‘˜?’¢£¦§ª­Ã«ÈÌ6ÍË4ÎÑ,Ò\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cppqp ò: ÿÿÿÿUnit\CUnit_new\CUnit\ 'ñ  "+"-'&8B˜ÜÝã7ä/04+5RS\E]mnt7uz{^C:\tools\wxWidgets-2.6.3\src\common\string.cppfˆ­")*608 ?BHLCPSOUZ=\bzE`~‚ƒ„AˆWˆ‹–˜™š’ž‘8£¤!¥ªN¬°³:®³¶1ºK»Ñ@ÓØ2ÙÞß=ãæçð2ò+ä$()273? @0E7FS2Tb‹7Œ@‘%d™,š *¡§7¨®=¯»K¼Ï*ÐÖçAêA×øDùý3þB'E(,4-BCCU,W[B\r,txGy’0”˜@™¥F¦»/½Á?ÂÕâBçë ì5×õ=÷ûAþD= D$0&-8/6G8HIM-O„…:‰JŠ˜¨˜$žŸ  6¤³1´¸1ºÁ6ÄÎ*ÏÔ9Öà3›âåNëò&ôCð3$í$+&-F)UV2W4X]']%_ci*lxz)€„j„‡7”™1› š ‘¢¥«®.°>¬¸»-¼2¹ÄÇ-È2ÅÐÓ-Ô:Ñàã-ä:áðñô$õù$úþ< *!%*&-1203/6M.NWe7f&Xm.m4qD‘–J™?’¬'®¹º-»'¼Ç&ÉÔÕ-Ö)×ÝÞ*ß(àéê*ë(ìõ- 8ø !*+45@%AHILMTU\]3f#gh)jE*Ÿ¨©­,®´(¶¼½ÀÊ)Ë*ÁÎØ)Ù4ÏÜå)æ$Ýéê î7ïûCý2 & (+D->=> DG Je;gKItv%x '‘uÈ-EËÍØÚÜÞß3àèéîñò9ï÷úû:ø$,' 6A)2*289':6;F!H+4\]cekmvx~)ƒ'…‘“ )¤±9²¶¡¶Eºé>ë N / @ FA M2 G *I Q ;S a ‚Mƒˆ‰”C•­®»P¼ÔÕÙ3Ú (AB?CDefj\‹+Œ¢)£¯°àe\wx\debug.hl¸åÈ    $&%+-*.0H=tu{~50È ÎÏDÑÔØ+ÜÝá+âçð0ó;ô õ;öñ÷ ùÿÿÿÿle.a×(ÕÛ*Êà4æéáìíðôù4ñ-!"&(3<‚ƒ„…†‡ˆ‰Š‹ŒŽþÿÿÿ’“”•–—˜™š›œžŸþÿÿÿþÿÿÿ죤¥þÿÿÿ§¨©ª«¬­®¯°±²³´µö·¸þÿÿÿºÐ¼½¾¿ÀÁÂÃÄÅÆÇÈÉþÿÿÿËÌÍÎÏþÿÿÿÑÒÓÔÕþÿÿÿרÙþÿÿÿÛþÿÿÿÝþÿÿÿßàáâãäåæçèéêëþÿÿÿí‚ïðñòóôõþÿÿÿ÷øúûüýþÿA=8KVEW!LY4Y3`w…‡'x;œ «/^°3³´µ¹"±¼\¼ÅË@ÀÑÜ:Þß íó ý  " )5Ö+3Ó014%9<R7ELO%KOV ["` g €ƒH‡P¢F¦5¦©4¯º¾¿ÁÄCÅÈ'É ÍÐ ÖH×/°Ý!Þãäë;ñ2øùú.ìýþ !5 )5 =?58MNOTUXY"\ iE6p~ …3ˆ Bq˜¡¥©=¬I™·º,»H¸ÁÂÅ4Í ë ï4ð5 "RÆ+0-BC>I3N^"ag&Jlÿÿÿÿ$3/+09·Ð:lÂдB $JÒ†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cppóó#9VOnTreeSelectionChanged(wxTreeEvent& event)]bd>ef=g chl/mo.pr-su/vx.y{.|†5‡kˆ ‰¦ \§ ¨©Nª­ÿÿÿÿive\CUnit\CUnit_new`C:\tools\wxWidgets-2.6.3\include\wx\setup_inc.hž˜¦"ÉרÜÝà)áå&æò&øý öý4ô #=$) 07167:)@E>LM%GP;PSV i q9[ „ˆ‰Š;‚9–:—W  ¤¨@ª?¦À.ÆÊÁÊHÏÓÍÓÖÝ0àä Þä>çë8îòìò:õúBüÿûÿ(A Q N;##&) *67?"CG2KLNO PQ0M RASTUVW X I["`e}~$j‰@‰Œ ”›'’ž¥¦2¢·¸ ½,ŸÃÌÍ'Îýÿÿÿ‚ƒ„…†‡‰WŠ‹QŽ‘’“”•–—˜X›œ¿žŸ ¡¢£¤½¦§¨ª4«¬¶®¯°±²³´µ,·¸¹ºÕ¾]ÀÁíÄÅÆÇÉwÊËÌÍÎÏÐÑÒÓÔkÖÞØÚ©ÛÜþÿÿÿîßâãäåþÿÿÿçèê!ëì òïðñóàô|#øùúûüýþÿáÏ<ÑíÉñö0ø%ÅÿÄÿ#'((2- /03&8*LLÿÿÿÿ>K;KN*RV:Y U3] S`hijk o(q!btu†‡‹Œ •,—œ­ ±)º#¾Ä»ÄÇÊ*ËרâÿÿÿÿZc:\tools\wxwidgets-2.6.3\include\wx\wxchar.h@„Ù  0 p2 -#172/ABKCEaN Q-S VZklnIoqYr| }6~€ ‚ƒ „…†<‡‹8Œ ”—˜ ¡¥¦› §°"³´Ô/Ü Þ âçð)òõ)÷ú)ü0 +  ! C*D E$FW^ _&`!l*ot,vx-{ |)~ w‡0‰ Š%‹”•ç)ñ    ;Tc:\tools\wxwidgets-2.6.3\src\msw\main.cppdï„î0()$*0&1- 25!8;<T%UMHMYZ*[mr ‚.…=sŽ šM›œ ¢?¥O‘©©±Ë'¬ÐÞ9ßYÝà=Ùâ%ÑädäNêï1çï%òøåøFú*ÿ# D"JJMOOV?XY[c&gp*r%Tƒ„>…‹=™œ¦§©H—®’® ˆ²†²#ý´·º$¿Ã#ÄÈ»ÈÿÿÿÿTc:\tools\wxwidgets-2.6.3\include\wx\log.hF˜ï  0":#8%9?@AB>C J$NVdegn?otOw }~ƒ†ˆ‰Š/ŒŽOutliningState138$ºÿÿÿÿÿÿÿÿáOutliningState142$ÿÿÿÿÿÿÿÿÿÿÿÿÆOutliningState143$¹ÿÿÿÿÿÿÿÿÆOutliningState144$§¶ÿÿÿÿ>pI‘š›*Ÿ£¬­ ¯µ"·¸¹»¼½ ¿0ÀÁ0ÃÄÅÆ0ÊË1ÍÏ/רÙ3Û.ÜÞßáâã%åæ#ëì'îðñôøúüýÿE8  yO ()+,-.."%:":">LM]`sxy t}~O…>‘#’“•–˜™!‡­'¯· ¸ º½$ÊÐOÒ 48ßàý K3:%(*-/"401C8;G<@OBG/KL/QDUV2X\] _ÿÿÿÿ,Ûä Ùäé;íî%ïò&ó ô-õþÿÿÿ  ¶ l… !"#$%&'()*+,-./0123456789:;<=þÿÿÿ?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_þÿÿÿabcdefghijklmnopqrstuvwxyz{þÿÿÿ}~€ð ö:çù4üú6 3'2(> + +0412345$.8=9>B?CF GBH!IJQR5SY/Z.X[\^JVaDaÿÿÿÿCF GBH!IJfC:\tools\wxWidgets-2.6.3\samples\widgets\widgets.hÍoÍÐ )#-.#R]`{V^£.¥¶=¸ÄÆË!Íàéë"âò"ôúûü A 6\c:\tools\wxwidgets-2.6.3\src\msw\toplevel.cppùtu0':&9124-!4<=@A0KLHLOXY'Z['\dwx…3“” †—šH›¡E¢I£;¥¨­·¹6¯º½ÃÇÉ4ÄÊÓÕØKÙÝß õé* F˜$),*5;)=A C J-Nx>yw^c:\tools\wxwidgets-2.6.3\src\common\gdicmn.cppˆ9õ½ 0 !  ,-1!25 607:;>@EGKFLPDSWEX\C^<cx+y€,‰Œ)Š¢ §@¨ µA¶/£Ã#ÄË-Ìå+æíîõ%öû&ü $mt# wx{€N|™ŸN¡(¯¸½J¾À1ÁÇ4ÊË9ιÔÕÖ7šÙ;Úéêíð8õù0<î  ! !#(3w45:7)89#:;>=AD@QHLwNO>QIRSFV {|¥¦­®±²¾ÀÌ$ÍÑ'ÒÖP×ö÷,K (/)-3A6.>(?C+DH `!b_Gde-g jn=O’.“—1˜œ£¤ª«±$²½ÿÿÿÿTc:\tools\wxwidgets-2.6.3\src\msw\font.cpp…¹æ¨0#%/WX0Ylr*{€B…,†“œ¡¢§¨¬­±²·¸½¾ÃÄÎ ÏÔÕÖ$Øä.åñòö÷þÿ.'- !/"$hEFM1Vgj mr)sEhvw{'|‘ž¡¢¦©ª$§¯'°·(¸¼*½Ç&ÈÌ(ÍÑ*Òô.õùüý2ú< 2 5253758< a@b5=s~G€y „;tŽ4â%ãúûþÿ@ ($I%. 3478;@;A<G/HS$TXY]^bcqru(v~2‡"ˆ ‘™"š¢2£«+¬´1µ½>¾ÈÉÌÍÓÔØ"Ùßàæçíîôõûü$ 3 ÿÿÿÿ!ÿÿÿÿ>QfC:\tools\wxWidgets-2.6.3\samples\widgets\gauge.cppº¶®&4ABOD"LMl oF‚ƒO…šOœ9¡ó%ôøùOûý$$%O'E)Zc:\tools\wxwidgets-2.6.3\include\wx\string.hkøùY0/$%*#-/.12"ab%df0jqKrstuvwxyz{|}~€ ‚ †0‡ŽN6h ¡.¥!¦µ ¸%Ä*Ç#ÉÍNÏØÙÜÝßà1âãåGæ:çêëBìï'ð$Ñô÷,ø%   11M-.-1>A8B!C!D1E$FRG$HAJQY-Z1X$[V`1a"cef{|})~7€‚„…0†E‡Œ/Ž<(‘3’2“(”A˜š/œEŸ, (¢1£2¤&¥+§&¨Aª¬°±<¸ : <*= ?1A CDGKLNOQRTU(WX#Z[\]%ab)fgklpq*u{*~„"†‡(‰$‘—'š›"žŸ*¦¬7°±N³·ÁÂÌÍÚî,ñõ(ö"Ýûü E !W[ tÿÿÿÿ`c:\tools\wxwidgets-2.6.3\include\wx\msw\frame.hçpP 05#259#>JEN2O.P%Q)RB)RU2VaBcfHgxyt&z‰ŠŽ/’”˜(™4›œ¥ ¥§¨ÿÿÿÿ‡;—›¥§>ª:9­Oµº»¼9°ÃäKêõöü0ÿ *$X%W&*3-4.6Ê36L9+4CDG4HN>^"_esAw)O“@ž¡I¤1”­°±²:³'®¶/·»¾¿ÀÄ&¼Ç#ÈÌÍÐß)áï&ðü- )   2L&I'L0I1?Ñ;<?5@D2IV=EYa0bf2gpu\v8Z{ƒ„=—™:~©|©®²½0¾0³)Ó×'Ø9¬ÜÝâçè<ã+#(+)W$-./2<3G4L8<0A"DEL&MT&Uk'm’ÿÿÿÿÐß)áï&ð\C:\dev\archive\CUnit\CUnit_new\VC8\wxWidget.i”(gÿÿÿÿI'L0^C:\tools\wxWidgets-2.6.3\include\wx\ptr_scpd.hª/x)),-5/¹ÀÁOÄÛÿÿÿÿ=Vc:\tools\wxwidgets-2.6.3\src\msw\frame.cpp+eø¼0$',-40 36$8;<B!DK&LW–—2˜¤2¥ ¦3§£ ¨±²µ¶4¹"¾¯ÃÑ&ÒÖ;\c:\tools\wxwidgets-2.6.3\include\wx\evtloop.h6Љï 0!!"#3J m 5p t  œ 0 › ž  ¡ %¢  ¹ N¼ ± ½ À à Ñ Ó Ð ä ê Dì ð Jñ ý  é   ( ! ?" % M' 1 > O HQ +R Y ] p  ˆ "‰ ” <• Ÿ !¡ ¶ @¸ ½ G¾ ¼ Á Ï Õ à >â ì ï ÿ      3 6 C N X 'Z _ j } :~  Y€ ˆ +‰ Ž 2— m š   >¡ ¦ ,§  ´ È .Ê V Ñ Ò × *Ø Ü ß 0à å ë :Ý ò 0ó ÷ ø ý $þ   ;  =  C D L M S : Z "[ _ k +l o Dq 2e “ ” › « "° ± ½   /Á  à Mž Æ Í Ñ Ò Ø Ý 4ç î ð ó Bô è   5 ;Ë  Ç   % & ' 9 , œ , / 2 ? @ 5 D E H B3 K N )\ ] ` @L c d g k &m n 7p /i {  ˆ !| Ž  ’ 8• ž ¡ 6¢ ¨ © ­ þÿÿÿÿÿÿÿƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥©§þÿÿÿþÿÿÿª«¬­®¯°±²³´µ¶·þÿÿÿÿÿÿÿÿÿÿÿ»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçþÿÿÿéêëìíîþÿÿÿðþÿÿÿòóôõö÷øùúûüýþÿ ² ¶ A· µ » -Ÿ Æ É Î Ò ,Ó Ñ Ø Û KÜ .Ç ê ë î =ï ö >÷ þ 42$2ÿ (.G4=D>@#ABCX[-z9+€„2…/‡ˆ)‰ %¡’®°µ=¶¸0¹%»>¼½¾·À/³ÇQŽÌ×5Û+ÐïðòFÎ÷øû5(ü'/I""'F<%O@PW[ n)Xvz|…1† Š$ŒNx“ Ÿ¥8½D¿&”Ö×Úê ìÛó÷øùþ.õ-9#%81.2<BID>ZB[mpAz.€.n“"Xc:\tools\wxwidgets-2.6.3\src\msw\window.cppëFló0%1245<=D#EG'H@ IQRUVYZufhkltxs%z0} ~…†‡ˆ"“'”•'–¦0§±N³º/½¹¾0·ÇÍÙ?ËçÈçë ì!íöêöùþÿ7h`!X:Y\G]Saij3klr.sw'ˆD‰‚(€ ¯9°D¢ÂIÄÈÉÌÞáç!èÍë ýñ/ $í.4."CDG5MN4S ]Had&gm-o#br%t~ˆ:ŠŽ4‘§ ¨%¿!ÀÐÒÖØÝ2Þâ ãç"èð"ñø1ùþ-ÿ!$"#$3/+09<D=H&I$:NORU+VW]4S`)ahi#jq's{/}+k„+…‰AŠ´)µ,£¼Ï`ÑÒ.ÓC½Ö<×ì(íõ(öþÿ$*!526C$DJNFPR-TU-W`)b6Lmnq{|†A‰š0œ0r§ªF­°!´¹(¼Ð*Ò6ó ù>¨ÿ    6# (!&",8<0.AD5E4BHIQ \+]RbJy1~1€=c„1Ž5Œ…’“—:™£˜£¦2§ª.­A¨°±´2·¾µ¾ÁÄÇÊ"ÅÏÓ<Õ+Ñçë9ìï ðø1é / !:"-I./ ;2<K2L[`!aw:x_N|ƒ„L]‡Š;‹“.•Cˆ™š¡«(¬O¢ßâMíúü 8à $'"()1*+5,%/33OPS]^ik$[pƒ„…!†ŠF9q™T™œŸV §±² ¸7ºÀ.Âï!ñõAöù3û 5 *$E$#0$ 'O)=$@HGK N”›"œ£*¤¬,­·»E¼ºÔ í%ïúIýöM¸, #$%GF!JKNQX]9^p;svwƒ…/‚ˆŒŽ+‹‘FO—˜›¬+­³,¶.ž¹»0ÄÉAÊÏÔÕÝæ4çMÅùºùþ Jü% );*#)+7C94>BDAM=SWZVrswDTzŽ$‘—˜&{¢£"¨¶&·»+¼ÁÂÃÄ7¬ÐÑÒØ!Ú ÷GøÿLÓA$?%8<"=E.GNNOV&Xe*g>zC:~‚…2ÑÒ×MƒÚÛÞ +79à*+.5%6F/IJ+KTLPQLR‘=’Ÿ9¢2SÏ1Ð.807U:3<!@AUV_df n;pmKu/z ~…%Œ ’1`›žBŸ!¥µÇ3È4·á5œá—-˜›ž+å}ä} ‡ “˜:€Ÿ  ¡,¢§0¨º¿ÀÁ¼Ç8ËÚ4ÊÚ4é7ìJÝø4û-ü0ù@š› êëìíÿÿÿÿÿ2.6.3\src\common\strin#á$B&CMN]ý]ÿÿÿÿýgÿÿÿÿhC:\tools\wxWidgets-2.6.3\samples\treectrl\icon1.xpm¢È“ÿÿÿÿ0ABBE FIMJKL S$Z[4\ OutliningState151$«Áÿÿÿÿ­üOutliningState156$µ½ÿÿÿÿµ*OutliningState155$ÿÿÿÿÿÿÿÿÿÿÿÿºâOutliningState154$´²ÿÿÿÿÆP4,6790;<>!DEIJ"KLM\]RdNdgn(rvx"oƒ ƒÿÿÿÿfC:\tools\wxWidgets-2.6.3\lib\vc_lib\msw\wx\setup.h°Ó±»"žŸ îïðñ  JBHIKÿÿÿÿRc:\tools\wxwidgets-2.6.3\src\msw\pen.cpp{×b­ 0  %/40<=BCDEHIL7N^0_oÑ:ÒÐ Ó5¼U¾Å8É1Ê)ËLÌEÍ2Î2ÏÑ/ÔÙÞßLã2äGí9î$ð<ñMò9óMô<õD÷ùý  CB23E!1"5')*B,F-6.H556=%@#õYÅY\N_c,dgMik=qt0w{|)‚%ƒ%„%…†8‡ˆ-‰-Š&‹NŒŽG”•#—šCž;¡£¤S¦#ª«Ÿ«®¯¸½¿ÄÅÆÍÎÏÐ%ÒÓ&Õ×ÙßáæçîHð øý%þ#ÿ%%  K'3C&'5782:;<=>5?A\BC4D6EHI4J=K MOutliningState153$ÿÿÿÿÿÿÿÿÿÿÿÿÔf OutliningState152$ÿÿÿÿ³ÿÿÿÿþ’OutliningState150$­ÿÿÿÿÿÿÿÿ" OutliningState145$ÿÿÿÿÿÿÿÿÿÿÿÿ:ILUVZ[^_KY `0dec f€‚4ƒŒ–2~™ž¢¿:ÀFè0›íòô4õ0ð'(ik'ljx,{“ ”•–š7› ­A²ºM»Ä5Å—Ì*|ÑÔ>Ö5ÒÛàâê ëõ5ö÷5ø  8è -")@*ãF9ÞJKNRTUd1PgkIlmopx5i{|K€ƒ„Ž/;¢£¤ ´"¶ÌÍá,ãéGî . '"(?¥127I"NEW8Zt$u?\ˆŽž%Š£§©ªÝ:¥àáæ"çìíLñô0øù/ýò  Q "#„‡CŠ›)œ'ž­)¯Ÿ ±,…½¾õöù-úþ-ÿ  M#"%I MNQXZJV 3¡®R®Æ(Ê3´×¯×ÚåMçÿÿÿÿ^C:\tools\wxWidgets-2.6.3\include\wx\apptrait.hßÇL2      þÿÿÿ !"#$%&'()*+,-./0123456789þÿÿÿ;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZþÿÿÿ\]^_`aþÿÿÿþÿÿÿdÞfghijk¢Únopqrsþÿÿÿuvwxyz{|}~€#%5&%!./O19:;O< >)@F1HK9OS.TR4UXOY]Nb[;cips tx!}wG~‚ˆ&5‹ŒS’“#”• –,—!˜™ š› œ&Ÿ¡¡¤Oª ¯%°³-´·C¸»7¼-¬ÃÄOÆ Í%ÎÑ-ÒÕCÖÙ7Ú$Êá ÈáäSèé#êë ì,í!îï ðñ òö ùõ ùûþóþ ÿÿÿÿbc:\tools\wxwidgets-2.6.3\src\common\utilscmn.cppB1X;E$!"3!5,6%7*BC0LMK N QVYZ[\1_adenApz„w„‡O‰.‘–0˜/Ÿ¦1¨¯*±¶,¸½¿ÆÈÏ‹Ï#Öæ%èðòøùý% þ)!"!"(,)89&=4>IJZ[ghtu‚Ž–™¶—¶¹%¿=ÁÜÀÜß'áíùúü-åI O#7$374GI_`abdef2gmLnN!rtIx‚s•O—›Pž¢ÃÄÇ0ÍÎÑÒÖ×ÛÞáçïñòôùüOþ7 8 -6ú69A>DIJN<QUZ<]ZXbcgmEno{?h•˜š7–¦§®E³Ï°Ï;ÖéBîÒGB003O5)7=@ A7>[%\klm2nz{}5‚~‚ â„ÿÿÿÿXc:\tools\wxwidgets-2.6.3\src\common\log.cppé†) 0"!%2389:;>5?IIJ_c%gklCsIt}L‰@Š‘®9¯°C±C¬´µ¶½¾¿ À=·ÃÊÌ1ÄÎ:ÐÜ.ÝäNúBL(@)0æ01-28$;'<EGFP;QXVYcJdklOn6p…#†‚™8ž-š§¬;® ¨±0²¸¹½$¾ËÓÔÕÖì òEÌ÷Møüý=  O !B"  *K2I378O:"<CNQID\]O_-cjIkpapsOu%w~†&‡Ž ˜J™¨©¬­!¯$²¶·!¸»OÁÑLÙFÛóÚóöú2ýþÿû!$"#42 :<?@#A;B3Eÿÿÿÿw\CUnit\Sources\wxWidget\wxWidget.cppðBookmark97†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cpp Bookmark98†c:\dev\archivea$dQnor{}$z(1‚Š&‹¤§ƒª ­®«²³¶:·»D½À ¼À@ÇèÅèíP>ë P>!$78N9="<2=BÃBEJGK‚….†Ž>‘ŸF£¨G­±C´½ÿÿÿÿ‚….†Ž>N{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}|wxWidgetsTest.vcproj|nC:\tools\wxWidgets-2.6.3\samples\memcheck\memcheck.cppFílì\msw\frame.cppŒRc:\dev\archive\CUnit\CUnit_new\ChangeLogUVc:\tools\wxwidgets-2.6.3\include\wx\intl.h{fc:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.xslrnc:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.hlC:\tools\wxWidgets-2.6.3\samples\widgets\notebook.cpp­Tc:\tools\wxwidgets-2.6.3\src\msw\font.cpp‚d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\CUError.c.jc:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.dtdpVc:\tools\wxwidgets-2.6.3\src\msw\utils.cpp™fC:\tools\wxWidgets-2f   þÿÿÿ  "#$%&'()*+,-./0123456789:;<=>?@ABCþÿÿÿEFGHIJKLMNOPþÿÿÿRSTUVWXYZ[\]^_`abcdeþÿÿÿghþÿÿÿjklmnopqrstþÿÿÿvwxyz{|}~þÿÿÿ€.6.3\lib\vc_lib\msw\wx\setup.hœfC:\tools\wxWidgets-2.6.3\include\wx\msw\debughlp.hŸnc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Console.hS–c:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\ConsoleTest\ConsoleTest_v1.c^c:\tools\wxwidgets-2.6.3\src\common\gdicmn.cpphc:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.xsllzc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\TestRun.h nc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestRun.hVC:\tools\gnu\contrib\autoconf-2.59\COPYING$lc:\dev\archive\CUnit\CUnit_new\doc\test_registry.htmlF†C:\Documents and Settings\STCLAIJD\Local Settings\Temp\~vs1C55.txt·nit\Headers\TestRun.h nc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestRun.hVC:\tools\gnu\contrib\autoconf-2.59\COPYING$lc:\dev\archive\·Ð:lÂдB $JÒ‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.c++.9@CU_get_run_results_string(void)·Ð:lÂдB $JÒ   Z!3"b'( ,0 29:K<U"Vb$ci jh(rux=|}!‚…5‡Œÿÿÿÿncléü,ý"*#E.IfstQgÄ6ÅÉ;ÊÔ7Õã?äèlC:\tools\wxWidgets-2.6.3\samples\widgets\notebook.cpp]"®N(7F HPQOS"[\‡‰Š'U¡¢O¤¼O¾?Ã,+-12O4!6;VOutliningState162$ÿÿÿÿÿÿÿÿÿÿÿÿ ROutliningState163$±Òÿÿÿÿ¹ÚOutliningState164$ÿÿÿÿÆÿÿÿÿÖÔOutliningState165$ÿÿÿÿÿÿÿÿÿÿÿÿ÷Ö@:BD:EH9IG"MPR,S,TXYZ<[B_a$rs.tv$|}€'ƒ9„)…0‡Dˆ5Š%‹ ‰%‹Ž0=<‘'“4”$–3—.˜6™'›6œ=ž '¢4£=¥<¦$¨3©.ª6«'­6®=°²%´<¿4Ã:ÄMÆEÇ1É9Ê;Ë<Ì4Î<Ï)Ð,ÑEÒ.Ó2ÔÖ8Ø6Ù/Ú0Û ÜÞ ßàAäBåDçCèIêJëFî@ð4óJôCõ@ö øCùEú@ûIüCý@ÿ)6)8! 7 a  O) C-!$$'*:034567:;<=%-B@FIJO!QRUVWX+C_ +_:ehijkl%bs@w}~ƒ!…†+t`’˜>›;œ>ž>Ÿ >¡;¢>£¤>¥¦>§¨>©ª>«¬>­®>¯°>±²>³´>µ¶>·¸>¹º>»¼>½¿CÁ2ÂCÃ2ÄCÅ2ÆCÇ2ÈÀ2ÈBÊ/ËBÌ/ÍBÎ/ÏBÐ/ÑÉ/ÑKÕ-ÖK×-ØÔ-ØJÚ*ÛJÜ*ÝÙ*Ý™ßâã3çèðöéúÿÿÿÿ6-B359-4E41-9B60-3365ª?«º<»Æ;ÇÙ:Úæ?çîTïöTï÷Lú L#>=@$CÿÿÿÿLnC:\tools\wxWidgets-2.6.3\samples\notebook\notebook.cpp€ìo7 -%-&'B* 162;7<T/U^4_l1mw*x…/†˜D™½ÂÃÄ ÅÆÇÈSÉÔLÕ×LØÚNÛÿ))) &I* 0+1¿= @2A>J8KUVWXY§G¨ªG«­I®¥³¸3¹»3¼¾5¿)´ÄÉZÊÌZÍÏZÐÅÖ׿ç@éë@íïFñ+ø- 1 ,581;2C>DR?Sa79DCA79-9205-4958-A75B-51F6C2E75D61}.dwStartupOpt=;X{479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - DLL|Win32.fBatchBld=;C{479DCA79-9205-4958-A75B-51F9bk4l‰ Š9‹nC:\tools\wxWidgets-2.6.3\samples\treectrl\treetest.cppY›êz   $&p12UYw0xy)z‚;ƒŸ« °±´B¶ÑSÒýL¼  BC3 !-$ %C­( +(,)/3/4:;&0F$GNS-TU&VWY)O^am(_r v!w(s€….†‡9‰Œ5‘6’™¡¨7š®6¯¹9ºÄ"ÅÍ5ÎÖ0ÙÝ=Þê7ëï;ðô9õù×ù"ü7 ?:/!=".=/</?I>=LAMQ>RV;W\ e;f8]OutliningState141$»©ÿÿÿÿ~OutliningState139$¨¸ÿÿÿÿŸlOutliningState137$¦ÿÿÿÿÿÿÿÿ¡æOutliningState140$ÿÿÿÿÿÿÿÿÿÿÿÿ¥ f_x86\crt\src\new.cppFramework\d! ÿÿÜ„°Û„ÈÜ„k|}‚‡ŠS…“X”›œŸN ¨©¬Q­´µ¶ÿÿÿÿ:\tools\wxWidgets-2 9 8 U"63;NPUHWcAgsBwˆBw‰9Œ‘Š’“%•9˜–žŸ8¡9¤½$¢¾¿:Á9ÄÝ&ÂÞß7á9äó#âôõ9÷9ú %ø  G 9&F!9$0%"12L497=-5>?@?;A9DH/BIJKLVWX'Yd1ei2jzA{’(“µ&¶Ô'Õè%04$MNOP^_'`aRl |ÿÿÿÿ\gnu\include\libintl.hbC:\tools\wxWidgets-2.6.3\include\msvc\wx\setup.hVÐ[J[ZC:\tools\wxWidgets-2.6.3\include\wx\arrstr.hŠá¸Ó  Og hlmovƒ3„&Ž“”•#–—ž¢¨OutliningState157$ÿÿÿÿ¾ÿÿÿÿ»ŠOutliningState159$¼ÅÿÿÿÿÊzOutliningState158$ÿÿÿÿÿÿÿÿÿÿÿÿøOutliningState160$ÿÿÿÿÿÿÿÿÿÿÿÿîú©¬­3®±µ· ¸ÁAÂÆ/ÈÎ*Ï)ÒÓò<óàù 0ú:)-/$):-#.@/H0;<$aNRS1TU*OWPWZ[0_abcem%\r rÿÿÿÿfC:\tools\wxWidgets-2.6.3\include\wx\msw\debughlp.hÇ š !" #$ %7MNqr€‰Ì0Ò3ß(ß áÿÿÿÿ|:Š ‘”I–›œ$™¤k¦çèú8û5<6$«B ©DIOOQXYd5fq$r~G~ƒ†ˆ!Š%Bœ!ž§ «$¡°±³µ.’”•ÿÿÿÿ\test_ew\Examples\ExampleTests.c||{8B382828-6202-11D1-8870-0000F87579D2}! ÿÿÜ„°Û„ÈÜ„6{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}|wxWidgetsTest.vcproj|c:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.h||{D0E1A5C6-ZC:\tools\wxWidgets-2.6.3\include\wx/string.hkøùY0/$%*#-/.12"ab%df0jqKrstuvwxyz{|}~€ ‚ †0‡Ž›N6h ¡.¥­)® ¯6°¬ ±²$³!¦µº»2¿)Á ¸%Ä*Ç#ÉÌNÏØÙÜÝßà1âãåGæ:çêëBìï'ð$Ñô÷,ø%   11M-.-1>A8B!C!D1E$FRG$HAJQY-Z1X$[V`1a"cef{|})~7€‚„…0†E‡Œ/Ž<(‘3’2“(”A˜š/œEŸ, (¢1£2¤&¥+§&¨Aª¬°±<¸¼U¾Å8É1Ê)ËLÌEÍ2Î2ÏÑ/ÔÙÞßLã2äGí9î$ð<ñMò9óMô<õD÷ùý  CB23E!1"5')*B,F-6.H556=%@#õYÅY\N_c,dgMik=qt0w{|)‚%ƒ%„%…†8‡ˆ-‰-Š&‹NŒŽG” –#—•#—šCž;¡£¤S¦#ª«Ÿ«®¯¸½¿ÄÅÆÍÎÏÐ%ÒÓ&Õ×Ùßáæçîñ%ò"ó%ô%ö%÷õ%÷Hð øý%þ#ÿ%&%%  K'3C&*+,-2/0 1D2344'5782:;<=>5?A\BC4D6EHI4J=K M6NO,P(RIS QIS(U7VT7V/[=\Y=\`*b.e:f]:fipsBu)qz)|"}!€.ƒ;„)…-†‚-†-ˆ8‰(Š*‹‡*‹%—%˜"™0›(œ2Ÿ(¡£¤¥°"±².³'µ/¶¸/¹(»0¼'ÀÄ)ÆÊ5¾Ê½ËÎ.Ï ÑÓÔBÕÛ1Ü?ÝBÞ6àåæ#è0ìîïñø3ùû/üþ/ÿ3 A  L =>6>6@ (&-4>6ýÿÿÿæö õ   `þÿÿÿþÿÿÿ0 "&$%('‹1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ8235þÿÿÿ679þÿÿÿ:;þÿÿÿ=>?@ABCD÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿOutliningState166$ÃÇÿÿÿÿÜxOutliningState161$¿ÀÿÿÿÿóÎOutliningState168$Äÿÿÿÿÿÿÿÿ!²OutliningState167$ÿÿÿÿÿÿÿÿÿÿÿÿD"X+<Z*[š›O7Ÿ§'¨µ.¶º»O½H¿ÅLÆÊMËÒJÓØMÙáMâéHêîHïóHôAéí9îOBP]D^kD^lClqErw=x?€‡8ˆÅÆÿÿÿÿ¿À›ÃÅÆÿÿÿÿEAF]ec:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}! ÿÿÜ„°Û„ÈÜ„@{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}|libcunit.vcproj|c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.c||{8B382828-6202-11D1-8870-0000F87579D2}123456! ÿÿÜ„°Û„ÈÜ„,{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}|libcunit.vcproj|c:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestRun.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}12! ÿÿÜ„°Û„ÈÜ„${A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|<MiscFiles>|C:\tools\wxWidgets-2.6.3\samples\notebook\notebook.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}12! ÿÿÜ„°Û„ÈÜ„({E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}|libcunit.vcproj|c:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUnit.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}123456! ÿÿÜ„°Û„ÈÜ„8{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}|wxWidgetsTest.vcproj|c:\dev\archive\CUnit\CUnit_new\CUnit\Headers\wxWidget.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}123456! ÿÿÜ„°Û„ÈÜ„6{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}|wxWidgetsTest.vcproj|c:\dev\archive\CUnit\CUnit_n`c:\dev\archive\CUnit\CUnit_new\libcunit_dll.defovÿÿÿÿles\widgB359-4E41-9B60-3365922C2A22}! ÿÿÜ„°Û„ÈÜ„T{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}|wxWidgetsTest.vcproj|c:\dev\archive\CUnit\CUnit_new\Examples\wxWidgetsTest\wxWidgetsTest.c||{8B382828-6202-11D1-8870-0000F87579D2}12t.vcproj|c:\dev\archive\Cols\wxWidgets-2.6.3\samples\richedit\README´fC:\tools\wxWidget\c:\tools\wxwidgets-2.6.3\src\common\event.cppÈGE$!"* .%/78 59@/B E@h1mo3su},~…ˆ‰h:io:pv;w};~„;…<Ž”<•›6žŸ/ "¥¯*°×;ûÿ9  N!3A1C\>^r7s{=‘20+D!J.,N5Oa3bn5o|4}Š/‹–9—¶ÃÈ=·Ë1Ì×2ØÞ0ßå4æô/õù/úÿÿÿÿjC:\tools\wxWidgets-2.6.3\samples\treectrl\treetest.he‰°¯ 4  !" &(*+-.'26>CDGeDfghmn%op-uz‡G‰3,š6›*œ8*ž3Ÿ) 6¡-¢4£.¤8¥+¦4§2¨ª6«­²,¶5ÄÅ3ÍÎ èé ðò ÿÿÿÿ^c:\tools\wxwidgets-2.6.3\include\wx\treebase.h@ì@ 0"&'@.5+678:;<%?BCDEFGH@KL,M1RFSWFX\]Oi  È*=>BGLIPCQ'W [,ap`ps$twx:u|^|ÿÿÿÿOutliningState169$ÂÎÿÿÿÿ OutliningState170$ÿÿÿÿÿÿÿÿÿÿÿÿQ OutliningState173$ÌÍÿÿÿÿùœOutliningState172$ÿÿÿÿÿÿÿÿÿÿÿÿiÎð /ñ 'Á $ ( ;) RÂ>  ? B +E I GK [ 4_ K@ f   ‹ L ´ 6¶ ¿ É ³ Ê  3  ' ' /)  F <G P >Q d He p @s 4H ”  Í /Ð Ø :Ù ä 8ç  G  &  *#  ' ( - 6 , 7  A (C  Q *S n $p Kh t u { >| ” 2• Ÿ <¢ ¦   ¦ ÿÿÿÿ1!25ODLFMJN`aOcoEpevœ2¤K¥+ž!§1ª¬³6NO,P QIS(U7VT7VY=\`*b.e:f]:fipsBu)qz)|"}!€‚-†-ˆ8‰(Š*‹‡*‹%—%˜"™0›(œ2Ÿ(¡£¤¥°"±².³'µ/¶¸/¹(»0¼'ÀÄ)ÆÊ5¾Ê½ËÎ.Ï ÑÓÔBÕÛ1Ü?ÝBÞ6àåæ#è0ìîïñø3ùû/üþ/ÿ3 A  L =>6>6@ (&-4>6@:BD:EH9IG"MPR,S,TXYZ<[B_a$rs.tv$|}€'ƒ9„)…0‡Dˆ ‰%‹Ž0=<‘'“4”$–3—.˜6™'/>0EEFJHKTHU]D^cDdiDjnIosEt€E…"†•,•—˜ÿÿÿÿÅ>ÆÊJËÏhC:\tools\wxWidgets-2.6.3\samples\widgets\button.cpp'³ÊW#28OutliningState171$ÉËÿÿÿÿuDOutliningState174$ÿÿÿÿÿÿÿÿÿÿÿÿ ’OutliningState175$ÊÏÿÿÿÿ¦pOutliningState179$ÐÑÿÿÿÿº\ :@AGHK PQ"RSb'eLxyŒ«­;Žðñôõþ=A&ÿVWZF[aJbfLgkAlqÿÿÿÿŒ¿À›Ã\c:\tools\wxwidgets-2.6.3\src\msw\treectrl.cpp^ÒÉq0'<IQ8UdHeu>vzE{€¼½3…ÀÁEÃÓ ÕÞß3Äø'Røû?ÿ<' '"&$%+,!-657+;?@;BEFJK8S6Ya&j-klBm2buvwU}%„‹<Œ’“”š›O¨­-®F¯¿%ÁÂÃ5Ä&ÇÈ2ÎϪÙÚOÜâ!ãÞ~.)"#)*01!25ODLFMJN`aOcoEpevœ2¤K¥+ž!§1ª¬³Pµ¶F¸º3¾¹FÁÅDÇÈõ-}ü - ý >!2$223:;?$@D/EI'JN,OSCT[5\d:ek8lq=rw5y€Oƒ‡C‹<…“E—<‘œOŸ:¡²¾HÂL³Ì<ÎØ=Ûô.÷þ2'E"GU!W fAgmo3)rAsLް´%·B²¼:½ÊGËÖA×âOãì6íø@ùF8 7(=*@JAWXOZi)jp7qu"w4\z:{„5…Ž5˜1™¢£O¥&§¯'°·@¸ÏAÑÚ@Üê4îö3øë? A A!&.'+A,3A4;<O>8@KCLZ@[abOdtu;j¯5¶»*¼À:ÁÅ>ÆÊJËϱÏ6Ôâ:æë9ðô9ù 9195!6FSEYef=Go1pt3uy;z~1ƒA†Š„Š•&ž:Ÿ @¡–­&²#´µ5¶¾ÀB®Ö7×Û>Üà8áæ3çî(ïóøDú!ô@  4"(B)G/Jab%gDnwhy4|†9ˆŒ‘D“7¡¢O¤2¦½¾%ÁÙTÚßTàî'ïý,ÿ & " &# 7 28 B JE  K ,N ' [ _ ƒ ‹ OŒ º G» Ä /Æ  Ì .Í 6C2E75D61}.Debug - DLL|Win32.fBatchBld=;L{479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - Static Lib|Win32.fBatchBld=;J{479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib|Win32.fBatchBld=;4{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.dwStartupOpt=;X{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - DLL|Win32.fBatchBld=;C{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - DLL|Win32.fBatchBld=;¶À/Á%ÍÔÖ9×ÕØ2¾ÛÜÝ%àè'Þëìîõ/ö(óþÿ(  .3/40D(F[&]r$t‰"‹¢(£¸¹Å8ÇÍÎÑÜÝ(Óàñò-áõöú7û93   O=%%&1>=?2F!HQb6cFRt&u“?”²7³¹ÎBÏ+ºÞßåï+ðîñç÷#? M 2$ø+5.8;=%9@,@INJWXb:c2Cfi jps)gŠ‹ Ž–#™ ¥§¢ ª3‘·¼8¾,¸ÈÜÝñL{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - Static Lib|Win32.fBatchBld=;J{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib|Win32.fBatchBld=;4{C6339A24-F233-4D77-8087-0C97E73A81D7}.dwStartupOpt=;X{C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{C6339A24-F233-4D77-8087-0C97E73A81D7}.Release - DLL|Win32.fBatchBld=;C{C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - DLL|Win32.fBatchBld=;L{C6339A24-F233-4D77-8087-0C97E73A81D7}.Rel&ò/ÉöH÷# )W5 #+K,-Y.+#B#KGLMUN$T8V<Ce:fqt6u/r{0|„‡1ˆ%…Ž“F”›'œ3•© ‘©ÿÿÿÿ-0C97E73A81D7}.RelCUnit\CUnit_new\doc\test_registry.htmlF†C:\Documents and Settings\STCLAIJD\Local Settings\Temp\~vs1C55.txt·A-B0A5-77C924300C0E}|libcunit.vcproj|c:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestRun.h||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}12! ÿÿìachive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.xslxslRC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.xsl$http://www.w3.org/1999/XSL/Transform0c:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.css5c:\dev\archive\CUnit\CUnit_new\doc\running_tests.html5c:\dev\archive\CUnit\CUnit_new\doc\test_registry.htmlDC:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Basic\Makefile.am5c:\dev\archive\CUnit\CUnit_new\doc\writing_tests.html1c:\dev\archive\CUnit\CUnit_cvs\CUnit\configure.in0C:\tools\wxWidgets-2.6.3\samples\richedit\README-C:\dev\archive\CUnit\CUnit_new\VC8\wxWidget.i;C:\dev\archive\CUnit\CUnit_new\Share\Copy of CUnit-List.xslxsl;C:\dev\archive\CUnit\CUnit_new\Share\Copy of CUnit-List.xsl$http://www.w3.org/1999/XSL/Transform5d:\dev\archive\CUnit\CUnit_new\doc\test_registry.html*c:\dev\archive\CUnit\CUnit_new\config.h.in5d:\dev\archive\CUnit\CUnit_new\doc\writing_tests.html-d:\dev\archive\CUnit\CUnit_new\doc\index.html6C:\tools\gnu\contrib\groff\1.19.1\groff-1.19.1\LICENSERC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.dtd#c:\dev\archive\CUnit\CUnit_new\TODO+c:\dev\archive\CUnit\CUnit_cvs\CUnit\README)c:\dev\archive\CUnit\CUnit_cvs\CUnit\TODOQC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.dtd#d:\dev\archive\CUnit\CUnit_new\TODO,c:\dev\archive\CUnit\CUnit_cvs\CUnit\VERSION6d:\dev\archive\CUnit\CUnit_new\doc\managing_tests.html(d:\dev\archive\CUnit\CUnit_new\ChangeLog6C:\dev\archive\CUnit\CUnit_new\CUnit\Sources\po\en_.po4c:\dev\archive\CUnit\CUnit_new\doc\introduction.html]C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Listing.xml3C:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.xsl0c:\dev\archive\CUnit\CUnit_cvs\CUnit\Jamrules.in)C:\tools\gnu\contrib\autoconf-2.59\README4d:\dev\archive\CUnit\CUnit_new\doc\introduction.htmlfC:\Documents and Settings\Jerry\My Documents\temp\chsuf-0.9-bin\contrib\chsuf\0.9\chsuf-0.9-src\README0d:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.css/C:\dev\archive\CUnit\CUnit_new\VC8\wxWidget.obj5d:\dev\archive\CUnit\CUnit_new\doc\running_tests.html/c:\dev\archive\CUnit\CUnit_new\libcunit_dll.def,C:\dev\archive\CUnit\CUnit_new\VC8\CUError.i/c:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.3*C:\tools\gnu\contrib\autoconf-2.59\COPYING6C:\tools\gnu\contrib\popt-1.8\popt-1.8-GnuWin32.README/d:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.36RC:\dev\arOutliningState178$Öÿÿÿÿÿÿÿÿè¦OutliningState180$ÿÿÿÿÿÿÿÿÿÿÿÿïrOutliningState181$ÈÿÿÿÿñXOutliningState182$ÿÿÿÿÿÿÿÿÿÿÿÿ¼îjC:\tools\wxWidgets-2.6.3\samples\notebook\notebook.h<&l®+ 2,35068,9QRTUWX [] fg~ÿÿÿÿbC:\tools\wxWidgets-2.6.3\samples\richedit\README„³ª¯ÿÿÿÿ`c:\tools\wxwidgets-2.6.3\src\common\textcmn.cppl8%0+->KLT:X3Ž›@ž£S¥ª®°=¬¸3º¾¿OÁÅ.Ö7ÃÛçò7ÜùúOü9þ/ 0 -.#6$()O+#/6-69O;=DEJKPQOSGWZUZœ¡=\»[»¾OÀ ÂÆ-ÇÎ5ÏÙ=Û  þÿÿÿ             þÿÿÿ  þÿÿÿ  þÿÿÿ   ! " # $ % & ' ( ) * þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿæçOéîEðJìû-þ' ÿÿÿÿ  &N!"#$%(8).1<2J8:;BAE1F=GKOVW wz8}1…ˆM‰ŠŽ˜@šD¬°´>µR·¸$º½/ÄÅ.ÒC×>ÙÜßà çê<ëî ñõùKþÿý 1 5829<8=@GADTEHXIMOOLPT0[`4ad6hmJtw6y~‹! ”† •–Ÿ¢¦«±²Ü Ýâ¨ä çÿÿÿÿ†C:\Documents and Settings\STCLAIJD\Local Settings\Temp\~vs1C55.OutliningState183$Óÿÿÿÿ –OutliningState184$ÿÿÿÿÿÿÿÿÿÿÿÿ ´OutliningState177$ÿÿÿÿÿÿÿÿÿÿÿÿ œÿÿÿÿÿÿÿÿÿÿÿÿtxt7 `ÿÿÿÿ|c:\dev\archive\CUnit\CUnit_new\Examples\BasicTest\BasicTest.c«ý°, TÿÿÿÿlC:\tools\wxWidgets-2.6.3\samples\widgets\combobox.cppÍ Ó&4FHNOOQ"XYz}S’“O•ºO¼ÍÒ?Á9:O<!>C'Dz{O}H…‹=Œ5ŽI†’I“žLŸ§H¨¬I­»F¼ÉJÊÒMÓÙCÚßGàåBæðHñúKûGF < ;&L'+,+-ÿÿÿÿs-2.6.3\samples\widgets\widgets.h¢†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cppw>C:\tools\gnu\include\libintl.hf~C:\dev\archive\CUni>4C:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.xslxsl4c:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.xsl$http://www.w3.org/1999/XSL/Transform2C:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.dtd6c:\dev\archive\CUnit\CUnit_new\doc\managing_tests.htmlDC:\dev\archive\gsl-pkg\gsl-1.6\gsl-1.6-1-bin\contrib\gsl-1.6\COPYING3C:\tools\wxWidgets-2.6.3\samples\treectrl\icon1.xpm(c:\dev\archive\CUnit\CUnit_new\ChangeLog.c:\dev\archive\CUnit\CUnit_cvs\CUnit\ChangeLog-C:\dev\archive\CUnit\CUnit_new\VC8\TestDB.objYC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Memory-Dump.xml4C:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.xsl3C:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.xslxsl3c:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.xsl$http://www.w3.org/1999/XSL/Transform4C:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.dtdRC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.xslxslRC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.xsl$http://www.w3.org/1999/XSL/Transform0c:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.css5c:\dev\archive\CUnit\CUnit_new\doc\running_tests.html5c:\dev\archive\CUnit\CUnit_new\doc\test_registry.htmlDC:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Basic\Makefile.am5c:\dev\archive\CUnit\CUnit_new\doc\writing_tests.html1c:\dev\archive\CUnit\CUnit_cvs\CUnit\configure.in0C:\tools\wxWidgets-2.6.3\samples\richedit\README-C:\dev\archive\CUnit\CUnit_new\VC8\wxWidget.i;C:\dev\archive\CUnit\CUnit_new\Share\Copy of CUnit-List.xslxsl;C:\dev\archive\CUnit\CUnit_new\Share\Copy of CUnit-List.xsl$http://www.w3.org/1999/XSL/Transform5d:\dev\archive\CUnit\CUnit_new\doc\test_registry.html*c:\dev\archive\CUnit\CUnit_new\config.h.in5d:\dev\archive\CUnit\CUnit_new\doc\writing_tests.html-d:\dev\archive\CUnit\CUnit_new\doc\index.html6C:\tools\gnu\contrib\groff\1.19.1\groff-1.19.1\LICENSERC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.dtd#c:\dev\archive\CUnit\CUnit_new\TODO+c:\dev\archive\CUnit\CUnit_cvs\CUnit\README)c:\dev\archive\CUnit\CUnit_cvs\CUnit\TODOQC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.dtd#d:\dev\archive\CUnit\CUnit_new\TODO,c:\dev\archive\CUnit\CUnit_cvs\CUnit\VERSION6d:\dev\archive\CUnit\CUnit_new\doc\managing_tests.html(d:\dev\archive\CUnit\CUnit_new\ChangeLog6C:\dev\archive\CUnit\CUnit_new\CUnit\Sources\po\en_.po4c:\dev\archive\CUnit\CUnit_new\doc\introduction.html]C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Listing.xml3C:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.xsl0c:\dev\archive\CUnit\CUnit_cvs\CUnit\Jamrules.in)C:\tools\gnu\contrib\autoconf-2.59\README4d:\dev\archive\CUnit\CUnit_new\doc\introduction.htmlfC:\Documents and Settings\Jerry\My Documents\temp\chsuf-0.9-bin\contrib\chsuf\0.9\chsuf-0.9-src\README0d:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.css/C:\dev\archive\CUnit\CUnit_new\VC8\wxWidget.obj5d:\dev\archive\CUnit\CUnit_new\doc\running_tests.html/c:\dev\archive\CUnit\CUnit_new\libcunit_dll.def,C:\dev\archive\CUnit\CUnit_new\VC8\CUError.i/c:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.3*C:\tools\gnu\contrib\autoconf-2.59\COPYING6C:\tools\gnu\contrib\popt-1.8\popt-1.8-GnuWin32.README/d:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.36c:\dev\archive\CUnit\CUnit_new\doc\error_handling.html TestDB.obj>C:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Makefile.amQC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.xslxslQC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.xsl$http://www.w3.org/1999/XSL/TransformKC:\tools\gnu\contrib\groff\1.19.1\groff-1.19.1\groff-1.19.1-GnuWin32.README wxWidget.obj3C:\dev\archivecunit-2.1-3-dfsg/VC8/ConsoleTest.vcproj000066400000000000000000000241471260701235000176520ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC8/ConsoleTest_v1.vcproj000066400000000000000000000237451260701235000202630ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC8/Readme.txt000066400000000000000000000001731260701235000161120ustar00rootroot00000000000000Visual Studio 2005 solution and Visual C++ 8 project files to build the CUnit library, example programs, and test program.cunit-2.1-3-dfsg/VC8/libcunit.vcproj000066400000000000000000001175041260701235000172210ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC8/test_cunit.vcproj000066400000000000000000000324521260701235000175670ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC8/wxWidgetsTest.vcproj000066400000000000000000000364461260701235000202420ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC9/000077500000000000000000000000001260701235000141545ustar00rootroot00000000000000cunit-2.1-3-dfsg/VC9/AutomatedTest.vcproj000066400000000000000000000240671260701235000201750ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC9/BasicTest.vcproj000066400000000000000000000240251260701235000172650ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC9/CUnit.sln000066400000000000000000000235251260701235000157230ustar00rootroot00000000000000Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcunit", "libcunit.vcproj", "{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_cunit", "test_cunit.vcproj", "{0336E4F1-B2E5-4E56-AA33-2709A75004F8}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AutomatedTest", "AutomatedTest.vcproj", "{479DCA79-9205-4958-A75B-51F6C2E75D61}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BasicTest", "BasicTest.vcproj", "{0CA5681A-DDB0-4E57-8EB4-351924679FD0}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ConsoleTest", "ConsoleTest.vcproj", "{C6339A24-F233-4D77-8087-0C97E73A81D7}" ProjectSection(ProjectDependencies) = postProject {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} = {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E} EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug - DLL|Win32 = Debug - DLL|Win32 Debug - Static Lib with MEMTRACE|Win32 = Debug - Static Lib with MEMTRACE|Win32 Debug - Static Lib|Win32 = Debug - Static Lib|Win32 Release - DLL|Win32 = Release - DLL|Win32 Release - Static Lib|Win32 = Release - Static Lib|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {C6339A24-F233-4D77-8087-0C97E73A81D7}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {80779234-C19A-4E5C-8487-8BDAAAC25A0B}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - DLL|Win32.ActiveCfg = Debug - DLL|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - DLL|Win32.Build.0 = Debug - DLL|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib with MEMTRACE|Win32.ActiveCfg = Debug - Static Lib with MEMTRACE|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib with MEMTRACE|Win32.Build.0 = Debug - Static Lib with MEMTRACE|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib|Win32.ActiveCfg = Debug - Static Lib|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib|Win32.Build.0 = Debug - Static Lib|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - DLL|Win32.ActiveCfg = Release - DLL|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - DLL|Win32.Build.0 = Release - DLL|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - Static Lib|Win32.ActiveCfg = Release - Static Lib|Win32 {59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - Static Lib|Win32.Build.0 = Release - Static Lib|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal cunit-2.1-3-dfsg/VC9/CUnit.suo000066400000000000000000011000001260701235000157160ustar00rootroot00000000000000ÐÏࡱá>þÿ þÿÿÿ€ô€ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýÿÿÿ  -%“Ð,*#$&"'()+9.!7801235G6CU:@;<=>?AB/4MEFH\IJKLQNOPDRSTVc`XYZ[]li_taWdefo™xjknmz|pqrs^uvwŒyŠ{}~…Root Entryÿÿÿÿÿÿÿÿ°ï„ ßËÀJProjInfoExÿÿÿÿÿÿÿÿÿÿÿÿTaskListUserTasks$4ÿÿÿÿDebuggerWatches ÿÿÿÿÿÿÿÿÿÿÿÿÂþÿÿÿþÿÿÿþÿÿÿ › þÿÿÿþÿÿÿ„þÿÿÿ·(þÿÿÿþÿÿÿ !"þÿÿÿ$¸&')G*+7-./012345þÿÿÿ8A9:;<=>?@þÿÿÿBzDEFHeIJþÿÿÿVMNOPQRSTUþÿÿÿXfYZþÿÿÿ\]^_`abÓþÿÿÿþÿÿÿ”ghijklmnþÿÿÿpqrstuvwxþÿÿÿœ{|}¿€€,D÷ÏŒG€¤ˆ” †ðC m_ptestJm_ActiveTopFrameC:\dev\archive\CUnit\CUnit_n€C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\crt\src\ŽC:\Program Files\Microsoft Visual Studio .NET 2003\Vc7DebuggerBreakpoints(ÿÿÿÿÿÿÿÿÆèDebuggerExceptions&ÿÿÿÿÿÿÿÿÿÿÿÿDebuggerFindSource&ÿÿÿÿ,DebuggerFindSymbol&ÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿ\atlmfc\src\mfc\ŽC:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\src\atl\d:\`f:\rtm\vctools\crt_bld\sel’ 5Í«4ïþîÿJXÍ«4ïþîÿDGS$ ýA+ÁH±ÚªÏ¥WLÉlü #Oÿ‡øÏ¤ELç%Ò¯##G¶åá}'bm4LDebuggerMemoryWindows,Ø ÿÿÿÿ TExternalFilesProjectContents: ÿÿÿÿÿÿÿÿþÿÿÿDocumentWindowPositions0ÿÿÿÿÿÿÿÿÿÿÿÿyãDocumentWindowUserData. ÿÿÿÿ4ÂþÂL¤d®—ï9LÉlü #Oÿ‡øÏ¤ELç%Ò¯##G¶åá}'bm4->m_RunSummary_suiteHm_ActiveTQ Xd:\tmp\CUnit-2.1-1\VC8\AutomaNSܾï MŠ%˜¿Ÿøç%Ò¯##G¶åá}'bm4Élü #Oÿ‡øÏ¤EitedTest.vcprojPd:\tmp\CUnit-XÏ Device ControlsCrystal ReportsData XML Schema Dialog EditorMobile Web Forms Web Forms ComponSolutionConfiguration,ÿÿÿÿÿÿÿÿÿÿÿÿŽ®ObjMgrContentsÿÿÿÿClassViewContents$ÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿProjExplorerState$Ù×ÿÿÿÿUnloadedProjects"ÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿTaskListShortcuts$ÿÿÿÿÿÿÿÿÿÿÿÿIVSMDPropertyBrowser* ÿÿÿÿþÿÿÿIToolboxService  ÿÿÿÿÿÿÿÿÂents Windows FormsHTMLClipboard RingGeneral2.1-1\VC8\BasicTest.vcprojTd:\tmp\CUnit-2.1-1\VC8\ConsoleTest.vcprojNd:\tmp\CUnit-2.1-1\VC8\libcunit.vcprojRd:\tmp\CUnit-2.1-1\VC8\test_cunit.vcprojXd:\tmp\CUnit-2.1-1\VC8\wxWidgetsTest.vcproj^d:\tmp\CUnit-2.1-1\VC8\AutomatedTest_v1.vcprojive\CUnit\CUnit_new\VC8\ÿÿÿÿñSystem.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, Publ$Bookmarks V001.01Bookmark3lc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestDB.h BoolibcunitsBasicTestû"Automkmark17‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.c±Bookmark20Debug|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTlibcunitÿÿÿÿÿÿÿÿÿÿÿÿ,ltest_cunitÿÿÿÿ6lAutomatedTest ÿÿÿÿLlBasicTestÿÿÿÿWlool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesMakeToolDebug|Win32DebugSettings‚c:\dev\archive\CUnit\CUnit_new\ô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralCCUnit\Sources\Framework\TestRun.cÜBookmark62‚d:\dev\arcvc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\CUnit.hÏå¶ACFHKM!P.RV [\] atedTest_v1kConsoleTest_v1ÃU^_` =? BD GI!;n1ptÿÿÿÿ7\AutomatedTest_vtc:\dev\archive\CUnit\CUnit_cvs\Debug|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesit\test_cuCUnit\CUnit\Headers\Util.h/ŒnYDebug|Win32DebugSettings(>?BC /C!FR)TVWÿÿÿÿ479DCA79-9205-4958-A75B-ˆc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\Util.cÙªQ¸4588EFQRcSd€‡=ˆ”•˜™žŸ¢!£¶·ºÂÄ"»ËÌÍ6ÓN)O[;4{0CA5681A-DDB0-4E57-8EB4-1924679FD0}.dwStartupOpt=;ConsoleTest£test_cunit[Autoô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesDebug|Win32DebugSettingsConsoleTestÿÿÿÿÿÿÿÿÿÿÿÿolAutomatedTest_v1"#-ÿÿÿÿ‚lConsoleTest_v1ÿÿÿÿÿÿÿÿŒlProperty Manager"y…ÿÿÿÿcô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesèÐB ÿÿŒ°‹LÈŒL±–hive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.cBookmark92†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidge€d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestDB.cŽƒ„…†‡ˆ‰Š‹þÿÿÿ—‘’“•þÿÿÿ–Ÿ˜™š›œžþÿÿÿ ¡­£¤¥¦§¨©ª«¬þÿÿÿ®¯°±²³´Õ¶þÿÿÿýº»¼1¾ÄÁÂ8þÿÿÿÆþÿÿÿÈÉþÿÿÿËÌÍÎÏÐÑÒþÿÿÿÔþÿÿÿÖרþÿÿÿÚÛÜÝÞßàáâãþÿÿÿåæþÿÿÿèéþÿÿÿëìíîïðñòóôõþÿÿÿ÷øùúûþÿÿÿýþÿž&QÛEU)Vi%koqz&|€<‚ŒDebug|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralCDebug|Win32DebugSettingsô.õ.ö. ø.÷.ù.[Ž«F­»H½ÐPÒàQâð+ò//6:8SRUyC{‰E‹žC ®;°Å?ÇÝ>ßýKÿL465SmatedTestk6C2E75D61}.Release|Wi:UXYl=m€b‘«¬¶+·ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesù.ú.ÏÐÛFÜúûþÿÿÿ     þÿÿÿ !"#$%&'()*+,-./0þÿÿÿ23456789:;<=>?@AB¨DþÿÿÿFGHIJŸLMNOPQRSTþÿÿÿVWXYZ[\]^_`abcdefghijklmnopqrþÿÿÿtuvwxyz{|}~€‚ƒ„…þÿÿÿ‡ˆ‰Š‹ŒŽþÿÿÿ’þÿÿÿ™þÿÿÿ–þÿÿÿ˜þÿÿÿš›œžŸ þÿÿÿ¢£¥À§¨©ª«¬­®¯°±²³´µ»·¸¹ºÇ¼þÿÿÿý¿‘ÁÂÃĦÆûÈÉÊËÌÍÎØÐÑÒÓÔÕÖ×þÿÿÿþÿÿÿÚÛÜÝÞßàáâãäåæçèéêþÿÿÿìíîïðñòóôõö÷øùúþÿÿÿüþÿÿÿþÿþÿÿÿVsToolboxService"ÿÿÿÿdObjMgrContentsV8"ÿÿÿÿÿÿÿÿÚHiddenSlnFolders"ÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿOutliningStateDir$Úÿÿÿÿÿÿÿÿb¼SOutliningState6 (,ÿÿÿÿ¢®OutliningState11"ÿÿÿÿ0ÿÿÿÿÇ–OutliningState7 ÿÿÿÿÿÿÿÿÿÿÿÿÊOutliningState5 ÿÿÿÿÿÿÿÿÿÿÿÿÕÖ!HO$PV$W['\`#ae&fk'ls*t{(|…+†'—*˜Ÿ ³´Ù Úûÿÿÿÿebug - DLPl}~†D‡˜™E›-œ§?©µS·ÊFÌßàãçëìïðó-õ* +,/#0ÓÔÙ.Ú1567<*=ÅÆÉ"ÊŠ‹-`c:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.3æ`ŒãÿÿÿÿÜßopFrame->m_RunSummary_testicKeyToken=b77a5c561934e089],[System.Collections.Hashtable, mscold:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestDB.hV|Œ8EEGNfgquŽšžÁrlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]VersionComparerHashSize’System.Collections.t\wxWidget.cpp4Bookmark93G !"+(,67D9Ebck–c:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\ConsoleTest\ConsoleTest_v1.cnÜÞ©!"$%()*/05"6; <A!BGnc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestRun.h[¨±ANUYejwww.w3.org/1999/XSL/Transform2C:\dev\archive\CUnit\CUnit_nGeneric.GenericEqualityComparer`1[[System.String, mscorlib, Vers^c:\dev\archive\CUnit\CUnit_cvs\CUnit\ChangeLogÃ¥ù4ÿÿÿÿ24300C0E}†c:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Curses\Curses.c¿²¸9ÿÿÿÿA75004F8}.Release - DŽc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\CUError.cÓ—t€10231EIJK%BQR\]abm"nrs/€„…‹(Œ‘›6œÛÜÝáÞÿÿÿÿ58-A75B-51F6C2E75D61}.Debug -\Œ#½$¾îïüÎüÿÿÿÿ4958-A75B-51F6Šc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\MyMem.cW¤³k7ŠDFÿÿÿÿtchBld=;4{0CA568žc:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\AutomatedTest\AutomatedTest_v1.cÿ^šƒ!"$%()*/05"6; <A!BG!HO$PV$W[OutliningState4 !'ÿÿÿÿÙ¶OutliningState15"%1ÿÿÿÿäšOutliningState16"ÿÿÿÿÿÿÿÿÿÿÿÿçŽOutliningState9 ÿÿÿÿÿÿÿÿÿÿÿÿêÎ'\`#af&gk'ls*t{(|…+†'—*˜Ÿ ³´Ù ÚýÿÿÿÿD7}.DŠC:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Basic\Makefile.am`Ë ÿÿÿÿ7}.Release - DLL|Wi~C:\dev\archive\CUnit\CUnit_cvs\BookmarkStateÿÿÿÿÿÿÿÿÿÿÿÿ%xOutliningState3 ÿÿÿÿÿÿÿÿÿÿÿÿCžOutliningState2 ÿÿÿÿ$ÿÿÿÿKOutliningState1 "ÿÿÿÿ[dþÿÿÿ      !"#$%þÿÿÿ'þÿÿÿ)þÿÿÿ+þÿÿÿ-þÿÿÿ/þÿÿÿ723I56žþÿÿÿ;:é<=>m@AÑCDEFGþÿÿÿ‡JKL‘NOPQR¸çUVWXYZ[\]^_`abcúefghiþÿÿÿkl nopþÿÿÿrs¡uvwxyzþÿÿÿ|}~€CUnit\CUnit\Sources\Makefile.am'ê µÿÿÿÿ|Win32.fBatchBld=;4{zc:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\ExampleTests.cd¹ ,%$'($*+./#1256"8BCH IQ!RZ![g$hs$tnC:\dev\archive\CUnit\CUnit_new\ÆÉ$Ê-ËÌÏ!ÄÏÐZÓÂÕÙEÚÞîò€c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestDB.cEˆaßEY)Zm%oCUnit\Sources\po\en_.poZ›·ÿÿÿÿnvzH{€„ˆrd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Automated.hhÛ‘–™ ¢¥H«ÈHÌÎßâùüH(+H6JNPVXnc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Console.h*'F$!22478 ,De:\CUnit_new\CUnit\Headers\Util.h¦Ó7,*:PS\_filoruxz{~ 1!‚Ž+’“ÿÿÿÿnit\Sources\Basic\MaXe:\CUnit_new\CUnit\Sources\Fram 48EIX\ko}Ž’Ÿ£±µÄÈéíûÿjc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUnit.h©¥øDACFHKM!P.RU0VY0Z^ cdeghO]ijk!Fy1{>C:\tools\gnu\include\libintl.hlc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestDB.h«G`8EEGNfgquŽšžÁOutliningState22"ÿÿÿÿ7ÿÿÿÿT OutliningState25"ÿÿÿÿÿÿÿÿÿÿÿÿ{jOutliningState24"6<ÿÿÿÿªOutliningState27"ÿÿÿÿÿÿÿÿÿÿÿÿÀþ!ÄÏÐZÓÂÕÙEÚÞîò 48EIX\ko}Ž’Ÿ£±µÄÈéíûÿ $59HL]aru’“–šŸ ¥¯¶¸Ã!Åâ!æU  E /28<HLX~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.h[mÚ(47:<JPSW`aþÿÿÿ‚F„…!1ˆ‰Š‹ŒŽþÿÿÿÖ’“”•–—º™š›ñ¹Ÿ Ï¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·bþÿÿÿ μ½¾¿À“¶ÄÅþÿÿÿÇÈÉÊËÌ;ðÐPþÿÿÿÓþÿÿÿÕàרÙÚÛÜÝÞþÿÿÿ¼þÿÿÿâãäøæuïéêëìíîïð¦òóôõö÷þÿÿÿù  üýþÿz'{#‚‰&Š‘'’*ž©(ª·+¸Ä'ÅÑ*ÒÞßæ#çíîõöR_§S© ª»ÿÿÿÿzc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\CUError.h%ëOutliningState8 &+ÿÿÿÿöROutliningState10"3ÿÿÿÿü¶OutliningState12"ÿÿÿÿÿÿÿÿÿÿÿÿ¾OutliningState14"ÿÿÿÿÿÿÿÿÿÿÿÿ&r/ =XZ`aetu{| l|!&0ƒ…†ÿÿÿÿzc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\TestRun.hƒèw­7CIDEPU^bgipsx{~„!³Rµ¸¹¼½ @½8¾ÀÁÿÿÿÿŽC:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\TestRun.cß Ùäv/|’“?—L˜œ>žUŸ£¤E¥a¦ª«®b¯³´·k¸¼½C¾:¿ÃÄBÅ@ÆÊËCÌHÍÑÒÕIÖÚÛÞOßãäë.ìðñö1÷ûü- 0 + -!%&*,+/0637;<B+CGHN'OSTc#dŠ‹+ž»¼Ð:Ñ$ "$#'(*"+/03 489I'P‹Œ™\š­®µ>¶ÎÏÚRÛ  ONOPTZ\bFh#€ŽL—C™¡G¢¨>©°A±¸¼½¾Ê'Ëšž£'¥B#Dˆ"ŠB 2D H 5J N 1P T 4V Z /\ ` 1b f 0h l *n r )t x +z ~ *€ „ )† Š .Œ 0  - +  '  &  " g i ˆ Qˆ ÿÿÿÿbc:\dev\archive\CUnit\CUnit_cvs\CUnit\Jamrules.in\±‰‘ÿÿÿÿOutliningState13"./ÿÿÿÿ(tOutliningState17"*2ÿÿÿÿ*hOutliningState18"ÿÿÿÿÿÿÿÿÿÿÿÿ,dOutliningState19")>ÿÿÿÿ.jdc:\dev\archive\CUnit\CUnit_cvs\CUnit\configure.inÖôçJÿÿÿÿXc:\dev\archive\CUnit\CUnit_cvs\CUnit\READMEp‹B„ÿÿÿÿTc:\dev\archive\CUnit\CUnit_cvs\CUnit\TODO{Á/þÿÿÿÿZc:\dev\archive\CUnit\CUnit_cvs\CUnit\VERSION!¤ ÿÿÿÿXmlPackageOptions$ÿÿÿÿÿÿÿÿ÷.OutliningState20"ÿÿÿÿÿÿÿÿÿÿÿÿÅnOutliningState21"58ÿÿÿÿ4˜OutliningState23"ÿÿÿÿÿÿÿÿÿÿÿÿM’ 1a.c)eÿÿÿÿ®;°Å?ÇÙ>Ûù|c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\Util.cv ‰2>?BBQ]_fiuxH…‹–ž«!­R¯²³¶·CUnit\Headers\TestRun.hÖ›[ $59HL]aru’“–šŸ ¥¯¶¸ÃÊÍ3Øâ!ÅâþAÿ!æU  E /28<HLX\\c:\dev\archive\CUnit\CUnit_new\doc\index.html&‹ÿF    !$ (#†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Automated\Automatesu~&€„<†[’¯F±¿HÁÔPÖäQæô+ö/°L²¶U¸¼X¾ÂaÄÈbÊÎkÐÔ<ÖÚ:Üà@âæBèìHîòIôøOúþ.1 3 -02"+$(-*.,04OutliningState26"9;ÿÿÿÿq–OutliningState30"CÿÿÿÿÿÿÿÿœbOutliningState31"BAÿÿÿÿ 6OutliningState32"ÿÿÿÿÿÿÿÿÿÿÿÿ˜œ36: <E+GK'MQ#Sx+z˜:šò$ôø$úþ"  < //&0(ƒ„›'£ßàí\î >&'5R6œ¬O­ïðñöþF)#+97:BLCKCMUDW_G`f>gnAovw….‘1;<=Q'R!%+*-'’#' ") g h l .m á "ã * , : ÿÿÿÿá â æ .ç d.c=CáÉE]!^7~c:\dev\archive\CUnit\CUnit_new\‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cŒ«,¬%> ?DDEjmpkŠ‹”B•ÙÚà7á+,0+1NOXhc:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.xsl7æ[T  vc:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Basic\Basic.c§9y)ÿÿÿÿEK%LZ1\g0d:\tmp\CUnit-2.1-1\VC8\†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cpp**"A·Ð:lÂдB $JÒ†c:\dev\archive\CUnit\CUnit_neCUnit\Sources\Console\Console.c /6:8SRU J·B¸º»ÿÿÿÿ‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.c…¯ßEŽ/”ªO¬hc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Util.hné.<SV_bilorux{~ƒ„‡ˆ 5ˆ!‹™/›žÿÿÿÿaders\TestRun.hÖ›[~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.c78ï 6 7K0LRSYZ^!_c(dh+im nt$uŠ1Ž›ÿÿÿÿnc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUError.hÓï–nc:\dev\archive\CUnit\CUnit_new\doc\error_handling.htmlbòíÇ  aŠC:\dev\archive\gsl-pkg\gsl-1.6\ework\Util.c nÖV:;>>M#NY\wVZ›.®=°¼¾Ã!ÅØáã"Úêëì ùAûþÿ6ô|+}“)” ¡Ñ#Ò$34BíBÿÿÿÿUnit_nnd:\dev\archive\CUnit\CUnit_new\yC{‰E‹žC 8%9;<ÿÿÿÿC8\Depc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUCurses.hSÊD`ÿÿÿÿtc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUnit_intl.h¥-½;HOS_dosHtvz~ƒ†Š’H˜­H±³ÄÇÞáHýÿ H-0268H?EGJPXe!gRilmpq Dq<rtuÿÿÿÿ>?†d:\dev\archive\CUnit\CUnit_new\!:>ÿÿÿÿ:<~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\MyMem.cJk×@9B2FJQX]2aWc5do\d:\dev\archive\CUnit\CUnit_new\doc\index.htmlº.$ŒÈœ^šY-nc:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.có‚G',&$()$+,/0#2367"9CDI JR!S[!\h$it$u{'|‚#ƒŠ&‹’'“ž*Ÿª(«¸+¹þÿÿÿþÿÿÿþÿÿÿ    ¨þÿÿÿMþÿÿÿ@"#$%&'()*+,-þÿÿÿ/0>2þÿÿÿ4þÿÿÿ6þÿÿÿ8þÿÿÿ:;þÿÿÿ=þÿÿÿ?þÿÿÿABCDEJGHI¯KLþÿÿÿNOþÿÿÿQRSTVWXþÿÿÿZ[\]^þÿÿÿ`abcdþÿÿÿfghijklmnopqrstþÿÿÿvwxyz{|}þÿÿÿþÿÿÿÅ'ÆÒ*Óßà), 3+47 @6AD NCOR WQXY2ab&_ d g k l pgfqe r^s]t[uwxÿÿÿÿchive\CUnit\CUnit_|d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\Util.c>©rc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Automated.h¨X°Î$08;BEL!N:RUV ,D)=>AAP#Q\_zV]¢.¤µ=·ÃÅÊ!Ìßèê"áñòó A6û‚+ƒ™)š¦§×#Ø$ 9:HôHÿÿÿÿq‡)ˆ”•Å#~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.c\ H–3 4H0I‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\CUError.cI¥£•60781AEFG%>MOS"UY/[_(aefq6r±²³·å´åÿÿÿÿœÛÑ(ÒkÓ÷ø:ùþ (+367:;>?BCFGJKNORSVWZ[^_bcfgjknorsvwz{~‚2ƒ1„’˜›œŸ £¤§—¨°³´·¸»¯¼ÁÅÆÊaÀ˾ÌÎÏÿÿÿÿ³´jc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\MyMem.hwùEOutliningState33"?ÿÿÿÿÿÿÿÿƒîOutliningState34"@Vÿÿÿÿ†šOutliningState28":=ÿÿÿÿµpOutliningState29"ÿÿÿÿÿÿÿÿÿÿÿÿª*2;DE!QTgsl-1.6-1-bin\contrib\gsl-1.6\COPYINGà¤ä¿ÿÿÿÿ ÌÏÐTC:\tools\gnu\contrib\autoconf-2.59\README5½ÿÿÿÿVC:\tools\gnu\contrib\autoconf-2.59\COPYINGrÿNÿÿÿÿ1@JBnC:\tools\gnu\contrib\groff\1.19ev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.dtd\pc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUCurses.hVVC:\tools\wxWidgets-2.6.3\include\wx\init.hƒjd:\dev\archive\CUnit\CUnit_new\doc\introduction.htmlJ~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Console\Console.cT~C:\dev\archive\CUnit\CUnit_new\Examples\WinTest\WinTest_v1.cpp`jc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUnit.h\c:\dev\archive\CUnit\CUnit_new\doc\index.html jC:\tools\wxWidgets-2.6.3\samplespBq7r‘’>“A—¹º&»A¿Ð\hlw{‡‰‚d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\CUError.cÅ<À30451>BCD%;JLP"RV/X\(^bcn6o®¯°´â±âÿÿÿÿœÛnd:\dev\archive\CUnit\CUnit_new\ÎC:\Documents and Settings\Jerry\My Documents\temp\chsuf-0.9-bin\contrib\chsuf\0.9\chsuf-0.9-src\README£‰¦ÿÿÿÿeaders\TestRun.h7 `ÿÿÿÿebug - DLL|Win32.fBatch»1bC:\tools\wxWidgets-2.6.3\samples\richedit\README´Hd:\dev\archive\CUnit\CUnit_new\TODO<Tc:\dev\archive\CUnit\CUnit_cvs\CUnit\TODOfC:\tools\wxWidgets-2.6.3\samples\widgets\widgets.h¢†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWid‚ƒ„…†‡ˆ‰Š‹ŒŽþÿÿÿ‘’“”•þÿÿÿ—þÿÿÿ™š›œþÿÿÿžŸ ¡¢£¤¥Å§¨þÿÿÿª«¬­°¯þÿÿÿ±²³´þÿÿÿ¶·¸¹î»þÿÿÿ½¾¿ÀÁÂÃÄþÿÿÿÆEÈÉÊÏÌÍÎþÿÿÿÐþÿÿÿÒÓÔÜÖרÙÚÛþÿÿÿÝÞßàáâãäåæçèéêëìíìïðñòóôõö÷øùúûüýþÿget.cppw¤C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.dtdY~C:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Makefile.am>C:\tools\gnu\include\libintl.hfŠC:\dev\archive\gsl-pkg\gsl-1.6\gsl-1.6-1-bin\contrib\gsl-1.6\COPYING"^C:\tools\wxWidgets-2.6.3\src\common\string.cpp~rC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\StdAfx.hblc:\dev\archive\CUnit\CUnit_new\doc\running_tests.htmlHŠC:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Basic\Makefile.amZC:\tools\wxWidgets-2.6.3\include\wx/string.h¥bc:\tools\wxwidgets-2.6.3\src\common\utilscmn.cpp–^c:\tools\wxwidgets-2.6.3\src\common\appcmn.cppŽ‚d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.c-nc:\dev\archive\CUnit\CUnit_new\CUnit\HeaderOutliningState63"^bÿÿÿÿH4OutliningState55"RXÿÿÿÿËüOutliningState62"ÿÿÿÿÿÿÿÿÿÿÿÿÇ|OutliningState45"LÿÿÿÿÿÿÿÿÑâ6;<?@CDGHKLO#PYckr…†Ša€‹~ŒŽÿÿÿÿ\Headers\lc:\dev\archive\CUnit\CUnit_new\doc\writing_tests.htmlPÅÖó  a.1\groff-1.19.1\LICENSE1 œOÿÿÿÿ]˜C:\tools\gnu\contrib\groff\1.19.1\groff-1.19.1\groff-1.19.1-GnuWin32.READMEêm;™ÿÿÿÿm{nC:\tools\gnu\contrib\popt-1.8\popt-1.8-GnuWin32.README'‰Oÿÿÿÿ\`cd /d+eghÿÿÿÿ  aWú  : I 8!D"'(;)04U*?@/A1B:‘'™ž¢%£§8©®:°Á<Ã/ =Z\bcgr}€ŒœŸ¦¨©®º¼½ n½!À&ÂÔÕðñ  :<G’Gÿÿÿÿrs\Basic.hNjd:\dev\archive\CUOPVW[!\`(ae+fj kq$r1ƒÿÿÿÿOutliningState35"ÿÿÿÿÿÿÿÿÿÿÿÿ3dOutliningState36"DFÿÿÿÿ5fOutliningState37"ÿÿÿÿÿÿÿÿÿÿÿÿ7~OutliningState38"EKÿÿÿÿ9¨OutliningState39"ÿÿÿÿÿÿÿÿÿÿÿÿ<~OutliningState40"HJÿÿÿÿ.OutliningState41"ÿÿÿÿÿÿÿÿÿÿÿÿdBOutliningState42"I_ÿÿÿÿ~p®;°Å?ÇÙ>ÛùKûL061O:QTUh=i|}Œb§¨²+³ËÌ×FØö÷~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\MyMem.c§,®{7ŠDs\CUError.hzc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\CUError.hjd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Basic.hNjd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\MyMem.h=ld:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestDB.h+TC:\tools\wxWidgets-2.6.3\include\wx\app.h„\d:\dev\archive\CUnit\CUnit_new\doc\index.html9fC:\tools\wxWidgets-2.6.3\samples\widgets\gauge.cpp¬¼C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Listing.xml[nc:\dev\archive\CUnit\CUnit_new\doc\error_handling.html!Rc:\tools\wxwidgets-2.6.3\src\msw\pen.cpp›vc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\CUnit.hZc:\tools\wxwidgets-2.6.3\src\common\init.cppˆHc:\dev\archive\CUnit\CUnit_new\TODO_Xc:\tools\wxwidgets-2.6.3\src\common\log.cpp‘|d:\dev\archive\CUnit\CUnit_new\Examples\BasicTest\BasicTest.cPDe:\CUnit_new\CUnit\Headers\Util.h@zc:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Curses\Curses.cWbc:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.cssC\c:\tools\wxwidgets-2.6.3\src\msw\treectrl.cpp©jC:\tools\wxWidgets-2.6.3\samples\notebook\notebook.h²Vc:\tools\wxwidgets-2.6.3\include\wx\defs.hy|c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\Util.cg`C:\tools\wxWidgets-2.6.3\include\wx\setup_inc.h¤¦C:\d\widgets\widgets.cpp¡Xe:\CUnit_new\CUnit\Sources\Framework\Util.c?jc:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.xslqjd:\tmp\CUnit-2.1-1\CUnit\Sources\Framework\TestRun.cºpc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\wxWidget.huvC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\StdAfx.cppa‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.cžc:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\AutomatedTest\AutomatedTest_v1.c€c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestDB.cnC:\tools\wxWidgets-2.6.3\samples\treectrl\treetest.cpp¨nd:\dev\archive\CUnit\CUnit_new\doc\managing_tests.htmlL†c:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Curses\Curses.c vC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\ReadMe.txt^rd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Automated.hR~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.cŠc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\MyMem.clc:\dev\archive\CUnit\CUnit_new\doc\writing_tests.htmlE\ "." .J:; AOA O ] bgijmn Bn9oqrÿÿÿÿs\CUnit\CUnit\Sources\Automated\Automated.c[º(|EZ![|7~™$›¤¥®?¯ÀÁÄBÅÝÞä^åÿUQRUZV•–™Pš°±´SµËÌÏ2Ðæçï`ðQRSÿÿÿÿØÛ2Üö÷û"üÕÖÚ-ÛYZ_)`hd:\dev\archive\CUnit\CUnit_new\OutliningState43"ÿÿÿÿ`ÿÿÿÿ¹ðOutliningState46"GQÿÿÿÿûªOutliningState47"ÿÿÿÿSÿÿÿÿÞOutliningState49"ÿÿÿÿÿÿÿÿÿÿÿÿOutliningState50"NÿÿÿÿÿÿÿÿDOutliningState51"P]ÿÿÿÿjOutliningState53"TUÿÿÿÿUÊOutliningState48"ÿÿÿÿOÿÿÿÿYBFÿÿÿÿ~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.h[mÚ(47:<JPSW`a 1a.c)eÿÿÿÿjd:\dev\archive\CUnit\CUnit_new\OutliningState52"ÿÿÿÿÿÿÿÿÿÿÿÿ_jOutliningState54"ÿÿÿÿÿÿÿÿÿÿÿÿeîOutliningState57"MYÿÿÿÿåœOutliningState58"ÿÿÿÿ[ÿÿÿÿ€ØCUnit\Headers\CUnit.hâÚK,ACFHKM!P.RV [\]_`OUabc!>q1swÿÿÿÿnd:\dev\archive\CUnit\CUnit_new\doc\error_handling.htmlbòíÇ  a (+367:;>?BCFGJKNORSVWZ[^_bcfgjknorsvwz{~‚2ƒ1„’ýÿÿÿ‚ƒ„†g‡ˆ‰hL’–‘•®š˜Ÿ­±ž°œ½¬¨ ¡¢£¤¥¦§©—ª«”ÁÈÅɺ²³´µ¶·¸¹›»Æ¾¿ÀÄÂïÓíÇÌÍÊ˼ÎÔÏàPáÕÚÖרÙÛÝÜÞæßäðãÒþåçÑèéêëìâîñòóõýÿÿÿöø)ù ûü)"ÿ˜›œŸ £¤§—¨°³´·¸»¯¼ÁÅÆÊaÀ˾ÌÎÏÿÿÿÿ    !$ (#), 3+47 @6AD MCNQ VPWX2`a&^ c f j k ogepd q]r\sZtvwÿÿÿÿd q]bd:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.css¨²ÈŠÿÿÿÿld:\dev\archive\CUnit\CUnit_new\doc\test_registry.htmlœãÙ  a*7@TWX[S\R]_bn2of}‡Ž&‘’#‘#’™›Ÿ¡«¶¹º½ À ÿ Ä Æ ÉÅ Ê¾Ë Î ÑÍ Ò Ô ×Ó ØÌÙÚÝÞáâåæéêíµîó÷øüaòýðþÿÿÿÿOutliningState56"ÿÿÿÿÿÿÿÿÿÿÿÿªOutliningState60"Wiÿÿÿÿ–XOutliningState61"ÿÿÿÿ\ÿÿÿÿ˜OutliningState59"ÿÿÿÿÿÿÿÿÿÿÿÿ®bCUnit\Headers\CUError.hÓï–/ =Z\bcgr}€ŒœŸ¦¨©®º¼½ n½!À&Â0ÄÆÇÿÿÿÿHd:\dev\archive\CUnit\CUnit_new\TODO]®Zÿÿÿÿjd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\MyMem.hwùE*2;DE!QT`cd /d+eghÿÿÿÿG'((23@9A^_gPhyz‚Dƒ”•E—-˜£?¥±S³ÆOÈØFÚíCïþÿ   -9*;FGK#L . bfghm*nç#èîïö÷S`¨Tª «¼ÿÿÿÿ_new\CUnit\Sources\Framework\Tejc:\dev\archive\CUnit\CUnit_new\doc\introduction.htmlhü.ó  a$'(+,/2 4058 :Rd:\dev\archive\CUnit\CUnit_new\ChangeLogŒJdBÿÿÿÿdev\archive\CUnCUnit\Headers\Util.h†‘wš.<SV_bilorux{`d:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.3æ`Œãü <G%;,F,%/ÿÿÿÿ-9}~‚ 5‚!ease - Static Lib|Win32.fBatchBld=;J{C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - Static Lib|Win32.fBatchBld=;4{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.dwStartupOpt=;L{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - Static Lib|Win32.fBatchBldc:\tools\wxwidgets-2.6.3\src\msw\toplevel.cpp”Rd:\dev\archive\CUnit\CUnit_new\ChangeLog;\C:\tools\wxWidgets-2.6.3\include\wx\msw\app.h…hC:\tools\wxWidgets-2.6.3\samples\widgets\button.cpp«Tc:\tools\wxwidgets-2.6.3\src\msw\main.cpp‡xC:\dev\archiveú-ü,3 +'#I+Kr:tÄ$ÆÊ$ÌÐ"ÒÖ ØÜ<Þá/äèéþ'BCP\Qfgo>pˆ‰˜R™ÔÕäOåMultiStartupProj=;4{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.dwStartupOpt=;X{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - DLL|Win32.fBatchBld=;C6    ”| !"#$þÿÿÿ&'þÿÿÿ)*+,-./012345þÿÿÿ789:;<=>?þÿÿÿABCDEFGHIJKLMNOPQRSTXVWþÿÿÿYZ[o]þÿÿÿ_`aþÿÿÿcdþÿÿÿfgþÿÿÿijþÿÿÿlmnþÿÿÿpqrstuvwxyz{†}~€…“/•—˜ÿÿÿÿ‚d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.c¥Qv™Ex/~”L–šUœ a¢¦b¨)Ï&ÑÜ&Þ-5,7€„#…ÏÐÓ#{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - DLL|Win32.fBatchBld=;L{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Release - Static Lib|Win32.fBatchBld=;J{E88E5D8B-FAA8-41FA-B0A5-77C924300C0E}.Debug - Static Lib|Win32.fBatchBld=;4{0336E4F1-B2E5-4E5\CUnit\CUnit_new\Share\Copy of CUnit-List.xsltbd:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.cssI\c:\tools\wxwidgets-2.6.3\include\wx\evtloop.h—~c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.h)Tc:\tools\wxwidgets-2.6.3\include\wx\log.‚ƒ„…†‡ˆ‰Š‹ŒþÿÿÿŽ‘’“”•–—˜™š›œžþÿÿÿþÿÿÿ¡þÿÿÿ£¤¥¦§©þÿÿÿª«¬­®°þÿÿÿ±²³¾µ¶·¸¹º»¼½ä¿ÀîòÃþÿÿÿÅÆÇÈÉÊËÌÍÎÏþÿÿÿÑÒþÿÿÿÔÕÖרþÿÿÿÚÛÜÝÞßàáâãþÿÿÿåæçèêëþÿÿÿíþÿÿÿþñeþÿÿÿôõö÷øùúûüýÿ c6;<?@CDGHKLO#PYckr…†Ša€‹~ŒŽÿÿÿÿDB0-4E57-ld:\dev\archive\CUnit\CUnit_new\doc\writing_tests.htmlPÅÖó  aÔ= "? i j m "n Û #Ý ñ  ó ÷  ø ü  ý     %/ m o ˆ äˆ ÿÿÿÿ¬k®²:´¸@º¾HÀÄIÆÊOÌÐ.ÒÖ1ØÜ3Þâ-äè0êî2ðô+ö#),2F9T#VdLemCowGx~>†A‡Ž.©ISTUe'f *v'xø#ú "M \ c[e h kg lfn q tpOutliningState75"ÿÿÿÿÿÿÿÿÿÿÿÿU\OutliningState76"kpÿÿÿÿsZOutliningState77"ÿÿÿÿÿÿÿÿÿÿÿÿdOutliningState81"ÿÿÿÿÿÿÿÿÿÿÿÿÄ "." .J:; AOA O ] b\ c[e h kg lfn q tp uow z }y ~x€ ƒ †‚ ‡‰ Œ ‹ Š’ • ˜” ™OutliningState44"ÿÿÿÿÿÿÿÿÿÿÿÿ®OutliningState64"ÿÿÿÿÿÿÿÿÿÿÿÿBXOutliningState65"acÿÿÿÿßbOutliningState66"ÿÿÿÿÿÿÿÿÿÿÿÿèÂhŠ‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cv’c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\TestRegistryTree.h°Œc:\dev\archive\CUnit\CUnit_new\Examples\wxWidgetsTest\wxWidgetsTest.c}nC:\tools\wxWidgets-2.6.3\samples\cV%WYZÿÿÿÿive\C(0.03478;*/+<"'#=/?0EGJKNOR*F+S">#T/V0\^abefi*]+j"U#k/m0su0ÄÆÇÿÿÿÿ\dev\archivxy|*t+}"l#~/€0†ˆ‹Œ*‡+"#‘/“0™›žŸ¢*š+£"zc:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Curses\Curses.cc* zC DEE HDI MRRT UY¿ÁÄÅÈ*À+ÉRc:\dev\archive\CUnit\CUnit_new\ZC:\dev\archive\CUnit\CUnit_new\VC8\CUError.iO½êÿÿÿÿ679FD0}.dwSnd:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.cd¹ ,%$'($*+./#1256"8OutliningState68"ÿÿÿÿeÿÿÿÿ©nOutliningState69"ÿÿÿÿÿÿÿÿÿÿÿÿµ\OutliningState70"djÿÿÿÿØOutliningState71"ÿÿÿÿhÿÿÿÿZ uow z }y ~x€ ƒ †‚ ‡‰ Œ ‹ Š’ • ˜” ™“› ž ¡ ¢œ¤ § ª¦ «¥­ ° ³¯ ´®¶ ¹ ¼¸ ½·¿  ÅÁ ÆÀÈ Ë ÎÊ ÏÉÑ Ô ×Ó ØÙ ÜÒÝ à ãß äå èÞé ì îë ïð òêó ö ùõ úû ýôþZÿ  !"%&)*-.12569:=>ABEFI JOSTXaNYLZ\]ÿÿÿÿlc:\dev\archive\CUnit\CUnit_new\doc\test_registry.htmlœãÙ  a*7@TWX[S\R]_bn2of}‡Ž&‘’#‘#’™›Ÿ¡«¶¹º½ À ÿ Ä Æ ÉÅ Ê¾Ë Î ÑÍ Ò Ô ×Ó ØÌÙÚÝÞáâåæéêíµîó÷øüaòýðþÿÿÿÿnc:\dev\archive\CUnit\CUnit_new\doc\managing_tests.html?«h{  aIMgjmnqruvyz}i~hƒ•˜›œŸ £¤§¨«¬¯°³—´–µ¹:»"¼¿ÀGÇÈÏÐ;ÙÚàá%êëíîôõ÷øûþ "#&',-/047?@EUOPFSTYUabZepstwx{|€ƒ„‡ˆ‹Œ“”—˜›œŸ £¤§¨«¬¯°³´·o¸½ÁÂÆa¼ÇºÈÊËÿÿÿÿlc:\dev\archive\CUnit\CUnit_new\doc\running_tests.htmlUí  a'+-138Laefjkoptuy`z_{ŠOutliningState72"ÿÿÿÿÿÿÿÿÿÿÿÿ1´OutliningState67"ZfÿÿÿÿCrOutliningState73"gsÿÿÿÿ~rOutliningState74"ÿÿÿÿlÿÿÿÿKn “– £ÐÓÔרÛÏÜÎÝ1ùü+ù üý -' K%%(,-;J=B><?BGHWJYBZX[3]_-] _`5cknq touvyz}~j‚‡‹Œa†‘„bc:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.css¨²ÈŠÿÿÿÿ&'&)cdg-h€,‚ËÌÏ#Ð   # ˆ "Š ´ µ ¸ "¹ & #( <  > B  C G  H L  M Q %z ¸ º Ó jd:\dev\archive\CUnit\CUnit_new\doc\introduction.htmlhü.ó  a$'(+,/2 4058 :BCH IQ!RZ![g$hs$tz'{#‚‰&Š‘'’*ž©(ª·+¸Ä'ÅÑ*ÒÞßæ#çíîõöR_§S© ª»ÿÿÿÿ679FD0}.Release - Static Lib|WiOutliningState80"qoÿÿÿÿдOutliningState78"nrÿÿÿÿÓjOutliningState79"ÿÿÿÿÿÿÿÿÿÿÿÿÙŽOutliningState82"mÿÿÿÿ966-AA33-2709A75004F8}.dwStartupOpt=;StartupProject=&{0336E4F1-B2E5-4E56-AA33-2709A75004F8};X{0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - DLL|Win32.f;'HIO!¬¯C$08;BEL!N:RUV ,V%WYZÿÿÿÿC:\deN R .S Ç "É    ÿÿÿÿefile.amŠC:\"¸#Ê/Ì0ÒÔ×.61S”UVX Yhecklst\checklst.cpp|†d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Automated\Automated.cAnC:\tools\wxWidgets-2.6.3\samples\memcheck\memcheck.cpp \C:\dev\archive\CUnit\CUnit_new\VC8\wxWidget.i‹RC:\tools\wxWidgets-2.6.3\include\wx\wx.h€¤C:\dev\arch“› ž ¡ ¢œ¤ § ª¦ «¥­ ° ³¯ ´®¶ ¹ ¼¸ ½·¿  ÅÁ ÆÀÈ Ë ÎÊ ÏÉÑ Ô ×Ó ØÙ ÜÒÝ à ãß äå èÞé ì îë ïð òêó ö ùõ úû ýôþZÿ  !"%&)*-.12569:=>ABEFI JOSTXaNYLZ\]ÿÿÿÿnd:\dev\archive\CUnit\CUnit_new\doc\managing_tests.html?«h{  aIMgjmnqruvyz}i~hƒ•˜›œŸ £¤§¨«¬¯°³—´–µ¹:»"¼¿ÀGÇÈÏÐ;ÙÚàá%êëíîôõ÷øûþ "#&',-/047?@EUOPFSTYUabZepstwx{|€ƒ„‡ˆ‹Œ“”—˜›œŸ £¤§¨«¬¯°³´·o¸½ÁÂÆa¼ÇºÈÊËÿÿÿÿld:\dev\archive\CUnit\CUnit_new\doc\running_tests.html¡Ãy¢  a'+-138I^bcghlmqrv]w\x‡ “  ÍÐÑÔÕØÌÙËÚ-ý'ý %J'B(&),12AJCBDBE3GI-G IJ5MUX[ ^Y_`cdghkTlquvzap{n|~ÿÿÿÿÓ ÿÿÿÿ¾ × ÿÿÿÿstDB.h+\ŠŽ BŽ9‘’ÿÿÿÿª«ÿÿÿÿchive\¼C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Listing.xml3ì~Ð%& % & /0 !$*+%"#&/ive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.xslXhd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Util.h>~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.c3nC:\tools\gnu\contrib\popt-1.8\popt-1.8-GnuWin32.README'xC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\WinTest.cppc‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\CUError.c´C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Memory-Dump.xmlsZc:\tools\wxwidgets-2.6.3\include\wx™D𮝴<µ¼½ÄLÅÌÍ?Î&ÏÙÚÞ[ßåæëRîW+,/M09:`(cdeh j1mpkpr sq#vyzL}€{Y,[\eeghssEÕÖìí/ð')$ñ@A4B&CZ[)\!]mn o&p‰Š'‹)Œ“”"•(–¢’#¤/¦0¬®±²µ*­+¶"¥#·/¹0€‚"ƒ$†‰Š’‹’”$•“%™ž£¦Ÿ¦¨"©§$­°±6¶¹²¹»$¼º%ÁÄÅ*ÌϤC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.xslɲ    -Z$- ,!'#%"'(+-/*/'1368/59-;=@B.?CFHL O%KPJQ.ERUX/TY\_/[`fm+ov2nw-d x)by~€${2ƒÿÿÿÿease - Static Lib|Wi¤C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.dtdH‘m$ÿÿÿÿhBld=|d:\dev\archive\CUnit\CUnit_new\Examples\BasicTest\BasicTest.c«ý°, Tÿÿÿÿjd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Basic.hƒº +/2:=FITWZ]`cjlm 'm npqÿÿÿÿvd:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Basic\Basic.c‘þ± EH%IW1Yd@fs,uy'{7Œ”*•©ª³C´ÂÃÈ5ÉÎÏÖK×ÜÝáZâòóøUû #V$ABELFOPSOT]^_ÿÿÿÿ£4¤7¥²³&´,µÇÈ"É(ÊÛÜ"Ý(Þïð$ñ#ò  H ! &¦C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.xsl³pŸª   - ## /%!#($& '6(.5#- 7-*83:BatchBld=;C{0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - DLL|Win32.fBatchBld=;L{0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Release - Static Lib|Win32.fBatchBld=;J{0336E4F1-B2E5-4E56-AA33-2709A75004F8}.Debug - Static Lib|Win32.fBatchBld=;4{4\wxchar.h¶XC:\tools\wxWidgets-2.6.3\include\wx\build.h‚fc:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.dtdo†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Automated\Automated.cXc:\dev\archive\CUnit\CUnit_cvs\CUnit\README~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Test\test_cunit.h0`d:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.37`c:\dev\archive\CUnit\CUnit_new\libcunit_dll.def¯\c:\tools\wxwidgets-2.6.3\src\msw\settings.cppšnd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestRun.h,~c:\devOutliningState83"ÿÿÿÿÿÿÿÿÿÿÿÿ?öOutliningState84"tvÿÿÿÿºšOutliningState85"ÿÿÿÿÿÿÿÿÿÿÿÿÁbOutliningState86"uxÿÿÿÿÒ€H5á%A BGGEmpsnŽ—ChangeLog)7 ÿÿÿÿŽ—jC:\tools\wxWidgets-2.6.3\samples\widgets\widgets.cpp͘ԕ'<=8DEOIMERJU `1af-ge)l v{„ˆWŽ.”š›Ÿ¤¥J¢³º0» ¼9¾H´Á‘Ç ÇÊ× Ø@ÙÝ<ÞöJ÷ùúýþZ [W\ET]ÿØÛ*Ó+Ü"Ë#Ý/P·¸¼!6½&',P-<=BSCjkqsŽ<*‘¡¢9£3¤¾¿Â3Ã(?@@ABhim*n\archive\CUnit\CUnit_new\CUnit\Sources\Framework\MyMem.cjfd:\tmp\CUnit-2.1-1\CUnit\Sources\Framework\MyMem.c¹lC:\tools\wxWidgets-2.6.3\samples\widgets\combobox.cpp±Žc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\CUError.chc:\dev\archOutliningState87"ÿÿÿÿÿÿÿÿÿÿÿÿ´ÊOutliningState88"w}ÿÿÿÿ˜OutliningState89"ÿÿÿÿ{ÿÿÿÿ%´OutliningState90"ÿÿÿÿ|ÿÿÿÿ(^ive\CUnit\CUnit_new\Share\CUnit-List.dtdnˆc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\Util.c`c:\tools\wxwidgets-2.6.3\include\wx\msw\frame.h“^c:\dev\archive\CUnit\CUnit_cvs\CUnit\ChangeLogrc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Automated.hjc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\MyMem.h(jc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Basic.hd^c:\tools\wxwidgets-2.6.3\include\wx\treebase.hª¦C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-þÿÿÿ3<    þÿÿÿ‡[m !"#$%&'()*+,-./012þÿÿÿ456789:;L=þÿÿÿT@ABCDEFGHIJKþÿÿÿMNOPþRS]UVWXYZ[\þÿÿÿ^þÿÿÿ`aicdefghþÿÿÿjklmnopqrstuvwxyz{þÿÿÿ}~€OutliningState108$ŠÿÿÿÿÿÿÿÿÁÔOutliningState109$†¡ÿÿÿÿ0~OutliningState110$ÿÿÿÿÿÿÿÿ‘xOutliningState111$ÿÿÿÿÿÿÿÿÿÿÿÿ•vFNOQ?BR:TV2[](^`Ya,Xb4df&km$pr$uw$z|i}?h~*„†2ƒ‡ˆ‰‹:€Œ‘“$Ž”Ojc:\dev\archive\CUnit\CUnit_new\<?F>>G L N O QKT.JU9IW3Y[^j>]k(qs1ptn t9mv{}#x~O€ÿÿÿÿß0åçêëî*æ+ï"Þ#ð/ò0øúOutliningState91"ÿÿÿÿÿÿÿÿÿÿÿÿ¢ÀOutliningState92"zÿÿÿÿU¶OutliningState93"ÿÿÿÿÿÿÿÿÿÿÿÿ@ OutliningState95"ƒÿÿÿÿ\Xýþ*ù+"ñ#/0  * +"#/0 #$'*+("#)/+01367:*2+;"*#</>0DFI*E+J"=#KLMNOÿÿÿÿ¼C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Results.xmlÖI" #  "# "#  "#  !"##%" &"(#*' + ,-"2#41 5"7#96 :"<#>; ?/ @.A"F#KE L"N#SM T"V#[U \C ]B^` c_df iej"o#tn u"w#yv zl {k|~ }‚"‡#Œ† "#”Ž •"—#œ– "Ÿ#¤ž ¥"§#¬¦ ­„ ®ƒ¯"´#¹¦C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.dtdx¼›ÿÿÿÿ³ º"¼#Á» Â"Ä#Éà Ê"Ì#ÑË Ò± Ó°Ô"Ù#ÞØ ß"á#æà çHc:\dev\archive\CUnit\CUnit_new\TODOÒcõPÿÿÿÿxC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\WinTest.cppù¦)ÚOutliningState99"ÿÿÿÿÿÿÿÿÿÿÿÿ^ÄOutliningState98"‚€ÿÿÿÿb¾OutliningState97"„ÿÿÿÿÿÿÿÿešOutliningState94"~ÿÿÿÿÿÿÿÿh† ( ÿÿÿÿrC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\StdAfx.h§µ KÿÿÿÿvC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\StdAfx.cpplt>ÖÿÿÿÿvC:\dev\archive\CUnit\CUnit_new\Examples\WinTest\ReadMe.txtU @nÿÿÿÿ~C:\dev\archive\CUnit\CUnit_new\Examples\WinTest\WinTest_v1.cpp°WâÖ ( ÿÿÿÿ"é#îè ï"ñ#öOutliningState96"ÿÿÿÿÿÿÿÿÿÿÿÿkÊOutliningState101$ÿÿÿÿÿÿÿÿtOutliningState102$ŒÿÿÿÿSŠOutliningState103$ÿÿÿÿÿÿÿÿÿÿÿÿjlð ÷"ù#þø ÿ"# " # "# Ö Õ"## $"&#+% , -."3#82 9";#@: A"C#HB I0 J/K"P#UO V"X#]W ^"`#e_ fM gLh"m#rl s"u#zt {"}#‚| ÆÏÑ&ÒÐ&×Û?Ý9àãÞãå&æä&éì=íòõîõ÷.øö*List.xslZÎC:\Documents and Settings\Jerry\My Documents\temp\chsuf-0.9-bin\contrib\chsuf\0.9\chsuf-0.9-src\README/bC:\tools\wxWidgets-2.6.3\include\msvc\wx\setup.h£Zc:\tools\wxwidgets-2.6.3\include\wx\gdicmn.h’ZC:\dev\archive\CUnit\CUnit_new\VC8\CUEShare\Memory-Dump.xslŸë’g    *!!" *&+07)/8%-9(>@ADFIKN-= P";Q!SW2YÿÿÿÿM?cppJBQó"#$')DIQZK³´µ¶ÌÍ=äèêåïð=ò#öøóüý=ÿnc:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.h2o~;.*<4>@CE–ÿÿÿÿTV2SWQfc:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.xslÐ åS    -$ %- ',('*,"./3526/18':ûþ3ÿ  @ 3?7 !"#;CFNQgimsz{ 2{}ÿÿÿÿƒ"…#Š„ ‹j Œi"’#—‘ ˜"š#Ÿ™  "¢#§¡ ¨"ª#¯© °"²#·± ¸"º#¿¹ À"Â#ÇÁ È"Ê#ÏÉ Ð ÑŽÒ"×#ÜÖ ÝÔ ÞÓßàâéêñòùáúûOutliningState105$‰ÿÿÿÿÿÿÿÿÂjOutliningState104$‡ÿÿÿÿÿÿÿÿÔ¬OutliningState106$ˆ‹ÿÿÿÿáÂOutliningState107$ÿÿÿÿÿÿÿÿÿÿÿÿÆüýÿÿÿÿCUnit\CUnit_new\hc:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.dtdv¥Ãÿÿÿÿ¬cEYijp7qv;ÿÿÿÿ-AA33-2709A75004F8}|test_cufc:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.dtdÃ{@Oÿÿÿÿmeworjc:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.dtdØQ?èÿÿÿÿ¬cw~M„…C‘©ª·P¸ÐÑÕ3Ö  (=>??@abf\gxy~ƒ†S‹ŒX•–™N𢣦Q§®¯°ÿÿÿÿŠC:\dev\archive\Œc:\dev\archive\CUnit\CUnit_new\Examples\wxWidgetsTest\wxWidgetsTest.cqü $†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.Vc:\tools\wxwidgets-2.6.3\include\wx\intl.híÖ"· 0%L'B12O7=?&9CDOFHUVOXZcdOginr+uvw+}ƒH…‹šF›ž9Ÿ¢£¦I§«¬®¯±²¶ ¸¹º»C¿Â3ÈÐMÒÕÖÙMÝà:âå/ïùúÿ  2 o!"<&7*1/3;;A,B%@ CH3I<KNO  . $$ 0%!#($& '7(,.0239$/ Q)RT'U%P V Xÿÿÿÿ#($'<().pc:\dev\archive\CUnit\CUnit_new\w\CUnit\Sources\wxWidget\wxWidget.cppóó#A79DCA79-9205-4958-A75B-51F6C2E75D61}.dwStartupOpt=;X{479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - DLL|Win32.fBatchBld=;C{479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - DLL|Win32.fBatchBld=;L{479DCA79-9205-4958-A75B-51F6C2E75D61}.Release - Static Lib|Win32.fBatchBld=;J{479DCA79-9205-4958-A75B-51F6C2E75D61}.Debug - Static Lib|Win32.fBatchBld=;4{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.dwStartRC:\tools\wxWidgets-2.6.3\includœ$ž§¨±?²ÃÄÇBÈàáç^è U WX[Z\¤¥¨P©ÀÁÄSÅÜÝà2áøù`nopÿÿÿÿc Lib with MEMTrror.iihc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Util.hevc:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Basic\Basic.ckld:\dev\archive\CUnit\CUnit_new\doc\writing_tests.htmlK~d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\MyMem.c5|c:\dev\archive\CUnit\CUnit_new\Examples\BasicTest\BasicTest.c¸ld:\dev\archive\CUnit\CUnit_new\doc\test_registry.html:nd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUError.h8hC:\tools\wxWidgets-2.6.3\samples\treectrl\icon1.xpm¦`c:\tools\wxwidgets-2.6.3\src\common\textcmn.cppµXc:\tools\wxwidgets-2.6.3\src\msw\window.cpp•¼C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Results.xml]vd:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Basic\Basic.cObc:\dev\archive\CUnit\CUnit_cvs\CUnit\Jamrules.in\c:\tools\wxwidgets-2.6.3\src\common\event.cpp³jC:\tools\wxWidgets-2.6.3\samples\treectrl\treetest.h§Vc:\dev\archive\CUnit\CUnit_new\config.h.inxnd:\dev\archive\CUnit\CUnit_new\doc\error_handling.html6|d:\dev\archive\CUnit\ ïT  þÿÿÿ-JM !I#$%&'(ú*+þÿÿÿ¥Z/01234>6789:;<=.?@ABCDEFGHþÿÿÿK‹\éNOVŒÈþÿÿÿU×[þÿÿÿ¼Ygcf^_Ãa™ˆdeihbSj}umnopqrstRvxÙyz{Ý»~CUnit_new\CUnit\Sources\Framework\Util.c2jc:\dev\archive\CUnit\CUnit_new\doc\introduction.htmlDnd:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.cQ`c:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.3Zc:\dev\archive\CUnit\CUnit_cvs\CUnit\VERSION˜C:\tools\gnu\contrib\groff\1.19.1\groff-1.19.1\groff-1.19.1-GnuWin32.README&nc:\dev\archive\CUnit\CUnit_new\doc\managing_tests.htmlGXC:\tools\wxWidgets-2.6.3\include\wx\debug.hž`c:\tools\wxwidgets-2.6.3\src\common\appbase.cpp†nC:\dev\archive\CUnit>4C:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.xslxsl4c:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.xsl$http://www.w3.org/1999/XSL/Transform2C:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.dtd6c:\dev\archive\CUnit\CUnit_new\doc\managing_tests.htmlDC:\dev\archive\gsl-pkg\gsl-1.6\gsl-1.6-1-bin\contrib\gsl-1.6\COPYING3C:\tools\wxWidgets-2.6.3\samples\treectrl\icon1.xpm(c:\dev\archive\CUnit\CUnit_new\ChangeLog\CUnit_new\CUnit\Sources\po\en_.pomtc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\Util.hTC:\tools\gnu\contrib\autoconf-2.59\README#ZC:\tools\wxWidgets-2.6.3\include\wx\string.hld:\dev\archive\CUnit\CUnit_new\doc\running_tests.htmlMŽc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Framework\TestRun.c jd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUnit.h4Rc:\tools\wxwidgets-2.6.3\src\msw\app.cpp^C:\tools\wxWidgets-2.6.3\include\wx\ptr_scpd.h‰pc:\program files\microsoft platform sdk1&2B7ST9koK„…Aš+§¨+²µS·¹¾ÅÍÎßàòþ*ÿ!ó  4331?JBE9GJKP>QTGUX[]*^_*`dKfijm@ps"z}„+‡ŠBŒ•S–¡¤¨«®°³µ¹»ÍÎÔØæçíîò÷ýÿ   *,/1469;?AKMQ.Xsuw}~‚‹8Œƒ"*+,/5G6=&?BSDfKgiMjF~D€`‚ †˜› ¢VC:\tools\wxWidgets-2.6.3\include\wx\defs.h-DÇ +227#+ ,/035&89 IIMQ'S@UYB^b}cAyz*~‰Œ57!“7”™6šœ:<@B?C/>D-FHMOKQ.JRWYU[(b d(f h ` i4l n j o_ p%^q]r.Ts%wyz|v}/u~%‚„…‡ˆ/€‰(Ž‘˜,š ¡3™¢- £)‹¤$¦ª2¬ÿÿÿÿ382828-xC:\dev\archive\CUnit\CUnit_new\Share\Copy of CUnit-List.xsl±Gt    . $$ 0%!¼ÍÑ×ÎØÜâÙãçíîôäõùÿö    !%+",06-7;A8BFLCMQWX^N_ci`jntkuyv€„Š‹•Œ–š —¡¥«¢¬°¶­·»Á¸ÂÆÌÃÍÑ×ÎØÜâãéÙêîôëõùÿö    !%+",067=>D-EIOFPTZQ[_e\fjpgqu{r|€†}‡‹‘ˆ’–œ“¡§ž¨¬²©³·½´¾ÂÈ¿ÉÍÓÊÔØÞÕßãéàêîôëõùÿö    !%+",06-7;A8BFLCMQWNX\bciYjntkuyv€„Š‹•Œ–š —¡¥«¢¬°¶­·»Á¸ÂÆÌÃÍÑ×ÎØÜâÙãçíäîòøïùý ú   !%+,2"37=4>BH?IMSTZJ[_e\fjpgqu{|‚rƒ‡„Ž’˜™£š¤¨®¥¯OutliningState112$Ž’ÿÿÿÿ—zOutliningState113$ÿÿÿÿÿÿÿÿÿÿÿÿÏ2OutliningState114$‘“ÿÿÿÿÙrOutliningState115$ÿÿÿÿÿÿÿÿÿÿÿÿ Œ)%*ÿÿÿÿive\CUnit\CUnit_new\^c:\tools\wxwidgets-2.6.3\src\common\appcmn.cppžƒ|0&&1C256STW!bMek2l<fvwz{…6†‰)ŠŸ@¡›¢\include\winnt.hzlc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestDB.hnC:\tools\wxWidgets-2.6.3\samples\notebook\notebook.cpp®zc:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\ExampleTests.c nc:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.cB³¹°º¾ÄÅËÌÒ»Ó×ÝÔÞâèßéíóêôøþõÿ           &  ' + 1 ( 2 6 < = C 3 ´C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Memory-Dump.xml,8’ %&*0'15;2<@F=GKQHRV\S]ag^hlrisw}t~‚ˆ‰“Š”˜ž•Ÿ£© ª®´«µ¹¿¶ÀÄÊÁËÏÕÌÖÚà×áåëâìðöí÷ûø  "#'-$.28/9=C:DHNEOSYPZ^d[eiofptzq{…|†Š‡‘•›’œ ¦§«±¨²¶¼³½ÁǾÈÌÒÉÓ×ÝÔÞâèßéíóêôøþõÿ    $*!+/5,6:@7AEKBLPVMW[aXbflcmqwnx|‚yƒ‡„Ž’˜™£š¤¨®¥¯³¹°º¾Ä»ÅÉÏÆÐÔÚÑÛßåÜæêðçñõûòüý !'(,2)37=4>BH?IMSJTX^U_ci`jntkuyv€„Š‹•Œ–š —¡¥«¢¬°¶­·»Á¸ÂÆÌÃÍÑ×ÎØÜâÙãçíäîòøïùýú$%)/&04:1;?E<FJPGQU[R\`f]gkqhrv|s}‡~ˆŒ’‰“—ž¤”¥©¯¦°´º±»¿ÅÆÌD H N E O S Y P Z ^ d [ e i o f p t z q {  … | † Š  ‘ — ‡ ˜ œ ¢ ™ £ § ­ ¤ ® ² ¸ ¯ ¹ ½ à º Ä È Î Å Ï Ó Ù Ú à Ð á å ë â ì ð ö í ÷ û  ø           "  # ' - $ . 2 8 / 9 = C : D H N E O S Y P Z ^ d e k [ l p v w } ~ „ m … ‰  †  ” š ‘ › Ÿ ¥ œ ¦ ª ° § ± µ » ² ¼ À Æ ½ Ç Ë Ñ È Ò Ö Ü Ó Ý á ç Þ è ì ò é ó ÷ ý ô þ     ÿ     ! " (  ) - 3 * 4 8 > 5 ? C I @ J K L P  Q R "R ÿÿÿÿOutliningState116$œÿÿÿÿëäOutliningState118$š—ÿÿÿÿ»žOutliningState121$™ÿÿÿÿÿÿÿÿý.OutliningState123$˜ÿÿÿÿ¦N#($& '7(,.$/ 1.*2446&;=$@B$EG$JL9M?8N*TV2SWQXY[:P\4^`&eg$jl$oq$tvcw?bx*~2}‚{ƒ„†:z‡ŒŽ$‰O‘ÿÿÿÿ !!ÿÿÿÿÿÿÿÿ˜'¡ ˆ¯CUnit\Headers\wxWidget.h3Y¡4-. '. /12ÿÿÿÿ '. upOpt=;X{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - DLL|Win32.fBatchBld=;C{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - DLL|Win32.fBatchBld=;L{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Release - Static Lib|Win32.fBatchBld=;J{0CA5681A-DDB0-4E57-8EB4-351924679FD0}.Debug - Static Lib|Win32.fBatchBld=;4{C6339A24-F233-4D77-8087-0C97E73A81D7}.dwStartupOpt=;X{C6339A24-F233-4D77-8087-0C97E7›6œ=ž '¢4£=¥<¦$¨3©.ª6«'­6®=°²%´<¿4Ã:ÄMÆEÇ1É9Ê;Ë<Ì4Î<Ï)Ð,ÑEÒ.Ó2ÔÖ8Ø6Ù/Ú0Û ÜÞ ßàAäBåDçCèIêJëFî@ð4óJôion=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] ’System.Collections.Generic.GenericEqualityComparer`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neut†c:\dev\archive\CUnit\CUnit_neXC:\tools\wxWidgets-2.6.3\includRc:\tools\wxwidgets-2.6.3\src\msw\app.cppBÉ|¤0"/:;O@C4FH KLU!Vbj_DkoNq5u)vy;z{3}~Q€‡O‰’B•š“ž¡°¶G·+ŸÅ"ÆÊÓ%Õ7ËÛÞFß.Üâì$î/ãòó   '2*+4./342@55>?0FG1MSHT#N˜™œ¡Ï%Ô×<Ú5ÝÞã!æì îÕñòõöúý6þû   9&- +,/7056:728@A E3H IKKNn+p v;wƒ6„Y ’J–F™š›¢5£ ¡¤³.´¹!º ÄÆ$œŸ7 ¢"£¥N¦¨ ©¯ˆ°:´¸¿Á*³Â ÉÊ ÍÎ5èê=ëî;ïñ7òô"õöç ÷úûüý5=  !% !  2)!0"#($'<().*3C+FP5DBQ R/S22 TU+V5] _=` c\ di-j5h'k=l'pg qt7v1y z| €‚†I‰&Ž’ ”'•H–'—E˜ ™.š {›w!œ H¤¦2§ ¨"ª¥¬­¯³´·8¸2¹ º»½Â&ÃÄ(ÅÆÇÓJ×'Øàâèáéí:î3ï4ðñòøúûüÿ+P1B?".#&.*+1,-+.2/349597:;-<@5AB+CF0IJ)KL#MP9QS1TU=WR X[%`!bgaJhk o#rs!{$}y ~,x‚=†‡­®-²µ¶·S¹1»¼À ÂÃÄÌ ÏÐÑÙ ïðù;   '(''" "#(ý) *,+ú ,- ]bd@e$g$hjk;pw{|I}‚"ƒ+u†‰KŠ"%‡’s’–"ž¡/¢.£§¨&«2¬'¯L°%³\´'·¸(»¼'¿@À&ÇÈ Ð1Ñ"ÒØ&Ù Ú3ÛÖ#ãçHèé ì1îïñòõ ö÷ ø ùCúô ûÿK#  4 !@' '! "%)/#0§©° °±&²³ÊÕF×ÌVX_W_cpqt uîîðñóùÿ      C& ' ++ D- . @0 -3 > G ƒ † <Ç Ê é  ñ ò  %  " 4" '# $ 1% î & )* g j ‘ .• ­ ° ë Aî ï ð ñ ô :ø û "ü                 = 2> ? 4@ A 3B C 0D @2 F ! K ÿÿÿÿ ¦ † <Ç Ê é  ñ ò  %  " 4" '# $ 1% î & + A )* !F H L M O z €  † Kˆ OŠ )Œ  ‹ K j ‘ .• ­  *Æ Ç *Ë Ò *Ô ç /S XIab v{~Œ=Ž« §0¨¬,¯4°±³2­¶C·¼½À?ÂÈMÊÐDÒØ:ÚßLáçèEñHòö-÷û L  4 eý  " '  ; )> OutliningState122$–ÿÿÿÿÿÿÿÿ5ì4OutliningState119$ÿÿÿÿÿÿÿÿÿÿÿÿ¤*OutliningState117$ÿÿÿÿÿÿÿÿÿÿÿÿ½äOutliningState127$ÿÿÿÿÿÿÿÿÿÿÿÿš •±(µ·(³7·Á6ÂÃ%ĽƻÆÎOÐÔÞ"àãêMø O7dj Ÿàâåí÷%(-.7=@JRTX[^€ƒœ¢6¿"ÂÆ!ÊÎ ÑÕ ØÜ)âé(ëò'ôû'ý + *)) %2'/1190;C0EMOQW[#]`be(giln$ptx…¡è,êò#ôýÿH. 0468@BDGKMU_fhlsuy|H€¢°*²·¾ÈTÞ2àá.âñôöùýÿ% # &),.#13"68+:EGI*X["]`jm p{„†ˆŠŒ–˜+šŸ¢¤&¦«ÌÏÐÓïó ýø   !<$ %-4;HJQ6U^1`j4ls/uy/{}4…5‡‰3‹Ž=“,•—œ ­¯¹»ÐÒ êö," &, ./ 1 +44(5(lt*v~¹Ã"$'&+.0#257= DF(?GMOSV[_c}ƒ… •ž ¢« ­´ ¾ÁÃOÇÓÜ àúü  $*13J`K#;m+p‘&„•*˜¥¨ÎÐÞâä çòó?ú ý 2 4h jAkop!rz­¯$±´¸º½¿Ëpc:\program files\microsoft platform sdk\include\winnt.hËJd% g#)*,(0&23%58;>(?=@A4CFRSVY^Ve-fgh-l0mnokp-t0uvwsx&|&}~'#{€ƒG„/ˆ/‰Š‹‡Œ.0‘’“”˜1™š›—œ ¡¢£Ÿ¤B¨3©ª«§¬°/±²³¯´¸!¹º»·¼-ÀÂÃÅ¿ÆÉÒÓÕØÚ4àáâ äçéë$íîõùû ý ;  B %'(7:=8D L[NO0QUW_be"fgh o'pq)r&kxy€œ¨+ª«­°µ¸•»=¿ÀËÕÖ ÙÜ ÝàØãç è ëî ïòêõùþ  E!%?@ISYcistuv"wy'z†+‡–—šŸ¥ÌÏöùú ¢ú  ! #,/) /;=ADGJNRV[dz£^¤¥/¦©,ª«,¬¯´¸º½ÁÄÌÓ-ÔÕ#ÖÚVÛàãý ^dIžÈÉãôû +<>BC[^hj0kltS¢D¤w¦°       J      9   ! - / + ? c e y œ ¨ ° Ÿ ± ´ · » ¼ J¸ å è é  ( é   ë ÷ ý ð *          " &) * & * + ; +ï > B D L N R T V j "o y } … ‰ ™  ¡ ª ­ ± ´ » ¾ Ç Ê Ó × ‡ Û í ò ó þ  ì ÿ é  æ  C ¼ SÀ 4  7 âéê ìó"÷þ"  "0;?I[]acgiqtv{€†#‹ŽÍ%¼å)çõ'÷ !I%&I*"-1 37!9< >>@A>C^Dc8fDg8hDi2t@u€!ƒ‹ •˜$“¡¥E«9¬E­9´Eµ9·7¹9Ð7ÑÞß âaãçèí ð ëòêøþ  4!)*TV ZK[ _L` eIf juknboq>ruw} € | ‚„ ‡ˆ Š ƒ ‹ z Ž ‘˜y™"ž )¤©¯±¿Á ÄÇ ÃÊÏÑßàòô45bdxy™›¥¦#$ '* &, 1E267%9=BDQS+\dhn&p|~€$‚… Š"‰ –›"•œ¦¨%±¸%»Â Å=ÌÍ=Ô ØÛ,Ü^ß'×äçé-ëð)òöø( #' * &-0 3 .4.%57>/@C+FILS)UZ\^`uwŒ ŽG‘G“–/Ÿ¥4§­2¯µ,·»ÀÆÇËÌÐÓÕ%×à)ðù (9 $!% *-&'.0B+DR^_$T` b-de4g0kMlot0w[x'v}&‚‡c‰ •™#Ÿ¤(«D¬$¦­)³Ù!Üô&°õøþ ÿ      # & .  3 7 1 8 / 9  ; `Ÿ ´ Ó Ö × Þ Ï ã È ã &ç ë &ï ó %õ ø ú !! ! !)!!)! !!! "!.!/!-2!3!-6!9!;!H!J!U!W!]!_!f!m!*|!„!Œ!!$‰!–!-«!±!+³!º!¾!À!Ç!É!Ó!Õ!0¼!Ù!Û!Ý!ô!ö!$n"r"‰"‹"½"¿"+¶"Â".Ç"Ê"2Ô"Û"Þ"á"@ç"þ"7####!###+#.#6#=#O#Z#?#[#]#^#a#b# e#j#l#p#r#s#t#u#w#}#¥#§#4«#N¬#4®#N¯#4±#D²#4´#I¶#Â#Ä#Ê#Ë#Ð#Ò#Ú#Û#Þ#â#î#ñ#,õ#Uö#$$$ $($*$0$3$"5$<$">$D$#F$K$O$Q$V$Y$[$]$f$i$k$m$ t$x$z$|$!‚$†$ˆ$Š$!—$œ$ž$¤$0Ä$NÆ$É$Ê$)ô$%%%)% %%%)%%%%)% %"%$%%*%.%1%3%#:%>%@%B%%C%K%)N%o%+y%z%w%z%{%Š%+s%Œ%S%C˜%›%œ% œ%ÿÿÿÿÍÐOÒÖA×#ÔôÎô÷ú"ÿ ' ûÿÿÿÿ.€¥¨Oª· ¿Ã"Å Í6¯Ýàîñþ8Þ¦    %3A81D7}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{C6339A24-F233-4D77-8087-0C97E73A81D7}.Release - DLL|Win32.fBatchBld=;C{C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - DLL|Win32.fBatchBld=;L{C6339A24-F233-4D77-8087-0C97E73A81D7}.Rel $,&##)*+!.1$567/:;>AC?HK"LIUe\wx\wx.hm³nsST V X[ÿÿÿÿ XC:\tools\wxWidgets-2.6.3\includnC:\tools\wxWidgets-2.6.3\sample=;E{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Release - DLL|Win32.fBatchBld=;J{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib|Win32.fBatchBld=;X{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=Cõ@ö øCùEú@ûIüCý@ÿ)6)8! 7 a  O) C-!$$'*:034567:;<=%-B@FIJO!QRUVWX+C_ +_:ehijkl%bs@w}~ƒ!…†+t`’˜>›;œ>ž>Ÿ >¡;¢>£¤>¥¦>§¨>©ª>«¬>­®>¯°>±²>³´>µ¶>·¸>¹º>»¼>½¿CÁ2ÂCÃ2ÄCÅ2ÆCÇ2ÈÀ2ÈBÊ/ËBÌ/ÍBÎ/ÏBÐ/ÑÉ/ÑKÕ-ÖK×-ØÔ-ØJÚ*ÛJÜ*ÝÙ*Ý™ßâã3çèðö邃„…†‡ˆ‰Š‹ŒµŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´þÿÿÿ¶·¸¹º»þÿÿÿ½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌ ÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàþÿÿÿâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿÿÿÿ‚ƒ„þÿÿÿ†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžþÿÿÿ þÿÿÿ¢£¤þÿÿÿ¦§¨©ª«¬t®¯°±²³´þÿÿÿ¶·¸¹þÿÿÿ»¼½¾¿ÀÁÂÃÄÅþÿÿÿÇÈÉÊËÌÍÎÏÐÑÒÓþÿÿÿÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿÿÿÿ,c l Em s t y  € z 7† ‡ ‰  ) >• ¤ 9¦ ´  µ º :» ¿ +À Ä É *Ê Å Í 6Î Û Û DÞ â Eã ç ÿÿÿÿß=ãæçð2ò+ä$()273D+EF+GH*IJKO;PQ$RT;UV$W [)\](^†!‡ˆ‰ƒ{ ’ÿÿÿÿý3TVW$F[ [ÿÿÿÿx\init.hR÷ /Tc:\tools\wxwidgets-2.6.3\includ^C:\tools\wxWidgets-2.6.3\include\wx\apptrait.h˜Vc:\tools\wxwidgets-2.6.3\src\msw\frame.cppŒ€d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestDB.c*dc:\dev\archive\CUnit\CUnit_cvs\CUnit\configure.in nC:\tools\gnu\contrib\groff\1.19.1\groffe\wx\app.hú-    '"()"+9>\c:\tools\wxwidgets-2.6.3\include\wx\msw\app.hÑ®t 0-.4)595<HAIG.JMNQ6RYZ4^abe!fg&húÿÿÿÿÅÆÍÎÏÐ%ÒÓ&Õ×ÙßáæçîHð øý%þ#ÿ%%  K'3C&'5782:;<=>5?A\BC4DOutliningState146$·ÿÿÿÿÿÿÿÿ`æOutliningState147$¬®ÿÿÿÿ|(OutliningState148$ÿÿÿÿ¯ÿÿÿÿÌ OutliningState149$ÿÿÿÿÿÿÿÿÿÿÿÿ­,-Zc:\tools\wxwidgets-2.6.3\include\wx\gdicmn.hÇ£„ 0 0Ts,tv3w y~V…†+‡Š–˜%š›%ž6 ¡6£¤6¦§'©ª'¬­%¯²´+¶G·¸@¿ÀBÁÄNÊÔÕ%ÙÚ!Þß#ãä å?æ çéíîðñòóôKõ(öýÌN%0!%#$''()*+(-.23N5OutliningState128$• ÿÿÿÿ²OutliningState126$ž›ÿÿÿÿljOutliningState124$ÿÿÿÿŸÿÿÿÿ?OutliningState125$ÿÿÿÿÿÿÿÿÿÿÿÿ¡Øi#j {ÿÿÿÿà3›?OAKRVWX[_`aMbe;fi4kn s#tuv+ˆ'“)”•+˜™,œžŸ§©9º¿EÅÉÖÛLãæ3îs\checklst\checklst.cpp0¢mW   $B%). 670VWgh|"}‰*•˜›@Ð6Ñø?ùý@þI K JC!@"üý%p#.-*.6H7?@HIQ/R[8\efnow5zŽx”ÿÿÿÿ)|"}!\c:\tools\wxwidgets-2.6.3\src\msw\settings.cpp<ÖCñ#2$*!+4=>V%W[%\abil,n‹CŒ ²@µÉ;ÊË&Ì@jÒÓÖ ä@åãDè êKìí/îïð-×ÿ  G :!"+…ˆ Š‹T† >¡¯°³¹ ¼¸à"¶æ$´æÿÿÿÿ7€‚„…0†Vc:\tools\wxwidgets-2.6.3\src\msw\utils.cpp“ˆ2B,/a36>?i; @CCFprstu0w&yz k~$„4…$‡ˆ<Œ•–O˜«G¬­L®¶1·ØOÚ&ãå$éêîïòó ÜùúOÿ F * -J$+( !,$%()*',=@OBb>eijmIq$€„ †‰BŠœ žÿÿÿÿ#è0ìîïñøGùþHÿIL  @?!OutliningState132$ÿÿÿÿÿÿÿÿÿÿÿÿ_dOutliningState134$ÿÿÿÿÿÿÿÿÿÿÿÿÐ OutliningState136$ÿÿÿÿÿÿÿÿÿÿÿÿ|öOutliningState135$£ªÿÿÿÿÍñô;øùûüý)þ#ÿ3  -5V-C <!#$'.)+12GH#CKLON P(,O- / BCEH&TW^g%m1r.s'ouvBx'{|~=‚‡ˆ&‰Œ! ML” ——˜™°ÿÿÿÿ¥M©¬7Zc:\tools\wxwidgets-2.6.3\src\common\init.cppSoC¯ /I1- 3'+4.(47K;?@AB<EFJ S*TOXY_Kbcdijklepqrsxy+}~€…Œ1Žˆ‘•–œ7Ÿ™ †¤¤­7°»/>06J7T?U\C]aEbf-g›2ž£3£<¥§¤§ÿÿÿÿxGy’0”˜XYV^_c&dhilFmy†:‡&z‹£A¥¿Â2È ÎÐ4ÀOutliningState129$ÿÿÿÿÿÿÿÿÿÿÿÿÅÎOutliningState130$”°ÿÿÿÿ>pOutliningState131$ÿÿÿÿ¤ÿÿÿÿQOutliningState133$¢¥ÿÿÿÿb¬ÔÕØÝÞßáVC:\tools\wxWidgets-2.6.3\include\wx\init.hR÷ /35JNPQSe\wx\build.hàýŸò $5&'N),!-.$/2%34"5:J<=)>?MAB*C¼Ê®ÊÍOÑÕ5Ù Ô,ÚÒßáíðóú=ý'3#4$1D4 0(5+î:)`c:\tools\wxwidgets-2.6.3\src\common\appbase.cppäÜø2);*-F.12V5&7;/< ==>: ?E(FCGBHINGOV,d€M‚„}…wˆ‰Ž‘˜?’¢£¦§ª­Ã«ÈÌ6ÍË4ÎÑ,Ò\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cppqp ò: ÿÿÿÿUnit\CUnit_new\CUnit\ 'ñ  "+"-'&8B˜ÜÝã7ä/04+5RS\E]mnt7uz{^C:\tools\wxWidgets-2.6.3\src\common\string.cppfˆ­")*608 ?BHLCPSOUZ=\bzE`~‚ƒ„AˆWˆ‹–˜™š’ž‘8£¤!¥ªN¬°³:®³¶1ºK»Ñ@ÓØ2ÙÞß=ãæçð2ò+ä$()273? @0E7FS2Tb‹7Œ@‘%d™,š *¡§7¨®=¯»K¼Ï*ÐÖçAêA×øDùý3þB'E(,4-BCCU,W[B\r,txGy’0”˜@™¥F¦»/½Á?ÂÕâBçë ì5×õ=÷ûAþD= D$0&-8/6G8HIM-O„…:‰JŠ˜¨˜$žŸ  6¤³1´¸1ºÁ6ÄÎ*ÏÔ9Öà3›âåNëò&ôCð3$í$+&-F)UV2W4X]']%_ci*lxz)€„j„‡7”™1› š ‘¢¥«®.°>¬¸»-¼2¹ÄÇ-È2ÅÐÓ-Ô:Ñàã-ä:áðñô$õù$úþ< *!%*&-1203/6M.NWe7f&Xm.m4qD‘–J™?’¬'®¹º-»'¼Ç&ÉÔÕ-Ö)×ÝÞ*ß(àéê*ë(ìõ- 8ø !*+45@%AHILMTU\]3f#gh)jE*Ÿ¨©­,®´(¶¼½ÀÊ)Ë*ÁÎØ)Ù4ÏÜå)æ$Ýéê î7ïûCý2 & (+D->=> DG Je;gKItv%x '‘uÈ-EËÍØÚÜÞß3àèéîñò9ï÷úû:ø$,' 6A)2*289':6;F!H+4\]cekmvx~)ƒ'…‘“ )¤±9²¶¡¶Eºé>ë N / @ FA M2 G *I Q ;S a ‚Mƒˆ‰”C•­®»P¼ÔÕÙ3Ú (AB?CDefj\‹+Œ¢)£¯°àe\wx\debug.hl¸åÈ    $&%+-*.0H=tu{~50È ÎÏDÑÔØ+ÜÝá+âçð0ó;ô õ;öñ÷ ùÿÿÿÿle.a×(ÕÛ*Êà4æéáìíðôù4ñ-!"&(3<‚ƒ„…†‡ˆ‰Š‹ŒŽþÿÿÿ’“”•–—˜™šþÿÿÿþÿÿÿžŸ ¡ì£¤¥þÿÿÿ§¨©ª«¬­®¯°±²³´µö·¸þÿÿÿºÐ¼½¾¿ÀÁÂÃÄÅÆÇÈÉþÿÿÿËÌÍÎÏþÿÿÿÑÒÓÔÕþÿÿÿרÙþÿÿÿÛþÿÿÿÝþÿÿÿßàáâãäåæçèéêëþÿÿÿíïðñòóôõþÿÿÿ÷øúûüýþÿA=8KVEW!LY4Y3`w…‡'x;œ «/^°3³´µ¹"±¼\¼ÅË@ÀÑÜ:Þß íó ý  " )5Ö+3Ó014%9<R7ELO%KOV ["` g €ƒH‡P¢F¦5¦©4¯º¾¿ÁÄCÅÈ'É ÍÐ ÖH×/°Ý!Þãäë;ñ2øùú.ìýþ !5 )5 =?58MNOTUXY"\ iE6p~ …3ˆ Bq˜¡¥©=¬I™·º,»H¸ÁÂÅ4Í ë ï4ð5 "RÆ+0-BC>I3N^"ag&Jlÿÿÿÿ$3/+09VOnTreeSelectionChanged(wxTreeEvent& event)·Ð:lÂдB $JÒ‚c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\TestRun.c++.A@CU_g]bd>ef=g chl/mo.pr-su/vx.y{.|†5‡kˆ ‰¦ \§ ¨©Nª­ÿÿÿÿive\CUnit\CUnit_new`C:\tools\wxWidgets-2.6.3\include\wx\setup_inc.hž˜¦"ÉרÜÝà)áå&æò&øý öý4ô #=$) 07167:)@E>LM%GP;PSV i q9[ „ˆ‰Š;‚9–:—W  ¤¨@ª?¦À.ÆÊÁÊHÏÓÍÓÖÝ0àä Þä>çë8îòìò:õúBüÿûÿ(A Q N;##&) *67?"CG2KLNO PQ0M RASTUVW X I["`e}~$j‰@‰Œ ”›'’ž¥¦2¢·¸ ½,ŸÃÌÍ'Îýÿÿÿ‚ƒ„…†‡‰WŠ‹QŽ‘’“”•–—˜X›œ¿žŸ ¡¢£¤½¦§¨ª4«¬¶®¯°±²³´µ,·¸¹ºÕ¾]ÀÁíÄÅÆÇÉwÊËÌÍÎÏÐÑÒÓÔkÖÞØÚ©ÛÜþÿÿÿîßâãäåþÿÿÿçèê!ëì òïðñóàô|#øùúûüýþÿáÏ<ÑíÉñö0ø%ÅÿÄÿ#'((2- /03&8*LLÿÿÿÿ>K;KN*RV:Y U3] S`hijk o(q!btu†‡‹Œ •,—œ­ ±)º#¾Ä»ÄÇÊ*ËרâÿÿÿÿZc:\tools\wxwidgets-2.6.3\include\wx\wxchar.h@„Ù  0 p2 -#172/ABKCEaN Q-S VZklnIoqYr| }6~€ ‚ƒ „…†<‡‹8Œ ”—˜ ¡¥¦› §°"³´Ô/Ü Þ âçð)òõ)÷ú)ü0 +  ! C*D E$FW^ _&`!l*ot,vx-{ |)~ w‡0‰ Š%‹”•ç)ñ    ;Tc:\tools\wxwidgets-2.6.3\src\msw\main.cppdï„î0()$*0&1- 25!8;<T%UMHMYZ*[mr ‚.…=sŽ šM›œ ¢?¥O‘©©±Ë'¬ÐÞ9ßYÝà=Ùâ%ÑädäNêï1çï%òøåøFú*ÿ# D"JJMOOV?XY[c&gp*r%Tƒ„>…‹=™œ¦§©H—®’® ˆ²†²#ý´·º$¿Ã#ÄÈ»ÈÿÿÿÿTc:\tools\wxwidgets-2.6.3\include\wx\log.hF˜ï  0":#8%9?@AB>C J$NVdegn?otOw }~ƒ†ˆ‰Š/ŒŽOutliningState138$ºÿÿÿÿÿÿÿÿáOutliningState142$ÿÿÿÿÿÿÿÿÿÿÿÿÆOutliningState143$¹ÿÿÿÿÿÿÿÿÆOutliningState144$§¶ÿÿÿÿ>pI‘š›*Ÿ£¬­ ¯µ"·¸¹»¼½ ¿0ÀÁ0ÃÄÅÆ0ÊË1ÍÏ/רÙ3Û.ÜÞßáâã%åæ#ëì'îðñôøúüýÿE8  yO ()+,-.."%:":">LM]`sxy t}~O…>‘#’“•–˜™!‡­'¯· ¸ º½$ÊÐOÒ 48ßàý K3:%(*-/"401C8;G<@OBG/KL/QDUV2X\] _ÿÿÿÿ,Ûä Ùäé;íî%ïò&ó ô-õþÿÿÿ  ¶ l… !"#$%&'()*+,-./0123456789:;<=þÿÿÿ?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_þÿÿÿabcdefghijklmnopqrstuvwxyz{þÿÿÿ}~€ð ö:çù4üú6 3'2(> + +0412345$.8=9>B?CF GBH!IJQR5SY/Z.X[\^JVaDaÿÿÿÿCF GBH!IJfC:\tools\wxWidgets-2.6.3\samples\widgets\widgets.hÍoÍÐ )#-.#R]`{V^£.¥¶=¸ÄÆË!Íàéë"âò"ôúûü A 6\c:\tools\wxwidgets-2.6.3\src\msw\toplevel.cppùtu0':&9124-!4<=@A0KLHLOXY'Z['\dwx…3“” †—šH›¡E¢I£;¥¨­·¹6¯º½ÃÇÉ4ÄÊÓÕØKÙÝß õé* F˜$),*5;)=A C J-Nx>yw^c:\tools\wxwidgets-2.6.3\src\common\gdicmn.cppˆ9õ½ 0 !  ,-1!25 607:;>@EGKFLPDSWEX\C^<cx+y€,‰Œ)Š¢ §@¨ µA¶/£Ã#ÄË-Ìå+æíîõ%öû&ü $mt# wx{€N|™ŸN¡(¯¸½J¾À1ÁÇ4ÊË9ιÔÕÖ7šÙ;Úéêíð8õù0<î  ! !#(3w45:7)89#:;>=AD@QHLwNO>QIRSFV {|¥¦­®±²¾ÀÌ$ÍÑ'ÒÖP×ö÷,K (/)-3A6.>(?C+DH `!b_Gde-g jn=O’.“—1˜œ£¤ª«±$²½ÿÿÿÿTc:\tools\wxwidgets-2.6.3\src\msw\font.cpp…¹æ¨0#%/WX0Ylr*{€B…,†“œ¡¢§¨¬­±²·¸½¾ÃÄÎ ÏÔÕÖ$Øä.åñòö÷þÿ.'- !/"$hEFM1Vgj mr)sEhvw{'|‘ž¡¢¦©ª$§¯'°·(¸¼*½Ç&ÈÌ(ÍÑ*Òô.õùüý2ú< 2 5253758< a@b5=s~G€y „;tŽ4â%ãúûþÿ@ ($I%. 3478;@;A<G/HS$TXY]^bcqru(v~2‡"ˆ ‘™"š¢2£«+¬´1µ½>¾ÈÉÌÍÓÔØ"Ùßàæçíîôõûü$ 3 ÿÿÿÿ!ÿÿÿÿ>QfC:\tools\wxWidgets-2.6.3\samples\widgets\gauge.cppº¶®&4ABOD"LMl oF‚ƒO…šOœ9¡ó%ôøùOûý$$%O'E)Zc:\tools\wxwidgets-2.6.3\include\wx\string.hkøùY0/$%*#-/.12"ab%df0jqKrstuvwxyz{|}~€ ‚ †0‡ŽN6h ¡.¥!¦µ ¸%Ä*Ç#ÉÍNÏØÙÜÝßà1âãåGæ:çêëBìï'ð$Ñô÷,ø%   11M-.-1>A8B!C!D1E$FRG$HAJQY-Z1X$[V`1a"cef{|})~7€‚„…0†E‡Œ/Ž<(‘3’2“(”A˜š/œEŸ, (¢1£2¤&¥+§&¨Aª¬°±<¸ : <*= ?1A CDGKLNOQRTU(WX#Z[\]%ab)fgklpq*u{*~„"†‡(‰$‘—'š›"žŸ*¦¬7°±N³·ÁÂÌÍÚî,ñõ(ö"Ýûü E !W[ tÿÿÿÿ`c:\tools\wxwidgets-2.6.3\include\wx\msw\frame.hçpP 05#259#>JEN2O.P%Q)RB)RU2VaBcfHgxyt&z‰ŠŽ/’”˜(™4›œ¥ ¥§¨ÿÿÿÿ‡;—›¥§>ª:9­Oµº»¼9°ÃäKêõöü0ÿ *$X%W&*3-4.6Ê36L9+4CDG4HN>^"_esAw)O“@ž¡I¤1”­°±²:³'®¶/·»¾¿ÀÄ&¼Ç#ÈÌÍÐß)áï&ðü- )   2L&I'L0I1?Ñ;<?5@D2IV=EYa0bf2gpu\v8Z{ƒ„=—™:~©|©®²½0¾0³)Ó×'Ø9¬ÜÝâçè<ã+#(+)W$-./2<3G4L8<0A"DEL&MT&Uk'm’ÿÿÿÿÐß)áï&ð\C:\dev\archive\CUnit\CUnit_new\VC8\wxWidget.i”(gÿÿÿÿI'L0^C:\tools\wxWidgets-2.6.3\include\wx\ptr_scpd.hª/x)),-5/¹ÀÁOÄÛÿÿÿÿ=Vc:\tools\wxwidgets-2.6.3\src\msw\frame.cpp+eø¼0$',-40 36$8;<B!DK&LW–—2˜¤2¥ ¦3§£ ¨±²µ¶4¹"¾¯ÃÑ&ÒÖ;\c:\tools\wxwidgets-2.6.3\include\wx\evtloop.h6Љï 0!!"#3J m 5p t  œ 0 › ž  ¡ %¢  ¹ N¼ ± ½ À à Ñ Ó Ð ä ê Dì ð Jñ ý  é   ( ! ?" % M' 1 > O HQ +R Y ] p  ˆ "‰ ” <• Ÿ !¡ ¶ @¸ ½ G¾ ¼ Á Ï Õ à >â ì ï ÿ      3 6 C N X 'Z _ j } :~  Y€ ˆ +‰ Ž 2— m š   >¡ ¦ ,§  ´ È .Ê V Ñ Ò × *Ø Ü ß 0à å ë :Ý ò 0ó ÷ ø ý $þ   ;  =  C D L M S : Z "[ _ k +l o Dq 2e “ ” › « "° ± ½   /Á  à Mž Æ Í Ñ Ò Ø Ý 4ç î ð ó Bô è   5 ;Ë  Ç   % & ' 9 , œ , / 2 ? @ 5 D E H B3 K N )\ ] ` @L c d g k &m n 7p /i {  ˆ !| Ž  ’ 8• ž ¡ 6¢ ¨ © ­ þÿÿÿ‚ƒþÿÿÿ…†þÿÿÿþÿÿÿ‰Š‹ŒŽ‘’“þÿÿÿ•–—˜™š›œžŸ ¡¢£¤¥þÿÿÿ§þÿÿÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçþÿÿÿéêëìíîþÿÿÿðþÿÿÿòóôõö÷øùúûüýþÿ ² ¶ A· µ » -Ÿ Æ É Î Ò ,Ó Ñ Ø Û KÜ .Ç ê ë î =ï ö >÷ þ 42$2ÿ (.G4=D>@#ABCX[-z9+€„2…/‡ˆ)‰ %¡’®°µ=¶¸0¹%»>¼½¾·À/³ÇQŽÌ×5Û+ÐïðòFÎ÷øû5(ü'/I""'F<%O@PW[ n)Xvz|…1† Š$ŒNx“ Ÿ¥8½D¿&”Ö×Úê ìÛó÷øùþ.õ-9#%81.2<BID>ZB[mpAz.€.n“"Xc:\tools\wxwidgets-2.6.3\src\msw\window.cppëFló0%1245<=D#EG'H@ IQRUVYZufhkltxs%z0} ~…†‡ˆ"“'”•'–¦0§±N³º/½¹¾0·ÇÍÙ?ËçÈçë ì!íöêöùþÿ7h`!X:Y\G]Saij3klr.sw'ˆD‰‚(€ ¯9°D¢ÂIÄÈÉÌÞáç!èÍë ýñ/ $í.4."CDG5MN4S ]Had&gm-o#br%t~ˆ:ŠŽ4‘§ ¨%¿!ÀÐÒÖØÝ2Þâ ãç"èð"ñø1ùþ-ÿ!$"#$3/+09<D=H&I$:NORU+VW]4S`)ahi#jq's{/}+k„+…‰AŠ´)µ,£¼Ï`ÑÒ.ÓC½Ö<×ì(íõ(öþÿ$*!526C$DJNFPR-TU-W`)b6Lmnq{|†A‰š0œ0r§ªF­°!´¹(¼Ð*Ò6ó ù>¨ÿ    6# (!&",8<0.AD5E4BHIQ \+]RbJy1~1€=c„1Ž5Œ…’“—:™£˜£¦2§ª.­A¨°±´2·¾µ¾ÁÄÇÊ"ÅÏÓ<Õ+Ñçë9ìï ðø1é / !:"-I./ ;2<K2L[`!aw:x_N|ƒ„L]‡Š;‹“.•Cˆ™š¡«(¬O¢ßâMíúü 8à $'"()1*+5,%/33OPS]^ik$[pƒ„…!†ŠF9q™T™œŸV §±² ¸7ºÀ.Âï!ñõAöù3û 5 *$E$#0$ 'O)=$@HGK N”›"œ£*¤¬,­·»E¼ºÔ í%ïúIýöM¸, #$%GF!JKNQX]9^p;svwƒ…/‚ˆŒŽ+‹‘FO—˜›¬+­³,¶.ž¹»0ÄÉAÊÏÔÕÝæ4çMÅùºùþ Jü% );*#)+7C94>BDAM=SWZVrswDTzŽ$‘—˜&{¢£"¨¶&·»+¼ÁÂÃÄ7¬ÐÑÒØ!Ú ÷GøÿLÓA$?%8<"=E.GNNOV&Xe*g>zC:~‚…2ÑÒ×MƒÚÛÞ +79à*+.5%6F/IJ+KTLPQLR‘=’Ÿ9¢2SÏ1Ð.807U:3<!@AUV_df n;pmKu/z ~…%Œ ’1`›žBŸ!¥µÇ3È4·á5œá—-˜›ž+å}ä} ‡ “˜:€Ÿ  ¡,¢§0¨º¿ÀÁ¼Ç8ËÚ4ÊÚ4é7ìJÝø4û-ü0ù@š› êëìíÿÿÿÿÿ2.6.3\src\common\strin#á$B&CMN]ý]ÿÿÿÿýgÿÿÿÿhC:\tools\wxWidgets-2.6.3\samples\treectrl\icon1.xpm¢È“ÿÿÿÿ0ABBE FIMJKL S$Z[4\ OutliningState151$«Áÿÿÿÿ­üOutliningState156$µ½ÿÿÿÿµ*OutliningState155$ÿÿÿÿÿÿÿÿÿÿÿÿºâOutliningState154$´²ÿÿÿÿÆP4,6790;<>!DEIJ"KLM\]RdNdgn(rvx"oƒ ƒÿÿÿÿfC:\tools\wxWidgets-2.6.3\lib\vc_lib\msw\wx\setup.h°Ó±»"žŸ îïðñ  JBHIKÿÿÿÿRc:\tools\wxwidgets-2.6.3\src\msw\pen.cpp{×b­ 0  %/40<=BCDEHIL7N^0_oÑ:ÒÐ Ó5¼U¾Å8É1Ê)ËLÌEÍ2Î2ÏÑ/ÔÙÞßLã2äGí9î$ð<ñMò9óMô<õD÷ùý  CB23E!1"5')*B,F-6.H556=%@#õYÅY\N_c,dgMik=qt0w{|)‚%ƒ%„%…†8‡ˆ-‰-Š&‹NŒŽG”•#—šCž;¡£¤S¦#ª«Ÿ«®¯¸½¿ÄÅÆÍÎÏÐ%ÒÓ&Õ×ÙßáæçîHð øý%þ#ÿ%%  K'3C&'5782:;<=>5?A\BC4D6EHI4J=K MOutliningState153$ÿÿÿÿÿÿÿÿÿÿÿÿÔf OutliningState152$ÿÿÿÿ³ÿÿÿÿþ’OutliningState150$­ÿÿÿÿÿÿÿÿ" OutliningState145$ÿÿÿÿÿÿÿÿÿÿÿÿ:ILUVZ[^_KY `0dec f€‚4ƒŒ–2~™ž¢¿:ÀFè0›íòô4õ0ð'(ik'ljx,{“ ”•–š7› ­A²ºM»Ä5Å—Ì*|ÑÔ>Ö5ÒÛàâê ëõ5ö÷5ø  8è -")@*ãF9ÞJKNRTUd1PgkIlmopx5i{|K€ƒ„Ž/;¢£¤ ´"¶ÌÍá,ãéGî . '"(?¥127I"NEW8Zt$u?\ˆŽž%Š£§©ªÝ:¥àáæ"çìíLñô0øù/ýò  Q "#„‡CŠ›)œ'ž­)¯Ÿ ±,…½¾õöù-úþ-ÿ  M#"%I MNQXZJV 3¡®R®Æ(Ê3´×¯×ÚåMçÿÿÿÿ^C:\tools\wxWidgets-2.6.3\include\wx\apptrait.hßÇL2      þÿÿÿ !"#$%&'()*+,-./0123456789þÿÿÿ;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZþÿÿÿ\]^_`aþÿÿÿþÿÿÿdÞfghijk¢Únopqrsþÿÿÿuvwxyz{|}~€#%5&%!./O19:;O< >)@F1HK9OS.TR4UXOY]Nb[;cips tx!}wG~‚ˆ&5‹ŒS’“#”• –,—!˜™ š› œ&Ÿ¡¡¤Oª ¯%°³-´·C¸»7¼-¬ÃÄOÆ Í%ÎÑ-ÒÕCÖÙ7Ú$Êá ÈáäSèé#êë ì,í!îï ðñ òö ùõ ùûþóþ ÿÿÿÿbc:\tools\wxwidgets-2.6.3\src\common\utilscmn.cppB1X;E$!"3!5,6%7*BC0LMK N QVYZ[\1_adenApz„w„‡O‰.‘–0˜/Ÿ¦1¨¯*±¶,¸½¿ÆÈÏ‹Ï#Öæ%èðòøùý% þ)!"!"(,)89&=4>IJZ[ghtu‚Ž–™¶—¶¹%¿=ÁÜÀÜß'áíùúü-åI O#7$374GI_`abdef2gmLnN!rtIx‚s•O—›Pž¢ÃÄÇ0ÍÎÑÒÖ×ÛÞáçïñòôùüOþ7 8 -6ú69A>DIJN<QUZ<]ZXbcgmEno{?h•˜š7–¦§®E³Ï°Ï;ÖéBîÒGB003O5)7=@ A7>[%\klm2nz{}5‚~‚ â„ÿÿÿÿXc:\tools\wxwidgets-2.6.3\src\common\log.cppé†) 0"!%2389:;>5?IIJ_c%gklCsIt}L‰@Š‘®9¯°C±C¬´µ¶½¾¿ À=·ÃÊÌ1ÄÎ:ÐÜ.ÝäNúBL(@)0æ01-28$;'<EGFP;QXVYcJdklOn6p…#†‚™8ž-š§¬;® ¨±0²¸¹½$¾ËÓÔÕÖì òEÌ÷Møüý=  O !B"  *K2I378O:"<CNQID\]O_-cjIkpapsOu%w~†&‡Ž ˜J™¨©¬­!¯$²¶·!¸»OÁÑLÙFÛóÚóöú2ýþÿû!$"#42 :<?@#A;B3Eÿÿÿÿw\CUnit\Sources\wxWidget\wxWidget.cppðBookmark97†c:\dev\archive\CUnit\CUnit_new\CUnit\Sources\wxWidget\wxWidget.cpp Bookmark98†c:\dev\archivea$dQnor{}$z(1‚Š&‹¤§ƒª ­®«²³¶:·»D½À ¼À@ÇèÅèíP>ë P>!$78N9="<2=BÃBEJGK‚….†Ž>‘ŸF£¨G­±C´½ÿÿÿÿ‚….†Ž>4F1-B2E5-4E56-AA33-2709A75004F8}|test_cunit.vcproj|d:\tmp\CUnit-nC:\tools\wxWidgets-2.6.3\samples\memcheck\memcheck.cppFílì-1.19.1\LICENSE%tC:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUnit_intl.hhZC:\tools\wxWidgets-2.6.3\include\wx\arrstr.hVc:\tools\wxwidgets-2.6.3\include\wx\intl.h{Rc:\dev\archive\CUnit\CUnit_new\ChangeLogUfc:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.xslrnc:\dev\archive\CUnit\CUnit_new\Examples\ExampleTests.hTc:\tools\wxwidgets-2.6.3\src\msw\font.cpplC:\tools\wxWidgets-2.6.3\samples\widgets\notebook.cpp­‚d:\dev\archive\CUnit\CUnit_new\CUnit\Sources\Framework\CUError.c.fC:\tools\wxWf   þÿÿÿ  "#$%&'()*+,-./0123456789:;<=>?@ABCþÿÿÿEFGHIJKLMNOPþÿÿÿRSTUVWXYZ[\]^_`abcdeþÿÿÿghþÿÿÿjklmnopqrstþÿÿÿvwxyz{|}~þÿÿÿ€idgets-2.6.3\lib\vc_lib\msw\wx\setup.hœVc:\tools\wxwidgets-2.6.3\src\msw\utils.cpp™jc:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.dtdp^c:\tools\wxwidgets-2.6.3\src\common\gdicmn.cpp–c:\dev\archive\CUnit\CUnit_cvs\CUnit\Examples\ConsoleTest\ConsoleTest_v1.cnc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Console.hSfC:\tools\wxWidgets-2.6.3\include\wx\msw\debughlp.hŸhc:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.xsllnc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestRun.hzc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\TestRun.h VC:\tools\gnu\contrib\autoconf-2.59\COPYING$†C:\Documents and Settings\STCLAIJD\Local Settings\Temp\~vs1C55.txt·lc:\dev\archive\CUnit\CUnit_new\doc\test_registry.htmlFnf-2.59\COPYING$lc:\dev\archive\et_run_results_string(void)·Ð:lÂдB $JÒive\CUnit\CUf_x86\crt\src\new.cppFramework\,{0336E4F1-B2E5-4E56-AA33-2709A75004F8}|test_cunit.vcproj|d:\tmp\CUnit-2.1-1\CUnit\Sources\Framework\TestRun.c||{8B382828-620   Z!3"b'( ,0 29:K<U"Vb$ci jh(rux=|}!‚…5‡Œÿÿÿÿncléü,ý"*#E.IfstQgÄ6ÅÉ;ÊÔ7Õã?äèlC:\tools\wxWidgets-2.6.3\samples\widgets\notebook.cpp]"®N(7F HPQOS"[\‡‰Š'U¡¢O¤¼O¾?Ã,+-12O4!6;VOutliningState162$ÿÿÿÿÿÿÿÿÿÿÿÿ ROutliningState163$±Òÿÿÿÿ¹ÚOutliningState164$ÿÿÿÿÆÿÿÿÿÖÔOutliningState165$ÿÿÿÿÿÿÿÿÿÿÿÿ÷Ö@:BD:EH9IG"MPR,S,TXYZ<[B_a$rs.tv$|}€'ƒ9„)…0‡Dˆ5Š%‹ ‰%‹Ž0=<‘'“4”$–3—.˜6™'›6œ=ž '¢4£=¥<¦$¨3©.ª6«'­6®=°²%´<¿4Ã:ÄMÆEÇ1É9Ê;Ë<Ì4Î<Ï)Ð,ÑEÒ.Ó2ÔÖ8Ø6Ù/Ú0Û ÜÞ ßàAäBåDçCèIêJëFî@ð4óJôCõ@ö øCùEú@ûIüCý@ÿ)6)8! 7 a  O) C-!$$'*:034567:;<=%-B@FIJO!QRUVWX+C_ +_:ehijkl%bs@w}~ƒ!…†+t`’˜>›;œ>ž>Ÿ >¡;¢>£¤>¥¦>§¨>©ª>«¬>­®>¯°>±²>³´>µ¶>·¸>¹º>»¼>½¿CÁ2ÂCÃ2ÄCÅ2ÆCÇ2ÈÀ2ÈBÊ/ËBÌ/ÍBÎ/ÏBÐ/ÑÉ/ÑKÕ-ÖK×-ØÔ-ØJÚ*ÛJÜ*ÝÙ*Ý™ßâã3çèðöéúÿÿÿÿ6-B359-4E41-9B60-3365ª?«º<»Æ;ÇÙ:Úæ?çîTïöTï÷Lú L#>=@$CÿÿÿÿLnC:\tools\wxWidgets-2.6.3\samples\notebook\notebook.cpp€ìo7 -%-&'B* 162;7<T/U^4_l1mw*x…/†˜D™½ÂÃÄ ÅÆÇÈSÉÔLÕ×LØÚNÛÿ))) &I* 0+1¿= @2A>J8KUVWXY§G¨ªG«­I®¥³¸3¹»3¼¾5¿)´ÄÉZÊÌZÍÏZÐÅÖ׿ç@éë@íïFñ+ø- 1 ,581;2C>DR?Sa;C{6AB4AA38-7C2D-4D6A-B054-C0BA7A21ACA5}.Debug - DLL|Win32.fBatchBld=;4{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.dwStartupOpt=;X{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{59E54DE9-EC03-4FFB-B9CE9bk4l‰ Š9‹nC:\tools\wxWidgets-2.6.3\samples\treectrl\treetest.cppY›êz   $&p12UYw0xy)z‚;ƒŸ« °±´B¶ÑSÒýL¼  BC3 !-$ %C­( +(,)/3/4:;&0F$GNS-TU&VWY)O^am(_r v!w(s€….†‡9‰Œ5‘6’™¡¨7š®6¯¹9ºÄ"ÅÍ5ÎÖ0ÙÝ=Þê7ëï;ðô9õù×ù"ü7 ?:/!=".=/</?I>=LAMQ>RV;W\ e;f8]OutliningState141$»©ÿÿÿÿ~OutliningState139$¨¸ÿÿÿÿŸlOutliningState137$¦ÿÿÿÿÿÿÿÿ¡æOutliningState140$ÿÿÿÿÿÿÿÿÿÿÿÿ¥ 2-11D1-8870-0000F87579D2}12ÐB ÿÿŒ°‹LÈŒL±–({0336Ek|}‚‡ŠS…“X”›œŸN ¨©¬Q­´µ¶ÿÿÿÿ:\tools\wxWidgets-2 9 8 U"63;NPUHWcAgsBwˆBw‰9Œ‘Š’“%•9˜–žŸ8¡9¤½$¢¾¿:Á9ÄÝ&ÂÞß7á9äó#âôõ9÷9ú %ø  G 9&F!9$0%"12L497=-5>?@?;A9DH/BIJKLVWX'Yd1ei2jzA{’(“µ&¶Ô'Õè%04$MNOP^_'`aRl |ÿÿÿÿ\gnu\include\libintl.hbC:\tools\wxWidgets-2.6.3\include\msvc\wx\setup.hVÐ[J[ZC:\tools\wxWidgets-2.6.3\include\wx\arrstr.hŠá¸Ó  Og hlmovƒ3„&Ž“”•#–—ž¢¨OutliningState157$ÿÿÿÿ¾ÿÿÿÿ»ŠOutliningState159$¼ÅÿÿÿÿÊzOutliningState158$ÿÿÿÿÿÿÿÿÿÿÿÿøOutliningState160$ÿÿÿÿÿÿÿÿÿÿÿÿîú©¬­3®±µ· ¸ÁAÂÆ/ÈÎ*Ï)ÒÓò<óàù 0ú:)-/$):-#.@/H0;<$aNRS1TU*OWPWZ[0_abcem%\r rÿÿÿÿfC:\tools\wxWidgets-2.6.3\include\wx\msw\debughlp.hÇ š !" #$ %7MNqr€‰Ì0Ò3ß(ß áÿÿÿÿ|:Š ‘”I–›œ$™¤k¦çèú8û5<6$«B ©DIOOQXYd5fq$r~G~ƒ†ˆ!Š%Bœ!ž§ «$¡°±³µ.’”•ÿÿÿÿ\test_amework\TestRun.c-nc:\dev\archive\CUnit\CUnit_new\CUnit\Headers\CUError.hzc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Headers\CUError.hjd:\dev\archive\CUnit\CUnit_new\CUnit\Headers\Basic.hNjd:\dev\archive\CUnit\CUniZC:\tools\wxWidgets-2.6.3\include\wx/string.hkøùY0/$%*#-/.12"ab%df0jqKrstuvwxyz{|}~€ ‚ †0‡Ž›N6h ¡.¥­)® ¯6°¬ ±²$³!¦µº»2¿)Á ¸%Ä*Ç#ÉÌNÏØÙÜÝßà1âãåGæ:çêëBìï'ð$Ñô÷,ø%   11M-.-1>A8B!C!D1E$FRG$HAJQY-Z1X$[V`1a"cef{|})~7€‚„…0†E‡Œ/Ž<(‘3’2“(”A˜š/œEŸ, (¢1£2¤&¥+§&¨Aª¬°±<¸¼U¾Å8É1Ê)ËLÌEÍ2Î2ÏÑ/ÔÙÞßLã2äGí9î$ð<ñMò9óMô<õD÷ùý  CB23E!1"5')*B,F-6.H556=%@#õYÅY\N_c,dgMik=qt0w{|)‚%ƒ%„%…†8‡ˆ-‰-Š&‹NŒŽG” –#—•#—šCž;¡£¤S¦#ª«Ÿ«®¯¸½¿ÄÅÆÍÎÏÐ%ÒÓ&Õ×Ùßáæçîñ%ò"ó%ô%ö%÷õ%÷Hð øý%þ#ÿ%&%%  K'3C&*+,-2/0 1D2344'5782:;<=>5?A\BC4D6EHI4J=K M6NO,P(RIS QIS(U7VT7V/[=\Y=\`*b.e:f]:fipsBu)qz)|"}!€.ƒ;„)…-†‚-†-ˆ8‰(Š*‹‡*‹%—%˜"™0›(œ2Ÿ(¡£¤¥°"±².³'µ/¶¸/¹(»0¼'ÀÄ)ÆÊ5¾Ê½ËÎ.Ï ÑÓÔBÕÛ1Ü?ÝBÞ6àåæ#è0ìîïñø3ùû/üþ/ÿ3 A  L =>6>6@ (&-4>6ýÿÿÿæö õ   `þÿÿÿþÿÿÿ0 "þÿÿÿ$%(þÿÿÿÿÿÿÿ1*+,-./<8235þÿÿÿ679&:;þÿÿÿ=>þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿOutliningState166$ÃÇÿÿÿÿÜxOutliningState161$¿ÀÿÿÿÿóÎOutliningState168$Äÿÿÿÿÿÿÿÿ!²OutliningState167$ÿÿÿÿÿÿÿÿÿÿÿÿD"X+<Z*[š›O7Ÿ§'¨µ.¶º»O½H¿ÅLÆÊMËÒJÓØMÙáMâéHêîHïóHôAéí9îOBP]D^kD^lClqErw=x?€‡8ˆÅÆÿÿÿÿ¿À›Ã2.1-1\CUnit\Sources\Framework\MyMem.c||{8B382828-6202-11D1-8870-0000F87579D2}123456VC8\Debug - Static Lib with MrÉJA)˜jK¨× Rþ¸ªLкñXˆ"¹E¬:Õc˜÷xS8fÂþÂL¤d®—ï9LÉlü #Oÿ‡øÏ¤ELç%Ò¯##G¶åá}'bm4LrÉJA)˜jK¨× Rþ¸ªLкñXˆ"¹E¬:Õc˜÷x=;X{E88E5D8B-Fral, PublicKeyToken=b77a5c561934e089]] 0C0E}.Debufd:\tmp\CUnit-2.1-1\CUnit\Sources\Framework\MyMem.cJk×@9B2FJQX]2aWc5dopBq7r‘’>“A—¹º&»A¿ÐÑ(ÒkÓ÷ø:ùþWú  : I 8!D"'(;)04U*?@/A1B:’GIÿÿÿÿarchive\CUnit\CUnit_cvs\Cjd:\tmp\CUnit-2.1-1\CUnit\Sources\Framework\TestRun.c»·"#E’/˜®O°´L¶ºU¼ÀXÂÆaÈÌbÎÒkÔØ<ÚÞ:àä@æêBìðHòöIøüOþ.1 3-0 2"&+(,-.2,483:> @I+KO'QU#W|+~œ:žö$øü$þ" <//*0,‡ˆŸ'§ãäñ\ò >*+9R: ¡°O±óö> ÿÿÿÿes\Fr`c:\dev\archive\CUnit\CUnit_new\libcunit_dll.defovÿÿÿÿles\widgt_new\CUnit\Headers\MyMem.h=ld:\dev\archive\CUnit\CUnit_new\CUnit\Headers\TestDB.h+TC:\tools\wxWidgets-2.6.3\include\wx\app.h„\d:\dev\archive\CUnit\CUnit_new\doc\index.html9fC:\tools\wxWidgets-2.6.3\samples\widgets\gauge.cpp¬¼C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Li\c:\tools\wxwidgets-2.6.3\src\common\event.cppÈGE$!"* .%/78 59@/B E@h1mo3su},~…ˆ‰h:io:pv;w};~„;…<Ž”<•›6žŸ/ "¥¯*°×;ûÿ9  N!3A1C\>^r7s{=‘20+D!J.,N5Oa3bn5o|4}Š/‹–9—¶ÃÈ=·Ë1Ì×2ØÞ0ßå4æô/õù/úÿÿÿÿjC:\tools\wxWidgets-2.6.3\samples\treectrl\treetest.he‰°¯ 4  !" &(*+-.'26>CDGeDfghmn%op-uz‡G‰3,š6›*œ8*ž3Ÿ) 6¡-¢4£.¤8¥+¦4§2¨ª6«­²,¶5ÄÅ3ÍÎ èé ðò ÿÿÿÿ^c:\tools\wxwidgets-2.6.3\include\wx\treebase.h@ì@ 0"&'@.5+678:;<%?BCDEFGH@KL,M1RFSWFX\]Oi  È*=>BGLIPCQ'W [,ap`ps$twx:u|^|ÿÿÿÿOutliningState169$ÂÎÿÿÿÿ OutliningState170$ÿÿÿÿÿÿÿÿÿÿÿÿQ OutliningState173$ÌÍÿÿÿÿùœOutliningState172$ÿÿÿÿÿÿÿÿÿÿÿÿiÎð /ñ 'Á $ ( ;) RÂ>  ? B +E I GK [ 4_ K@ f   ‹ L ´ 6¶ ¿ É ³ Ê  3  ' ' /)  F <G P >Q d He p @s 4H ”  Í /Ð Ø :Ù ä 8ç  G  &  *#  ' ( - 6 , 7  A (C  Q *S n $p Kh t u { >| ” 2• Ÿ <¢ ¦   ¦ ÿÿÿÿ1!25ODLFMJN`aOcoEpevœ2¤K¥+ž!§1ª¬³6NO,P QIS(U7VT7VY=\`*b.e:f]:fipsBu)qz)|"}!€‚-†-ˆ8‰(Š*‹‡*‹%—%˜"™0›(œ2Ÿ(¡£¤¥°"±².³'µ/¶¸/¹(»0¼'ÀÄ)ÆÊ5¾Ê½ËÎ.Ï ÑÓÔBÕÛ1Ü?ÝBÞ6àåæ#è0ìîïñø3ùû/üþ/ÿ3 A  L =>6>6@ (&-4>6@:BD:EH9IG"MPR,S,TXYZ<[B_a$rs.tv$|}€'ƒ9„)…0‡Dˆ ‰%‹Ž0=<‘'“4”$–3—.˜6™'/>0EEFJHKTHU]D^cDdiDjnIosEt€E…"†•,•—˜ÿÿÿÿÅ>ÆÊJËÏhC:\tools\wxWidgets-2.6.3\samples\widgets\button.cpp'³ÊW#28OutliningState171$ÉËÿÿÿÿuDOutliningState174$ÿÿÿÿÿÿÿÿÿÿÿÿ ’OutliningState175$ÊÏÿÿÿÿ¦pOutliningState179$ÐÑÿÿÿÿº\ :@AGHK PQ"RSb'eLxyŒ«­;Žðñôõþ=A&ÿVWZF[aJbfLgkAlqÿÿÿÿŒ¿À›Ã\c:\tools\wxwidgets-2.6.3\src\msw\treectrl.cpp^ÒÉq0'<IQ8UdHeu>vzE{€¼½3…ÀÁEÃÓ ÕÞß3Äø'Røû?ÿ<' '"&$%+,!-657+;?@;BEFJK8S6Ya&j-klBm2buvwU}%„‹<Œ’“”š›O¨­-®F¯¿%ÁÂÃ5Ä&ÇÈ2ÎϪÙÚOÜâ!ãÞ~.)"#)*01!25ODLFMJN`aOcoEpevœ2¤K¥+ž!§1ª¬³Pµ¶F¸º3¾¹FÁÅDÇÈõ-}ü - ý >!2$223:;?$@D/EI'JN,OSCT[5\d:ek8lq=rw5y€Oƒ‡C‹<…“E—<‘œOŸ:¡²¾HÂL³Ì<ÎØ=Ûô.÷þ2'E"GU!W fAgmo3)rAsLް´%·B²¼:½ÊGËÖA×âOãì6íø@ùF8 7(=*@JAWXOZi)jp7qu"w4\z:{„5…Ž5˜1™¢£O¥&§¯'°·@¸ÏAÑÚ@Üê4îö3øë? A A!&.'+A,3A4;<O>8@KCLZ@[abOdtu;j¯5¶»*¼À:ÁÅ>ÆÊJËϱÏ6Ôâ:æë9ðô9ù 9195!6FSEYef=Go1pt3uy;z~1ƒA†Š„Š•&ž:Ÿ @¡–­&²#´µ5¶¾ÀB®Ö7×Û>Üà8áæ3çî(ïóøDú!ô@  4"(B)G/Jab%gDnwhy4|†9ˆŒ‘D“7¡¢O¤2¦½¾%ÁÙTÚßTàî'ïý,ÿ & " &# 7 28 B JE  K ,N ' [ _ ƒ ‹ OŒ º G» Ä /Æ  Ì .Í -EF06ED3F43B1}.Release - DLL|Win32.fBatchBld=;C{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - DLL|Win32.fBatchBld=;L{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - Static Lib|Win32.fBatchBld=;J{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib|Win32.fBatchBld=; ActiveCfg=&Debug - Static Lib with MEMTRACE|Win32;;X{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Debug - Static Lib with MEMTRACE|Win32.fBatchBld=;E{59E54DE9-EC03-4FFB-B9CE-EF06ED3F43B1}.Release - DLL|Win32.fBatchBld¶À/Á%ÍÔÖ9×ÕØ2¾ÛÜÝ%àè'Þëìîõ/ö(óþÿ(  .3/40D(F[&]r$t‰"‹¢(£¸¹Å8ÇÍÎÑÜÝ(Óàñò-áõöú7û93   O=%%&1>=?2F!HQb6cFRt&u“?”²7³¹ÎBÏ+ºÞßåï+ðîñç÷#? M 2$ø+5.8;=%9@,@INJWXb:c2Cfi jps)gŠ‹ Ž–#™ ¥§¢ ª3‘·¼8¾,¸ÈÜÝñWpfDesigner-E58C2A8B*ÿÿÿÿÿÿÿÿÿÿÿÿ#kOutliningState185$ÕÿÿÿÿˆÎOutliningState186$ÿÿÿÿÿÿÿÿÿÿÿÿ”vÿÿÿÿÿÿÿÿÿÿÿÿ=&Debug - Static Lib with MEMTRACE|Win32;n32.fBatchBld=;E{C6339A24-F233-4D77-8087-0C97E73A81D7}.Release - DLL|Win32.fBatchBld=;C{C6339A24-F233-4D77-8087-0C97E73A81D7}.Debug - DLL|Win32.fBatchBld=;L{C6339A24-F233-4D77-8087-0C97E73A81D7}.Rel&ò/ÉöH÷# )W5 #+K,-Y.+#B#KGLMUN$T8V<Ce:fqt6u/r{0|„‡1ˆ%…Ž“F”›'œ3•© ‘©ÿÿÿÿ-0C97E73A81D7}.Rel.c:\dev\archive\CUnit\CUnit_cvs\CUnit\ChangeLog-C:\dev\archive\CUnit\CUnit_new\VC8\TestDB.objYC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Memory-Dump.xml4C:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.xsl3C:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.xslxsl3c:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.xsl$http://www.w3.org/1999/XSL/Transform4C:\dev\archive\CUnit\CUnit_new\Share\Memory-Dump.dtdRC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.xslxslRC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.xsl$http://www.w3.org/1999/XSL/Transform0c:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.css5c:\dev\archive\CUnit\CUnit_new\doc\running_tests.html5c:\dev\archive\CUnit\CUnit_new\doc\test_registry.htmlDC:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Basic\Makefile.am)C:\tools\gnu\contrib\autoconf-2.59\README5c:\dev\archive\CUnit\CUnit_new\doc\writing_tests.html1c:\dev\archive\CUnit\CUnit_cvs\CUnit\configure.in0C:\tools\wxWidgets-2.6.3\samples\richedit\README-C:\dev\archive\CUnit\CUnit_new\VC8\wxWidget.i*c:\dev\archive\CUnit\CUnit_new\config.h.in5d:\dev\archive\CUnit\CUnit_new\doc\writing_tests.html-d:\dev\archive\CUnit\CUnit_new\doc\index.html6C:\tools\gnu\contrib\groff\1.19.1\groff-1.19.1\LICENSERC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.dtd#c:\dev\archive\CUnit\CUnit_new\TODO+c:\dev\archive\CUnit\CUnit_cvs\CUnit\README)c:\dev\archive\CUnit\CUnit_cvs\CUnit\TODOQC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.dtd#d:\dev\archive\CUnit\CUnit_new\TODO-c:\dev\archive\CUnit\CUnit_new\doc\index.html,c:\dev\archive\CUnit\CUnit_cvs\CUnit\VERSION6d:\dev\archive\CUnit\CUnit_new\doc\managing_tests.html(d:\dev\archive\CUnit\CUnit_new\ChangeLog6C:\dev\archive\CUnit\CUnit_new\CUnit\Sources\po\en_.po4c:\dev\archive\CUnit\CUnit_new\doc\introduction.html]C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Listing.xml3C:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.xsl0c:\dev\archive\CUnit\CUnit_cvs\CUnit\Jamrules.in5d:\dev\archive\CUnit\CUnit_new\doc\test_registry.html4d:\dev\archive\CUnit\CUnit_new\doc\introduction.htmlfC:\Documents and Settings\Jerry\My Documents\temp\chsuf-0.9-bin\contrib\chsuf\0.9\chsuf-0.9-src\README0d:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.css/C:\dev\archive\CUnit\CUnit_new\VC8\wxWidget.obj5d:\dev\archive\CUnit\CUnit_new\doc\running_tests.html/c:\dev\archive\CUnit\CUnit_new\libcunit_dll.def,C:\dev\archive\CUnit\CUnit_new\VC8\CUError.i/c:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.3*C:\tools\gnu\contrib\autoconf-2.59\COPYING6C:\tools\gnu\contrib\popt-1.8\popt-1.8-GnuWin32.README/d:\dev\archive\CUnit\CUnit_new\Man\man3\CUnit.36c:\dev\archive\CUnit\CUnit_new\doc\error_handling.htmlOutliningState178$Öÿÿÿÿÿÿÿÿè¦OutliningState180$ÿÿÿÿÿÿÿÿÿÿÿÿïrOutliningState181$ÈÔÿÿÿÿñXOutliningState182$ÿÿÿÿÿÿÿÿÿÿÿÿ¼îjC:\tools\wxWidgets-2.6.3\samples\notebook\notebook.h<&l®+ 2,35068,9QRTUWX [] fg~ÿÿÿÿbC:\tools\wxWidgets-2.6.3\samples\richedit\README„³ª¯ÿÿÿÿ`c:\tools\wxwidgets-2.6.3\src\common\textcmn.cppl8%0+->KLT:X3Ž›@ž£S¥ª®°=¬¸3º¾¿OÁÅ.Ö7ÃÛçò7ÜùúOü9þ/ 0 -.#6$()O+#/6-69O;=DEJKPQOSGWZUZœ¡=\»[»¾OÀ ÂÆ-ÇÎ5ÏÙ=Û  þÿÿÿ             þÿÿÿ  þÿÿÿ  þÿÿÿ   ! " # $ % & ' ( ) * þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿæçOéîEðJìû-þ' ÿÿÿÿ  &N!"#$%(8).1<2J8:;BAE1F=GKOVW wz8}1…ˆM‰ŠŽ˜@šD¬°´>µR·¸$º½/ÄÅ.ÒC×>ÙÜßà çê<ëî ñõùKþÿý 1 5829<8=@GADTEHXIMOOLPT0[`4ad6hmJtw6y~‹! ”† •–Ÿ¢¦«±²Ü Ýâ¨ä çÿÿÿÿ†C:\Documents and Settings\STCLAIJD\Local Settings\Temp\~vs1C55.OutliningState183$Óÿÿÿÿ –OutliningState184$ÿÿÿÿÿÿÿÿÿÿÿÿ ´OutliningState177$ÿÿÿÿÿÿÿÿÿÿÿÿ œRationalClearCase$ÿÿÿÿÿÿÿÿtxt7 `ÿÿÿÿ|c:\dev\archive\CUnit\CUnit_new\Examples\BasicTest\BasicTest.c«ý°, TÿÿÿÿlC:\tools\wxWidgets-2.6.3\samples\widgets\combobox.cppÍ Ó&4FHNOOQ"XYz}S’“O•ºO¼ÍÒ?Á9:O<!>C'Dz{O}H…‹=Œ5ŽI†’I“žLŸ§H¨¬I­»F¼ÉJÊÒMÓÙCÚßGàåBæðHñúKûGF < ;&L'+,+-ÿÿÿÿsting.xml[nc:\dev\archive\CUnit\CUnit_new\doc\error_handling.html!Rc:\tools\wxwidgets-2.6.3\src\msw\pen.cpp›vc:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\He TestDB.obj>C:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Makefile.amQC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.xslxslQC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-Run.xsl$http://www.w3.org/1999/XSL/TransformKC:\tools\gnu\contrib\groff\1.19.1\groff-1.19.1\groff-1.19.1-GnuWin32.README wxWidget.obj3C:\dev\archive\CUnit\CUnit_new\Share\CUnit-List.dtd6d:\dev\archive\CUnit\CUnit_new\doc\error_handling.html;C:\dev\archive\CUnit\CUnit_new\Share\Copy of CUnit-List.xslxsl;C:\dev\archive\CUnit\CUnit_new\Share\Copy of CUnit-List.xsl$http://www.w3.org/1999/XSL/Transform]C:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\TestAutomated-Results.xml2C:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.xsl2C:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.xslxsl2c:\dev\archive\CUnit\CUnit_new\Share\CUnit-Run.xsl$http://www.w3.org/1999/XSL/Transformith MEMTRACE\CUnit-List.xslxslRC:\dev\archive\CUnit\CUnit_new\VC8\Debug - Static Lib with MEMTRACE\CUnit-List.xsl$http://www.w3.org/1999/XSL/Transform0c:\dev\archive\CUnit\CUnit_new\doc\CUnit_doc.css5c:\dev\archive\CUnit\CUnit_new\doc\running_tests.html5c:\dev\archive\CUnit\CUnit_new\doc\test_registry.htmlDC:\dev\archive\CUnit\CUnit_cvs\CUnit\CUnit\Sources\Basic\Makefile.am5c:\dev\archive\CUcunit-2.1-3-dfsg/VC9/ConsoleTest.vcproj000066400000000000000000000240371260701235000176510ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC9/Readme.txt000066400000000000000000000001731260701235000161130ustar00rootroot00000000000000Visual Studio 2008 solution and Visual C++ 9 project files to build the CUnit library, example programs, and test program.cunit-2.1-3-dfsg/VC9/libcunit.vcproj000066400000000000000000001173141260701235000172210ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VC9/test_cunit.vcproj000066400000000000000000000323421260701235000175660ustar00rootroot00000000000000 cunit-2.1-3-dfsg/VERSION000066400000000000000000000000061260701235000146170ustar00rootroot000000000000002.1-3 cunit-2.1-3-dfsg/aclocal.m4000066400000000000000000012536131260701235000154260ustar00rootroot00000000000000# generated automatically by aclocal 1.14 -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996-2001, 2003-2013 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, 2011 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 58 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.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([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld old_CC=$CC old_CFLAGS=$CFLAGS # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from 'configure', and 'config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # 'config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain=$ac_aux_dir/ltmain.sh ])# _LT_PROG_LTMAIN # 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: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags='_LT_TAGS'dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into 'config.status', and then the shell code to quote escape them in # for loops in 'config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # '#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test 0 = "$lt_write_fail" && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ '$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2011 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test 0 != $[#] do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try '$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try '$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test yes = "$silent" && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options that allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}"; then setopt NO_GLOB_SUBST fi cfgfile=${ofile}T trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE) $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 set != "${COLLECT_NAMES+set}"; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Go], [_LT_LANG(GO)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG m4_ifndef([AC_PROG_GO], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_GO. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_GO], [AC_LANG_PUSH(Go)dnl AC_ARG_VAR([GOC], [Go compiler command])dnl AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl _AC_ARG_VAR_LDFLAGS()dnl AC_CHECK_TOOL(GOC, gccgo) if test -z "$GOC"; then if test -n "$ac_tool_prefix"; then AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) fi fi if test -z "$GOC"; then AC_CHECK_PROG(GOC, gccgo, gccgo, false) fi ])#m4_defun ])#m4_ifndef # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([AC_PROG_GO], [LT_LANG(GO)], [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "$LT_MULTI_MODULE"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? # If there is a non-empty error log, and "single_module" # appears in it, assume the flag caused a linker warning if test -s conftest.err && $GREP single_module conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD # Otherwise, if the output was created with a 0 exit code from # the compiler, it worked. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS=$save_LDFLAGS ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -s conftest.err && $GREP force_load conftest.err; then cat conftest.err >&AS_MESSAGE_LOG_FD elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test yes = "$lt_cv_apple_cc_single_mod"; then _lt_dar_single_mod='$single_module' fi if test yes = "$lt_cv_ld_exported_symbols_list"; then _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' fi if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES([TAG]) # --------------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test yes = "$lt_cv_ld_force_load"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined case $cc_basename in ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" m4_if([$1], [CXX], [ if test yes != "$lt_cv_apple_cc_single_mod"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test set = "${lt_cv_aix_libpath+set}"; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script that will find a shell with a builtin # printf (that we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case $ECHO in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [Search for dependent libraries within DIR (or the compiler's sysroot if not specified).])], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case $with_sysroot in #( yes) if test yes = "$GCC"; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([$with_sysroot]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and where our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test no = "$enable_libtool_lock" || enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out what ABI is being produced by ac_compile, and set mode # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; *ELF-64*) HPUX_IA64_MODE=64 ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; mips64*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then emul=elf case `/usr/bin/file conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; *64-bit*) emul="${emul}64" ;; esac case `/usr/bin/file conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; *LSB*) emul="${emul}ltsmip" ;; esac case `/usr/bin/file conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; esac LD="${LD-ld} -m $emul" fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. Note that the listed cases only cover the # situations where additional linker options are needed (such as when # doing 32-bit compilation for a host where ld defaults to 64-bit, or # vice versa); the common cases where no linker options are needed do # not appear in the list. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) case `/usr/bin/file conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; *) LD="${LD-ld} -m elf_i386" ;; esac ;; powerpc64le-*linux*) LD="${LD-ld} -m elf32lppclinux" ;; powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; powerpcle-*linux*) LD="${LD-ld} -m elf64lppc" ;; powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test yes != "$lt_cv_cc_needs_belf"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS=$SAVE_CFLAGS fi ;; *-*solaris*) # Find out what ABI is being produced by ac_compile, and set linker # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) case $host in i?86-*-solaris*|x86_64-*-solaris*) LD="${LD-ld} -m elf_x86_64" ;; sparc*-*-solaris*) LD="${LD-ld} -m elf64_sparc" ;; esac # GNU ld 2.21 introduced _sol2 emulations. Use them if available. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then LD=${LD-ld}_sol2 fi ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks=$enable_libtool_lock ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test 0 -eq "$ac_status"; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test 0 -ne "$ac_status"; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test no = "$lt_cv_ar_at_file"; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in bitrig* | openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test yes = "[$]$2"; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS=$save_LDFLAGS ]) if test yes = "[$]$2"; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring=ABCD case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; os2*) # The test takes a long time on OS/2. lt_cv_sys_max_cmd_len=8192 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len" && \ test undefined != "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test X`env echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test 17 != "$i" # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n "$lt_cv_sys_max_cmd_len"; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test yes = "$cross_compiling"; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -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 yes != "$enable_dlopen"; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen=load_add_on lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen=LoadLibrary lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen=dlopen lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ lt_cv_dlopen=dyld lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; tpf*) # Don't try to run any link tests for TPF. We know it's impossible # because TPF is a cross-compiler, and we know how we open DSOs. lt_cv_dlopen=dlopen lt_cv_dlopen_libs= lt_cv_dlopen_self=no ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen=shl_load], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen=dlopen], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) ]) ]) ]) ]) ]) ;; esac if test no = "$lt_cv_dlopen"; then enable_dlopen=no else enable_dlopen=yes fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS=$CPPFLAGS test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS=$LDFLAGS wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS=$LIBS LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test yes = "$lt_cv_dlopen_self"; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS=$save_CPPFLAGS LDFLAGS=$save_LDFLAGS LIBS=$save_LIBS ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links=nottested if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test no = "$hard_links"; then AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", [Define to the sub-directory where libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then # We can hardcode non-existent directories. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then # Fast installation is not supported enable_fast_install=no elif test yes = "$shlibpath_overrides_runpath" || test no = "$enable_shared"; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP"; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_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 yes = "$GCC"; then case $host_os in darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; *) lt_awk_arg='/^libraries:/' ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; *) lt_sed_strip_eq='s|=/|/|g' ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary... lt_tmp_lt_search_path_spec= lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` # ...but if some path component already ends with the multilib dir we assume # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). case "$lt_multi_os_dir; $lt_search_path_spec " in "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) lt_multi_os_dir= ;; esac for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" elif test -n "$lt_multi_os_dir"; then test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS = " "; FS = "/|\n";} { lt_foo = ""; lt_count = 0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo = "/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=.so postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='$libname$release$shared_ext$major' ;; aix[[4-9]]*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes if test ia64 = "$host_cpu"; then # AIX 5 supports IA64 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line '#! .'. This would cause the generated library to # depend on '.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test yes = "$aix_use_runtimelinking"; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 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%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='$libname$shared_ext' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=.dll need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec=$LIB if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \$file`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' soname_spec='$libname$release$major$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[23]].*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $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 ;; haiku*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=no sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' if test 32 = "$HPUX_IA64_MODE"; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 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 # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test yes = "$lt_cv_prog_gnu_ld"; then version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='$libname$release$shared_ext$major' library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; linux*android*) version_type=none # Android doesn't support versioned libraries. need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext' soname_spec='$libname$release$shared_ext' finish_cmds= shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes dynamic_linker='Android linker' # Don't embed -rpath directories since the linker doesn't support them. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # 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' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd* | bitrig*) version_type=sunos sys_lib_dlsearch_path_spec=/usr/lib need_lib_prefix=no if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then need_version=no else need_version=yes fi library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; os2*) libname_spec='$name' 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 # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test yes = "$with_gnu_ld"; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec; then version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' soname_spec='$libname$shared_ext.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=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 yes = "$with_gnu_ld"; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' soname_spec='$libname$release$shared_ext$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test no = "$dynamic_linker" && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test yes = "$GCC"; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec fi if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec fi _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 that can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD=$MAGIC_CMD lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$1"; then lt_cv_path_MAGIC_CMD=$ac_dir/"$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD=$lt_cv_path_MAGIC_CMD if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS=$lt_save_ifs MAGIC_CMD=$lt_save_MAGIC_CMD ;; esac]) MAGIC_CMD=$lt_cv_path_MAGIC_CMD if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program that can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test no = "$withval" || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test yes = "$GCC"; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return, which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD=$ac_prog ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test yes = "$with_gnu_ld"; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS=$lt_save_ifs test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD=$ac_dir/$ac_prog # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be glibc/ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd* | bitrig*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; 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 2 ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS=$lt_save_ifs done : ${lt_cv_path_NM=no} fi]) if test no != "$lt_cv_path_NM"; then NM=$lt_cv_path_NM else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test : != "$DUMPBIN"; then NM=$DUMPBIN fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh; # decide which one to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test yes != "$lt_cv_path_mainfest_tool"; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # _LT_DLL_DEF_P([FILE]) # --------------------- # True iff FILE is a Windows DLL '.def' file. # Keep in sync with func_dll_def_p in the libtool script AC_DEFUN([_LT_DLL_DEF_P], [dnl test DEF = "`$SED -n dnl -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl -e q dnl Only consider the first "real" line $1`" dnl ])# _LT_DLL_DEF_P # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM=-lm) ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test yes = "$GCC"; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test ia64 = "$host_cpu"; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" lt_c_name_lib_hook="\ -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" else # Disable hooks by default. lt_cv_sys_global_symbol_to_import= lt_cdecl_hook= lt_c_name_hook= lt_c_name_lib_hook= fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined __osf__ /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS=conftstm.$ac_objext CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test yes = "$pipe_works"; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], [Transform the output of nm into a list of symbols to manually relocate]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], [The name lister interface]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' if test ia64 != "$host_cpu"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64, which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test yes = "$GCC"; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the '-m68020' flag to GCC prevents building anything better, # like '-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" fi ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test ia64 = "$host_cpu"; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' case $cc_basename in nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64, which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; tcc*) # Fabrice Bellard et al's Tiny C Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ F* | *Sun*Fortran*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Intel*\ [[CF]]*Compiler*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; *Portland\ Group*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms that do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to 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(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ' (' and ')$', so one must not match beginning or # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', # as well as any symbol that contains 'd'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd* | bitrig*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test yes = "$with_gnu_ld"; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test yes = "$lt_use_gnu_ld_interface"; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='$wl' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test ia64 != "$host_cpu"; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test linux-dietlibc = "$host_os"; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test no = "$tmp_diet" then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; nagfor*) # NAGFOR 5.3 tmp_sharedflag='-Wl,-shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to 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 x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); 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 yes = "$GCC"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag="$shared_flag "'$wl-G' fi else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi 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 yes = "$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # 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,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2.*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; hpux10*) if test yes,no = "$GCC,$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test yes,no = "$GCC,$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS=$save_LDFLAGS]) if test yes = "$lt_cv_irix_exported_symbol"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' fi 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*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _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 yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test yes = "$GCC"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test yes = "$GCC"; then wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='$wl' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. GCC discards it without '$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test yes = "$GCC"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test sequent = "$host_vendor"; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' if test yes = "$GCC"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test sni = "$host_vendor"; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test yes,yes = "$GCC,$enable_shared"; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting $shlibpath_var if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC=$CC AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report what library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then test yes = "$enable_shared" && 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 yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC=$lt_save_CC ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to 'libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || (test g++ != "$CXX"))); then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_caught_CXX_error"; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test yes = "$GXX"; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test yes = "$GXX"; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test yes = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='$wl' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test ia64 = "$host_cpu"; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag= else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # 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 yes = "$GXX"; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`$CC -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test yes = "$aix_use_runtimelinking"; then shared_flag=$shared_flag' $wl-G' fi else # not using gcc if test ia64 = "$host_cpu"; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test yes = "$aix_use_runtimelinking"; then shared_flag='$wl-G' else shared_flag='$wl-bM:SRE' fi 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 yes = "$aix_use_runtimelinking"; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag else if test ia64 = "$host_cpu"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' if test yes = "$with_gnu_ld"; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # 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 says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=.dll # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp "$export_symbols" "$output_objdir/$soname.def"; echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; else $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile=$lt_outputfile.exe lt_tool_outputfile=$lt_tool_outputfile.exe ;; esac~ func_to_tool_file "$lt_outputfile"~ if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file, use it as # is; otherwise, prepend EXPORTS... _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd2.*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test no = "$with_gnu_ld"; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test yes = "$GXX"; then if test no = "$with_gnu_ld"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd* | bitrig*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands '-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test yes,no = "$GXX,$with_gnu_ld"; then _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require '-G' NOT '-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We CANNOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no _LT_TAGVAR(GCC, $1)=$GXX _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test yes != "$_lt_caught_CXX_error" AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case @S|@2 in .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF package foo func foo() { } _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || test x-R = "$p"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test no = "$pre_test_object_deps_done"; then case $prev in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)=$prev$p else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test no = "$pre_test_object_deps_done"; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)=$p else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)=$p else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; 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 yes != "$solaris_use_stlport4"; 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 yes != "$solaris_use_stlport4"; 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 no = "$F77"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_F77"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then test yes = "$enable_shared" && 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 yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$G77 _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_F77" AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test no = "$FC"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test yes != "$_lt_disable_FC"; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test no = "$can_build_shared" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test yes = "$enable_shared" && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then test yes = "$enable_shared" && 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 yes = "$enable_shared" || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu _LT_TAGVAR(LD, $1)=$LD ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test yes != "$_lt_disable_FC" AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_GO_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Go compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_GO_CONFIG], [AC_REQUIRE([LT_PROG_GO])dnl AC_LANG_SAVE # Source file extension for Go test sources. ac_ext=go # Object file extension for compiled Go test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="package main; func main() { }" # Code to be used in simple link tests lt_simple_link_test_code='package main; func main() { }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GOC-"gccgo"} CFLAGS=$GOFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)=$LD _LT_CC_BASENAME([$compiler]) # Go did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GO_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to 'libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code=$lt_simple_compile_test_code # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_GO # ---------- AC_DEFUN([LT_PROG_GO], [AC_CHECK_TOOL(GOC, gccgo,) ]) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f "$lt_ac_sed" && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test 10 -lt "$lt_ac_count" && break lt_ac_count=`expr $lt_ac_count + 1` if test "$lt_ac_count" -gt "$lt_ac_max"; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine what file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004-2005, 2007-2009, 2011-2013 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 8 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option '$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl 'shared' nor 'disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_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@<:@=PKGS@:>@], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [lt_p=${PACKAGE-default} case $withval in yes|no) pic_mode=$withval ;; *) pic_mode=default # Look at the argument we got. We use all the common list separators. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, for lt_pkg in $withval; do IFS=$lt_save_ifs if test "X$lt_pkg" = "X$lt_p"; then pic_mode=yes fi done IFS=$lt_save_ifs ;; esac], [pic_mode=m4_default([$1], [default])]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the 'pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 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, 2011-2013 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, 2011-2013 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 4038 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4.2.418]) m4_define([LT_PACKAGE_REVISION], [2.4.2.418]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4.2.418' macro_revision='2.4.2.418' _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, 2011-2013 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-2013 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.14' 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.14], [], [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.14])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-2013 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-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi]) dnl 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-2013 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-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # -*- Autoconf -*- # Obsolete and "removed" macros, that must however still report explicit # error messages when used, to smooth transition. # # Copyright (C) 1996-2013 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. AC_DEFUN([AM_CONFIG_HEADER], [AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl AC_CONFIG_HEADERS($@)]) AC_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc AC_DIAGNOSE([obsolete], ['$0': this macro is obsolete. You should simply use the 'AC][_PROG_CC' macro instead. Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', but upon 'ac_cv_prog_cc_stdc'.])]) AC_DEFUN([AM_C_PROTOTYPES], [AC_FATAL([automatic de-ANSI-fication support has been removed])]) AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2013 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-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR cunit-2.1-3-dfsg/bootstrap000077500000000000000000000012721260701235000155200ustar00rootroot00000000000000INSTALL_HOME= if [ $# -gt 0 ]; then INSTALL_HOME=$1 fi if [ "$INSTALL_HOME"X == "X" ]; then INSTALL_HOME=$HOME/CUnitHome fi libtoolize --force --copy && \ aclocal && \ autoheader && \ automake --add-missing --include-deps --copy && \ autoconf if [ $? -ne 0 ]; then echo "Automake/Autoconf returned with error." exit 1 fi mkdir -p $INSTALL_HOME if [ $# -gt 0 ]; then ./configure --srcdir=`pwd` --prefix=$INSTALL_HOME --enable-debug --enable-automated --enable-basic --enable-console --enable-examples --enable-test else ./configure --srcdir=`pwd` --prefix=$INSTALL_HOME --enable-debug --enable-memtrace --enable-automated --enable-basic --enable-console --enable-examples --enable-test fi cunit-2.1-3-dfsg/config.guess000077500000000000000000001303611260701235000160770ustar00rootroot00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-06-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # # Please send patches with a ChangeLog entry to config-patches@gnu.org. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; or1k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; or32:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: cunit-2.1-3-dfsg/config.h000066400000000000000000000044461260701235000152010ustar00rootroot00000000000000/* 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 header file. */ #define HAVE_ASSERT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_CTYPE_H 1 /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 /* Define to 1 if you have the header file. */ /* #undef HAVE_FILE_H */ /* Define to 1 if you have the header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if you have the `c' library (-lc). */ #define HAVE_LIBC 1 /* Define to 1 if you have the header file. */ #define HAVE_MATH_H 1 /* Define to 1 if you have the header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDIO_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H 1 /* Define to the sub-directory where libtool stores uninstalled libraries. */ #define LT_OBJDIR ".libs/" /* Name of package */ #define PACKAGE "CUnit" /* 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 "CUnit" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "CUnit 2.1-3" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "cunit" /* Define to the home page for this package. */ #define PACKAGE_URL "" /* Define to the version of this package. */ #define PACKAGE_VERSION "2.1-3" /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Version number of package */ #define VERSION "2.1-3" /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ cunit-2.1-3-dfsg/config.h.in000066400000000000000000000041471260701235000156040ustar00rootroot00000000000000/* config.h.in. Generated from configure.in by autoheader. */ /* Define to 1 if you have the header file. */ #undef HAVE_ASSERT_H /* Define to 1 if you have the header file. */ #undef HAVE_CTYPE_H /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the header file. */ #undef HAVE_FILE_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `c' library (-lc). */ #undef HAVE_LIBC /* Define to 1 if you have the header file. */ #undef HAVE_MATH_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDIO_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the 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 empty if `const' does not conform to ANSI C. */ #undef const cunit-2.1-3-dfsg/config.sub000077500000000000000000001053011260701235000155360ustar00rootroot00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2013 Free Software Foundation, Inc. timestamp='2013-04-24' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches with a ChangeLog entry to config-patches@gnu.org. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 \ | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=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-/'` ;; msys) basic_machine=i386-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | 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 | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or1k-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: cunit-2.1-3-dfsg/configure000077500000000000000000014201121260701235000154630ustar00rootroot00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.67 for CUnit 2.1-2. # # # 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. 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" 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. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL exec "$CONFIG_SHELL" "$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'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac ECHO=${lt_ECHO-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. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF $* _LT_EOF exit 0 fi # 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 if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='CUnit' PACKAGE_TARNAME='cunit' PACKAGE_VERSION='2.1-2' PACKAGE_STRING='CUnit 2.1-2' PACKAGE_BUGREPORT='' PACKAGE_URL='' # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS BUILD_TEST BUILD_EXAMPLES CURSES_LIB BUILD_CURSES BUILD_CONSOLE BUILD_BASIC BUILD_AUTOMATED ENABLE_DEPRECATED ENABLE_MEMTRACE ENABLE_DEBUG LIBTOOL_SUFFIX LIBTOOL_SUFFIX1 LIBTOOL_AGE LIBTOOL_REVISION LIBTOOL_CURRENT RELEASE VERSION_MINOR VERSION_MAJOR ENABLE_CURSES_FALSE ENABLE_CURSES_TRUE CPP OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL lt_ECHO RANLIB AR OBJDUMP LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED host_os host_vendor host_cpu host build_os build_vendor build_cpu build LIBTOOL 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 ENABLE_TEST_FALSE ENABLE_TEST_TRUE ENABLE_EXAMPLES_FALSE ENABLE_EXAMPLES_TRUE ENABLE_CONSOLE_FALSE ENABLE_CONSOLE_TRUE ENABLE_BASIC_FALSE ENABLE_BASIC_TRUE ENABLE_AUTOMATED_FALSE ENABLE_AUTOMATED_TRUE 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_debug enable_automated enable_basic enable_console enable_curses enable_examples enable_test enable_memtrace enable_deprecated enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_gnu_ld enable_libtool_lock ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures CUnit 2.1-2 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/cunit] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of CUnit 2.1-2:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-debug enable debugging [default=no] --enable-automated compile CUnit automated interface [default=yes] --enable-basic compile CUnit basic interface [default=yes] --enable-console compile CUnit console interface [default=yes] --enable-curses compile CUnit curses interface [default=no] --enable-examples compile CUnit example programs [default=no] --enable-test compile CUnit internal test program [default=no] --enable-memtrace enable CUnit internal memory tracking [default=no] --enable-deprecated enable use of deprecated v1.1 names [default=no] --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] Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF CUnit configure 2.1-2 generated by GNU Autoconf 2.67 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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $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; test "x$as_lineno_stack" = x && { as_lineno=; 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 "test \"\${$3+set}\"" = set; 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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_header_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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # 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; test "x$as_lineno_stack" = x && { as_lineno=; 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 "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_func # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval "test \"\${$3+set}\"" = set; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval "test \"\${$3+set}\"" = set; 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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_header_mongrel 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 CUnit $as_me 2.1-2, which was generated by GNU Autoconf 2.67. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5 ; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.11' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; 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 test "${ac_cv_prog_STRIP+set}" = set; 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 test "${ac_cv_prog_ac_ct_STRIP+set}" = set; 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 test "${ac_cv_path_mkdir+set}" = set; 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 test "${ac_cv_prog_AWK+set}" = set; 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 "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; 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=CUnit VERSION=2.1-2 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 -' PACKAGE=CUnit VERSION_MAJOR=2 VERSION_MINOR=1 VERSION=${VERSION_MAJOR}.${VERSION_MINOR} RELEASE=2 LIBTOOL_CURRENT=1 LIBTOOL_REVISION=1 LIBTOOL_AGE=0 LIBTOOL_SUFFIX1=1 LIBTOOL_SUFFIX=${LIBTOOL_SUFFIX1}.${LIBTOOL_AGE}.${LIBTOOL_REVISION} TOPDIR=`pwd` CFLAGS="$CFLAGS -DRELEASE=@RELEASE@ -Wall -W -pedantic -Wshadow -ansi -I${PWD}/CUnit/Headers" LDFLAGS="$LDFLAGS -L${PWD}/CUnit/Sources" # Check whether --enable-debug was given. if test "${enable_debug+set}" = set; then : enableval=$enable_debug; cu_do_debug=$enableval else cu_do_debug="no" fi if test x"$cu_do_debug" = xyes ; then echo "++++++++++ Enabling debug mode compilation." CFLAGS="$CFLAGS -D_DEBUG -g3 -Wall" LDFLAGS="$LDFLAGS -g" ENABLE_DEBUG="TRUE" else echo "---------- Disabling debug mode compilation." ENABLE_DEBUG="FALSE" fi # Check whether --enable-automated was given. if test "${enable_automated+set}" = set; then : enableval=$enable_automated; cu_do_automated=$enableval else cu_do_automated="yes" fi if test x"$cu_do_automated" = xyes ; then echo "++++++++++ Enabling automated(XML) mode compilation" BUILD_AUTOMATED="TRUE" else echo "---------- Disabling automated(XML) mode compilation" BUILD_AUTOMATED="FALSE" fi if test x"$cu_do_automated" = xyes; then ENABLE_AUTOMATED_TRUE= ENABLE_AUTOMATED_FALSE='#' else ENABLE_AUTOMATED_TRUE='#' ENABLE_AUTOMATED_FALSE= fi # Check whether --enable-basic was given. if test "${enable_basic+set}" = set; then : enableval=$enable_basic; cu_do_basic=$enableval else cu_do_basic="yes" fi if test x"$cu_do_basic" = xyes ; then echo "++++++++++ Enabling basic mode compilation" BUILD_BASIC="TRUE" else echo "---------- Disabling basic mode compilation" BUILD_BASIC="FALSE" fi if test x"$cu_do_basic" = xyes; then ENABLE_BASIC_TRUE= ENABLE_BASIC_FALSE='#' else ENABLE_BASIC_TRUE='#' ENABLE_BASIC_FALSE= fi # Check whether --enable-console was given. if test "${enable_console+set}" = set; then : enableval=$enable_console; cu_do_console=$enableval else cu_do_console="yes" fi if test x"$cu_do_console" = xyes ; then echo "++++++++++ Enabling console mode compilation" BUILD_CONSOLE="TRUE" else echo "---------- Disabling console mode compilation" BUILD_CONSOLE="FALSE" fi if test x"$cu_do_console" = xyes; then ENABLE_CONSOLE_TRUE= ENABLE_CONSOLE_FALSE='#' else ENABLE_CONSOLE_TRUE='#' ENABLE_CONSOLE_FALSE= fi # Check whether --enable-curses was given. if test "${enable_curses+set}" = set; then : enableval=$enable_curses; cu_do_curses=$enableval else cu_do_curses="no" fi if test x"$cu_do_curses" = xyes ; then echo "++++++++++ Enabling curses mode compilation" else echo "---------- Disabling curses mode compilation" BUILD_CURSES="FALSE" fi # Check whether --enable-examples was given. if test "${enable_examples+set}" = set; then : enableval=$enable_examples; cu_do_examples=$enableval else cu_do_examples="no" fi if test x"$cu_do_examples" = xyes ; then echo "++++++++++ Enabling examples mode compilation" BUILD_EXAMPLES="TRUE" else echo "---------- Disabling examples mode compilation" BUILD_EXAMPLES="FALSE" fi if test x"$cu_do_examples" = xyes; then ENABLE_EXAMPLES_TRUE= ENABLE_EXAMPLES_FALSE='#' else ENABLE_EXAMPLES_TRUE='#' ENABLE_EXAMPLES_FALSE= fi # Check whether --enable-test was given. if test "${enable_test+set}" = set; then : enableval=$enable_test; cu_do_test=$enableval else cu_do_test="no" fi if test x"$cu_do_test" = xyes ; then echo "++++++++++ Enabling test mode compilation" BUILD_TEST="TRUE" else echo "---------- Disabling test mode compilation" BUILD_TEST="FALSE" fi if test x"$cu_do_test" = xyes; then ENABLE_TEST_TRUE= ENABLE_TEST_FALSE='#' else ENABLE_TEST_TRUE='#' ENABLE_TEST_FALSE= fi # Check whether --enable-memtrace was given. if test "${enable_memtrace+set}" = set; then : enableval=$enable_memtrace; cu_do_memtrace=$enableval else cu_do_memtrace="no" fi if test x"$cu_do_memtrace" = xyes ; then echo "++++++++++ Enabling memtrace functionality at compile time" CFLAGS="$CFLAGS -DMEMTRACE" ENABLE_MEMTRACE="TRUE" else echo "---------- Disabling memtrace functionality at compile time" ENABLE_MEMTRACE="FALSE" fi # Check whether --enable-deprecated was given. if test "${enable_deprecated+set}" = set; then : enableval=$enable_deprecated; cu_do_deprecated=$enableval else cu_do_deprecated="no" fi if test x"$cu_do_deprecated" = xyes ; then echo "++++++++++ Enabling use of deprecated v1.1 names" CFLAGS="$CFLAGS -DUSE_DEPRECATED_CUNIT_NAMES" ENABLE_DEPRECATED="TRUE" else echo "---------- Disabling use of deprecated v1.1 names" ENABLE_DEPRECATED="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 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 test "${ac_cv_prog_CC+set}" = set; 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 test "${ac_cv_prog_ac_ct_CC+set}" = set; 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 test "${ac_cv_prog_CC+set}" = set; 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 test "${ac_cv_prog_CC+set}" = set; 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 test "${ac_cv_prog_CC+set}" = set; 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 test "${ac_cv_prog_ac_ct_CC+set}" = set; 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 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 test "${ac_cv_objext+set}" = set; 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 test "${ac_cv_c_compiler_gnu+set}" = set; 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 test "${ac_cv_prog_cc_g+set}" = set; 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 test "${ac_cv_prog_cc_c89+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* 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 test "${am_cv_CC_dependencies_compiler_type+set}" = set; 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 { $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 "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; 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 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.2.6b' macro_revision='1.3017' ltmain="$ac_aux_dir/ltmain.sh" # 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 test "${ac_cv_build+set}" = set; 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 test "${ac_cv_host+set}" = set; 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 { $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 test "${ac_cv_path_SED+set}" = set; 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 grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if test "${ac_cv_path_GREP+set}" = set; 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 test "${ac_cv_path_EGREP+set}" = set; 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" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if test "${ac_cv_path_FGREP+set}" = set; 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 test "${lt_cv_path_LD+set}" = set; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if test "${lt_cv_path_NM+set}" = set; 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 "$ac_tool_prefix"; then for ac_prog in "dumpbin -symbols" "link -dump -symbols" 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 test "${ac_cv_prog_DUMPBIN+set}" = set; 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 -symbols" "link -dump -symbols" 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 test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; 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 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 test "${lt_cv_nm_interface+set}" = set; 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:4746: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:4749: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:4752: 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 test "${lt_cv_sys_max_cmd_len+set}" = set; 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; ;; 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"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$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"}, \ = c,a/b,, \ && 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 for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; 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 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 test "${ac_cv_prog_OBJDUMP+set}" = set; 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 test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; 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 test "${lt_cv_deplibs_check_method+set}" = set; 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. if ( file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 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 ;; 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]) 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_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}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; 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}ar" $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 fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; 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="ar" $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 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 else AR="$ac_cv_prog_AR" fi test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru 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 test "${ac_cv_prog_STRIP+set}" = set; 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 test "${ac_cv_prog_ac_ct_STRIP+set}" = set; 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 test "${ac_cv_prog_RANLIB+set}" = set; 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 test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; 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 # 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 test "${lt_cv_sys_global_symbol_pipe+set}" = set; 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 # 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 #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. */ 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_save_LIBS="$LIBS" lt_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_save_LIBS" CFLAGS="$lt_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 # 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 5958 "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 test "${lt_cv_cc_needs_belf+set}" = set; 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" 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 test "${ac_cv_prog_DSYMUTIL+set}" = set; 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 test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; 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 test "${ac_cv_prog_NMEDIT+set}" = set; 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 test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; 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 test "${ac_cv_prog_LIPO+set}" = set; 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 test "${ac_cv_prog_ac_ct_LIPO+set}" = set; 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 test "${ac_cv_prog_OTOOL+set}" = set; 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 test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; 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 test "${ac_cv_prog_OTOOL64+set}" = set; 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 test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; 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 test "${lt_cv_apple_cc_single_mod+set}" = set; 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 test "${lt_cv_ld_exported_symbols_list+set}" = set; 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; } 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" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $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 test "${ac_cv_prog_CPP+set}" = set; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5 ; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in 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" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # 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 test "${lt_cv_objdir+set}" = set; 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 # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. 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' # 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 "X$cc_temp" | $Xsed -e 's%.*/%%' -e "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 test "${lt_cv_path_MAGIC_CMD+set}" = set; 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 test "${lt_cv_path_MAGIC_CMD+set}" = set; 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 lt_prog_compiler_no_builtin_flag=' -fno-builtin' { $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 test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; 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:7483: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7487: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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= { $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 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' ;; 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 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' ;; pgcc* | pgf77* | pgf90* | pgf95*) # 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*) # IBM XL C 8.0/Fortran 10.1 on PPC lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # 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='' ;; 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*) 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}: result: $lt_prog_compiler_pic" >&5 $as_echo "$lt_prog_compiler_pic" >&6; } # # 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 test "${lt_cv_prog_compiler_pic_works+set}" = set; 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:7822: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7826: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 test "${lt_cv_prog_compiler_static_works+set}" = set; 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 "X$_lt_linker_boilerplate" | $Xsed -e '/^$/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 test "${lt_cv_prog_compiler_c_o+set}" = set; 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:7927: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:7931: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 test "${lt_cv_prog_compiler_c_o+set}" = set; 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:7982: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:7986: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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) link_all_deplibs=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = 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.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' 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/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 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 ;; 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= 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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # 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; $ECHO \"$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]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; 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; $ECHO \"$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*) # 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 $compiler_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 $compiler_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 $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' 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 $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 ;; 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 $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 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 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")) && (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. 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 } }' 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 "$aix_libpath"; then 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 "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; 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. 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 } }' 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 "$aix_libpath"; then 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 "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; 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' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' 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. 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 `$ECHO "X$deplibs" | $Xsed -e '\''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' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' 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=echo 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 -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 -fPIC ${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 -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${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 -a "$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 -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${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' ;; *) archive_cmds='$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 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 $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${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. 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) {} _ACEOF if ac_fn_c_try_link "$LINENO"; then : archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${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" && $ECHO "X-set_version $verstring" | $Xsed` -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} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${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" && $ECHO "X-set_version $verstring" | $Xsed` -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 "X-set_version $verstring" | $Xsed` -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 ${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 ${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; } $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 archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 $as_echo "$archive_cmds_need_lc" >&6; } ;; 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 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # 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 -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # 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; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 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.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 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=`$ECHO "X$lib" | $Xsed -e '\''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,$host_os in yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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 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' ;; 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 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 : 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 # 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;/^$/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 test "${ac_cv_lib_dl_dlopen+set}" = set; 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" = x""yes; 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" = x""yes; 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 test "${ac_cv_lib_dld_shl_load+set}" = set; 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" = x""yes; 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" = x""yes; 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 test "${ac_cv_lib_dl_dlopen+set}" = set; 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" = x""yes; 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 test "${ac_cv_lib_svld_dlopen+set}" = set; 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" = x""yes; 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 test "${ac_cv_lib_dld_dld_link+set}" = set; 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" = x""yes; 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 test "${lt_cv_dlopen_self+set}" = set; 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 10366 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=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; /* 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 test "${lt_cv_dlopen_self_static+set}" = set; 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 10462 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif void fnord() { int i=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; /* 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=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ac_config_commands="$ac_config_commands libtool" # Only expand once: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5 $as_echo_n "checking for main in -lc... " >&6; } if test "${ac_cv_lib_c_main+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_c_main=yes else ac_cv_lib_c_main=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_c_main" >&5 $as_echo "$ac_cv_lib_c_main" >&6; } if test "x$ac_cv_lib_c_main" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBC 1 _ACEOF LIBS="-lc $LIBS" fi if test x"$cu_do_curses" = xyes ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 $as_echo_n "checking for initscr in -lncurses... " >&6; } if test "${ac_cv_lib_ncurses_initscr+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lncurses $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 initscr (); int main () { return initscr (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ncurses_initscr=yes else ac_cv_lib_ncurses_initscr=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_ncurses_initscr" >&5 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; } if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then : cu_have_curses="ncurses" else cu_have_curses="no" fi if test x"$cu_have_curses" = xno ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5 $as_echo_n "checking for initscr in -lcurses... " >&6; } if test "${ac_cv_lib_curses_initscr+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcurses $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 initscr (); int main () { return initscr (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_curses_initscr=yes else ac_cv_lib_curses_initscr=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_curses_initscr" >&5 $as_echo "$ac_cv_lib_curses_initscr" >&6; } if test "x$ac_cv_lib_curses_initscr" = x""yes; then : cu_have_curses="curses" else cu_have_curses="no" fi fi if test x"$cu_have_curses" = xno ; then echo "---------- Disabling curses mode compilation (lib not found)" cu_do_curses="no" BUILD_CURSES=FALSE else BUILD_CURSES=TRUE fi CURSES_LIB=$cu_have_curses fi if test x"$cu_do_curses" = xyes; then ENABLE_CURSES_TRUE= ENABLE_CURSES_FALSE='#' else ENABLE_CURSES_TRUE='#' ENABLE_CURSES_FALSE= fi ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc" if test "x$ac_cv_func_malloc" = x""yes; then : else echo malloc not found; exit 1 fi ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free" if test "x$ac_cv_func_free" = x""yes; then : else echo free not found; exit 1 fi ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc" if test "x$ac_cv_func_calloc" = x""yes; then : else echo calloc not found; exit 1 fi ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc" if test "x$ac_cv_func_realloc" = x""yes; then : else echo realloc not found; exit 1 fi ac_fn_c_check_func "$LINENO" "strcpy" "ac_cv_func_strcpy" if test "x$ac_cv_func_strcpy" = x""yes; then : else echo strcpy not found; exit 1 fi ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" if test "x$ac_cv_func_strerror" = x""yes; then : else echo strerror not found; exit 1 fi ac_fn_c_check_func "$LINENO" "fopen" "ac_cv_func_fopen" if test "x$ac_cv_func_fopen" = x""yes; then : else echo fopen not found; exit 1 fi ac_fn_c_check_func "$LINENO" "fclose" "ac_cv_func_fclose" if test "x$ac_cv_func_fclose" = x""yes; then : else echo fclose not found; exit 1 fi ac_fn_c_check_func "$LINENO" "fprintf" "ac_cv_func_fprintf" if test "x$ac_cv_func_fprintf" = x""yes; then : else echo fprintf not found; exit 1 fi ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf" if test "x$ac_cv_func_setvbuf" = x""yes; then : else echo setvbuf not found; exit 1 fi ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time" if test "x$ac_cv_func_time" = x""yes; then : else echo time not found; exit 1 fi ac_fn_c_check_func "$LINENO" "ctime" "ac_cv_func_ctime" if test "x$ac_cv_func_ctime" = x""yes; then : else echo ctime not found; exit 1 fi { $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 test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi for ac_header in assert.h do : ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" if test "x$ac_cv_header_assert_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_ASSERT_H 1 _ACEOF fi done for ac_header in ctype.h do : ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" if test "x$ac_cv_header_ctype_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CTYPE_H 1 _ACEOF fi done for ac_header in math.h do : ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" if test "x$ac_cv_header_math_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MATH_H 1 _ACEOF fi done for ac_header in file.h do : ac_fn_c_check_header_mongrel "$LINENO" "file.h" "ac_cv_header_file_h" "$ac_includes_default" if test "x$ac_cv_header_file_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FILE_H 1 _ACEOF fi done for ac_header in stdio.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" if test "x$ac_cv_header_stdio_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDIO_H 1 _ACEOF fi done for ac_header in stdlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" if test "x$ac_cv_header_stdlib_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDLIB_H 1 _ACEOF fi done for ac_header in string.h do : ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" if test "x$ac_cv_header_string_h" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRING_H 1 _ACEOF fi done ac_config_headers="$ac_config_headers config.h" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if test "${ac_cv_c_const+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi ac_config_files="$ac_config_files Jamrules:Jamrules.in" ac_config_files="$ac_config_files Makefile CUnit.spec cunit.pc CUnit/Makefile CUnit/Headers/Makefile CUnit/Headers/CUnit.h CUnit/Sources/Makefile CUnit/Sources/Framework/Makefile CUnit/Sources/Automated/Makefile CUnit/Sources/Basic/Makefile CUnit/Sources/Console/Makefile CUnit/Sources/Curses/Makefile CUnit/Sources/Test/Makefile doc/Makefile doc/headers/Makefile Examples/Makefile Examples/AutomatedTest/Makefile Examples/BasicTest/Makefile Examples/ConsoleTest/Makefile Examples/CursesTest/Makefile Man/Makefile Man/man3/Makefile Share/Makefile" 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 test "x$cache_file" != "x/dev/null" && { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file 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 "${ENABLE_AUTOMATED_TRUE}" && test -z "${ENABLE_AUTOMATED_FALSE}"; then as_fn_error $? "conditional \"ENABLE_AUTOMATED\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_BASIC_TRUE}" && test -z "${ENABLE_BASIC_FALSE}"; then as_fn_error $? "conditional \"ENABLE_BASIC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_CONSOLE_TRUE}" && test -z "${ENABLE_CONSOLE_FALSE}"; then as_fn_error $? "conditional \"ENABLE_CONSOLE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_TEST_TRUE}" && test -z "${ENABLE_TEST_FALSE}"; then as_fn_error $? "conditional \"ENABLE_TEST\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 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 "${ENABLE_CURSES_TRUE}" && test -z "${ENABLE_CURSES_FALSE}"; then as_fn_error $? "conditional \"ENABLE_CURSES\" 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. 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 CUnit $as_me 2.1-2, which was generated by GNU Autoconf 2.67. 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="\\ CUnit config.status 2.1-2 configured by $0, generated by GNU Autoconf 2.67, 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 "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ AR \ AR_FLAGS \ 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 \ SHELL \ ECHO \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ 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 \ fix_srcfile_path \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$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 \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` ;; esac 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" ;; "Jamrules") CONFIG_FILES="$CONFIG_FILES Jamrules:Jamrules.in" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "CUnit.spec") CONFIG_FILES="$CONFIG_FILES CUnit.spec" ;; "cunit.pc") CONFIG_FILES="$CONFIG_FILES cunit.pc" ;; "CUnit/Makefile") CONFIG_FILES="$CONFIG_FILES CUnit/Makefile" ;; "CUnit/Headers/Makefile") CONFIG_FILES="$CONFIG_FILES CUnit/Headers/Makefile" ;; "CUnit/Headers/CUnit.h") CONFIG_FILES="$CONFIG_FILES CUnit/Headers/CUnit.h" ;; "CUnit/Sources/Makefile") CONFIG_FILES="$CONFIG_FILES CUnit/Sources/Makefile" ;; "CUnit/Sources/Framework/Makefile") CONFIG_FILES="$CONFIG_FILES CUnit/Sources/Framework/Makefile" ;; "CUnit/Sources/Automated/Makefile") CONFIG_FILES="$CONFIG_FILES CUnit/Sources/Automated/Makefile" ;; "CUnit/Sources/Basic/Makefile") CONFIG_FILES="$CONFIG_FILES CUnit/Sources/Basic/Makefile" ;; "CUnit/Sources/Console/Makefile") CONFIG_FILES="$CONFIG_FILES CUnit/Sources/Console/Makefile" ;; "CUnit/Sources/Curses/Makefile") CONFIG_FILES="$CONFIG_FILES CUnit/Sources/Curses/Makefile" ;; "CUnit/Sources/Test/Makefile") CONFIG_FILES="$CONFIG_FILES CUnit/Sources/Test/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "doc/headers/Makefile") CONFIG_FILES="$CONFIG_FILES doc/headers/Makefile" ;; "Examples/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/Makefile" ;; "Examples/AutomatedTest/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/AutomatedTest/Makefile" ;; "Examples/BasicTest/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/BasicTest/Makefile" ;; "Examples/ConsoleTest/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/ConsoleTest/Makefile" ;; "Examples/CursesTest/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/CursesTest/Makefile" ;; "Man/Makefile") CONFIG_FILES="$CONFIG_FILES Man/Makefile" ;; "Man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES Man/man3/Makefile" ;; "Share/Makefile") CONFIG_FILES="$CONFIG_FILES Share/Makefile" ;; *) 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= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$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 -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$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 >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$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 < "$tmp/subs1.awk" > "$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 >"$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_t=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_t"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$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 >"$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 "$tmp/subs.awk" >$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' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$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 "$tmp/stdin" case $ac_file in -) cat "$tmp/out" && rm -f "$tmp/out";; *) rm -f "$ac_file" && mv "$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 "$tmp/defines.awk"' "$ac_file_inputs" } >"$tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$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 "$tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$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 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="" # ### 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 # 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 # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # 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 # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # 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 # 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 # The name of the directory that contains temporary libtool files. objdir=$objdir # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that does not interpret backslashes. ECHO=$lt_ECHO # 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 # 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 # 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 # 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 # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # 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 # 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 # ### 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 '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # 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 } # func_basename file func_basename () { func_basename_result="${1##*/}" } # 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##*/}" } # 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_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}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $* )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # 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 () { # 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 file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # 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 () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[^=]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$@"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1+=\$2" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1=\$$1\$2" } _LT_EOF ;; esac sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ;; 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 cunit-2.1-3-dfsg/configure.in000066400000000000000000000173461260701235000160770ustar00rootroot00000000000000dnl Applied patch to handle AC_ARG_ENABLE targets (Patch 1250604) - Provided by Andrew Kephart instead of the more traditional /lib, where is the multiarch triplet and can be retrieved with 'dpkg-architecture -qDEB_HOST_MULTIARCH'. The toolchain in Debian has been updated to cope with that, and most build systems should be unaffected. If you are using a non-Debian toolchain to build your software and it is not able to cope with multiarch, you might try to pass the following options to your compiler: -B/usr/lib/ Alternatively if the build system makes hard to pass the above options, you might try to set the LIBRARY_PATH and CPATH environment variables: LIBRARY_PATH=/usr/lib/ export LIBRARY_PATH -- Azat Khuzhin Tue, 08 Sep 2015 01:33:57 +0300 cunit-2.1-3-dfsg/debian/README.Debian000066400000000000000000000002331260701235000170340ustar00rootroot00000000000000Due to license issues all *.dsp files have been removed from the source package. -- Philipp Benner , Sat, 10 Mar 2012 22:31:46 +0000 cunit-2.1-3-dfsg/debian/changelog000066400000000000000000000101501260701235000166440ustar00rootroot00000000000000cunit (2.1-3-dfsg-1) unstable; urgency=medium * New maintainer. (Closes: #763096). * Fix pkg-config file is broken (Closes: #782366). * Bump Standards version to 3.9.6 * Bump debhelper to version 9 * Migrate to git * copyright: link to [L]GPL-2 instead of versionless [L]GPL * copyright: migrate to DEP-5 (machine-readable debian/copyright file) * copyright: add year for the second author * copyright: update header for GFDL * patches: migrate "manual-warnings" to git patch format * patches: drop "d/patches" prefix for c99 patch * patches: migrate "gcc-warnings" patch to git format * patches: migrate c99.patch to git patch format * Bump compat version * README.source, drop it * control: avoid Section duplicates (lintian) * control: drop XS prefix (lintian) * Bump to 2.1-3 (generated stuff was removed: Makefile/*.cache/libtool/cunit.pc/config.{status,log}) * Fix versions * d/watch: cleanup * d/patches: drop c99, useless int 2.1-3 * d/patches: drop fix-some-warnings-for-gcc, useless in 2.1-3 -- Azat Khuzhin Sun, 12 Jul 2015 02:04:35 +0300 cunit (2.1-2.dfsg-2) unstable; urgency=low * Package orphaned. * Added support for autopkgtest. -- Philipp Benner Sat, 27 Sep 2014 18:32:36 +0200 cunit (2.1-2.dfsg-1) unstable; urgency=low * New upstream release (Closes: #717056, #718494). * Fixed debian/watch. -- Philipp Benner Sun, 04 Aug 2013 08:42:32 +0200 cunit (2.1-0.dfsg-12) unstable; urgency=low * Standards version 3.9.4. [Dmitrijs Ledkovs] * Check return value of fgets calls. * Compile in C99 mode to get snprintf support. (Closes: #710161) -- Philipp Benner Sun, 23 Jun 2013 19:44:36 +0200 cunit (2.1-0.dfsg-11) unstable; urgency=low * Added hardening flags. * Added pkg-config (Closes: #687561). -- Philipp Benner Sun, 27 Jan 2013 15:03:52 +0100 cunit (2.1-0.dfsg-10) unstable; urgency=low * Standards version 3.9.3. * Removed *.la files from package. * debian/rules: added build-arch and build-indep. * Added debian/README.source. -- Philipp Benner Sat, 10 Mar 2012 20:40:25 +0000 cunit (2.1-0.dfsg-9) unstable; urgency=low * Standards version 3.8.0. * Use "const char *" instead of "char *" to prevent warnings with g++ (Closes: #502581). -- Philipp Benner Sun, 25 Jan 2009 22:19:21 +0000 cunit (2.1-0.dfsg-8) unstable; urgency=low * Changed the doc-base section according to the new policy. -- Philipp Benner Mon, 31 Mar 2008 10:49:16 +0200 cunit (2.1-0.dfsg-7) unstable; urgency=low * New maintainer e-mail address. * debian/control: Added DM-Upload-Allowed: yes. -- Philipp Benner Tue, 15 Jan 2008 11:42:23 +0100 cunit (2.1-0.dfsg-6) unstable; urgency=low * Machine interpretable copyright file. * Removed debtags from debian/control. * Added homepage field to debian/control. * Added Vcs-Browser and Vcs-Svn fields. * Fixed debian-rules-ignores-make-clean-error. -- Philipp Benner Wed, 28 Nov 2007 22:10:56 +0100 cunit (2.1-0.dfsg-5) unstable; urgency=low * added missing include files to documentation (Closes: #421855) -- Philipp Benner Sun, 6 May 2007 23:08:10 +0200 cunit (2.1-0.dfsg-4) unstable; urgency=low * ncurses support (Closes: #414879) -- Philipp Benner Tue, 27 Mar 2007 21:37:30 +0200 cunit (2.1-0.dfsg-3) unstable; urgency=low * watch file upate -- Philipp Benner Fri, 24 Nov 2006 11:30:08 +0100 cunit (2.1-0.dfsg-2) unstable; urgency=low * added watch file version mangle * new README.Debian-source * mentioned in debian/copyright that the documentation is distributed + under the GNU FDL * removed dh_link from debian/rules -- Philipp Benner Tue, 17 Oct 2006 14:42:46 +0200 cunit (2.1-0.dfsg-1) unstable; urgency=low * Initial release (Closes: #293009) -- Philipp Benner Mon, 18 Sep 2006 19:58:21 +0200 cunit-2.1-3-dfsg/debian/compat000066400000000000000000000000021260701235000161730ustar00rootroot000000000000009 cunit-2.1-3-dfsg/debian/control000066400000000000000000000073421260701235000164060ustar00rootroot00000000000000Source: cunit Priority: optional Maintainer: Azat Khuzhin Build-Depends: debhelper (>= 9), dh-autoreconf, libncurses5-dev (>= 5.5-5) Standards-Version: 3.9.6 Section: libs Vcs-Git: git://anonscm.debian.org/collab-maint/cunit.git Vcs-Browser: http://anonscm.debian.org/cgit/collab-maint/cunit.git Homepage: http://cunit.sourceforge.net/ Testsuite: autopkgtest Package: libcunit1-dev Section: libdevel Architecture: any Suggests: libcunit1-doc (= ${binary:Version}) Depends: ${misc:Depends}, libcunit1 (= ${binary:Version}) Description: Unit Testing Library for C -- development files CUnit is a simple framework for incorporating test cases in your C code similar to JUnit or CppUnit. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. In addition, several different interfaces are provided for running tests and reporting results. . This package includes development files for compiling against cunit. Package: libcunit1 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Description: Unit Testing Library for C CUnit is a simple framework for incorporating test cases in your C code similar to JUnit or CppUnit. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. In addition, several different interfaces are provided for running tests and reporting results. Package: libcunit1-ncurses-dev Section: libdevel Architecture: any Conflicts: libcunit1-dev Suggests: libcunit1-doc (= ${binary:Version}) Depends: ${misc:Depends}, libcunit1-ncurses (= ${binary:Version}) Description: Unit Testing Library for C (ncurses) -- development files CUnit is a simple framework for incorporating test cases in your C code similar to JUnit or CppUnit. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. In addition, several different interfaces are provided for running tests and reporting results. . This package includes development files for compiling against cunit (ncurses). Package: libcunit1-ncurses Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Conflicts: libcunit1 Depends: ${misc:Depends}, ${shlibs:Depends} Description: Unit Testing Library for C (ncurses) CUnit is a simple framework for incorporating test cases in your C code similar to JUnit or CppUnit. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. In addition, several different interfaces are provided for running tests and reporting results. . This versions includes CUnit curses interface. Package: libcunit1-doc Section: doc Architecture: all Depends: ${misc:Depends} Description: Unit Testing Library for C -- documentation CUnit is a simple framework for incorporating test cases in your C code similar to JUnit or CppUnit. It provides C programmers a basic testing functionality with a flexible variety of user interfaces. It uses a simple framework for building test structures, and provides a rich set of assertions for testing common data types. In addition, several different interfaces are provided for running tests and reporting results. . This package contains documentation. cunit-2.1-3-dfsg/debian/copyright000066400000000000000000000056361260701235000167420ustar00rootroot00000000000000Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: cunit Upstream-Contact: Jerry St.Clair Anil Kumar Source: http://cunit.sourceforge.net/ Files-Excluded: CUnit/CUnit.dsp Examples/BasicTest/BasicTest.dsp Examples/AutomatedTest/AutomatedTest.dsp Examples/WinTest/WinTest.dsp Examples/ConsoleTest/ConsoleTest.dsp Files: * Copyright: 2001, 2004-2006, Anil Kumar 2001, 2004-2006, Jerry St.Clair License: LGPL-2.0+ This package is free software; you can redistribute it 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 package is distributed in the hope that 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 program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-2". Files: doc/* Copyright: 2004-2005, Jerry St.Clair License: GFDL-NIV-1.2+ Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License.'' . On Debian systems, you can find the GNU Free Documentation License version 1.2 in the file /usr/share/common-licenses/GFDL-1.2. Files: debian/* Copyright: 2006-2012, Philipp Benner 2015, Azat Khuzhin License: GPL-2.0+ This package 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 package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". cunit-2.1-3-dfsg/debian/docs000066400000000000000000000000311260701235000156420ustar00rootroot00000000000000AUTHORS NEWS README TODO cunit-2.1-3-dfsg/debian/gbp.conf000066400000000000000000000000641260701235000164140ustar00rootroot00000000000000[DEFAULT] debian-branch=debian upstream-tree=debian cunit-2.1-3-dfsg/debian/libcunit1-dev.install000066400000000000000000000001141260701235000210270ustar00rootroot00000000000000usr/include usr/lib/*/lib*.a usr/lib/*/lib*.so usr/lib/*/pkgconfig/cunit.pc cunit-2.1-3-dfsg/debian/libcunit1-dev.manpages000066400000000000000000000000461260701235000211600ustar00rootroot00000000000000debian/tmp/usr/share/man/man3/CUnit.3 cunit-2.1-3-dfsg/debian/libcunit1-doc.doc-base000066400000000000000000000006301260701235000210300ustar00rootroot00000000000000Document: libcunit1 Title: A unit testing framework for C Author: Anil Kumar, Jerry St.Clair Abstract: CUnit uses a simple framework for building test structures. It provides a rich set of assertions for testing common data types. Section: Programming Format: HTML Index: /usr/share/doc/libcunit1-doc/html/index.html Files: /usr/share/doc/libcunit1-doc/html/*.html /usr/share/doc/libcunit1-doc/html/*.css cunit-2.1-3-dfsg/debian/libcunit1-doc.examples000066400000000000000000000000131260701235000211640ustar00rootroot00000000000000Examples/* cunit-2.1-3-dfsg/debian/libcunit1-doc.install000066400000000000000000000002521260701235000210210ustar00rootroot00000000000000usr/doc/CUnit/*.html usr/share/doc/libcunit1-doc/html usr/doc/CUnit/*.css usr/share/doc/libcunit1-doc/html usr/include/CUnit/*.h usr/share/doc/libcunit1-doc/html/headers cunit-2.1-3-dfsg/debian/libcunit1-ncurses-dev.install000066400000000000000000000001141260701235000225070ustar00rootroot00000000000000usr/include usr/lib/*/lib*.a usr/lib/*/lib*.so usr/lib/*/pkgconfig/cunit.pc cunit-2.1-3-dfsg/debian/libcunit1-ncurses-dev.manpages000066400000000000000000000000561260701235000226410ustar00rootroot00000000000000debian/tmp-ncurses/usr/share/man/man3/CUnit.3 cunit-2.1-3-dfsg/debian/libcunit1-ncurses.install000066400000000000000000000000441260701235000217350ustar00rootroot00000000000000usr/lib/*/lib*.so.* usr/share/CUnit cunit-2.1-3-dfsg/debian/libcunit1-ncurses.lintian-overrides000066400000000000000000000000771260701235000237330ustar00rootroot00000000000000libcunit1-ncurses: package-name-doesnt-match-sonames libcunit1 cunit-2.1-3-dfsg/debian/libcunit1.install000066400000000000000000000000441260701235000202550ustar00rootroot00000000000000usr/lib/*/lib*.so.* usr/share/CUnit cunit-2.1-3-dfsg/debian/patches/000077500000000000000000000000001260701235000164245ustar00rootroot00000000000000cunit-2.1-3-dfsg/debian/patches/0003-fix-warnings-in-man.patch000066400000000000000000000050711260701235000236210ustar00rootroot00000000000000From 2e44434922f469eeb69f875f1168811f969d5902 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Mon, 7 Sep 2015 10:33:28 +0300 Subject: [PATCH] fix warnings in man --- Man/man3/CUnit.3 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Man/man3/CUnit.3 b/Man/man3/CUnit.3 index 6ea4e6d..ae50ddf 100644 --- a/Man/man3/CUnit.3 +++ b/Man/man3/CUnit.3 @@ -473,7 +473,7 @@ dynamically. The following functions are provided for this purpose, and should be used instead of directly setting the value of the data structure members. All return CUE_SUCCESS on success, and the indicated error code on failure. .P -.TP5 +.TP 5 .B "CU_ErrorCode CU_set_suite_name(CU_pSuite pSuite, const char *strNewName)" .TP 5 .B "CU_ErrorCode CU_set_test_name(CU_pTest pTest, const char *strNewName)" @@ -481,7 +481,7 @@ These functions change the name of registered suites and tests. The current nam are available as the .B pSuite->pName and -.BpTest->pName +.B pTest->pName data structure members. If the suite or test is NULL, then CUE_NOSUITE or CUE_NOTEST is returned, respectively. If strNewName is NULL, then CUE_NO_SUITENAME or CUE_NO_TESTNAME is returned, respectively. @@ -518,13 +518,13 @@ nothing is known about the suite or test, the client will need to iterate the in data structures to enumerate the suites and tests. This is not directly supported in the client API. .P -.TP5 +.TP 5 .B "CU_pSuite CU_get_suite(const char* strName)" -.TP5 +.TP 5 .B "CU_pSuite CU_get_suite_at_pos(unsigned int pos)" -.TP5 +.TP 5 .B "unsigned int CU_get_suite_pos(CU_pSuite pSuite)" -.TP5 +.TP 5 .B "unsigned int CU_get_suite_pos_by_name(const char* strName)"

These functions facilitate lookup of suites registered in the active test registry. @@ -539,13 +539,13 @@ These return 0 if the suite cannot be found. In addition, all these functions s CUnit error state to CUE_NOREGISTRY> if the registry is not initialized. As appropriate, CUE_NO_SUITENAME is set if strName is NULL, and CUE_NOSUITE is set if pSuite is NULL. .P -.TP5 +.TP 5 .B "CU_pTest CU_get_test(CU_pSuite pSuite, const char *strName)" -.TP5 +.TP 5 .B "CU_pTest CU_get_test_at_pos<(CU_pSuite pSuite, unsigned int pos)" -.TP5 +.TP 5 .B "unsigned int CU_get_test_pos<(CU_pSuite pSuite, CU_pTest pTest)" -.TP5 +.TP 5 .B "unsigned int CU_get_test_pos_by_name(CU_pSuite pSuite, const char *strName)" These functions facilitate lookup of tests registered in suites. The first 2 functions allow lookup of the test by name or position and return NULL if the -- 2.5.1 cunit-2.1-3-dfsg/debian/patches/series000066400000000000000000000000371260701235000176410ustar00rootroot000000000000000003-fix-warnings-in-man.patch cunit-2.1-3-dfsg/debian/rules000077500000000000000000000031251260701235000160560ustar00rootroot00000000000000#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 # hardening flags DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk export DEB_CFLAGS_MAINT_APPEND = -Wall -g export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs %: dh $@ --with autoreconf override_dh_auto_configure: mkdir -p debian/build debian/build-ncurses tar -cf - --exclude=debian/build* --exclude=.pc . | tar -xf - -C debian/build cd debian/build && dh_auto_configure -- --disable-curses tar -cf - --exclude=debian/build* --exclude=.pc . | tar -xf - -C debian/build-ncurses cd debian/build-ncurses && dh_auto_configure -- --enable-curses LDFLAGS="-lncurses" override_dh_auto_build: cd debian/build && dh_auto_build cd debian/build-ncurses && dh_auto_build override_dh_auto_test: cd debian/build && dh_auto_test cd debian/build-ncurses && dh_auto_test override_dh_install: ${MAKE} -C debian/build \ DESTDIR=$(shell pwd)/debian/tmp install ${MAKE} -C debian/build-ncurses \ DESTDIR=$(shell pwd)/debian/tmp-ncurses install dh_install -plibcunit1 -plibcunit1-dev \ --sourcedir=debian/tmp dh_install -plibcunit1-ncurses -plibcunit1-ncurses-dev \ --sourcedir=debian/tmp-ncurses dh_install -plibcunit1-doc \ --sourcedir=debian/tmp override_dh_installman: dh_installman -plibcunit1-dev dh_installman -plibcunit1-ncurses-dev override_dh_installexamples: dh_installexamples find debian/libcunit1-doc/usr/share/doc/libcunit1-doc/examples -type f | xargs -r chmod u=rw,g=r,o=r override_dh_strip: dh_strip -plibcunit1 -plibcunit1-ncurses dh_strip --remaining-packages cunit-2.1-3-dfsg/debian/source/000077500000000000000000000000001260701235000162755ustar00rootroot00000000000000cunit-2.1-3-dfsg/debian/source/format000066400000000000000000000000141260701235000175030ustar00rootroot000000000000003.0 (quilt) cunit-2.1-3-dfsg/debian/tests/000077500000000000000000000000001260701235000161375ustar00rootroot00000000000000cunit-2.1-3-dfsg/debian/tests/control000066400000000000000000000000631260701235000175410ustar00rootroot00000000000000Tests: test.sh Depends: Restrictions: build-needed cunit-2.1-3-dfsg/debian/tests/test.c000066400000000000000000000024641260701235000172700ustar00rootroot00000000000000#include #include #include #define ADD_TEST(X) do { if (!X) { CU_cleanup_registry();return CU_get_error(); } } while (0) int init_suite(void) { fprintf(stdout, "Suite initialized!\n"); return 0; } int clean_suite(void) { fprintf(stdout, "\n\nSuite cleaned!\n"); return 0; } void test(void) { int x = 1; CU_ASSERT_EQUAL(x, 1); return; } int main(void) { CU_pSuite ste = NULL; if (CUE_SUCCESS != CU_initialize_registry()) { return CU_get_error(); } ste = CU_add_suite("cunit_test", init_suite, clean_suite); if (NULL == ste) { CU_cleanup_registry(); return CU_get_error(); } if (CU_get_error() != CUE_SUCCESS) { fprintf(stderr, "Error creating suite (%d): %s\n", CU_get_error(), CU_get_error_msg()); } ADD_TEST(CU_add_test(ste, "Verify 1 == 1...", test)); if (CU_get_error() != CUE_SUCCESS) { fprintf(stderr, "Error creating suite (%d): %s\n", CU_get_error(), CU_get_error_msg()); } CU_basic_set_mode(CU_BRM_VERBOSE); CU_ErrorCode run_errors = CU_basic_run_suite(ste); if (run_errors != CUE_SUCCESS) { fprintf(stderr, "Error running tests (%d): %s\n", run_errors, CU_get_error_msg()); } CU_basic_show_failures(CU_get_failure_list()); CU_cleanup_registry(); printf("\nDone!\n"); return CU_get_error(); } cunit-2.1-3-dfsg/debian/tests/test.sh000066400000000000000000000003711260701235000174530ustar00rootroot00000000000000#! /bin/sh for d in debian/tmp debian/tmp-ncurses; do LIB="$(echo "$PWD/$d"/usr/lib/*)" INC="$PWD/$d/usr/include" gcc -Wall -L"$LIB" -I"$INC" -lcunit -o "$ADTTMP/test" debian/tests/test.c LD_LIBRARY_PATH="$LIB" "$ADTTMP/test" done cunit-2.1-3-dfsg/debian/watch000066400000000000000000000001711260701235000160250ustar00rootroot00000000000000version=3 opts="uversionmangle=s/-src//,dversionmangle=s/\.dfsg//" \ http://sf.net/cunit/CUnit-(.+)\.tar\.(?:gz|bz2) cunit-2.1-3-dfsg/depcomp000066400000000000000000000275331260701235000151370ustar00rootroot00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects # Copyright 1999, 2000 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 . 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 # `libtool' can also be set to `yes' or `no'. if test -z "$depfile"; then base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` dir=`echo "$object" | sed 's,/.*$,/,'` if test "$dir" = "$object"; then dir= fi # FIXME: should be _deps on DOS. depfile="$dir.deps/$base" fi 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. 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. stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" outname="$stripped.o" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then # 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" ;; 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 tmpdepfile1="$dir.libs/$base.lo.d" tmpdepfile2="$dir.libs/$base.d" "$@" -Wc,-MD else tmpdepfile1="$dir$base.o.d" tmpdepfile2="$dir$base.d" "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi if test -f "$tmpdepfile1"; then tmpdepfile="$tmpdepfile1" else tmpdepfile="$tmpdepfile2" fi if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a space and a tab 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 proprocessed 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'. We will use -o /dev/null later, # however we can't do the remplacement now because # `-o $object' might simply not be used 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 "$@" -o /dev/null $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 $? # 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 ;; -*) ;; *) 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 proprocessed 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 proprocessed 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 cunit-2.1-3-dfsg/doc/000077500000000000000000000000001260701235000143205ustar00rootroot00000000000000cunit-2.1-3-dfsg/doc/CUnit_doc.css000066400000000000000000000012531260701235000167020ustar00rootroot00000000000000A:link { color: blue } A:active { color: blue; font-weight: bold } A:visited { color: blue } BODY { background: white; color: black; font-family: Arial, Helvetica, sans-serif; margin-right: 20px; margin-left: 20px; } CITE { color: maroon; font-family: "Times New Roman", Times, serif; font-style: normal; font-weight: normal; font-size: 105%; } P.indent2 { margin-left: +2%; } P.indent5 { margin-left: +5%; } P.indent10 { margin-left: +10%; } B.cite { color: maroon; } PRE.indent2 { margin-left: +2%; } PRE.indent5 { margin-left: +5%; } PRE.indent10 { margin-left: +10%; } .copyright { font-size: 70%; font-style: italic; } DT.H1 { margin-top: +1%; }cunit-2.1-3-dfsg/doc/Jamfile000066400000000000000000000027261260701235000156210ustar00rootroot00000000000000# # Jamfile to build CUnit - doc Directory # (see http://www.freetype.org/jam/index.html) # # Copyright (C) 2004-2006 Jerry St.Clair # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library 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 #--------------------------------------------------------------------------- SubDir TOP doc ; if $(INSTALL_DOC_DIR) { InstallFile $(INSTALL_DOC_DIR) : CUnit_doc.css ; InstallFile $(INSTALL_DOC_DIR) : error_handling.html ; InstallFile $(INSTALL_DOC_DIR) : fdl.html ; InstallFile $(INSTALL_DOC_DIR) : index.html ; InstallFile $(INSTALL_DOC_DIR) : introduction.html ; InstallFile $(INSTALL_DOC_DIR) : managing_tests.html ; InstallFile $(INSTALL_DOC_DIR) : running_tests.html ; InstallFile $(INSTALL_DOC_DIR) : test_registry.html ; InstallFile $(INSTALL_DOC_DIR) : writing_tests.html ; } SubInclude TOP doc headers ; cunit-2.1-3-dfsg/doc/Makefile.am000066400000000000000000000004521260701235000163550ustar00rootroot00000000000000## Process this file with automake to produce Makefile.in docdir = $(prefix)/doc/@PACKAGE@ doc_DATA = \ CUnit_doc.css \ error_handling.html \ fdl.html \ index.html \ introduction.html \ managing_tests.html \ running_tests.html \ test_registry.html \ writing_tests.html SUBDIRS = headerscunit-2.1-3-dfsg/doc/Makefile.in000066400000000000000000000506061260701235000163740ustar00rootroot00000000000000# Makefile.in generated by automake 1.14 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 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@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/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) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(docdir)" DATA = $(doc_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_AUTOMATED = @BUILD_AUTOMATED@ BUILD_BASIC = @BUILD_BASIC@ BUILD_CONSOLE = @BUILD_CONSOLE@ BUILD_CURSES = @BUILD_CURSES@ BUILD_EXAMPLES = @BUILD_EXAMPLES@ BUILD_TEST = @BUILD_TEST@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CURSES_LIB = @CURSES_LIB@ 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@ ENABLE_DEBUG = @ENABLE_DEBUG@ ENABLE_DEPRECATED = @ENABLE_DEPRECATED@ ENABLE_MEMTRACE = @ENABLE_MEMTRACE@ 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@ LIBTOOL_AGE = @LIBTOOL_AGE@ LIBTOOL_CURRENT = @LIBTOOL_CURRENT@ LIBTOOL_REVISION = @LIBTOOL_REVISION@ LIBTOOL_SUFFIX = @LIBTOOL_SUFFIX@ LIBTOOL_SUFFIX1 = @LIBTOOL_SUFFIX1@ 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@ RELEASE = @RELEASE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ VERSION_MAJOR = @VERSION_MAJOR@ VERSION_MINOR = @VERSION_MINOR@ 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_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 = $(prefix)/doc/@PACKAGE@ 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@ doc_DATA = \ CUnit_doc.css \ error_handling.html \ fdl.html \ index.html \ introduction.html \ managing_tests.html \ running_tests.html \ test_registry.html \ writing_tests.html SUBDIRS = headers all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-docDATA: $(doc_DATA) @$(NORMAL_INSTALL) @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(docdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(docdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \ done uninstall-docDATA: @$(NORMAL_UNINSTALL) @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(docdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(docdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-docDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-docDATA .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ check-am clean clean-generic clean-libtool cscopelist-am ctags \ ctags-am distclean distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-docDATA install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-docDATA # 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: cunit-2.1-3-dfsg/doc/error_handling.html000066400000000000000000000157461260701235000202200ustar00rootroot00000000000000 CUnit - Error Handling