diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..e69de29 diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..623b625 --- /dev/null +++ b/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +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 software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, 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 redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +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 Program or any portion +of it, thus forming a work based on the Program, 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) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +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 Program, 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 Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) 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; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, 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 executable. 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. + +If distribution of executable or 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 counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program 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. + + 5. 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 Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program 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. + + 7. 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 Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program 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 Program. + +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. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program 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. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies 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 Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, 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 + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. 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 PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +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 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 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/DialogBlocks/mpg.pjd b/DialogBlocks/mpg.pjd new file mode 100644 index 0000000..e3b86be --- /dev/null +++ b/DialogBlocks/mpg.pjd @@ -0,0 +1,6592 @@ + + + + 1.0 + dialogblocks + + Project File + + + 0 + + + + + 153 + mpg.xrc + FALSE + FALSE + TRUE + TRUE + TRUE + FALSE + + + + FALSE + <All platforms> + 2.6.1 + ///////////////////////////////////////////////////////////////////////////// +// Name: %HEADER-FILENAME% +// Purpose: +// Author: %AUTHOR% +// Modified by: +// Created: %DATE% +// RCS-ID: +// Copyright: %COPYRIGHT% +// Licence: +///////////////////////////////////////////////////////////////////////////// + + + ///////////////////////////////////////////////////////////////////////////// +// Name: %SOURCE-FILENAME% +// Purpose: +// Author: %AUTHOR% +// Modified by: +// Created: %DATE% +// RCS-ID: +// Copyright: %COPYRIGHT% +// Licence: +///////////////////////////////////////////////////////////////////////////// + + + /*! + * %BODY% + */ + + + ///////////////////////////////////////////////////////////////////////////// +// Name: %SYMBOLS-FILENAME% +// Purpose: Symbols file +// Author: %AUTHOR% +// Modified by: +// Created: %DATE% +// RCS-ID: +// Copyright: %COPYRIGHT% +// Licence: +///////////////////////////////////////////////////////////////////////////// + + + app_resources.h + app_resources.cpp + AppResources + app.h + app.cpp + Application + FALSE + + MinGW Release + + + 15144904 + data-document + + + 0 + 1 + 0 + 0 + 0 + + Configurations + 15143832 + config-data-document + + + 0 + 1 + 0 + 15144904 + 0 + + TRUE + + Debug + ANSI + Static + Modular + GUI + wxMSW + Dynamic + Yes + No + No + %WXVERSION% + %EXECUTABLE% + + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + + MinGW Debug + 15176304 + mingw-config-data-document + + + 0 + 1 + 0 + 15143832 + 0 + MinGW + TRUE + MinGW + Debug + ANSI + Static + Modular + GUI + wxMSW + Dynamic + Yes + No + No + %WXVERSION% + %EXECUTABLE% + + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + + + MinGW Release + 15158432 + mingw-config-data-document + + + 0 + 1 + 0 + 15143832 + 0 + MinGW + TRUE + MinGW + Release + ANSI + Static + Modular + GUI + wxMSW + Dynamic + Yes + No + No + %WXVERSION% + %EXECUTABLE% + + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + %AUTO% + + + + + Projects + 15121064 + root-document + + project + 1 + 1 + 0 + 0 + 0 + + Windows + 15203568 + html-document + + dialogsfolder + 1 + 1 + 0 + 15121064 + 1 + + MpgApp + 15150608 + dialog-document + + app + 0 + 1 + 0 + 15203568 + 0 + 21/8/2005 + wbAppProxy + 10000 + FALSE + + 0 + MpgApp + wxApp + mpg.cpp + mpg.h + + ID_FRAME + + + Metroid Password Generator + 15265528 + dialog-document + + frame + 0 + 1 + 0 + 15203568 + 0 + 21/8/2005 + wbFrameProxy + 10000 + FALSE + + 2 + IDF_MPG + 10000 + MPGFrame + wxFrame + MPGFrame.cc + MPGFrame.hh + + Metroid Password Generator + TRUE + + FALSE + + + FFFFFF + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + TRUE + TRUE + FALSE + FALSE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + FALSE + TRUE + -1 + -1 + 400 + 300 + + + wxMenuBar: IDM_MPG + 15255544 + dialog-control-document + + menubar + 0 + 1 + 0 + 15265528 + 0 + 21/8/2005 + wbMenuBarProxy + IDM_MPG + <Any platform> + + File + 15220680 + dialog-control-document + + menu + 0 + 1 + 0 + 15255544 + 0 + 21/8/2005 + wbMenuProxy + &File + <Any platform> + + E&xit: wxID_EXIT + 15217512 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15220680 + 0 + 21/8/2005 + wbMenuItemProxy + wxID_EXIT + 5006 + E&xit + Normal + FALSE + TRUE + Exits Metroid Password Generator + + <Any platform> + + + + Password + 15219160 + dialog-control-document + + menu + 0 + 1 + 0 + 15255544 + 0 + 25/8/2005 + wbMenuProxy + &Password + <Any platform> + + &Perfect Game\tCtrl-P: IDM_PASSWORD_PERFECTGAME + 15206512 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15219160 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_PERFECTGAME + 10092 + &Perfect Game\tCtrl-P + Normal + FALSE + TRUE + Give Perfect Password + + <Any platform> + + + &Debug Password\tCtrl-D: IDM_PASSWORD_DEBUGPASSWORD + 15247968 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15219160 + 0 + 27/8/2005 + wbMenuItemProxy + IDM_PASSWORD_DEBUGPASSWORD + 10093 + &Debug Password\tCtrl-D + Normal + FALSE + TRUE + Give the Debug Mode Password + + <Any platform> + + + ------------ + 38853984 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15219160 + 0 + 27/8/2005 + wbMenuSeparatorProxy + <Any platform> + + + &Reset\tCtrl-R: IDM_PASSWORD_RESET + 15291920 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15219160 + 0 + 27/8/2005 + wbMenuItemProxy + IDM_PASSWORD_RESET + 10097 + &Reset\tCtrl-R + Normal + FALSE + TRUE + Resets The Password + + <Any platform> + + + ------------ + 15382800 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15219160 + 0 + 27/8/2005 + wbMenuSeparatorProxy + <Any platform> + + + Ending: IDM_PASSWORD_ENDINGS + 15354872 + dialog-control-document + + menu + 0 + 1 + 0 + 15219160 + 0 + 25/8/2005 + wbSubmenuProxy + IDM_PASSWORD_ENDINGS + 10079 + &Ending + + TRUE + <Any platform> + + Best (Samus in Bikini)\tCtrl-1: IDM_PASSWORD_ENDING1 + 15270184 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15354872 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_ENDING1 + 10081 + Best (Samus in Bikini)\tCtrl-1 + Normal + FALSE + TRUE + Best Ending: Samus in Bikini + + <Any platform> + + + 2nd Best (Samus in Swimsuit)\tCtrl-2: IDM_PASSWORD_ENDING2 + 15502208 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15354872 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_ENDING2 + 10081 + 2nd Best (Samus in Swimsuit)\tCtrl-2 + Normal + FALSE + TRUE + 2nd Ending: Samus in Swimsuit + + <Any platform> + + + 3rd Best (Samus without Helmet)\tCtrl-3: IDM_PASSWORD_ENDING3 + 32514056 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15354872 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_ENDING3 + 10082 + 3rd Best (Samus without Helmet)\tCtrl-3 + Normal + FALSE + TRUE + 3rd Ending: Samus Without Her Helmet + + <Any platform> + + + 4th Best (Samus Victory Pose)\tCtrl-4: IDM_PASSWORD_ENDING4 + 15314976 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15354872 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_ENDING4 + 10083 + 4th Best (Samus Victory Pose)\tCtrl-4 + Normal + FALSE + TRUE + 4th Ending: Samus in Victory Pose + + <Any platform> + + + Worst (Samus Shame Pose)\tCtrl-5: IDM_PASSWORD_ENDING5 + 15262576 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15354872 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_ENDING5 + 10080 + Worst (Samus Shame Pose)\tCtrl-5 + Normal + FALSE + TRUE + Worst Ending: Samus in Shame Pose + + <Any platform> + + + + Give: IDM_PASSWORD_GIVE + 15333528 + dialog-control-document + + menu + 0 + 1 + 0 + 15219160 + 0 + 25/8/2005 + wbSubmenuProxy + IDM_PASSWORD_GIVE + 10084 + &Give + + TRUE + <Any platform> + + All Items\tF1: IDM_PASSWORD_GIVE_ITEMS + 15319480 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15333528 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_GIVE_ITEMS + 10085 + All Items\tF1 + Normal + FALSE + TRUE + Give All Items + + <Any platform> + + + All Missile Containers\tF2: IDM_PASSWORD_GIVE_MC + 15215192 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15333528 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_GIVE_MC + 10086 + All Missile Containers\tF2 + Normal + FALSE + TRUE + Give All Missile Containers + + <Any platform> + + + All Energy Tanks\tF3: IDM_PASSWORD_GIVE_ET + 15260824 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15333528 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_GIVE_ET + 10087 + All Energy Tanks\tF3 + Normal + FALSE + TRUE + Give All Energy Tanks + + <Any platform> + + + All Red && Yellow Doors\tF4: IDM_PASSWORD_GIVE_DOORS + 15638144 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15333528 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_GIVE_DOORS + 10088 + All Red && Yellow Doors\tF4 + Normal + FALSE + TRUE + Open All Red and Yellow Doors + + <Any platform> + + + All Statues\tF5: IDM_PASSWORD_GIVE_STATUES + 32468608 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15333528 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_GIVE_STATUES + 10089 + All Statues\tF5 + Normal + FALSE + TRUE + Raise Kraid & Ridley Statues + + <Any platform> + + + All Zebetites\tF6: IDM_PASSWORD_GIVE_ZEBETITES + 15556192 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15333528 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_GIVE_ZEBETITES + 10090 + All Zebetites\tF6 + Normal + FALSE + TRUE + Kill All Zebetites in Tourian + + <Any platform> + + + All Bosses\tF7: IDM_PASSWORD_GIVE_BOSSES + 15244032 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15333528 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_GIVE_BOSSES + 10091 + All Bosses\tF7 + Normal + FALSE + TRUE + Kill All Bosses + + <Any platform> + + + Full Missile Count\tF8: IDM_PASSWORD_GIVE_MISSILES + 15275416 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15333528 + 0 + 25/8/2005 + wbMenuItemProxy + IDM_PASSWORD_GIVE_MISSILES + 10095 + Full Missile Count\tF8 + Normal + FALSE + TRUE + Fill Samus's Missile Inventory + + <Any platform> + + + + + Help + 15385336 + dialog-control-document + + menu + 0 + 1 + 0 + 15255544 + 0 + 21/8/2005 + wbMenuProxy + &Help + <Any platform> + + About: wxID_ABOUT + 15387152 + dialog-control-document + + menuitem + 0 + 1 + 0 + 15385336 + 0 + 21/8/2005 + wbMenuItemProxy + wxID_ABOUT + 5013 + About + Normal + FALSE + TRUE + About Metroid Password Generator + + <Any platform> + + + + + wxBoxSizer V + 15350984 + dialog-control-document + + sizer + 0 + 1 + 0 + 15265528 + 0 + 21/8/2005 + wbBoxSizerProxy + Vertical + + FALSE + FALSE + FALSE + <Any platform> + + wxNotebook: IDN_MPG + 15330696 + dialog-control-document + + notebook + 0 + 1 + 0 + 15350984 + 0 + 21/8/2005 + wbNotebookProxy + IDN_MPG + 10001 + wxNotebook + + FALSE + + + + + + FALSE + TRUE + <Any platform> + + + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Expand + Centre + 1 + 0 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + + + + wxPanel: IDP_ITEMS + 15298712 + dialog-control-document + + panel + 0 + 1 + 0 + 15330696 + 0 + 21/8/2005 + wbPanelProxy + IDP_ITEMS + 10004 + wxPanel + Items + + wxPanel + + FALSE + + + + + + FALSE + TRUE + <Any platform> + FALSE + FALSE + FALSE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + TRUE + FALSE + FALSE + + TRUE + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 5 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + + + + + wxBoxSizer V + 15397320 + dialog-control-document + + sizer + 0 + 1 + 0 + 15298712 + 0 + 21/8/2005 + wbBoxSizerProxy + Vertical + + Centre + Centre + 0 + 0 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + <Any platform> + + wxBoxSizer H + 15456344 + dialog-control-document + + sizer + 0 + 1 + 0 + 15397320 + 0 + 21/8/2005 + wbBoxSizerProxy + Horizontal + + Left + Centre + 0 + 5 + FALSE + FALSE + TRUE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxStaticText: wxID_STATIC + 15389656 + dialog-control-document + + statictext + 0 + 1 + 0 + 15456344 + 0 + 21/8/2005 + wbStaticTextProxy + wxID_STATIC + 5105 + wxStaticText + + Missiles: + + + + + + FALSE + TRUE + <Any platform> + + + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + TRUE + FALSE + + + + + wxSpinCtrl: IDSC_ITEMS_MISSILES + 15437408 + dialog-control-document + + spinctrl + 0 + 1 + 0 + 15456344 + 0 + 21/8/2005 + wbSpinCtrlProxy + IDSC_ITEMS_MISSILES + 10043 + wxSpinCtrl + + 0 + 255 + 0 + + + + + + FALSE + TRUE + <Any platform> + + + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + + + + + + wxStaticBoxSizer V + 15250496 + dialog-control-document + + sizer + 0 + 1 + 0 + 15397320 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Items + + + + FALSE + TRUE + Vertical + + Left + Centre + 0 + 5 + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxFlexGridSizer + 15196880 + dialog-control-document + + sizer + 0 + 1 + 0 + 15250496 + 0 + 21/8/2005 + wbFlexGridSizerProxy + + + 4 + 2 + 0 + 0 + + <Any platform> + Centre + Centre + 0 + 0 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + + wxCheckBox: IDC_ITEMS_MARUMARI + 15288448 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15196880 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MARUMARI + 10009 + wxCheckBox + + Maru Mari + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_LONGBEAM + 15359664 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15196880 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_LONGBEAM + 10010 + wxCheckBox + + Long Beam + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_WAVEBEAM + 15373384 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15196880 + 0 + 24/8/2005 + wbCheckBoxProxy + IDC_ITEMS_WAVEBEAM + 10014 + wxCheckBox + + Wave Beam + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_ICEBEAM + 15423944 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15196880 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_ICEBEAM + 10012 + wxCheckBox + + Ice Beam + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_BOMBS + 15466288 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15196880 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_BOMBS + 10011 + wxCheckBox + + Bombs + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_HIGHJUMPBOOTS + 15480000 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15196880 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_HIGHJUMPBOOTS + 10013 + wxCheckBox + + High Jump Boots + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_SCREWATTACK + 15493720 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15196880 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_SCREWATTACK + 10015 + wxCheckBox + + Screw Attack + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_VARIA + 15511520 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15196880 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_VARIA + 10016 + wxCheckBox + + Varia + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + + wxStaticBoxSizer H + 15285296 + dialog-control-document + + sizer + 0 + 1 + 0 + 15397320 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Missile Containers + + + + FALSE + TRUE + Horizontal + + Left + Centre + 0 + 5 + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxStaticBoxSizer V + 15531880 + dialog-control-document + + sizer + 0 + 1 + 0 + 15285296 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Brinstar + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxCheckBox: IDC_ITEMS_MC_BS1 + 15542944 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15531880 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_BS1 + 10017 + wxCheckBox + + One + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_BS2 + 15560928 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15531880 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_BS2 + 10018 + wxCheckBox + + Two + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + wxStaticBoxSizer V + 15575024 + dialog-control-document + + sizer + 0 + 1 + 0 + 15285296 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Kraid's Lair + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxCheckBox: IDC_ITEMS_MC_KL1 + 15584048 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15575024 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_KL1 + 10019 + wxCheckBox + + One + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_KL2 + 15598720 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15575024 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_KL2 + 10020 + wxCheckBox + + Two + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_KL3 + 15613256 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15575024 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_KL3 + 10021 + wxCheckBox + + Three + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_KL4 + 15627752 + dialog-control-document + + checkbox + 0 + 1 + 0 + 15575024 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_KL4 + 10022 + wxCheckBox + + Four + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + wxStaticBoxSizer V + 15646344 + dialog-control-document + + sizer + 0 + 1 + 0 + 15285296 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Norfair + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxFlexGridSizer + 32382920 + dialog-control-document + + sizer + 0 + 1 + 0 + 15646344 + 0 + 21/8/2005 + wbFlexGridSizerProxy + + + 4 + 3 + 0 + 0 + + <Any platform> + Centre + Centre + 0 + 0 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + + wxCheckBox: IDC_ITEMS_MC_NF1 + 32392768 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF1 + 10023 + wxCheckBox + + One + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_NF4 + 32407384 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF4 + 10024 + wxCheckBox + + Four + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_NF7 + 32421728 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF7 + 10025 + wxCheckBox + + Seven + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_NF10 + 32436144 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF10 + 10026 + wxCheckBox + + Ten + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_NF2 + 32450520 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF2 + 10027 + wxCheckBox + + Two + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_NF5 + 32469152 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF5 + 10028 + wxCheckBox + + Five + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_NF8 + 32483464 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF8 + 10029 + wxCheckBox + + Eight + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_NF11 + 32497856 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF11 + 10030 + wxCheckBox + + Eleven + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_NF3 + 32512272 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF3 + 10031 + wxCheckBox + + Three + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_NF6 + 32534880 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF6 + 10032 + wxCheckBox + + Six + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_NF9 + 32549296 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF9 + 10033 + wxCheckBox + + Nine + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_NF12 + 38859232 + dialog-control-document + + checkbox + 0 + 1 + 0 + 32382920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_NF12 + 10034 + wxCheckBox + + Twelve + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + + wxStaticBoxSizer V + 38873664 + dialog-control-document + + sizer + 0 + 1 + 0 + 15285296 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Ridley's Lair + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxCheckBox: IDC_ITEMS_MC_RL1 + 38881968 + dialog-control-document + + checkbox + 0 + 1 + 0 + 38873664 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_RL1 + 10035 + wxCheckBox + + One + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_RL2 + 38895608 + dialog-control-document + + checkbox + 0 + 1 + 0 + 38873664 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_RL2 + 10036 + wxCheckBox + + Two + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_MC_RL3 + 38910080 + dialog-control-document + + checkbox + 0 + 1 + 0 + 38873664 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_MC_RL3 + 10037 + wxCheckBox + + Three + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + + wxStaticBoxSizer V + 38924616 + dialog-control-document + + sizer + 0 + 1 + 0 + 15397320 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Energy Tanks + + + + FALSE + TRUE + Vertical + + Left + Centre + 0 + 5 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + <Any platform> + + wxFlexGridSizer + 38932920 + dialog-control-document + + sizer + 0 + 1 + 0 + 38924616 + 0 + 21/8/2005 + wbFlexGridSizerProxy + + + 4 + 2 + 0 + 0 + + <Any platform> + Centre + Centre + 0 + 0 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + + wxCheckBox: IDC_ITEMS_ET_BS1 + 38940944 + dialog-control-document + + checkbox + 0 + 1 + 0 + 38932920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_ET_BS1 + 10006 + wxCheckBox + + Brinstar One + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_ET_BS2 + 38955656 + dialog-control-document + + checkbox + 0 + 1 + 0 + 38932920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_ET_BS2 + 10039 + wxCheckBox + + Brinstar Two + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_ET_BS3 + 38970160 + dialog-control-document + + checkbox + 0 + 1 + 0 + 38932920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_ET_BS3 + 10007 + wxCheckBox + + Brinstar Three + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_ET_NF + 38984656 + dialog-control-document + + checkbox + 0 + 1 + 0 + 38932920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_ET_NF + 10040 + wxCheckBox + + Norfair + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_ET_KL + 38999200 + dialog-control-document + + checkbox + 0 + 1 + 0 + 38932920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_ET_KL + 10008 + wxCheckBox + + Kraid's Lair + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_ET_KL_KRAID + 39013712 + dialog-control-document + + checkbox + 0 + 1 + 0 + 38932920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_ET_KL_KRAID + 10041 + wxCheckBox + + Kraid's Room + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_ET_RL + 39028208 + dialog-control-document + + checkbox + 0 + 1 + 0 + 38932920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_ET_RL + 10038 + wxCheckBox + + Ridley's Lair + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_ITEMS_ET_RL_RIDLEY + 39042744 + dialog-control-document + + checkbox + 0 + 1 + 0 + 38932920 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_ITEMS_ET_RL_RIDLEY + 10042 + wxCheckBox + + Ridley's Room + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + + + + wxPanel: IDP_MISC + 15396152 + dialog-control-document + + panel + 0 + 1 + 0 + 15330696 + 0 + 21/8/2005 + wbPanelProxy + IDP_MISC + 10062 + wxPanel + Misc + + wxPanel + + FALSE + + + + + + FALSE + TRUE + <Any platform> + FALSE + FALSE + FALSE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + TRUE + FALSE + FALSE + + TRUE + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 5 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + + + + + wxBoxSizer V + 39069160 + dialog-control-document + + sizer + 0 + 1 + 0 + 15396152 + 0 + 21/8/2005 + wbBoxSizerProxy + Vertical + + Centre + Centre + 0 + 0 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + <Any platform> + + wxBoxSizer H + 39076680 + dialog-control-document + + sizer + 0 + 1 + 0 + 39069160 + 0 + 21/8/2005 + wbBoxSizerProxy + Horizontal + + Left + Centre + 0 + 5 + FALSE + FALSE + TRUE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxStaticText: wxID_STATIC + 39086072 + dialog-control-document + + statictext + 0 + 1 + 0 + 39076680 + 0 + 21/8/2005 + wbStaticTextProxy + wxID_STATIC + 5105 + wxStaticText + + Game Time: + + + + + + FALSE + TRUE + <Any platform> + + + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + TRUE + FALSE + + + + + wxTextCtrl: IDT_MISC_GAMETIME + 39103128 + dialog-control-document + + textctrl + 0 + 1 + 0 + 39076680 + 0 + 21/8/2005 + wbTextCtrlProxy + IDT_MISC_GAMETIME + 10003 + wxTextCtrl + + 0 + 0 + + + + + + FALSE + TRUE + <Any platform> + + + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + + + + + + wxStaticBoxSizer H + 39123744 + dialog-control-document + + sizer + 0 + 1 + 0 + 39069160 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Red and Yellow Doors + + + + FALSE + TRUE + Horizontal + + Left + Centre + 0 + 5 + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxStaticBoxSizer V + 39132344 + dialog-control-document + + sizer + 0 + 1 + 0 + 39123744 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Brinstar + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxCheckBox: IDC_MISC_DOORS_BS_LONGBEAM + 39143304 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39132344 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_BS_LONGBEAM + 10005 + wxCheckBox + + Long Beam + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_BS_TOURIANBRIDGE + 39157944 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39132344 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_BS_TOURIANBRIDGE + 10044 + wxCheckBox + + Tourian Bridge + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_BS_BOMBS + 39172448 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39132344 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_BS_BOMBS + 10045 + wxCheckBox + + Bombs + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_BS_ICEBEAM + 39186952 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39132344 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_BS_ICEBEAM + 10046 + wxCheckBox + + Ice Beam + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_BS_VARIA + 39201496 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39132344 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_BS_VARIA + 10047 + wxCheckBox + + Varia + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + wxStaticBoxSizer V + 39215944 + dialog-control-document + + sizer + 0 + 1 + 0 + 39123744 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Kraid's Lair + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxCheckBox: IDC_MISC_DOORS_KL1 + 39224968 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39215944 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_KL1 + 10048 + wxCheckBox + + One + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_KL2 + 39239664 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39215944 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_KL2 + 10049 + wxCheckBox + + Two + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_KL3 + 39254168 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39215944 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_KL3 + 10050 + wxCheckBox + + Three + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_KL4 + 39268664 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39215944 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_KL4 + 10051 + wxCheckBox + + Four + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_KL_KRAID + 39283240 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39215944 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_KL_KRAID + 10052 + wxCheckBox + + Kraid's Room + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + wxStaticBoxSizer V + 39297736 + dialog-control-document + + sizer + 0 + 1 + 0 + 39123744 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Norfair + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxCheckBox: IDC_MISC_DOORS_NF_HIGHJUMPBOOTS + 39306760 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39297736 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_NF_HIGHJUMPBOOTS + 10053 + wxCheckBox + + High Jump Boots + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_NF_SCREWATTACK + 39321432 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39297736 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_NF_SCREWATTACK + 10054 + wxCheckBox + + Screw Attack + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_NF_WAVEBEAM + 39335968 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39297736 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_NF_WAVEBEAM + 10055 + wxCheckBox + + Wave Beam + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_NF_ICEBEAM + 39350504 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39297736 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_NF_ICEBEAM + 10056 + wxCheckBox + + Ice Beam + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + wxStaticBoxSizer V + 39364952 + dialog-control-document + + sizer + 0 + 1 + 0 + 39123744 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Ridley's Lair + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxCheckBox: IDC_MISC_DOORS_RL + 39373976 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39364952 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_RL + 10057 + wxCheckBox + + One + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_RL_RIDLEY + 39388688 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39364952 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_RL_RIDLEY + 10058 + wxCheckBox + + Ridley's Room + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + wxStaticBoxSizer V + 39403136 + dialog-control-document + + sizer + 0 + 1 + 0 + 39123744 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Tourian + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxCheckBox: IDC_MISC_DOORS_T1 + 39412160 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39403136 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_T1 + 10059 + wxCheckBox + + One + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_T2 + 39426872 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39403136 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_T2 + 10060 + wxCheckBox + + Two + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_DOORS_T3 + 39441368 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39403136 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_DOORS_T3 + 10061 + wxCheckBox + + Three + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + + wxBoxSizer H + 39455784 + dialog-control-document + + sizer + 0 + 1 + 0 + 39069160 + 0 + 21/8/2005 + wbBoxSizerProxy + Horizontal + + Left + Centre + 0 + 5 + FALSE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + <Any platform> + + wxRadioBox: IDRB_MISC_START + 39461784 + dialog-control-document + + radiobox + 0 + 1 + 0 + 39455784 + 0 + 21/8/2005 + wbRadioBoxProxy + IDRB_MISC_START + 10065 + wxRadioBox + + Start Location + 5 + + + + + + FALSE + TRUE + <Any platform> + + + FALSE + TRUE + Brinstar|Kraid's Lair|Norfair|Ridley's Lair|Tourian + FALSE + + -1 + -1 + -1 + -1 + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + + + + + wxStaticBoxSizer V + 39475304 + dialog-control-document + + sizer + 0 + 1 + 0 + 39455784 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Statues + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxCheckBox: IDC_MISC_STATUE_KRAID + 39485368 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39475304 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_STATUE_KRAID + 10066 + wxCheckBox + + Kraid + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_STATUE_RIDLEY + 39500048 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39475304 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_STATUE_RIDLEY + 10067 + wxCheckBox + + Ridley + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + wxRadioBox: IDRB_MISC_ARMOR + 39514352 + dialog-control-document + + radiobox + 0 + 1 + 0 + 39455784 + 0 + 21/8/2005 + wbRadioBoxProxy + IDRB_MISC_ARMOR + 10068 + wxRadioBox + + Armor + 2 + + + + + + FALSE + TRUE + <Any platform> + + + FALSE + TRUE + Space Suit|Swim Suit + FALSE + + -1 + -1 + -1 + -1 + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + + + + + wxStaticBoxSizer V + 39527696 + dialog-control-document + + sizer + 0 + 1 + 0 + 39455784 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Zebetites + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxCheckBox: IDC_MISC_ZEBETITE1 + 39537768 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39527696 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_ZEBETITE1 + 10069 + wxCheckBox + + One + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_ZEBETITE2 + 39552288 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39527696 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_ZEBETITE2 + 10070 + wxCheckBox + + Two + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_ZEBETITE3 + 39566672 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39527696 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_ZEBETITE3 + 10071 + wxCheckBox + + Three + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_ZEBETITE4 + 39581088 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39527696 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_ZEBETITE4 + 10072 + wxCheckBox + + Four + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_ZEBETITE5 + 39595504 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39527696 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_ZEBETITE5 + 10073 + wxCheckBox + + Five + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + wxStaticBoxSizer V + 39609840 + dialog-control-document + + sizer + 0 + 1 + 0 + 39455784 + 0 + 21/8/2005 + wbStaticBoxSizerProxy + wxID_ANY + -1 + Bosses + + + + FALSE + TRUE + Vertical + + Centre + Top + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxCheckBox: IDC_MISC_BOSS_KRAID + 39618872 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39609840 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_BOSS_KRAID + 10074 + wxCheckBox + + Kraid + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_BOSS_RIDLEY + 39633400 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39609840 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_BOSS_RIDLEY + 10075 + wxCheckBox + + Ridley + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + wxCheckBox: IDC_MISC_BOSS_MOTHERBRAIN + 39647776 + dialog-control-document + + checkbox + 0 + 1 + 0 + 39609840 + 0 + 21/8/2005 + wbCheckBoxProxy + IDC_MISC_BOSS_MOTHERBRAIN + 10076 + wxCheckBox + + Mother Brain + FALSE + + + + + + + + FALSE + TRUE + <Any platform> + FALSE + TRUE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Left + Centre + 0 + 5 + TRUE + TRUE + FALSE + TRUE + FALSE + FALSE + FALSE + + + + + + + + + wxPanel: IDP_RAW + 15414024 + dialog-control-document + + panel + 0 + 1 + 0 + 15330696 + 0 + 21/8/2005 + wbPanelProxy + IDP_RAW + 10063 + wxPanel + Raw + + wxPanel + + FALSE + + + + + + FALSE + TRUE + <Any platform> + FALSE + FALSE + FALSE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + TRUE + FALSE + FALSE + + TRUE + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 5 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + + + + + wxBoxSizer V + 39676576 + dialog-control-document + + sizer + 0 + 1 + 0 + 15414024 + 0 + 21/8/2005 + wbBoxSizerProxy + Vertical + + Centre + Centre + 0 + 0 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + <Any platform> + + wxBoxSizer H + 39682968 + dialog-control-document + + sizer + 0 + 1 + 0 + 39676576 + 0 + 26/8/2005 + wbBoxSizerProxy + Horizontal + + Left + Centre + 0 + 5 + FALSE + FALSE + TRUE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxStaticText: wxID_STATIC + 39691424 + dialog-control-document + + statictext + 0 + 1 + 0 + 39682968 + 0 + 26/8/2005 + wbStaticTextProxy + wxID_STATIC + 5105 + wxStaticText + + Shift Byte: + + + + + + FALSE + TRUE + <Any platform> + + + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + TRUE + FALSE + + + + + wxSpinCtrl: IDSC_RAW_SHIFT + 39707896 + dialog-control-document + + spinctrl + 0 + 1 + 0 + 39682968 + 0 + 26/8/2005 + wbSpinCtrlProxy + IDSC_RAW_SHIFT + 10096 + wxSpinCtrl + + 0 + 255 + 0 + + + + + + FALSE + TRUE + <Any platform> + + + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 5 + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + + + + + + wxBoxSizer V + 39723848 + dialog-control-document + + sizer + 0 + 1 + 0 + 39676576 + 0 + 26/8/2005 + wbBoxSizerProxy + Vertical + + Expand + Centre + 1 + 5 + FALSE + FALSE + TRUE + TRUE + FALSE + FALSE + FALSE + <Any platform> + + wxStaticText: wxID_STATIC + 39730512 + dialog-control-document + + statictext + 0 + 1 + 0 + 39723848 + 0 + 26/8/2005 + wbStaticTextProxy + wxID_STATIC + 5105 + wxStaticText + + Password Data + + + + + + FALSE + TRUE + <Any platform> + + + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 5 + FALSE + FALSE + FALSE + FALSE + FALSE + TRUE + FALSE + + + + + wxCheckListBox: IDCLB_RAW_BITS + 39747176 + dialog-control-document + + listbox + 0 + 1 + 0 + 39723848 + 0 + 26/8/2005 + wbCheckListBoxProxy + IDCLB_RAW_BITS + 10064 + wxCheckListBox + + Bit 1: Maru Mari Taken|Bit 2: Missile Container (Brinstar)|Bit 3: Red Door to Long Beam|Bit 4: Red Door to Tourian Bridge|Bit 5: Energy Tank (Brinstar)|Bit 6: Red Door to Bombs|Bit 7: Bombs Taken|Bit 8: Red Door to Ice Beam (Brinstar)|Bit 9: Missile Container (Brinstar)|Bit 10: Energy Tank (Brinstar)|Bit 11: Red Door to Varia|Bit 12: Varia Taken|Bit 13: Energy Tank (Brinstar)|Bit 14: Missile Container (Norfair)|Bit 15: Missile Container (Norfair)|Bit 16: Red Door to Ice Beam (Norfair)|Bit 17: Missile Container (Norfair)|Bit 18: Missile Container (Norfair)|Bit 19: Missile Container (Norfair)|Bit 20: Missile Container (Norfair)|Bit 21: Missile Container (Norfair)|Bit 22: Missile Container (Norfair)|Bit 23: Missile Container (Norfair)|Bit 24: Red Door to High Jump Boots|Bit 25: High Jump Boots Taken|Bit 26: Red Door to Screw Attack|Bit 27: Screw Attack Taken|Bit 28: Missile Container (Norfair)|Bit 29: Missile Container (Norfair)|Bit 30: Red Door to Wave Beam|Bit 31: Energy Tank (Norfair)|Bit 32: Missile Container (Norfair)|Bit 33: Red Door (Kraid's Lair)|Bit 34: Missile Container (Kraid's Lair)|Bit 35: Missile Container (Kraid's Lair)|Bit 36: Red Door (Kraid's Lair)|Bit 37: Energy Tank (Kraid's Lair)|Bit 38: Red Door (Kraid's Lair)|Bit 39: Red Door (Kraid's Lair)|Bit 40: Missile Container (Kraid's Lair)|Bit 41: Missile Container (Kraid's Lair)|Bit 42: Red Door to Kraid|Bit 43: Energy Tank in Kraid's Room|Bit 44: Missile Container (Ridley's Lair)|Bit 45: Red Door (Ridley's Lair)|Bit 46: Energy Tank (Ridley's Lair)|Bit 47: Missile Container (Ridley's Lair)|Bit 48: Yellow Door in Ridley's Room|Bit 49: Energy Tank behind Ridley's Room|Bit 50: Missile Container (Ridley's Lair)|Bit 51: Yellow Door (Tourian)|Bit 52: Red Door (Tourian)|Bit 53: Red Door (Tourian)|Bit 54: Zebetite 1 Dead|Bit 55: Zebetite 2 Dead|Bit 56: Zebetite 3 Dead|Bit 57: Zebetite 4 Dead|Bit 58: Zebetite 5 Dead|Bit 59: Mother Brain Dead|Bit 60: Unknown|Bit 61: Unknown|Bit 62: Unknown|Bit 63: Unknown|Bit 64: Unknown|Bit 65: Start in Norfair (+66 = Tourian)|Bit 66: Start in Kraid's Lair (+65 = Tourian)|Bit 67: Start in Ridley's Lair|Bit 68: Reset|Bit 69: Unknown|Bit 70: Unknown|Bit 71: Unknown|Bit 72: Samus in Swim Suit|Bit 73: Have Bombs|Bit 74: Have High Jump Boots|Bit 75: Have Long Beam|Bit 76: Have Screw Attack|Bit 77: Have Maru Mari|Bit 78: Have Varia|Bit 79: Have Wave Beam|Bit 80: Have Ice Beam|Bit 81: Missile Count (+1)|Bit 82: Missile Count (+2)|Bit 83: Missile Count (+4)|Bit 84: Missile Count (+8)|Bit 85: Missile Count (+16)|Bit 86: Missile Count (+32)|Bit 87: Missile Count (+64)|Bit 88: Missile Count (+128)|Bit 89: Game Age (+1)|Bit 90: Game Age (+2)|Bit 91: Game Age (+4)|Bit 92: Game Age (+8)|Bit 93: Game Age (+16)|Bit 94: Game Age (+32)|Bit 95: Game Age (+64)|Bit 96: Game Age (+128)|Bit 97: Game Age (+256)|Bit 98: Game Age (+512)|Bit 99: Game Age (+1024)|Bit 100: Game Age (+2048)|Bit 101: Game Age (+4096)|Bit 102: Game Age (+8192)|Bit 103: Game Age (+16384)|Bit 104: Game Age (+32768)|Bit 105: Game Age (+65536)|Bit 106: Game Age (+131072)|Bit 107: Game Age (+262144)|Bit 108: Game Age (+524288)|Bit 109: Game Age (+1048576)|Bit 110: Game Age (+2097152)|Bit 111: Game Age (+4194304)|Bit 112: Game Age (+8388608)|Bit 113: Game Age (+16777216)|Bit 114: Game Age (+33554432)|Bit 115: Game Age (+67108864)|Bit 116: Game Age (+134217728)|Bit 117: Game Age (+268435456)|Bit 118: Game Age (+536870912)|Bit 119: Game Age (+1073741824)|Bit 120: Game Age (+2147483648)|Bit 121: Unknown|Bit 122: Unknown|Bit 123: Unknown|Bit 124: Unknown|Bit 125: Ridley Dead|Bit 126: Ridley Statue Raised|Bit 127: Kraid Dead|Bit 128: Kraid Statue Raised + + + + + + FALSE + TRUE + <Any platform> + + + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Expand + Expand + 1 + 5 + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + + + + + + + + + wxBoxSizer H + 39411632 + dialog-control-document + + sizer + 0 + 1 + 0 + 15350984 + 0 + 21/8/2005 + wbBoxSizerProxy + Horizontal + + Centre + Centre + 0 + 0 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + <Any platform> + + wxStaticText: wxID_STATIC + 39767080 + dialog-control-document + + statictext + 0 + 1 + 0 + 39411632 + 0 + 21/8/2005 + wbStaticTextProxy + wxID_STATIC + 5105 + wxStaticText + + Password: + + + + + + FALSE + TRUE + <Any platform> + + + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 5 + FALSE + TRUE + FALSE + FALSE + FALSE + TRUE + FALSE + + + + + wxBoxSizer V + 39782320 + dialog-control-document + + sizer + 0 + 1 + 0 + 39411632 + 0 + 21/8/2005 + wbBoxSizerProxy + Vertical + + Centre + Centre + 0 + 5 + FALSE + FALSE + TRUE + FALSE + FALSE + FALSE + FALSE + <Any platform> + + wxPanel: IDP_PASSWORD + 39788552 + dialog-control-document + + panel + 0 + 1 + 0 + 39782320 + 0 + 27/8/2005 + wbPanelProxy + IDP_PASSWORD + 10002 + PasswordPanel + wxPanel + + TRUE + + + 000000 + + + FALSE + TRUE + <Any platform> + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + TRUE + FALSE + FALSE + + TRUE + -1 + -1 + 216 + 56 + Left + Centre + 0 + 0 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + + + + + + wxBoxSizer H + 39805096 + dialog-control-document + + sizer + 0 + 1 + 0 + 39782320 + 0 + 27/8/2005 + wbBoxSizerProxy + Horizontal + + Expand + Centre + 0 + 5 + FALSE + FALSE + TRUE + TRUE + FALSE + FALSE + FALSE + <Any platform> + + wxTextCtrl: IDT_PASSWORD + 39813544 + dialog-control-document + + textctrl + 0 + 1 + 0 + 39805096 + 0 + 27/8/2005 + wbTextCtrlProxy + IDT_PASSWORD + 10077 + wxTextCtrl + + 000000 000000 000000 000000 + 0 + + + + + 10, wxMODERN, wxNORMAL, wxNORMAL + FALSE + TRUE + <Any platform> + + + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Expand + Centre + 1 + 5 + FALSE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + + + + + wxButton: IDB_CHECKSUM + 39834816 + dialog-control-document + + dialogcontrol + 0 + 1 + 0 + 39805096 + 0 + 27/8/2005 + wbButtonProxy + IDB_CHECKSUM + 10078 + wxButton + + Fix Checksum + FALSE + + + + + + FALSE + FALSE + <Any platform> + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 0 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + + + + + + + + + wxStatusBar: IDS_MPG + 15202816 + dialog-control-document + + statusbar + 0 + 1 + 0 + 15265528 + 0 + 25/8/2005 + wbStatusBarProxy + IDS_MPG + 10094 + wxStatusBar + + + + + + + FALSE + TRUE + <Any platform> + 1 + + + TRUE + TRUE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + FALSE + + -1 + -1 + -1 + -1 + Centre + Centre + 0 + 0 + TRUE + TRUE + TRUE + TRUE + FALSE + FALSE + FALSE + + + + + + + Sources + 15179208 + html-document + + sourcesfolder + 1 + 1 + 0 + 15121064 + 1 + + mpg.rc + 15172128 + source-editor-document + mpg.rc + source-editor + 0 + 0 + 1 + 15179208 + 0 + 21/8/2005 + + + + + Images + 15178776 + html-document + + bitmapsfolder + 1 + 1 + 0 + 15121064 + 1 + + + diff --git a/Doxyfile b/Doxyfile new file mode 100644 index 0000000..df77576 --- /dev/null +++ b/Doxyfile @@ -0,0 +1,234 @@ +# Doxyfile 1.4.4 + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = "Metroid Password Generator" +PROJECT_NUMBER = 0.90 +OUTPUT_DIRECTORY = apidocs +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = YES +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = YES +FULL_PATH_NAMES = YES +STRIP_FROM_PATH = +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = YES +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = YES +INHERIT_DOCS = NO +DISTRIBUTE_GROUP_DOC = NO +SEPARATE_MEMBER_PAGES = NO +TAB_SIZE = 4 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = NO +OPTIMIZE_OUTPUT_JAVA = NO +SUBGROUPING = YES +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +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 = NO +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 = NO +SHOW_DIRECTORIES = YES +FILE_VERSION_FILTER = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = source +FILE_PATTERNS = *.cc \ + *.hh +RECURSIVE = YES +EXCLUDE = +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 = YES +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = NO +REFERENCED_BY_RELATION = NO +REFERENCES_RELATION = NO +USE_HTAGS = NO +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 = +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 = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = NO +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1024 +MAX_DOT_GRAPH_DEPTH = 1000 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO + diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..23e5f25 --- /dev/null +++ b/INSTALL @@ -0,0 +1,236 @@ +Installation Instructions +************************* + +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free +Software Foundation, Inc. + +This file is free documentation; the Free Software Foundation gives +unlimited permission to copy, distribute and modify it. + +Basic Installation +================== + +These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. (Caching is +disabled by default to prevent problems with accidental use of stale +cache files.) + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You only need +`configure.ac' if you want to change it or regenerate `configure' using +a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. 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. Run `./configure --help' for +details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +==================================== + +You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you 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 support 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' installs the package's commands under +`/usr/local/bin', include files under `/usr/local/include', etc. You +can specify an installation prefix other than `/usr/local' by giving +`configure' the option `--prefix=PREFIX'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +pass the option `--exec-prefix=PREFIX' to `configure', the package uses +PREFIX as the prefix for installing programs and libraries. +Documentation and other data files still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=DIR' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + +Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + +There may be some features `configure' cannot figure out automatically, +but needs to determine by the type of machine the package will run on. +Usually, assuming the package is built to be run on the _same_ +architectures, `configure' can figure that out, but if it prints a +message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the option `--target=TYPE' to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. + +Sharing Defaults +================ + +If you want to set default values for `configure' scripts to share, you +can create a site shell script called `config.site' that gives default +values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +================== + +Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +causes the specified `gcc' to be used as the C compiler (unless it is +overridden in the site shell script). Here is a another example: + + /bin/bash ./configure CONFIG_SHELL=/bin/bash + +Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent +configuration-related scripts to be executed by `/bin/bash'. + +`configure' Invocation +====================== + +`configure' recognizes the following options to control how it operates. + +`--help' +`-h' + Print a summary of the options to `configure', and exit. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff --git a/Info.plist b/Info.plist new file mode 100644 index 0000000..c241474 --- /dev/null +++ b/Info.plist @@ -0,0 +1,48 @@ + + + + + CFBundleInfoDictionaryVersion + 6.0 + + CFBundleIdentifier + com.emuWorks.mpg + + CFBundleDevelopmentRegion + English + + CFBundleExecutable + mpg + + CFBundleName + mpg + + CFBundlePackageType + APPL + + CFBundleSignature + ???? + + CFBundleVersion + 0.90 + + CFBundleShortVersionString + 0.90 + + CFBundleGetInfoString + mpg 0.90, (C) 2005 John Ratliff + + CFBundleLongVersionString + 0.90, (C) 2005 John Ratliff + + NSHumanReadableCopyright + Copyright 2005 John Ratliff + + LSRequiresCarbon + + + CSResourcesFileMapped + + + + diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..8bf8fe2 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,12 @@ +SUBDIRS = source +EXTRA_DIST = apidocs docs/*.txt DialogBlocks/mpg.pjd Doxyfile TODO Info.plist + +allclean: clean + -rm -rf apidocs + -rm -f *.bz2 *.gz + -find -iname "*~" -exec rm -f {} \; + +.PHONY: apidocs +apidocs: Doxyfile + @doxygen + diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..b0c4323 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,602 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 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@ +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = . +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +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@ +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(srcdir)/config.h.in \ + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ + TODO config.guess config.sub depcomp install-sh missing +subdir = . +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno configure.status.lineno +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-exec-recursive install-info-recursive \ + install-recursive installcheck-recursive installdirs-recursive \ + pdf-recursive ps-recursive uninstall-info-recursive \ + uninstall-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } +DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 $(distdir).zip +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EXEEXT = @EXEEXT@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +WINDOWS_FALSE = @WINDOWS_FALSE@ +WINDOWS_TRUE = @WINDOWS_TRUE@ +WX_CFLAGS = @WX_CFLAGS@ +WX_CFLAGS_ONLY = @WX_CFLAGS_ONLY@ +WX_CONFIG_PATH = @WX_CONFIG_PATH@ +WX_CPPFLAGS = @WX_CPPFLAGS@ +WX_CXXFLAGS = @WX_CXXFLAGS@ +WX_CXXFLAGS_ONLY = @WX_CXXFLAGS_ONLY@ +WX_INCLUDES = @WX_INCLUDES@ +WX_LIBS = @WX_LIBS@ +WX_LIBS_STATIC = @WX_LIBS_STATIC@ +WX_VERSION = @WX_VERSION@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +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@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +SUBDIRS = source +EXTRA_DIST = apidocs docs/*.txt DialogBlocks/mpg.pjd Doxyfile TODO Info.plist +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +am--refresh: + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ + cd $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + 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) + cd $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + +config.h: stamp-h1 + @if test ! -f $@; then \ + rm -f stamp-h1; \ + $(MAKE) stamp-h1; \ + else :; fi + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: $(am__configure_deps) + cd $(top_srcdir) && $(AUTOHEADER) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 +uninstall-info-am: + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (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" + +mostlyclean-recursive clean-recursive distclean-recursive \ +maintainer-clean-recursive: + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + 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 || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + mkdir $(distdir) + $(mkdir_p) $(distdir)/DialogBlocks $(distdir)/docs + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(mkdir_p) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + distdir) \ + || exit 1; \ + fi; \ + done + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -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 $(SHELL) $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && cd $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' +distuninstallcheck: + @cd $(distuninstallcheck_dir) \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile config.h +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: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +info: info-recursive + +info-am: + +install-data-am: + +install-exec-am: + +install-info: install-info-recursive + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: uninstall-info-am + +uninstall-info: uninstall-info-recursive + +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ + check-am clean clean-generic clean-recursive ctags \ + ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \ + dist-tarZ dist-zip distcheck distclean distclean-generic \ + distclean-hdr distclean-recursive distclean-tags \ + distcleancheck distdir distuninstallcheck dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-exec install-exec-am install-info \ + install-info-am install-man install-strip installcheck \ + installcheck-am installdirs installdirs-am maintainer-clean \ + maintainer-clean-generic maintainer-clean-recursive \ + mostlyclean mostlyclean-generic mostlyclean-recursive pdf \ + pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ + uninstall-info-am + + +allclean: clean + -rm -rf apidocs + -rm -f *.bz2 *.gz + -find -iname "*~" -exec rm -f {} \; + +.PHONY: apidocs +apidocs: Doxyfile + @doxygen +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/NEWS b/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/README b/README new file mode 100644 index 0000000..e69de29 diff --git a/TODO b/TODO new file mode 100644 index 0000000..03a72a0 --- /dev/null +++ b/TODO @@ -0,0 +1,2 @@ +- maybe add fake keystrokes to go right/left on password entry + diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 0000000..aaec653 --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,1196 @@ +# generated automatically by aclocal 1.9.6 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# 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. + +dnl --------------------------------------------------------------------------- +dnl Macros for wxWidgets detection. Typically used in configure.in as: +dnl +dnl AC_ARG_ENABLE(...) +dnl AC_ARG_WITH(...) +dnl ... +dnl AM_OPTIONS_WXCONFIG +dnl ... +dnl ... +dnl AM_PATH_WXCONFIG(2.6.0, wxWin=1) +dnl if test "$wxWin" != 1; then +dnl AC_MSG_ERROR([ +dnl wxWidgets must be installed on your system +dnl but wx-config script couldn't be found. +dnl +dnl Please check that wx-config is in path, the directory +dnl where wxWidgets libraries are installed (returned by +dnl 'wx-config --libs' command) is in LD_LIBRARY_PATH or +dnl equivalent variable and wxWidgets version is 2.3.4 or above. +dnl ]) +dnl fi +dnl CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" +dnl CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY" +dnl CFLAGS="$CFLAGS $WX_CFLAGS_ONLY" +dnl +dnl LIBS="$LIBS $WX_LIBS" +dnl --------------------------------------------------------------------------- + +dnl --------------------------------------------------------------------------- +dnl AM_OPTIONS_WXCONFIG +dnl +dnl adds support for --wx-prefix, --wx-exec-prefix, --with-wxdir and +dnl --wx-config command line options +dnl --------------------------------------------------------------------------- + +AC_DEFUN([AM_OPTIONS_WXCONFIG], +[ + AC_ARG_WITH(wxdir, + [ --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH], + [ wx_config_name="$withval/wx-config" + wx_config_args="--inplace"]) + AC_ARG_WITH(wx-config, + [ --with-wx-config=CONFIG wx-config script to use (optional)], + wx_config_name="$withval" ) + AC_ARG_WITH(wx-prefix, + [ --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)], + wx_config_prefix="$withval", wx_config_prefix="") + AC_ARG_WITH(wx-exec-prefix, + [ --with-wx-exec-prefix=PREFIX + Exec prefix where wxWidgets is installed (optional)], + wx_config_exec_prefix="$withval", wx_config_exec_prefix="") +]) + +dnl Helper macro for checking if wx version is at least $1.$2.$3, set's +dnl wx_ver_ok=yes if it is: +AC_DEFUN([_WX_PRIVATE_CHECK_VERSION], +[ + wx_ver_ok="" + if test "x$WX_VERSION" != x ; then + if test $wx_config_major_version -gt $1; then + wx_ver_ok=yes + else + if test $wx_config_major_version -eq $1; then + if test $wx_config_minor_version -gt $2; then + wx_ver_ok=yes + else + if test $wx_config_minor_version -eq $2; then + if test $wx_config_micro_version -ge $3; then + wx_ver_ok=yes + fi + fi + fi + fi + fi + fi +]) + +dnl --------------------------------------------------------------------------- +dnl AM_PATH_WXCONFIG(VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND +dnl [, WX-LIBS [, ADDITIONAL-WX-CONFIG-FLAGS]]]]) +dnl +dnl Test for wxWidgets, and define WX_C*FLAGS, WX_LIBS and WX_LIBS_STATIC +dnl (the latter is for static linking against wxWidgets). Set WX_CONFIG_NAME +dnl environment variable to override the default name of the wx-config script +dnl to use. Set WX_CONFIG_PATH to specify the full path to wx-config - in this +dnl case the macro won't even waste time on tests for its existence. +dnl +dnl Optional WX-LIBS argument contains comma- or space-separated list of +dnl wxWidgets libraries to link against (it may include contrib libraries). If +dnl it is not specified then WX_LIBS and WX_LIBS_STATIC will contain flags to +dnl link with all of the core wxWidgets libraries. +dnl +dnl Optional ADDITIONAL-WX-CONFIG-FLAGS argument is appended to wx-config +dnl invocation command in present. It can be used to fine-tune lookup of +dnl best wxWidgets build available. +dnl +dnl Example use: +dnl AM_PATH_WXCONFIG([2.6.0], [wxWin=1], [wxWin=0], [html,core,net] +dnl [--unicode --debug]) +dnl --------------------------------------------------------------------------- + +dnl +dnl Get the cflags and libraries from the wx-config script +dnl +AC_DEFUN([AM_PATH_WXCONFIG], +[ + dnl do we have wx-config name: it can be wx-config or wxd-config or ... + if test x${WX_CONFIG_NAME+set} != xset ; then + WX_CONFIG_NAME=wx-config + fi + + if test "x$wx_config_name" != x ; then + WX_CONFIG_NAME="$wx_config_name" + fi + + dnl deal with optional prefixes + if test x$wx_config_exec_prefix != x ; then + wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix" + WX_LOOKUP_PATH="$wx_config_exec_prefix/bin" + fi + if test x$wx_config_prefix != x ; then + wx_config_args="$wx_config_args --prefix=$wx_config_prefix" + WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin" + fi + if test "$cross_compiling" = "yes"; then + wx_config_args="$wx_config_args --host=$host_alias" + fi + + dnl don't search the PATH if WX_CONFIG_NAME is absolute filename + if test -x "$WX_CONFIG_NAME" ; then + AC_MSG_CHECKING(for wx-config) + WX_CONFIG_PATH="$WX_CONFIG_NAME" + AC_MSG_RESULT($WX_CONFIG_PATH) + else + AC_PATH_PROG(WX_CONFIG_PATH, $WX_CONFIG_NAME, no, "$WX_LOOKUP_PATH:$PATH") + fi + + if test "$WX_CONFIG_PATH" != "no" ; then + WX_VERSION="" + + min_wx_version=ifelse([$1], ,2.2.1,$1) + if test -z "$5" ; then + AC_MSG_CHECKING([for wxWidgets version >= $min_wx_version]) + else + AC_MSG_CHECKING([for wxWidgets version >= $min_wx_version ($5)]) + fi + + WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $5 $4" + + WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null` + wx_config_major_version=`echo $WX_VERSION | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + wx_config_minor_version=`echo $WX_VERSION | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + wx_config_micro_version=`echo $WX_VERSION | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + + wx_requested_major_version=`echo $min_wx_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + wx_requested_minor_version=`echo $min_wx_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + wx_requested_micro_version=`echo $min_wx_version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + + _WX_PRIVATE_CHECK_VERSION([$wx_requested_major_version], + [$wx_requested_minor_version], + [$wx_requested_micro_version]) + + if test -n "$wx_ver_ok"; then + + AC_MSG_RESULT(yes (version $WX_VERSION)) + WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs` + + dnl is this even still appropriate? --static is a real option now + dnl and WX_CONFIG_WITH_ARGS is likely to contain it if that is + dnl what the user actually wants, making this redundant at best. + dnl For now keep it in case anyone actually used it in the past. + AC_MSG_CHECKING([for wxWidgets static library]) + WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null` + if test "x$WX_LIBS_STATIC" = "x"; then + AC_MSG_RESULT(no) + else + AC_MSG_RESULT(yes) + fi + + dnl starting with version 2.2.6 wx-config has --cppflags argument + wx_has_cppflags="" + if test $wx_config_major_version -gt 2; then + wx_has_cppflags=yes + else + if test $wx_config_major_version -eq 2; then + if test $wx_config_minor_version -gt 2; then + wx_has_cppflags=yes + else + if test $wx_config_minor_version -eq 2; then + if test $wx_config_micro_version -ge 6; then + wx_has_cppflags=yes + fi + fi + fi + fi + fi + + if test "x$wx_has_cppflags" = x ; then + dnl no choice but to define all flags like CFLAGS + WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags` + WX_CPPFLAGS=$WX_CFLAGS + WX_CXXFLAGS=$WX_CFLAGS + + WX_CFLAGS_ONLY=$WX_CFLAGS + WX_CXXFLAGS_ONLY=$WX_CFLAGS + else + dnl we have CPPFLAGS included in CFLAGS included in CXXFLAGS + WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags` + WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags` + WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags` + + WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"` + WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"` + fi + + ifelse([$2], , :, [$2]) + + else + + if test "x$WX_VERSION" = x; then + dnl no wx-config at all + AC_MSG_RESULT(no) + else + AC_MSG_RESULT(no (version $WX_VERSION is not new enough)) + fi + + WX_CFLAGS="" + WX_CPPFLAGS="" + WX_CXXFLAGS="" + WX_LIBS="" + WX_LIBS_STATIC="" + ifelse([$3], , :, [$3]) + + fi + else + + WX_CFLAGS="" + WX_CPPFLAGS="" + WX_CXXFLAGS="" + WX_LIBS="" + WX_LIBS_STATIC="" + ifelse([$3], , :, [$3]) + + fi + + AC_SUBST(WX_CPPFLAGS) + AC_SUBST(WX_CFLAGS) + AC_SUBST(WX_CXXFLAGS) + AC_SUBST(WX_CFLAGS_ONLY) + AC_SUBST(WX_CXXFLAGS_ONLY) + AC_SUBST(WX_LIBS) + AC_SUBST(WX_LIBS_STATIC) + AC_SUBST(WX_VERSION) +]) + +dnl --------------------------------------------------------------------------- +dnl Get information on the wxrc program for making C++, Python and xrs +dnl resource files. +dnl +dnl AC_ARG_ENABLE(...) +dnl AC_ARG_WITH(...) +dnl ... +dnl AM_OPTIONS_WXCONFIG +dnl AM_OPTIONS_WXRC +dnl ... +dnl AM_PATH_WXCONFIG(2.6.0, wxWin=1) +dnl if test "$wxWin" != 1; then +dnl AC_MSG_ERROR([ +dnl wxWidgets must be installed on your system +dnl but wx-config script couldn't be found. +dnl +dnl Please check that wx-config is in path, the directory +dnl where wxWidgets libraries are installed (returned by +dnl 'wx-config --libs' command) is in LD_LIBRARY_PATH or +dnl equivalent variable and wxWidgets version is 2.6.0 or above. +dnl ]) +dnl fi +dnl +dnl AM_PATH_WXRC([HAVE_WXRC=1], [HAVE_WXRC=0]) +dnl if test "x$HAVE_WXRC" != x1; then +dnl AC_MSG_ERROR([ +dnl The wxrc program was not installed or not found. +dnl +dnl Please check the wxWidgets installation. +dnl ]) +dnl fi +dnl +dnl CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" +dnl CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY" +dnl CFLAGS="$CFLAGS $WX_CFLAGS_ONLY" +dnl +dnl LDFLAGS="$LDFLAGS $WX_LIBS" +dnl --------------------------------------------------------------------------- + + + +dnl --------------------------------------------------------------------------- +dnl AM_PATH_WXRC([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +dnl +dnl Test for wxWidgets' wxrc program for creating either C++, Python or XRS +dnl resources. The variable WXRC will be set and substituted in the configure +dnl script and Makefiles. +dnl +dnl Example use: +dnl AM_PATH_WXRC([wxrc=1], [wxrc=0]) +dnl --------------------------------------------------------------------------- + +dnl +dnl wxrc program from the wx-config script +dnl +AC_DEFUN([AM_PATH_WXRC], +[ + AC_ARG_VAR([WXRC], [Path to wxWidget's wxrc resource compiler]) + + if test "x$WX_CONFIG_NAME" = x; then + AC_MSG_ERROR([The wxrc tests must run after wxWidgets test.]) + else + + AC_MSG_CHECKING([for wxrc]) + + if test "x$WXRC" = x ; then + dnl wx-config --utility is a new addition to wxWidgets: + _WX_PRIVATE_CHECK_VERSION(2,5,3) + if test -n "$wx_ver_ok"; then + WXRC=`$WX_CONFIG_WITH_ARGS --utility=wxrc` + fi + fi + + if test "x$WXRC" = x ; then + AC_MSG_RESULT([not found]) + ifelse([$2], , :, [$2]) + else + AC_MSG_RESULT([$WXRC]) + ifelse([$1], , :, [$1]) + fi + + AC_SUBST(WXRC) + fi +]) + +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION so it can be traced. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], + [AM_AUTOMAKE_VERSION([1.9.6])]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 7 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE]) +AC_SUBST([$1_FALSE]) +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + 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 + + case $depmode in + 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 + ;; + none) break ;; + esac + # 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. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH]) +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 3 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[for mf in $CONFIG_FILES; 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. + # So let's grep whole file. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 12 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.58])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 +# test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl + 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) +AM_PROG_INSTALL_SH +AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +]) +]) + + +# 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_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $1 | $1:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +install_sh=${install_sh-"$am_aux_dir/install-sh"} +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo done +.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 +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote="\"" + _am_result=BSD + fi +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. +# +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories +# created by `make install' are always world readable, even if the +# installer happens to have an overly restrictive umask (e.g. 077). +# This was a mistake. There are at least two reasons why we must not +# use `-m 0755': +# - it causes special bits like SGID to be ignored, +# - it may be too restrictive (some setups expect 775 directories). +# +# Do not use -m 0755 and let people choose whatever they expect by +# setting umask. +# +# We cannot accept any implementation of `mkdir' that recognizes `-p'. +# Some implementations (such as Solaris 8's) are not thread-safe: if a +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' +# concurrently, both version can detect that a/ is missing, but only +# one can create it and the other will error out. Consequently we +# restrict ourselves to GNU make (using the --version option ensures +# this.) +AC_DEFUN([AM_PROG_MKDIR_P], +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then + # We used to keeping the `.' as first argument, in order to + # allow $(mkdir_p) to be used without argument. As in + # $(mkdir_p) $(somedir) + # where $(somedir) is conditionally defined. However this is wrong + # for two reasons: + # 1. if the package is installed by a user who cannot write `.' + # make install will fail, + # 2. the above comment should most certainly read + # $(mkdir_p) $(DESTDIR)$(somedir) + # so it does not work when $(somedir) is undefined and + # $(DESTDIR) is not. + # To support the latter case, we have to write + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), + # so the `.' trick is pointless. + mkdir_p='mkdir -p --' +else + # On NextStep and OpenStep, the `mkdir' command does not + # recognize any option. It will interpret all options as + # directories to create, and then abort because `.' already + # exists. + for d in ./-p ./--version; + do + test -d $d && rmdir $d + done + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. + if test -f "$ac_aux_dir/mkinstalldirs"; then + mkdir_p='$(mkinstalldirs)' + else + mkdir_p='$(install_sh) -d' + fi +fi +AC_SUBST([mkdir_p])]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _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], +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. +AM_MISSING_PROG([AMTAR], [tar]) +m4_if([$1], [v7], + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + diff --git a/config.guess b/config.guess new file mode 100644 index 0000000..686d132 --- /dev/null +++ b/config.guess @@ -0,0 +1,1517 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + +timestamp='2005-05-27' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Originally written by Per Bothner . +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit build system type. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --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 -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +if [ "${UNAME_SYSTEM}" = "Linux" ] ; then + eval $set_cc_for_build + cat << EOF > $dummy.c + #include + #ifdef __UCLIBC__ + # ifdef __UCLIBC_CONFIG_VERSION__ + LIBC=uclibc __UCLIBC_CONFIG_VERSION__ + # else + LIBC=uclibc + # endif + #else + LIBC=gnu + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'` +fi + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep __ELF__ >/dev/null + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + amd64:OpenBSD:*:*) + echo x86_64-unknown-openbsd${UNAME_RELEASE} + exit ;; + amiga:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit ;; + cats:OpenBSD:*:*) + echo arm-unknown-openbsd${UNAME_RELEASE} + exit ;; + hp300:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit ;; + luna88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit ;; + mac68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit ;; + macppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit ;; + mvme68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit ;; + mvme88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit ;; + mvmeppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit ;; + sgi:OpenBSD:*:*) + echo mips64-unknown-openbsd${UNAME_RELEASE} + exit ;; + sun3:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:OpenBSD:*:*) + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerppc-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'` + exit ;; + 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 ;; + 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:SunOS:5.*:*) + echo i386-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:*:[45]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *: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 + # avoid double evaluation of $set_cc_for_build + test -n "$CC_FOR_BUILD" || 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 __LP64__ >/dev/null + 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:*:*) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + i*:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + x86:Interix*:[34]*) + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' + exit ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-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*:*:*) + 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-gnu`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/[-(].*//'`-gnu + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + arm*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + cris:Linux:*:*) + echo cris-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo frv-unknown-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:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips + #undef mipsel + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mipsel + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips64 + #undef mips64el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mips64el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips64 + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + ppc64:Linux:*:*) + echo powerpc64-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 ld.so.1 >/dev/null + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi + echo ${UNAME_MACHINE}-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 ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + 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 ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. cd to the root directory to prevent + # problems with other programs or directories called `ld' in the path. + # Set LC_ALL=C to ensure ld outputs messages in English. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ + | sed -ne '/supported targets:/!d + s/[ ][ ]*/ /g + s/.*supported targets: *// + s/ .*// + p'` + case "$ld_supported_targets" in + elf32-i386) + TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}" + ;; + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout" + exit ;; + coff-i386) + echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff" + exit ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld" + exit ;; + esac + if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi + # Determine whether the default compiler is a.out or elf + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #ifdef __ELF__ + # ifdef __GLIBC__ + # if __GLIBC__ >= 2 + LIBC=gnu + # else + LIBC=gnulibc1 + # endif + # else + LIBC=gnulibc1 + # endif + #else + #ifdef __INTEL_COMPILER + LIBC=gnu + #else + LIBC=gnuaout + #endif + #endif + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + test x"${LIBC}" != x && { + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + exit + } + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; 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.0*:*) + 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 i386. + echo i386-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; } ;; + 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.0*:*) + 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 ;; + 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 ;; + 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 + case $UNAME_PROCESSOR in + *86) UNAME_PROCESSOR=i686 ;; + unknown) UNAME_PROCESSOR=powerpc ;; + esac + 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 ;; + 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 ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# 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: diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..c364eda --- /dev/null +++ b/config.h.in @@ -0,0 +1,22 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* 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 version of this package. */ +#undef PACKAGE_VERSION + +/* Version number of package */ +#undef VERSION diff --git a/config.sub b/config.sub new file mode 100644 index 0000000..aff94c6 --- /dev/null +++ b/config.sub @@ -0,0 +1,1598 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + +timestamp='2005-06-02' + +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit ;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ + kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray) + os= + basic_machine=$1 + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -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/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx | dvp \ + | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64vr | mips64vrel \ + | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mips64r5900 | mips64r5900el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | ms1 \ + | msp430 \ + | ns16k | ns32k \ + | openrisc | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b \ + | strongarm \ + | tahoe | thumb | tic4x | tic80 | tron \ + | v850 | v850e \ + | we32k \ + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ + | z8k) + basic_machine=$basic_machine-unknown + ;; + m32c) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12) + # Motorola 68HC11/12. + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mips64r5900-* | mips64r5900el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | ms1-* \ + | msp430-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* \ + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa-* \ + | ymp-* \ + | z8k-*) + ;; + m32c-*) + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16c) + basic_machine=cr16c-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mipsEE* | ee | ps2) + basic_machine=mips64r5900el-scei + case $os in + -linux*) + ;; + *) + os=-elf + ;; + esac + ;; + iop) + basic_machine=mipsel-scei + os=-irx + ;; + dvp) + basic_machine=dvp-scei + os=-elf + ;; + 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 + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + or32 | or32-*) + basic_machine=or32-unknown + os=-coff + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + 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 + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tic54x | c54x*) + basic_machine=tic54x-unknown + os=-coff + ;; + tic55x | c55x*) + basic_machine=tic55x-unknown + os=-coff + ;; + tic6x | c6x*) + basic_machine=tic6x-unknown + os=-coff + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-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* \ + | -irx* ) + # 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* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos + ;; + -zvmoe) + os=-zvmoe + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + m68*-cisco) + os=-aout + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/configure b/configure new file mode 100644 index 0000000..57a04c9 --- /dev/null +++ b/configure @@ -0,0 +1,4302 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.59 for mpg 0.90. +# +# Report bugs to . +# +# Copyright (C) 2003 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 Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi +DUALCASE=1; export DUALCASE # for MKS sh + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# Work around bugs in pre-3.0 UWIN ksh. +$as_unset ENV MAIL MAILPATH +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + $as_unset $as_var + fi +done + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1; 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 + + +# Name of the executable. +as_me=`$as_basename "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)$' \| \ + . : '\(.\)' 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } + /^X\/\(\/\/\)$/{ s//\1/; q; } + /^X\/\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + + +# PATH needs CR, and LINENO needs CR and PATH. +# 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 + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" || { + # Find who we are. Look in the path if we contain no path at all + # relative or not. + 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 + + ;; + 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 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 + { (exit 1); exit 1; }; } + fi + case $CONFIG_SHELL in + '') + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for as_base in sh bash ksh sh5; do + case $as_dir in + /*) + if ("$as_dir/$as_base" -c ' + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } + CONFIG_SHELL=$as_dir/$as_base + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$0" ${1+"$@"} + fi;; + esac + done +done +;; + esac + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line before each line; the second 'sed' does the real + # work. The second script uses 'N' to pair each line-number line + # with the numbered line, and appends trailing '-' during + # substitution so that $LINENO is not a special case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) + sed '=' <$as_myself | + sed ' + N + s,$,-, + : loop + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, + t loop + s,-$,, + s,^['$as_cr_digits']*\n,, + ' >$as_me.lineno && + chmod +x $as_me.lineno || + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); 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 sensible to this). + . ./$as_me.lineno + # Exit status is that of the last command. + exit +} + + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_executable_p="test -f" + +# 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'" + + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH + + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +exec 6>&1 + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_config_libobj_dir=. +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Maximum number of lines to put in a shell here document. +# This variable seems obsolete. It should probably be removed, and +# only ac_max_sed_lines should be used. +: ${ac_max_here_lines=38} + +# Identity of this package. +PACKAGE_NAME='mpg' +PACKAGE_TARNAME='mpg' +PACKAGE_VERSION='0.90' +PACKAGE_STRING='mpg 0.90' +PACKAGE_BUGREPORT='webmaster@technoplaza.net' + +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os WINDOWS_TRUE WINDOWS_FALSE CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION WX_INCLUDES LIBOBJS LTLIBOBJS' +ac_subst_files='' + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +# 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. +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +ac_prev= +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 + + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_option in + + -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 | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + eval "enable_$ac_feature=no" ;; + + -enable-* | --enable-*) + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=`echo $ac_feature | sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "enable_$ac_feature='$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 ;; + + -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 ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + 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 ;; + + -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_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package| sed 's/-/_/g'` + case $ac_option in + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=yes ;; + esac + eval "with_$ac_package='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=`echo $ac_package | sed 's/-/_/g'` + eval "with_$ac_package=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 ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar='$ac_optarg'" + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + 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'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in exec_prefix prefix +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +# Be sure to have absolute paths. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ + localstatedir libdir includedir oldincludedir infodir mandir +do + eval ac_val=$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +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 + 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 + + +# 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 its parent. + ac_confdir=`(dirname "$0") 2>/dev/null || +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$0" : 'X\(//\)[^/]' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$0" | + 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 + if test "$ac_srcdir_defaulted" = yes; then + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 + { (exit 1); exit 1; }; } + else + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 + { (exit 1); exit 1; }; } + fi +fi +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 + { (exit 1); exit 1; }; } +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` +ac_env_build_alias_set=${build_alias+set} +ac_env_build_alias_value=$build_alias +ac_cv_env_build_alias_set=${build_alias+set} +ac_cv_env_build_alias_value=$build_alias +ac_env_host_alias_set=${host_alias+set} +ac_env_host_alias_value=$host_alias +ac_cv_env_host_alias_set=${host_alias+set} +ac_cv_env_host_alias_value=$host_alias +ac_env_target_alias_set=${target_alias+set} +ac_env_target_alias_value=$target_alias +ac_cv_env_target_alias_set=${target_alias+set} +ac_cv_env_target_alias_value=$target_alias +ac_env_CXX_set=${CXX+set} +ac_env_CXX_value=$CXX +ac_cv_env_CXX_set=${CXX+set} +ac_cv_env_CXX_value=$CXX +ac_env_CXXFLAGS_set=${CXXFLAGS+set} +ac_env_CXXFLAGS_value=$CXXFLAGS +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} +ac_cv_env_CXXFLAGS_value=$CXXFLAGS +ac_env_LDFLAGS_set=${LDFLAGS+set} +ac_env_LDFLAGS_value=$LDFLAGS +ac_cv_env_LDFLAGS_set=${LDFLAGS+set} +ac_cv_env_LDFLAGS_value=$LDFLAGS +ac_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_env_CPPFLAGS_value=$CPPFLAGS +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} +ac_cv_env_CPPFLAGS_value=$CPPFLAGS + +# +# 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 mpg 0.90 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 \`..'] + +_ACEOF + + cat <<_ACEOF +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] + --datadir=DIR read-only architecture-independent data [PREFIX/share] + --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] + --infodir=DIR info documentation [PREFIX/info] + --mandir=DIR man documentation [PREFIX/man] +_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 mpg 0.90:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH + --with-wx-config=CONFIG wx-config script to use (optional) + --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional) + --with-wx-exec-prefix=PREFIX + Exec prefix where wxWidgets is installed (optional) + +Some influential environment variables: + CXX C++ compiler command + CXXFLAGS C++ compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have + headers in a nonstandard directory + +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 . +_ACEOF +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + ac_popdir=`pwd` + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d $ac_dir || continue + ac_builddir=. + +if test "$ac_dir" != .; then + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix= ac_top_builddir= +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_builddir$srcdir ;; +esac + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; +*) + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_builddir=${ac_top_builddir}.;; +*) + case ${ac_top_builddir}. in + .) ac_abs_top_builddir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_srcdir=$ac_srcdir;; +*) + case $ac_srcdir in + .) ac_abs_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_srcdir=$ac_top_srcdir;; +*) + case $ac_top_srcdir in + .) ac_abs_top_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; + esac;; +esac + + cd $ac_dir + # Check for guested configure; otherwise get Cygnus style 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 + elif test -f $ac_srcdir/configure.ac || + test -f $ac_srcdir/configure.in; then + echo + $ac_configure --help + else + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi + cd $ac_popdir + done +fi + +test -n "$ac_init_help" && exit 0 +if $ac_init_version; then + cat <<\_ACEOF +mpg configure 0.90 +generated by GNU Autoconf 2.59 + +Copyright (C) 2003 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 0 +fi +exec 5>config.log +cat >&5 <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by mpg $as_me 0.90, which was +generated by GNU Autoconf 2.59. Invocation command line was + + $ $0 $@ + +_ACEOF +{ +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` +hostinfo = `(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=. + echo "PATH: $as_dir" +done + +} >&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_sep= +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=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 2) + ac_configure_args1="$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 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" + # Get rid of the leading space. + ac_sep=" " + ;; + esac + done +done +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export 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: Be sure not to use single quotes in there, as some shells, +# such as our DU 5.0 friend, will then `close' the trap. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +{ + (set) 2>&1 | + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in + *ac_space=\ *) + sed -n \ + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" + ;; + *) + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} + echo + + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=$`echo $ac_var` + echo "$ac_var='"'"'$ac_val'"'"'" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------- ## +## Output files. ## +## ------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=$`echo $ac_var` + echo "$ac_var='"'"'$ac_val'"'"'" + done | sort + echo + fi + + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + sed "/^$/d" confdefs.h | sort + echo + fi + test "$ac_signal" != 0 && + echo "$as_me: caught signal $ac_signal" + echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core && + rm -rf conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status + ' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo >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 + + +# Let the site file select an alternate cache file if it wants to. +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + 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. + if test -f "$cache_file"; then + { echo "$as_me:$LINENO: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . $cache_file;; + *) . ./$cache_file;; + esac + fi +else + { echo "$as_me:$LINENO: creating cache $cache_file" >&5 +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 `(set) 2>&1 | + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; 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,) + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 +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 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=: + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=$ac_var=`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. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { (exit 1); exit 1; }; } +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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ac_config_headers="$ac_config_headers config.h" + + +am__api_version="1.9" +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 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} + { (exit 1); exit 1; }; } +fi +ac_config_guess="$SHELL $ac_aux_dir/config.guess" +ac_config_sub="$SHELL $ac_aux_dir/config.sub" +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. + +# 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. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done + + +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. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh + fi +fi +echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$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' + +echo "$as_me:$LINENO: checking whether build environment is sane" >&5 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 +# Just in case +sleep 1 +echo timestamp > conftest.file +# 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". + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&5 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&2;} + { (exit 1); exit 1; }; } + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! +Check your system clock" >&5 +echo "$as_me: error: newly created file is older than distributed files! +Check your system clock" >&2;} + { (exit 1); exit 1; }; } +fi +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}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 $. echo might interpret backslashes. +# By default was `s,x,x', remove it if useless. +cat <<\_ACEOF >conftest.sed +s/[\\$]/&&/g;s/;s,x,x,$// +_ACEOF +program_transform_name=`echo $program_transform_name | sed -f conftest.sed` +rm conftest.sed + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then + # We used to keeping the `.' as first argument, in order to + # allow $(mkdir_p) to be used without argument. As in + # $(mkdir_p) $(somedir) + # where $(somedir) is conditionally defined. However this is wrong + # for two reasons: + # 1. if the package is installed by a user who cannot write `.' + # make install will fail, + # 2. the above comment should most certainly read + # $(mkdir_p) $(DESTDIR)$(somedir) + # so it does not work when $(somedir) is undefined and + # $(DESTDIR) is not. + # To support the latter case, we have to write + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), + # so the `.' trick is pointless. + mkdir_p='mkdir -p --' +else + # On NextStep and OpenStep, the `mkdir' command does not + # recognize any option. It will interpret all options as + # directories to create, and then abort because `.' already + # exists. + for d in ./-p ./--version; + do + test -d $d && rmdir $d + done + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. + if test -f "$ac_aux_dir/mkinstalldirs"; then + mkdir_p='$(mkinstalldirs)' + else + mkdir_p='$(install_sh) -d' + fi +fi + +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 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AWK+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + echo "$as_me:$LINENO: result: $AWK" >&5 +echo "${ECHO_T}$AWK" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$AWK" && break +done + +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.make <<\_ACEOF +all: + @echo 'ac_maketemp="$(MAKE)"' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftest.make +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + SET_MAKE= +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}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 + +# test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} + { (exit 1); exit 1; }; } +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='mpg' + VERSION='0.90' + + +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"} + +install_sh=${install_sh-"$am_aux_dir/install-sh"} + +# 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 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + echo "$as_me:$LINENO: result: $STRIP" >&5 +echo "${ECHO_T}$STRIP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}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 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 +echo "${ECHO_T}$ac_ct_STRIP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + STRIP=$ac_ct_STRIP +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" + +# 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 -' + + + + + + +# Make sure we can run config.sub. +$ac_config_sub sun4 >/dev/null 2>&1 || + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 +echo "$as_me: error: cannot run $ac_config_sub" >&2;} + { (exit 1); exit 1; }; } + +echo "$as_me:$LINENO: checking build system type" >&5 +echo $ECHO_N "checking build system type... $ECHO_C" >&6 +if test "${ac_cv_build+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_build_alias=$build_alias +test -z "$ac_cv_build_alias" && + ac_cv_build_alias=`$ac_config_guess` +test -z "$ac_cv_build_alias" && + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;} + { (exit 1); exit 1; }; } +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:$LINENO: result: $ac_cv_build" >&5 +echo "${ECHO_T}$ac_cv_build" >&6 +build=$ac_cv_build +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + + +echo "$as_me:$LINENO: checking host system type" >&5 +echo $ECHO_N "checking host system type... $ECHO_C" >&6 +if test "${ac_cv_host+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_host_alias=$host_alias +test -z "$ac_cv_host_alias" && + ac_cv_host_alias=$ac_cv_build_alias +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:$LINENO: result: $ac_cv_host" >&5 +echo "${ECHO_T}$ac_cv_host" >&6 +host=$ac_cv_host +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + + + + + +if case $host_os in + mingw32 | cygwin ) test x = x ;; + * ) test 0 = 1 ;; + esac; then + WINDOWS_TRUE= + WINDOWS_FALSE='#' +else + WINDOWS_TRUE='#' + WINDOWS_FALSE= +fi + + +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + echo "$as_me:$LINENO: result: $CXX" >&5 +echo "${ECHO_T}$CXX" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 +echo "${ECHO_T}$ac_ct_CXX" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$ac_ct_CXX" && break +done +test -n "$ac_ct_CXX" || ac_ct_CXX="g++" + + CXX=$ac_ct_CXX +fi + + +# Provide some information about the compiler. +echo "$as_me:$LINENO:" \ + "checking for C++ compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out 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. +echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 +echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 + (eval $ac_link_default) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # Find the output, starting from the most likely. This scheme is +# not robust to junk in `.', hence go to wildcards (a.*) only as a last +# resort. + +# Be careful to initialize this variable, since it used to be cached. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. +ac_cv_exeext= +# b.out is created by i960 compilers. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) + ;; + conftest.$ac_ext ) + # This is the source file. + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + # FIXME: I believe we export ac_cv_exeext for Libtool, + # but it would be cool to find out if it's true. Does anybody + # maintain Libtool? --akim. + export ac_cv_exeext + break;; + * ) + break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables +See \`config.log' for more details." >&5 +echo "$as_me: error: C++ compiler cannot create executables +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; } +fi + +ac_exeext=$ac_cv_exeext +echo "$as_me:$LINENO: result: $ac_file" >&5 +echo "${ECHO_T}$ac_file" >&6 + +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 +echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 +# If not cross compiling, check that we can run a simple program. +if test "$cross_compiling" != yes; then + if { ac_try='./$ac_file' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } + fi + fi +fi +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +rm -f a.out a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 +echo "$as_me:$LINENO: result: $cross_compiling" >&5 +echo "${ECHO_T}$cross_compiling" >&6 + +echo "$as_me:$LINENO: checking for suffix of executables" >&5 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; 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 | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + export ac_cv_exeext + break;; + * ) break;; + esac +done +else + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest$ac_cv_exeext +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 +echo "${ECHO_T}$ac_cv_exeext" >&6 + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +echo "$as_me:$LINENO: checking for suffix of object files" >&5 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 +if test "${ac_cv_objext+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&5 +echo "$as_me: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 +echo "${ECHO_T}$ac_cv_objext" >&6 +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_compiler_gnu=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 +GXX=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +CXXFLAGS="-g" +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cxx_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cxx_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_prog_cxx_g=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +for ac_declaration in \ + '' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +#include +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +continue +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +rm -f conftest* +if test -n "$ac_declaration"; then + echo '#ifdef __cplusplus' >>confdefs.h + echo $ac_declaration >>confdefs.h + echo '#endif' >>confdefs.h +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 done +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote="\"" + _am_result=BSD + fi +fi + + +echo "$as_me:$LINENO: result: $_am_result" >&5 +echo "${ECHO_T}$_am_result" >&6 +rm -f confinc confmf + +# Check whether --enable-dependency-tracking or --disable-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="$CXX" am_compiler_list= + +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + 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 + + case $depmode in + 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 + ;; + none) break ;; + esac + # 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. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + + +if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + +# 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. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done + + +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. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh + fi +fi +echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$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' + + + + +# Check whether --with-wxdir or --without-wxdir was given. +if test "${with_wxdir+set}" = set; then + withval="$with_wxdir" + wx_config_name="$withval/wx-config" + wx_config_args="--inplace" +fi; + +# Check whether --with-wx-config or --without-wx-config was given. +if test "${with_wx_config+set}" = set; then + withval="$with_wx_config" + wx_config_name="$withval" +fi; + +# Check whether --with-wx-prefix or --without-wx-prefix was given. +if test "${with_wx_prefix+set}" = set; then + withval="$with_wx_prefix" + wx_config_prefix="$withval" +else + wx_config_prefix="" +fi; + +# Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given. +if test "${with_wx_exec_prefix+set}" = set; then + withval="$with_wx_exec_prefix" + wx_config_exec_prefix="$withval" +else + wx_config_exec_prefix="" +fi; + + + if test x${WX_CONFIG_NAME+set} != xset ; then + WX_CONFIG_NAME=wx-config + fi + + if test "x$wx_config_name" != x ; then + WX_CONFIG_NAME="$wx_config_name" + fi + + if test x$wx_config_exec_prefix != x ; then + wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix" + WX_LOOKUP_PATH="$wx_config_exec_prefix/bin" + fi + if test x$wx_config_prefix != x ; then + wx_config_args="$wx_config_args --prefix=$wx_config_prefix" + WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin" + fi + if test "$cross_compiling" = "yes"; then + wx_config_args="$wx_config_args --host=$host_alias" + fi + + if test -x "$WX_CONFIG_NAME" ; then + echo "$as_me:$LINENO: checking for wx-config" >&5 +echo $ECHO_N "checking for wx-config... $ECHO_C" >&6 + WX_CONFIG_PATH="$WX_CONFIG_NAME" + echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5 +echo "${ECHO_T}$WX_CONFIG_PATH" >&6 + else + # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args. +set dummy $WX_CONFIG_NAME; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $WX_CONFIG_PATH in + [\\/]* | ?:[\\/]*) + ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path. + ;; + *) + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_dummy=""$WX_LOOKUP_PATH:$PATH"" +for as_dir in $as_dummy +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no" + ;; +esac +fi +WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH + +if test -n "$WX_CONFIG_PATH"; then + echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5 +echo "${ECHO_T}$WX_CONFIG_PATH" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + fi + + if test "$WX_CONFIG_PATH" != "no" ; then + WX_VERSION="" + + min_wx_version=2.6.1 + if test -z "" ; then + echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5 +echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6 + else + echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ()" >&5 +echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ()... $ECHO_C" >&6 + fi + + WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args " + + WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null` + wx_config_major_version=`echo $WX_VERSION | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + wx_config_minor_version=`echo $WX_VERSION | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` + wx_config_micro_version=`echo $WX_VERSION | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + + wx_requested_major_version=`echo $min_wx_version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + wx_requested_minor_version=`echo $min_wx_version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` + wx_requested_micro_version=`echo $min_wx_version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + + + wx_ver_ok="" + if test "x$WX_VERSION" != x ; then + if test $wx_config_major_version -gt $wx_requested_major_version; then + wx_ver_ok=yes + else + if test $wx_config_major_version -eq $wx_requested_major_version; then + if test $wx_config_minor_version -gt $wx_requested_minor_version; then + wx_ver_ok=yes + else + if test $wx_config_minor_version -eq $wx_requested_minor_version; then + if test $wx_config_micro_version -ge $wx_requested_micro_version; then + wx_ver_ok=yes + fi + fi + fi + fi + fi + fi + + + if test -n "$wx_ver_ok"; then + + echo "$as_me:$LINENO: result: yes (version $WX_VERSION)" >&5 +echo "${ECHO_T}yes (version $WX_VERSION)" >&6 + WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs` + + echo "$as_me:$LINENO: checking for wxWidgets static library" >&5 +echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6 + WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null` + if test "x$WX_LIBS_STATIC" = "x"; then + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + else + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + fi + + wx_has_cppflags="" + if test $wx_config_major_version -gt 2; then + wx_has_cppflags=yes + else + if test $wx_config_major_version -eq 2; then + if test $wx_config_minor_version -gt 2; then + wx_has_cppflags=yes + else + if test $wx_config_minor_version -eq 2; then + if test $wx_config_micro_version -ge 6; then + wx_has_cppflags=yes + fi + fi + fi + fi + fi + + if test "x$wx_has_cppflags" = x ; then + WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags` + WX_CPPFLAGS=$WX_CFLAGS + WX_CXXFLAGS=$WX_CFLAGS + + WX_CFLAGS_ONLY=$WX_CFLAGS + WX_CXXFLAGS_ONLY=$WX_CFLAGS + else + WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags` + WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags` + WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags` + + WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"` + WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"` + fi + + HAVE_WXWIDGETS=1 + + else + + if test "x$WX_VERSION" = x; then + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + else + echo "$as_me:$LINENO: result: no (version $WX_VERSION is not new enough)" >&5 +echo "${ECHO_T}no (version $WX_VERSION is not new enough)" >&6 + fi + + WX_CFLAGS="" + WX_CPPFLAGS="" + WX_CXXFLAGS="" + WX_LIBS="" + WX_LIBS_STATIC="" + HAVE_WXWIDGETS=0 + + fi + else + + WX_CFLAGS="" + WX_CPPFLAGS="" + WX_CXXFLAGS="" + WX_LIBS="" + WX_LIBS_STATIC="" + HAVE_WXWIDGETS=0 + + fi + + + + + + + + + + + +if test $HAVE_WXWIDGETS -eq 1; then + CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" + CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY" + LIBS="$LIBS $WX_LIBS" +else + { { echo "$as_me:$LINENO: error: wxWidgets >= 2.6.1 is required. + + Please install wxWidgets 2.6.1 from http://www.wxwidgets.org. + + This error could also be the result of a non-standard install + path or a missing wx-config program." >&5 +echo "$as_me: error: wxWidgets >= 2.6.1 is required. + + Please install wxWidgets 2.6.1 from http://www.wxwidgets.org. + + This error could also be the result of a non-standard install + path or a missing wx-config program." >&2;} + { (exit 1); exit 1; }; } +fi + +WX_INCLUDES="" +for opt in $WX_CPPFLAGS +do + case "$opt" in + -I*) + WX_INCLUDES="$WX_INCLUDES $opt" + ;; + esac +done + + + ac_config_files="$ac_config_files Makefile source/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, don't put newlines in cache variables' values. +# 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. +{ + (set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *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 \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + ;; + esac; +} | + sed ' + t clear + : clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + /^ac_cv_env/!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" && echo "updating cache $cache_file" + cat confcache >$cache_file + else + echo "not updating unwritable cache $cache_file" + 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}' + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ 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[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' +fi + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_i=`echo "$ac_i" | + sed 's/\$U\././;s/\.o$//;s/\.obj$//'` + # 2. Add them. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"WINDOWS\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"WINDOWS\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi + +: ${CONFIG_STATUS=./config.status} +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $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} +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi +DUALCASE=1; export DUALCASE # for MKS sh + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# Work around bugs in pre-3.0 UWIN ksh. +$as_unset ENV MAIL MAILPATH +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +for as_var in \ + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ + LC_TELEPHONE LC_TIME +do + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then + eval $as_var=C; export $as_var + else + $as_unset $as_var + fi +done + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1; 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 + + +# Name of the executable. +as_me=`$as_basename "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)$' \| \ + . : '\(.\)' 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } + /^X\/\(\/\/\)$/{ s//\1/; q; } + /^X\/\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + + +# PATH needs CR, and LINENO needs CR and PATH. +# 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 + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + echo "#! /bin/sh" >conf$$.sh + echo "exit 0" >>conf$$.sh + chmod +x conf$$.sh + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=';' + else + PATH_SEPARATOR=: + fi + rm -f conf$$.sh +fi + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" || { + # Find who we are. Look in the path if we contain no path at all + # relative or not. + 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 + + ;; + 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 + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} + { (exit 1); exit 1; }; } + fi + case $CONFIG_SHELL in + '') + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for as_base in sh bash ksh sh5; do + case $as_dir in + /*) + if ("$as_dir/$as_base" -c ' + as_lineno_1=$LINENO + as_lineno_2=$LINENO + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } + CONFIG_SHELL=$as_dir/$as_base + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$0" ${1+"$@"} + fi;; + esac + done +done +;; + esac + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line before each line; the second 'sed' does the real + # work. The second script uses 'N' to pair each line-number line + # with the numbered line, and appends trailing '-' during + # substitution so that $LINENO is not a special case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) + sed '=' <$as_myself | + sed ' + N + s,$,-, + : loop + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, + t loop + s,-$,, + s,^['$as_cr_digits']*\n,, + ' >$as_me.lineno && + chmod +x $as_me.lineno || + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} + { (exit 1); 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 sensible to this). + . ./$as_me.lineno + # Exit status is that of the last command. + exit +} + + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N= ECHO_C=' +' ECHO_T=' ' ;; + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; +esac + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more generic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s='cp -p' + else + as_ln_s='ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_executable_p="test -f" + +# 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'" + + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=' +' +IFS=" $as_nl" + +# CDPATH. +$as_unset CDPATH + +exec 6>&1 + +# Open the log real soon, to keep \$[0] and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. Logging --version etc. is OK. +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX +} >&5 +cat >&5 <<_CSEOF + +This file was extended by mpg $as_me 0.90, which was +generated by GNU Autoconf 2.59. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +_CSEOF +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 +echo >&5 +_ACEOF + +# Files that config.status was made for. +if test -n "$ac_config_files"; then + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_headers"; then + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_links"; then + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_commands"; then + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS +fi + +cat >>$CONFIG_STATUS <<\_ACEOF + +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -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 + --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 ." +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF +ac_cs_version="\\ +mpg config.status 0.90 +configured by $0, generated by GNU Autoconf 2.59, + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" + +Copyright (C) 2003 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." +srcdir=$srcdir +INSTALL="$INSTALL" +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +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=$1 + ac_optarg=$2 + ac_shift=shift + ;; + *) # This is not an option, so the user has probably given explicit + # arguments. + ac_option=$1 + ac_need_defaults=false;; + esac + + case $ac_option in + # Handling of the options. +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --vers* | -V ) + echo "$ac_cs_version"; exit 0 ;; + --he | --h) + # Conflict between --help and --header + { { echo "$as_me:$LINENO: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + echo "$ac_cs_usage"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + CONFIG_FILES="$CONFIG_FILES $ac_optarg" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" + ac_need_defaults=false;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets="$ac_config_targets $1" ;; + + 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 +if \$ac_cs_recheck; then + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion +fi + +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF +# +# INIT-COMMANDS section. +# + +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + +_ACEOF + + + +cat >>$CONFIG_STATUS <<\_ACEOF +for ac_config_target in $ac_config_targets +do + case "$ac_config_target" in + # Handling of arguments. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "source/Makefile" ) CONFIG_FILES="$CONFIG_FILES source/Makefile" ;; + "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + 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 to put it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./confstat$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in ." >&2 + { (exit 1); exit 1; } +} + +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF + +# +# CONFIG_FILES section. +# + +# No need to generate the scripts if there are no CONFIG_FILES. +# This happens for instance when ./config.status config.h +if test -n "\$CONFIG_FILES"; then + # Protect against being on the right side of a sed subst in config.status. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF +s,@SHELL@,$SHELL,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +s,@exec_prefix@,$exec_prefix,;t t +s,@prefix@,$prefix,;t t +s,@program_transform_name@,$program_transform_name,;t t +s,@bindir@,$bindir,;t t +s,@sbindir@,$sbindir,;t t +s,@libexecdir@,$libexecdir,;t t +s,@datadir@,$datadir,;t t +s,@sysconfdir@,$sysconfdir,;t t +s,@sharedstatedir@,$sharedstatedir,;t t +s,@localstatedir@,$localstatedir,;t t +s,@libdir@,$libdir,;t t +s,@includedir@,$includedir,;t t +s,@oldincludedir@,$oldincludedir,;t t +s,@infodir@,$infodir,;t t +s,@mandir@,$mandir,;t t +s,@build_alias@,$build_alias,;t t +s,@host_alias@,$host_alias,;t t +s,@target_alias@,$target_alias,;t t +s,@DEFS@,$DEFS,;t t +s,@ECHO_C@,$ECHO_C,;t t +s,@ECHO_N@,$ECHO_N,;t t +s,@ECHO_T@,$ECHO_T,;t t +s,@LIBS@,$LIBS,;t t +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t +s,@INSTALL_DATA@,$INSTALL_DATA,;t t +s,@CYGPATH_W@,$CYGPATH_W,;t t +s,@PACKAGE@,$PACKAGE,;t t +s,@VERSION@,$VERSION,;t t +s,@ACLOCAL@,$ACLOCAL,;t t +s,@AUTOCONF@,$AUTOCONF,;t t +s,@AUTOMAKE@,$AUTOMAKE,;t t +s,@AUTOHEADER@,$AUTOHEADER,;t t +s,@MAKEINFO@,$MAKEINFO,;t t +s,@install_sh@,$install_sh,;t t +s,@STRIP@,$STRIP,;t t +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t +s,@mkdir_p@,$mkdir_p,;t t +s,@AWK@,$AWK,;t t +s,@SET_MAKE@,$SET_MAKE,;t t +s,@am__leading_dot@,$am__leading_dot,;t t +s,@AMTAR@,$AMTAR,;t t +s,@am__tar@,$am__tar,;t t +s,@am__untar@,$am__untar,;t t +s,@build@,$build,;t t +s,@build_cpu@,$build_cpu,;t t +s,@build_vendor@,$build_vendor,;t t +s,@build_os@,$build_os,;t t +s,@host@,$host,;t t +s,@host_cpu@,$host_cpu,;t t +s,@host_vendor@,$host_vendor,;t t +s,@host_os@,$host_os,;t t +s,@WINDOWS_TRUE@,$WINDOWS_TRUE,;t t +s,@WINDOWS_FALSE@,$WINDOWS_FALSE,;t t +s,@CXX@,$CXX,;t t +s,@CXXFLAGS@,$CXXFLAGS,;t t +s,@LDFLAGS@,$LDFLAGS,;t t +s,@CPPFLAGS@,$CPPFLAGS,;t t +s,@ac_ct_CXX@,$ac_ct_CXX,;t t +s,@EXEEXT@,$EXEEXT,;t t +s,@OBJEXT@,$OBJEXT,;t t +s,@DEPDIR@,$DEPDIR,;t t +s,@am__include@,$am__include,;t t +s,@am__quote@,$am__quote,;t t +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t +s,@CXXDEPMODE@,$CXXDEPMODE,;t t +s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t +s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t +s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t +s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t +s,@WX_CFLAGS@,$WX_CFLAGS,;t t +s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t +s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t +s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t +s,@WX_LIBS@,$WX_LIBS,;t t +s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t +s,@WX_VERSION@,$WX_VERSION,;t t +s,@WX_INCLUDES@,$WX_INCLUDES,;t t +s,@LIBOBJS@,$LIBOBJS,;t t +s,@LTLIBOBJS@,$LTLIBOBJS,;t t +CEOF + +_ACEOF + + cat >>$CONFIG_STATUS <<\_ACEOF + # Split the substitutions into bite-sized pieces for seds with + # small command number limits, like on Digital OSF/1 and HP-UX. + ac_max_sed_lines=48 + ac_sed_frag=1 # Number of current file. + ac_beg=1 # First line for current file. + ac_end=$ac_max_sed_lines # Line after last line for current file. + ac_more_lines=: + ac_sed_cmds= + while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + else + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + fi + if test ! -s $tmp/subs.frag; then + ac_more_lines=false + else + # The purpose of the label and of the branching condition is to + # speed up the sed processing (if there are no `@' at all, there + # is no need to browse any of the substitutions). + # These are the two extra sed commands mentioned above. + (echo ':t + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" + else + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" + fi + ac_sed_frag=`expr $ac_sed_frag + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_lines` + fi + done + if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat + fi +fi # test -n "$CONFIG_FILES" + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; + esac + + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. + ac_dir=`(dirname "$ac_file") 2>/dev/null || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p "$ac_dir" + else + as_dir="$ac_dir" + as_dirs= + while test ! -d "$as_dir"; do + as_dirs="$as_dir $as_dirs" + as_dir=`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} + { (exit 1); exit 1; }; }; } + + ac_builddir=. + +if test "$ac_dir" != .; then + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix= ac_top_builddir= +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_builddir$srcdir ;; +esac + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; +*) + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_builddir=${ac_top_builddir}.;; +*) + case ${ac_top_builddir}. in + .) ac_abs_top_builddir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_srcdir=$ac_srcdir;; +*) + case $ac_srcdir in + .) ac_abs_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_srcdir=$ac_top_srcdir;; +*) + case $ac_top_srcdir in + .) ac_abs_top_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; + esac;; +esac + + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_builddir$INSTALL ;; + esac + + if test x"$ac_file" != x-; then + { echo "$as_me:$LINENO: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + rm -f "$ac_file" + fi + # 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. */ + if test x"$ac_file" = x-; then + configure_input= + else + configure_input="$ac_file. " + fi + configure_input=$configure_input"Generated from `echo $ac_file_in | + sed 's,.*/,,'` by configure." + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo "$f";; + *) # Relative + if test -f "$f"; then + # Build tree + echo "$f" + elif test -f "$srcdir/$f"; then + # Source tree + echo "$srcdir/$f" + else + # /dev/null tree + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF + sed "$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s,@configure_input@,$configure_input,;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,@top_builddir@,$ac_top_builddir,;t t +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t +s,@INSTALL@,$ac_INSTALL,;t t +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out + rm -f $tmp/stdin + if test x"$ac_file" != x-; then + mv $tmp/out $ac_file + else + cat $tmp/out + rm -f $tmp/out + fi + +done +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + +# +# CONFIG_HEADER section. +# + +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where +# NAME is the cpp macro being defined and VALUE is the value it is being given. +# +# ac_d sets the value in "#define NAME VALUE" lines. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB='[ ].*$,\1#\2' +ac_dC=' ' +ac_dD=',;t' +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uB='$,\1#\2define\3' +ac_uC=' ' +ac_uD=',;t' + +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=$ac_file.in ;; + esac + + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=`IFS=: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + # Do quote $f, to prevent DOS paths from being IFS'd. + echo "$f";; + *) # Relative + if test -f "$f"; then + # Build tree + echo "$f" + elif test -f "$srcdir/$f"; then + # Source tree + echo "$srcdir/$f" + else + # /dev/null tree + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } + # Remove the trailing spaces. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in + +_ACEOF + +# Transform confdefs.h into two sed scripts, `conftest.defines' and +# `conftest.undefs', that substitutes the proper values into +# config.h.in to produce config.h. The first handles `#define' +# templates, and the second `#undef' templates. +# And first: Protect against being on the right side of a sed subst in +# config.status. Protect against being in an unquoted here document +# in config.status. +rm -f conftest.defines conftest.undefs +# Using a here document instead of a string reduces the quoting nightmare. +# Putting comments in sed scripts is not portable. +# +# `end' is used to avoid that the second main sed command (meant for +# 0-ary CPP macros) applies to n-ary macro definitions. +# See the Autoconf documentation for `clear'. +cat >confdef2sed.sed <<\_ACEOF +s/[\\&,]/\\&/g +s,[\\$`],\\&,g +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp +t end +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp +: end +_ACEOF +# If some macros were called several times there might be several times +# the same #defines, which is useless. Nevertheless, we may not want to +# sort them, since we want the *last* AC-DEFINE to be honored. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs +rm -f confdef2sed.sed + +# This sed command replaces #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. +cat >>conftest.undefs <<\_ACEOF +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, +_ACEOF + +# Break up conftest.defines because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS +echo ' :' >>$CONFIG_STATUS +rm -f conftest.tail +while grep . conftest.defines >/dev/null +do + # Write a limited-size here document to $tmp/defines.sed. + echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#define' lines. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS + echo 'CEOF + sed -f $tmp/defines.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail + rm -f conftest.defines + mv conftest.tail conftest.defines +done +rm -f conftest.defines +echo ' fi # grep' >>$CONFIG_STATUS +echo >>$CONFIG_STATUS + +# Break up conftest.undefs because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS +rm -f conftest.tail +while grep . conftest.undefs >/dev/null +do + # Write a limited-size here document to $tmp/undefs.sed. + echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#undef' + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS + echo 'CEOF + sed -f $tmp/undefs.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail + rm -f conftest.undefs + mv conftest.tail conftest.undefs +done +rm -f conftest.undefs + +cat >>$CONFIG_STATUS <<\_ACEOF + # 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. */ + if test x"$ac_file" = x-; then + echo "/* Generated by configure. */" >$tmp/config.h + else + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h + fi + cat $tmp/in >>$tmp/config.h + rm -f $tmp/in + if test x"$ac_file" != x-; then + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 +echo "$as_me: $ac_file is unchanged" >&6;} + else + ac_dir=`(dirname "$ac_file") 2>/dev/null || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p "$ac_dir" + else + as_dir="$ac_dir" + as_dirs= + while test ! -d "$as_dir"; do + as_dirs="$as_dir $as_dirs" + as_dir=`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} + { (exit 1); exit 1; }; }; } + + rm -f $ac_file + mv $tmp/config.h $ac_file + fi + else + cat $tmp/config.h + rm -f $tmp/config.h + fi +# Compute $ac_file's index in $config_headers. +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $ac_file | $ac_file:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X$ac_file : 'X\(//\)[^/]' \| \ + X$ac_file : 'X\(//\)$' \| \ + X$ac_file : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X$ac_file | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'`/stamp-h$_am_stamp_count +done +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + +# +# CONFIG_COMMANDS section. +# +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue + ac_dest=`echo "$ac_file" | sed 's,:.*,,'` + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_dir=`(dirname "$ac_dest") 2>/dev/null || +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_dest" : 'X\(//\)[^/]' \| \ + X"$ac_dest" : 'X\(//\)$' \| \ + X"$ac_dest" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_dest" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p "$ac_dir" + else + as_dir="$ac_dir" + as_dirs= + while test ! -d "$as_dir"; do + as_dirs="$as_dir $as_dirs" + as_dir=`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} + { (exit 1); exit 1; }; }; } + + ac_builddir=. + +if test "$ac_dir" != .; then + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix= ac_top_builddir= +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=. + else + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir ;; + *) # Relative path. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_builddir$srcdir ;; +esac + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; +*) + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_builddir=${ac_top_builddir}.;; +*) + case ${ac_top_builddir}. in + .) ac_abs_top_builddir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_srcdir=$ac_srcdir;; +*) + case $ac_srcdir in + .) ac_abs_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_srcdir=$ac_top_srcdir;; +*) + case $ac_top_srcdir in + .) ac_abs_top_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; + esac;; +esac + + + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 +echo "$as_me: executing $ac_dest commands" >&6;} + case $ac_dest in + depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; 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. + # So let's grep whole file. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + dirpart=`(dirname "$mf") 2>/dev/null || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +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=`(dirname "$file") 2>/dev/null || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p $dirpart/$fdir + else + as_dir=$dirpart/$fdir + as_dirs= + while test ! -d "$as_dir"; do + as_dirs="$as_dir $as_dirs" + as_dir=`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} + { (exit 1); exit 1; }; }; } + + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done + ;; + esac +done +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF + +{ (exit 0); exit 0; } +_ACEOF +chmod +x $CONFIG_STATUS +ac_clean_files=$ac_clean_files_save + + +# 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 || { (exit 1); exit 1; } +fi + + diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..936255f --- /dev/null +++ b/configure.ac @@ -0,0 +1,58 @@ +dnl Initialize autoconf +AC_INIT([mpg], [0.90], [webmaster@technoplaza.net]) + +dnl require autoconf >= 2.59 +AC_PREREQ([2.59]) + +dnl use the config.h header +AC_CONFIG_HEADERS([config.h]) + +dnl initialize automake and allow bzipped distributions +AM_INIT_AUTOMAKE([1.9.6 dist-bzip2 dist-zip]) + +dnl host system check +AC_CANONICAL_HOST + +dnl AM_CONDITIONAL([WINDOWS], test x$host_os = xmingw32) +AM_CONDITIONAL([WINDOWS], + [case $host_os in + mingw32 | cygwin ) test x = x ;; + * ) test 0 = 1 ;; + esac]) + +dnl check for c++ compiler and BSD install +AC_PROG_CXX +AC_PROG_INSTALL + +dnl tests for wxWidgets +AM_OPTIONS_WXCONFIG +AM_PATH_WXCONFIG([2.6.1], HAVE_WXWIDGETS=1, HAVE_WXWIDGETS=0) + +if test $HAVE_WXWIDGETS -eq 1; then + CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS" + CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY" + LIBS="$LIBS $WX_LIBS" +else + AC_MSG_ERROR([wxWidgets >= 2.6.1 is required. + + Please install wxWidgets 2.6.1 from http://www.wxwidgets.org. + + This error could also be the result of a non-standard install + path or a missing wx-config program.]) +fi + +WX_INCLUDES="" +for opt in $WX_CPPFLAGS +do + case "$opt" in + -I*) + WX_INCLUDES="$WX_INCLUDES $opt" + ;; + esac +done +AC_SUBST(WX_INCLUDES) + +dnl configure files to produce +AC_CONFIG_FILES([Makefile source/Makefile]) +AC_OUTPUT + diff --git a/depcomp b/depcomp new file mode 100644 index 0000000..04701da --- /dev/null +++ b/depcomp @@ -0,0 +1,530 @@ +#! /bin/sh +# depcomp - compile a program generating dependencies as side-effects + +scriptversion=2005-07-09.11 + +# Copyright (C) 1999, 2000, 2003, 2004, 2005 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., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +case $1 in + '') + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: depcomp [--help] [--version] PROGRAM [ARGS] + +Run PROGRAMS ARGS to compile a file, generating dependencies +as side-effects. + +Environment variables: + depmode Dependency tracking mode. + source Source file read by `PROGRAMS ARGS'. + object Object file output by `PROGRAMS ARGS'. + DEPDIR directory where to store dependencies. + depfile Dependency file to output. + tmpdepfile Temporary file to use when outputing dependencies. + libtool Whether libtool is used (yes/no). + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "depcomp $scriptversion" + exit $? + ;; +esac + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi + +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. +depfile=${depfile-`echo "$object" | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz +## The second -e expression handles DOS-style file names with drive letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the `deleted header file' problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. + tr ' ' ' +' < "$tmpdepfile" | +## Some versions of gcc put a space before the `:'. On the theory +## that the space means something, we add a space to the output as +## well. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like `#:fec' to the end of the + # dependency line. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ + tr ' +' ' ' >> $depfile + echo >> $depfile + + # The second pass generates a dummy entry for each header file. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> $depfile + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. In older versions, this file always lives in the + # current directory. Also, the AIX compiler puts `$object:' at the + # start of each line; $object doesn't have directory information. + # Version 6 uses the directory in both cases. + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` + tmpdepfile="$stripped.u" + if test "$libtool" = yes; then + "$@" -Wc,-M + else + "$@" -M + fi + stat=$? + + if test -f "$tmpdepfile"; then : + else + stripped=`echo "$stripped" | sed 's,^.*/,,'` + tmpdepfile="$stripped.u" + fi + + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + + if test -f "$tmpdepfile"; then + outname="$stripped.o" + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +icc) + # Intel's C compiler understands `-MD -MF file'. However on + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c + # ICC 7.0 will fill foo.d with something like + # foo.o: sub/foo.c + # foo.o: sub/foo.h + # which is wrong. We want: + # sub/foo.o: sub/foo.c + # sub/foo.o: sub/foo.h + # sub/foo.c: + # sub/foo.h: + # ICC 7.1 will output + # foo.o: sub/foo.c sub/foo.h + # and will wrap long lines using \ : + # foo.o: sub/foo.c ... \ + # sub/foo.h ... \ + # ... + + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h', + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | + sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in `foo.d' instead, so we check for that too. + # Subdirectories are respected. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" = "x$object" && dir= + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` + + if test "$libtool" = yes; then + # With Tru64 cc, shared objects can also be used to make a + # static library. This mecanism is used in libtool 1.4 series to + # handle both shared and static libraries in a single compilation. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. + # + # With libtool 1.5 this exception was removed, and libtool now + # generates 2 separate objects for the 2 libraries. These two + # compilations output dependencies in in $dir.libs/$base.o.d and + # in $dir$base.o.d. We have to check for both files, because + # one of the two compilations can be disabled. We should prefer + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is + # automatically cleaned when .libs/ is deleted, while ignoring + # the former would cause a distcleancheck panic. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 + tmpdepfile2=$dir$base.o.d # libtool 1.5 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 + "$@" -Wc,-MD + else + tmpdepfile1=$dir$base.o.d + tmpdepfile2=$dir$base.d + tmpdepfile3=$dir$base.d + tmpdepfile4=$dir$base.d + "$@" -MD + fi + + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=-M + # Require at least two characters before searching for `:' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. + "$@" $dashmflag | + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tr ' ' ' +' < "$tmpdepfile" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=no + for arg in "$@"; do + case $cleared in + no) + set ""; shift + cleared=yes ;; + esac + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source file. + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix="`echo $object | sed 's/^.*\././'`" + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + sed '1,2d' "$tmpdepfile" | tr ' ' ' +' | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" = yes; then + while test $1 != '--mode=compile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E | + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | + sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o, + # because we must use -o when running libtool. + "$@" || exit $? + IFS=" " + for arg + do + case "$arg" in + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" + echo " " >> "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/docs/mpg.txt b/docs/mpg.txt new file mode 100644 index 0000000..06dd930 --- /dev/null +++ b/docs/mpg.txt @@ -0,0 +1,580 @@ +-------------------------------------------------------------------------------- +| Metroid Password Generator 0.90 +| Copyright (C) 2005 emuWorks http://games.technoplaza.net/ +| by John Ratliff [ webmaster AT technoplaza DOT net ] +-------------------------------------------------------------------------------- + +-------------------------------------------------------------------------------- +| Table of Contents +-------------------------------------------------------------------------------- + + - 1.0 Introduction + - 2.0 Compilation and Installation + - 3.0 Using the Program + - 3.1 Encoding Basics + - 3.2 Decoding Basics + - 3.3 Raw Encoding + - 3.4 The Shift Byte + - 3.5 Checksum Fixing + - 3.6 The Password Menu + - 3.6.1 Perfect Game + - 3.6.2 Debug Password + - 3.6.3 Reset + - 3.6.4 The Ending Submenu + - 3.6.5 The Give Submenu + - 4.0 Known Bugs and Issues + - 5.0 Release History + - 6.0 Contacting the Author + - 7.0 Thank Yous and Acknowledgments + - 8.0 Legal Information + +-------------------------------------------------------------------------------- +| 1.0 - Introduction +-------------------------------------------------------------------------------- + + Welcome to Metroid Password Generator. As you may have guessed, this program + will help generate passwords for Metroid, the first game in the Metroid series + for the original NES (US and European versions only. The Japanese version used + the FDS and saved progress on its disk). + + But we do so much more than just generate passwords. We can also decode + passwords, edit your game progress, fix checksums so you can spell words in + your passwords, and all kinds of other fun. + + Why did I make this program when SnoBro and tapper have already created + a Password Generator (Metcode - The Metroid Password Creator) and a Checksum + Generator (metpass - Metroid Password Checksum Generator), respectively? + + First, neither of their programs work on anything but Windows, and I like + programs that work on Windows, Linux, and Mac OS-X, which my program does. + + Second, neither of their programs has what I would consider a great GUI + layout. SnoBro never released any refinements to his GUI, so you have to hunt + all over the listbox to find which bits to change to get the password you + want. It also never tells you if your password is invalid, such as when you + select an invalid start location or activate the reset bit. It doesn't feature + automatic decode, even though he has a customized text control to add spaces + between password segments. I will praise him for his custom text control + though, as it's the one thing I want that I don't have. It's on my TODO list, + but I didn't get around to it, and I felt like releasing the program without + it. Finally, even though you can edit the raw password data, you can't change + the shift byte. + + metpass is a little nicer for what it does. It has an interface that looks + like Metroid. This inspired me to put in the custom password panel which + displays the password in the Metroid font. I wish I could have got the + graphics to work so you could edit it like he does too, but I could never make + it work right, so I gave up. The Metroid font is hard to read sometimes + though, especially those lowercase q's and g's, so I like having it in a more + readable font, too. Second, you can change the shift byte in his, but you + don't know you're doing it. He also only lets you use 16 of the possible 255 + shift values. I understand his reasoning, but I don't like limitations. + Finally, the most damning thing is that you don't know what the password does + unless you decode it with another password generator. He suggests using + SnoBro's to find out what the password does. I thought the two should be + combined, so I did. + + Third, SnoBro's list doesn't know what all the password bits do. He did a lot + of research, and learned a few things I didn't (which I borrowed -- Thanks + SnoBro). I have figured out what 116 of the 128 bits mean, borrowing three + bits from SnoBro's list (the reset bit, mother brain's death, and samus + without her swimsuit). By constract, SnoBro has 72/128 bits defined. + + Finally, I do something that neither program does. Organization of the GUI. + Instead of one big checkbox list, we have the different controls compiling + the things which you would expect to be together, but aren't in the raw + password data. There are 11 categories (missile count, items, missile + containers, energy tanks, red/yellow doors, start location, statues, armor, + zebetites, and bosses) of controls. I was hoping to be able to be specific + about which bit maps to each specific thing, but it's hard to specify which + energy tank or missile container or red door you're talking about without a + good point of refernece, and there aren't any public maps I could find that + list information like that. I have been as specific as I could be. + + Please, please don't think I'm putting down either SnoBro or tapper. They are + both pioneers and heroes to me, without who I could never have done the work + I did. I am not putting them down, rather, I am standing on the shoulders of + giants. The fact that I think my program is better (and maybe you won't think + so, but if it is) is a testament to their pioneering efforts. + +-------------------------------------------------------------------------------- +| 2.0 Compilation and Installation +-------------------------------------------------------------------------------- + + If you are not using a binary distribution (Binaries are provided for Windows, + Linux GTK+ 2.0, and Mac OS-X), then you will need to compile the source. Or + maybe you just want to. In either case, it should be fairly simple. First, + the prerequisites: + + An ISO compliant C++ compiler. I use g++ 3.4.2. + wxWidgets >= 2.6.1. I use wxWidgets 2.6.2. http://www.wxwidgets.org + + I use the GNU autoconf tools to handle Makefiles, so if you have these things, + you can probably do + + ./configure && make + + In Windows, you can use mingw and msys to obtain a unix development + environment. This is how I built the windows version. + +-------------------------------------------------------------------------------- +| 3.0 Using The Program +-------------------------------------------------------------------------------- + + To start the program, simply double click the mpg (or mpg.exe on Windows) + executable. You can also start it from a terminal if you like. + +-------------------------------------------------------------------------------- +| 3.1 Encoding Basics +-------------------------------------------------------------------------------- + + When you start the program, it will bring up a window full of check boxes and + text controls and other fun widgets. + + To change the password, simply click on the various checkboxes or change the + text controls in the notebook (the tabbed window). + + The first tab, labelled 'Items' contains controls for editing the basic + equipment in Metroid. Your items (maru mari, bombs, etc), energy tanks, + missile containers and count. + + The missile count is special because it is a spin control. This means you can + use the up/down buttons beside it or enter the number directly into the text + area. Because text controls are hard to validate this way, it is possible to + enter invalid input. Invalid input will never be used, but it can be entered. + I tried hard to prevent this, but in the end was unsuccessful. Just remember + that the missile count ranges from 0 to 255. If you have missiles but no + missile containers, the game will not show your missile display. Also, you can + only have as many missiles as you have missile containers (and 75 for each + boss Kraid and Ridley you have killed). This means if you have 255 missiles, + but have 1 missile container and no bosses killed, then the next time you + collect a missile, your inventory will drop to 5. + + The second tab, labelled 'Misc' contains all the other settings in Metroid. + This includes the game time, which doors are open (red and yellow doors, that + is), your start location, which boss statues have been raised, if samus is + wearing her space suit or not, which zebetites have been destroyed, and which + bosses are dead. + + For some reason, when you raise the Kraid statue, the game deactivates the + Kraid killed bit. I have found no downside to having them both enabled, and + I'm not entirely sure it's not a bug in the game. Just keep in mind that you + can have the statues raised or the bosses killed or both, and it all works the + same way (except of course for the Tourian Bridge). + + The game time is special for much the same reason the missile count was + special. Instead of being an 8-bit value here, though, it is a 32-bit value, + ranging from 0 to 42944967296 - 1. SnoBro thought the value was 24-bit, but he + is wrong. I believe he misread the Metroid source, just as I did when I first + glanced at it. After tracing the code though, I confirmed it is 32-bit. + + The game time is special for another reason. It is specified in what I will + call 'game ticks'. 1 game tick = ~4 seconds. SnoBro calculated it as closer + to ~4.266666666667 seconds (or more precisely 1 tick = 256 frames with the + NTSC (US) NES running 60 frames per second). Since I don't have a PAL version + of Metroid, I can't test if the time is different on a PAL (European) NES, but + I'm 99% positive it would be. In this case, a PAL NES runs at 50 frames per + second, which would mean 1 tick = 256 / 50 fps = 5.12 seconds. The ending time + probably won't be different, but if you wanted to calculate 1 hour in game + ticks, you would need this conversion for a PAL copy of Metroid. + + If you want a particular game time, you can just take the number of seconds + you want and divide by 4 (or 5 for PAL Metroid) for a good approximation. If + you want precision, take the number of seconds times 256 and divide that + number by 60 for the NTSC (US) Metroid, or 50 for the PAL (European) Metroid. + + The third panel, labelled 'Raw' will be covered in 3.3 Raw Encoding. + +-------------------------------------------------------------------------------- +| 3.2 Decoding Basics +-------------------------------------------------------------------------------- + + To decode a password, simply enter it in the text control at the bottom + under the Metroid password representation. You will need to separate the the + four segments with spaces, as is done in the default password. Once you have + entered the password, it is checked, and if authentic is automatically + decoded. You will know this happens because the metroid password display will + only change when a valid password is entered. + + If you want to try it out, just enter JUSTIN BAILEY ------ ------ and see + what happens. Then you can edit this password as described in 3.1 Encoding + Basics or 3.3 Raw Encoding. + + Keep in mind that some passwords have selections that are not actually valid + in the game itself. This means when you decode a password, it may not look + correct in the first tab. This is because the first two tabs try as much + as possible to ensure valid data. So you cannot have the Maru Mari if it has + not been taken from the pedestal. The JUSTIN BAILEY password, which has all + items (save the Ice Beam) in the inventory is one such password. It also has + a missile inventory greater than its carrying capacity. + + If you enter a password with an invalid checksum, the fix checksum button will + become enabled. This is useful when you want to make passwords from random + words. This will be discussed in 3.5 Checksum Fixing. + +-------------------------------------------------------------------------------- +| 3.3 Raw Encoding +-------------------------------------------------------------------------------- + + The third tab, labelled 'Raw' is for raw password data editing. Instead of + editing only the known values to produce a password, you can change it bit + by bit, just like in SnoBro's Metcode. + + I find this approach useful only when decoding user-made passwords that + aren't stricly valid in metroid (having items without removing them for + instance). + + You can also change the shift byte value here. It's purpose will be discussed + in the 3.4 The Shift Byte. + +-------------------------------------------------------------------------------- +| 3.4 The Shift Byte +-------------------------------------------------------------------------------- + + The shift byte is a value in the metroid password used to encode the data. I + guess they wanted to encrypt the passwords. But they didn't do a very good + job, because SnoBro figured it out, and through him, now I understand it, too. + + I won't talk about how it works here, because it's complex and ultimately + irrelevant to password generation. Just know here that changing the shift + byte value will alter the password significantly. + + The shift byte means there are trillions upon trillions of passwords that do + the same thing. Since there are 128 bits in the password and 256 shift values, + this gives the possibility of 8.7112285931760246646623899502533e+40 passwords. + + The JUSTIN BAILEY password uses a shift value of 255. By default, the program + uses a shift value of 0, which means the passwords aren't encoded at all. The + NAR PASSWORD has a defacto shift value of 0, even though it isn't used. This + means it is conceivable through raw editing that you could stumble upon the + NAR PASSWORD and ruin your editing. If this happens, simply change the shift + byte value to get an encoded password. + +-------------------------------------------------------------------------------- +| 3.5 Checksum Fixing +-------------------------------------------------------------------------------- + + Now we get to the fun part, checksum fixing. This enables you to create word + passwords that actually work in Metroid. + + I don't know if anyone will want this, but it's fun sometimes. I spent a good + twenty minutes playing with it, er, I mean testing my code. + + To make it work, simply enter a password. Because the checksum is encoded in + the last two characters, you cannot use these as part of your message, but the + rest are fair game. If it's not a valid password (which odds are it won't be), + the fix checksum button will become enabled and you can click it to fix the + checksum. At this point, the checksum will be changed and your password will + be entered. + + Note that because you are supplying random data, your password may not be + valid. The program will warn you if it knows your password is invalid. The two + possibilities for invalid password are the reset bit (look in the raw password + data) and an invalid start location. + + For instance, I wanted to use ThisIs MyRock inPass word00. But this has both + the reset bit set and an invalid start location. So I changed it to + ThisIs Myr0ck inPass word00. Then hit fix checksum and it becomes the valid + password ThisIs Myr0ck inPass word16. + + A note about spaces. It's best not to use spaces, because they can alter the + other letters. If you want spaces, blanks can be used instead. Blanks are + where there is no character between two other characters. Metroid treats + blanks as zeroes, but spaces are much different. You cannot put a blank in the + program, but you can put a 0, and change it to a blank when you enter it in + the game. Metroid cannot enter blanks, but you can go backwards until you hit + the character after the one you are at to get a blank. + + Finally, about the decoded meanings. If you have used metpass, you may have + noticed it seems to be able to generate different values for the generated + passwords. This is because it limits itself to the 16 possible shift values + that can be used with the first 22 password characters. The shift bit is + encoded in the 22 and 23 character of the password. The high four bits of the + 23rd character are the bottom half of the shift value. Since there are four + bits, it gives 16 possible values. + + Why does this let it give different passwords? It doesn't by itself. The + reason it can generate 16 different sets of data is that instead of encoding + a new shift value onto an existing password which is what happens when you + change the shift byte in this program, it decodes the password you gave it + using each of the 16 possible shift values, and that becomes your data. + Because metpass changes the shift value and decodes a new password every time, + you get different data depending upon the shift value. + + To constrast, our program allows you to handle the shift value yourself. This + means you can use all 256 possible shift values, if you know the right letters + to use. To use the 16 possible shift values for any 22 character password, + make the 23rd character one of the following: 0, 4, 8, C, G, K, O, S, W, a, e, + i, m, q, u, or y. + + Now, getting back to my original password: ThisIs MyRock inPass word00. If I + change that first 0 to a G, I get a valid password without any editing. With + the fixed checksum, it becomes ThisIs MyRock inPass wordHT. + + The 22 character's low four bits are the high four bits of the shift byte. + There are too many possibilities to list here, so if you want to use more than + the 'simple 16', you'll have to figure it out yourself. + +-------------------------------------------------------------------------------- +| 3.6 The Password Menu +-------------------------------------------------------------------------------- + + Editing the bits by hand is a lot to take care of it you just want certain + things. The Password Menu has many useful options to make password editing + easier. + +-------------------------------------------------------------------------------- +| 3.6.1 Perfect Game +-------------------------------------------------------------------------------- + + The first item on the Password menu is the Perfect Game, or at least my idea + of one. You get all the items (except the wave beam because you can't use them + both without using user-created passwords), all the missile containers and a + full missile count, all the energy tanks (even though you can only use 6), all + the red and yellow doors open, kraid and ridley dead with their statues + raised, all the zebetites dead, starting in Tourian with a game time of 0 and + Samus in her swimsuit. This password is ------ ---mE3 l-y000 00y00j. + + Basically, it's what would happen if you went through the entire game twice + (once with spacesuit getting a good enough ending to play again without it, + and once with the swimsuit), but with a forged game time of 0 and a full + missile count (assuming you didn't have one when you got to Tourian). I guess + you would also have to die the second time around to account for the 30 + energy and the fact that all the red and yellow doors in Tourian are open and + the zebetites are dead. + + In other words, this is the password to just go kill Mother Brain with a + minimum of complications (save for the fact you only start with 30 energy). + + If you want to be a little more fair, you might go revive the zebetites and + close the red and yellow doors in Tourian. Then it would be as if you just + arrived in Tourian, but died once to account for the 30 energy. This password + would be ------ --0m23 l-y000 00y00k. + + A better password if you want full energy would be to take away Brinstar + Energy Tank Three, close the red door to the Tourian Bridge in Brinstar, close + all red and yellow doors in Tourian, change the start location to Brinstar, + lower the statues, and finally revive the zebetites. This way, you can collect + the Energy Tank on the way to Tourian (it's the one in the ceiling just past + the shaft to Kraid's Lair). It will be as if you were just going to Tourian + for the first time. This password would be z?---- --0m20 l-y000 00K01p. + +-------------------------------------------------------------------------------- +| 3.6.2 Debug Password +-------------------------------------------------------------------------------- + + The second item on the Password menu is Debug Password. The debug password, + aka the NAR PASSWORD, is NARPAS SWORD0 0000. The last 8 characters can be + anything because the password is Hard Coded into the game, and the game only + checks the first 16 characters. I think this has something to do with the fact + that 16 password characters = 12 bytes which is 3 quads, a multiple of 4 + bytes. I don't have any research to back it up, but it's a nice data size to + work with, and if it were simply a matter of bytes, they could have stopped at + 12, which would be 9 bytes. Due to blanks and zeros being treated the same + way, you can also enter simply NARPAS SWORD and it will work. + + What does Hard Coded mean? It means the checksum isn't checked, nor the shift + byte used. It also means you cannot edit the password traits because it's not + a real password. + + There are several theories behind the name. NAR could mean 'Not a Password', + or it could mean 'North American Release' since the Japanese version used the + FDS (Famicom Disk System) to store its data, or it could be a shortened form + of the name Tohru Narihiro, the man who created the password system for + the US and European version of Metroid. Whatever it means, the password is + what it is. + + What does the debug password do? It turns on many interesting debugging + effects that can be used to test the game with. Samus is invincible (she + cannot be hurt or killed, except if the timer runs out when escaping from + Zebes after killing Mother Brain). Samus has all the equipment (The Wave Beam + and Ice Beam simultaneously, for a weird looking beam), and unlimited missile + capacity, even when the missile display is not present. She has no missile + containers or energy tanks, and neither Ridley nor Kraid is dead. Because the + password is hard coded, you cannot save the effects. Some people think you can + because when you start the game, you go back to your last position. But do not + confuse this with actually entering the password the game gives you. If you + reset the NES and try the new password, you will see that you have lost your + debug effects. + + The Debug Password menu item simply brings up a dialog with the NAR PASSWORD + and tells you it is Hard Coded and cannot be edited. + + It is possible to stumble upon the NAR PASSWORD by editing individual bits + when using a shift byte value of 0. If this happens, or you try to enter the + NAR PASSWORD into the text box, the program will warn you. If you stumble upon + it by accident, simply change your shift value in the raw tab and you will be + able to use the password. + +-------------------------------------------------------------------------------- +| 3.6.3 Reset +-------------------------------------------------------------------------------- + + This third item on the password menu is the reset option. You can use this to + reset the password to a blank one (all zero's), which would be the equivalent + of choosing Start instead of Continue from the Metroid intro. + + If you choose this option, it will ask you to confirm before it erases your + old data. + +-------------------------------------------------------------------------------- +| 3.6.4 The Ending Submenu +-------------------------------------------------------------------------------- + + There are 10 possible endings in the game. The data I have seen says there + are five, but they are wrong. I don't know where this information came from + originally, but it doesn't square with my copy of Metroid. + + The ending you get is based on two factors. a) The time it took you to finish + the game, and b) Whether Samus is wearing a space suit or a swimsuit. + + I'll do b first because it's simpler. The only change with b is that if she's + wearing her swimsuit, you will see her in it when the ending screen starts + after taking the elevator off Zebes. Otherwise, she starts out in her space + suit. + + Now, there are 5 endings that depend on a. So, you get one of two things for + b, and 5 for a, giving us a total of 10 endings. + + There may be more than 10 endings. I have done research to find out the + exact times, but this is still based on what I have read in tutorials, that + endings are based on the two factors. + + So, there are five changes based on time. + + 1) Samus changes into a bikini at the end (Space Suit Off) + 2) Samus changes into a Swimsuit at the end (Space Suit Off) + 3) Samus removes her helmet (Space Suit On) + 4) Samus raises her fist in a 'victory pose' (Space Suit On) + 5) Samus turns around covering her eyes in shame (Space Suit On) + + If the Space Suit is off, then for the last three endings, she puts it back + on. + + I have done tests to find out the precise numbers (in game ticks) that cause + the 5 time endings. + + 1) Game Time < 1024 ticks (approx 1 hr 13 min) + 2) Game Time < 2560 ticks (approx 3 hr 2 min) + 3) Game Time < 5632 ticks (approx 6 hr 41 min) + 4) Game Time < 31232 ticks (approx 37 hr 1 min) + 5) Game Time >= 31232 ticks (approx 37 hr 1 min) + + Some people say 5 can be triggered at > 5 hr with Samus wearing her swimsuit. + I tried this, and it didn't give me that ending. I got ending 4. I think they + must not know what they are talking about and just guessed about 5 hours. + + I calculated the approximate times using the conversion 1 game tick equals + 4.266667 seconds. Floating point numbers aren't highly accurate, so 6 decimal + places seemed more than sufficient. I doubt using a higher precision + conversion factor would yield different results only going to the minute, but + feel free to correct me if I'm wrong. + + Now, as for the Endings submenu. The purpose of this menu is to change the + game time to yield one of the ending results based on time. It will change + your time to 0, 1024, 2560, 5632, or 31232 depending upon the ending you + select. I decided not to put all ten including the swimsuit endings since most + people think there are only five endings anyway. + +-------------------------------------------------------------------------------- +| 3.6.5 The Give Submenu +-------------------------------------------------------------------------------- + + The final piece of the Password menu is another submenu. The Give submenu is + here to give you all of something in a certain category. The categories are + items, missile containers, energy tanks, red & yellow doors, statues, + zebetites, bosses, and missile count. + + Items: Gives All Items (All Equipment Except Wave Beam) + Missile Containers: All Missile Containers (105 possible missiles with these) + Energy Tanks: All 8 Energy Tanks + Red & Yellow Doors: All 19 Red & Yellow Doors Open + Statues: Kraid & Ridley's Statue Raised + Zebetites: All 5 Zebetites Dead + Bosses: All 3 Bosses (Kraid, Ridley & Mother Brain) Dead + + Full Missile Count is special in that instead of giving you 255, it gives you + whatever your carrying capacity is. If you have all missile containers and + both bosses are dead, then you can have 255. Kraid and Ridley are worth 75 a + piece. Each missile container is another 5, of which there are 21 containers. + +-------------------------------------------------------------------------------- +| 4.0 Known Bugs and Issues +-------------------------------------------------------------------------------- + + There are no known bugs at this time. :-) + + There are a few issues to be aware of. + + In Mac, the text boxes seem to be scrolled past the end of the text. This can + make them look like they aren't responding to input or even that they have + any. Just click on the text control and press the left arrow till you reach + the beginning. The text is there. The two affected controls are the game time, + and the password text. + + In Linux using wxGTK, the display takes up significantly more space than it + does on Windows. It will fit on an 800x600 display if you hide any top and + bottom panels you may have. Otherwise, you'll need a higher resolution. I + tried to make it fit both Windows and Linux GTK under 800x600, but GTK just + takes up too much space. + + In Linux, the Spin Control text boxes are a bit annoying. If you delete all + the text, it goes back to being 0. If you put a value higher than 255, it will + put 255 in the box. Sorry, but I think there is a bug in wxGTK, and until I + can fix it properly, this is the only solution I could find. + +-------------------------------------------------------------------------------- +| 5.0 Release History +-------------------------------------------------------------------------------- + + Version 0.90 - Wednesday, September 28, 2005 + - First Public Release + +-------------------------------------------------------------------------------- +| 6.0 Contacting the Author +-------------------------------------------------------------------------------- + + I can be contacted via email (webmaster [AT] technoplaza [DOT] net). Replace + that as appropriate. I also have an online feedback form at + http://www.technoplaza.net/feedback.php + +-------------------------------------------------------------------------------- +| 7.0 Thank Yous and Acknowledgments +-------------------------------------------------------------------------------- + + There are so many people who contributed to this program, and it would be + criminal not to list them. + + First, SnoBro (aka Kent Hansen). My shining light in the dark corridoors of + Zebes. SnoBro was the person who deciphered the metroid password checksum and + created the first password generator. Without his work, this program simply + would not exist. + + Second, tapper (aka Sebastian Pettersson). His checksum calculator inspired me + to add many things to this program that otherwise would not be there. He also + helped me confirm my thoughts on the NAR PASSWORD which was plaguing me for a + time. + + Third, Vadim Zeitlin, Robert Roebling, Stefan Csomer, Julian Smart, Ryan + Norton, and any member of the wxWidgets team I have overlooked. Their + wxWidgets library has saved me time and again from an impossible choice + between windows-only and Java (although I love Java, no one else seems to). + + Last but never least, and probably most important of all, my mentor Gregory + Rawlins who taught me all about design and design patterns. I am a million + times better programmer than I ever was before I met him. Without his + teaching, I would never have been able to tackle a program of even this scale. + I'm sure he would be horrified to know I've turned to the dark side (C++) and + abandoned the light (Java). Sorry Gregory. :-) + +-------------------------------------------------------------------------------- +| 8.0 Legal Information +-------------------------------------------------------------------------------- + + This program is Copyright (C) 2005 emuWorks http://games.technoplaza.net/. + It is licensed under the GNU General Public License, which is included with + this program in the docs section in the file license.txt. + + For more information, please consult the GNU website at http://www.gnu.org/, + or the Free Software Foundation http://www.fsf.org/. + diff --git a/install-sh b/install-sh new file mode 100644 index 0000000..4d4a951 --- /dev/null +++ b/install-sh @@ -0,0 +1,323 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2005-05-14.22 + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" +mkdirprog="${MKDIRPROG-mkdir}" + +chmodcmd="$chmodprog 0755" +chowncmd= +chgrpcmd= +stripcmd= +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src= +dst= +dir_arg= +dstarg= +no_target_directory= + +usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: +-c (ignored) +-d create directories instead of installing files. +-g GROUP $chgrpprog installed files to GROUP. +-m MODE $chmodprog installed files to MODE. +-o USER $chownprog installed files to USER. +-s $stripprog installed files. +-t DIRECTORY install into DIRECTORY. +-T report an error if DSTFILE is a directory. +--help display this help and exit. +--version display version info and exit. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG +" + +while test -n "$1"; do + case $1 in + -c) shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + --help) echo "$usage"; exit $?;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -s) stripcmd=$stripprog + shift + continue;; + + -t) dstarg=$2 + shift + shift + continue;; + + -T) no_target_directory=true + shift + continue;; + + --version) echo "$0 $scriptversion"; exit $?;; + + *) # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + test -n "$dir_arg$dstarg" && break + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dstarg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dstarg" + shift # fnord + fi + shift # arg + dstarg=$arg + done + break;; + esac +done + +if test -z "$1"; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call `install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +for src +do + # Protect names starting with `-'. + case $src in + -*) src=./$src ;; + esac + + if test -n "$dir_arg"; then + dst=$src + src= + + if test -d "$dst"; then + mkdircmd=: + chmodcmd= + else + mkdircmd=$mkdirprog + fi + else + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dstarg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + + dst=$dstarg + # Protect names starting with `-'. + case $dst in + -*) dst=./$dst ;; + esac + + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + if test -n "$no_target_directory"; then + echo "$0: $dstarg: Is a directory" >&2 + exit 1 + fi + dst=$dst/`basename "$src"` + fi + fi + + # This sed command emulates the dirname command. + dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` + + # Make sure that the destination directory exists. + + # Skip lots of stat calls in the usual case. + if test ! -d "$dstdir"; then + defaultIFS=' + ' + IFS="${IFS-$defaultIFS}" + + oIFS=$IFS + # Some sh's can't handle IFS=/ for some reason. + IFS='%' + set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` + shift + IFS=$oIFS + + pathcomp= + + while test $# -ne 0 ; do + pathcomp=$pathcomp$1 + shift + if test ! -d "$pathcomp"; then + $mkdirprog "$pathcomp" + # mkdir can fail with a `File exist' error in case several + # install-sh are creating the directory concurrently. This + # is OK. + test -d "$pathcomp" || exit + fi + pathcomp=$pathcomp/ + done + fi + + if test -n "$dir_arg"; then + $doit $mkdircmd "$dst" \ + && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ + && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ + && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } + + else + dstfile=`basename "$dst"` + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + trap '(exit $?); exit' 1 2 13 15 + + # Copy the file name to the temp name. + $doit $cpprog "$src" "$dsttmp" && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ + && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ + && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && + + # Now rename the file to the real destination. + { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ + || { + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + if test -f "$dstdir/$dstfile"; then + $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ + || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ + || { + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 + (exit 1); exit 1 + } + else + : + fi + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" + } + } + fi || { (exit 1); exit 1; } +done + +# The final little trick to "correctly" pass the exit status to the exit trap. +{ + (exit 0); exit 0 +} + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/missing b/missing new file mode 100644 index 0000000..894e786 --- /dev/null +++ b/missing @@ -0,0 +1,360 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. + +scriptversion=2005-06-08.21 + +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# Originally by Fran,cois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +run=: + +# In the cases where this matters, `missing' is being run in the +# srcdir already. +if test -f configure.ac; then + configure_ac=configure.ac +else + configure_ac=configure.in +fi + +msg="missing on your system" + +case "$1" in +--run) + # Try to run requested program, and just exit if it succeeds. + run= + shift + "$@" && exit 0 + # Exit code 63 means version mismatch. This often happens + # when the user try to use an ancient version of a tool on + # a file that requires a minimum version. In this case we + # we should proceed has if the program had been absent, or + # if --run hadn't been passed. + if test $? = 63; then + run=: + msg="probably too old" + fi + ;; + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + --run try to run the given command, and emulate it if it fails + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + help2man touch the output file + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + tar try tar, gnutar, gtar, then tar without non-portable flags + yacc create \`y.tab.[ch]', if possible, from existing .[ch] + +Send bug reports to ." + exit $? + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing $scriptversion (GNU Automake)" + exit $? + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + +esac + +# Now exit if we have it, but it failed. Also exit now if we +# don't have it and --version was passed (most likely to detect +# the program). +case "$1" in + lex|yacc) + # Not GNU programs, they don't have --version. + ;; + + tar) + if test -n "$run"; then + echo 1>&2 "ERROR: \`tar' requires --run" + exit 1 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then + exit 1 + fi + ;; + + *) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then + # Could not run --version or --help. This is probably someone + # running `$TOOL --version' or `$TOOL --help' to check whether + # $TOOL exists and not knowing $TOOL uses missing. + exit 1 + fi + ;; +esac + +# If it does not exist, or fails to run (possibly an outdated version), +# try to emulate it. +case "$1" in + aclocal*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acinclude.m4' or \`${configure_ac}'. You might want + to install the \`Automake' and \`Perl' packages. Grab them from + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`${configure_ac}'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acconfig.h' or \`${configure_ac}'. You might want + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` + test -z "$files" && files="config.h" + touch_files= + for f in $files; do + case "$f" in + *:*) touch_files="$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files="$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + autom4te) + echo 1>&2 "\ +WARNING: \`$1' is needed, but is $msg. + You might have modified some files without having the + proper tools for further handling them. + You can get \`$1' as part of \`Autoconf' from any GNU + archive site." + + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo "#! /bin/sh" + echo "# Created by GNU Automake missing as a replacement of" + echo "# $ $@" + echo "exit 0" + chmod +x $file + exit 1 + fi + ;; + + bison|yacc) + echo 1>&2 "\ +WARNING: \`$1' $msg. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.y) + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if [ ! -f y.tab.h ]; then + echo >y.tab.h + fi + if [ ! -f y.tab.c ]; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex|flex) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if [ ! -f lex.yy.c ]; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + help2man) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a dependency of a manual page. You may need the + \`Help2man' package in order for those modifications to take + effect. You can get \`Help2man' from any GNU archive site." + + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` + fi + if [ -f "$file" ]; then + touch $file + else + test -z "$file" || exec >$file + echo ".ab help2man is required to generate this page" + exit 1 + fi + ;; + + makeinfo) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AIX, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site." + # The file to touch is that specified with -o ... + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + # ... or it is the one specified with @setfilename ... + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` + # ... or it is derived from the source name (dir/f.texi becomes f.info) + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info + fi + # If the file does not exist, the user really needs makeinfo; + # let's fail without touching anything. + test -f $file || exit 1 + touch $file + ;; + + tar) + shift + + # We have already tried tar in the generic part. + # Look for gnutar/gtar before invocation to avoid ugly error + # messages. + if (gnutar --version > /dev/null 2>&1); then + gnutar "$@" && exit 0 + fi + if (gtar --version > /dev/null 2>&1); then + gtar "$@" && exit 0 + fi + firstarg="$1" + if shift; then + case "$firstarg" in + *o*) + firstarg=`echo "$firstarg" | sed s/o//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + case "$firstarg" in + *h*) + firstarg=`echo "$firstarg" | sed s/h//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + fi + + echo 1>&2 "\ +WARNING: I can't seem to be able to run \`tar' with the given arguments. + You may want to install GNU tar or Free paxutils, or check the + command line arguments." + exit 1 + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and is $msg. + You might have modified some files without having the + proper tools for further handling them. Check the \`README' file, + it often tells you about the needed prerequisites for installing + this package. You may also peek at any GNU archive site, in case + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff --git a/source/AppConstants.hh b/source/AppConstants.hh new file mode 100644 index 0000000..1ae691c --- /dev/null +++ b/source/AppConstants.hh @@ -0,0 +1,47 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: AppConstants.hh,v 1.2 2005/09/27 08:05:00 technoplaza Exp $ + +#ifdef HAVE_CONFIG_H + #include +#endif + +#ifndef _APPCONSTANTS_HH_ +#define _APPCONSTANTS_HH_ + +namespace mpg { + /// The application name + extern const wxString APP_NAME; + + /// The current version + extern const wxString APP_VERSION; + + /// The copyright notice + extern const wxString APP_COPYRIGHT; + + /// The website URL + extern const wxString APP_URL; +} + +#endif + diff --git a/source/MPGApp.cc b/source/MPGApp.cc new file mode 100644 index 0000000..b0dc533 --- /dev/null +++ b/source/MPGApp.cc @@ -0,0 +1,64 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: MPGApp.cc,v 1.5 2005/09/27 08:05:00 technoplaza Exp $ + +#ifdef HAVE_CONFIG_H + #include +#endif + +#include + +#ifndef WX_PRECOMP + #include +#endif + +#include + +#include "AppConstants.hh" +#include "MPGApp.hh" +#include "view/MPGFrame.hh" + +using namespace mpg; + +const wxString mpg::APP_NAME(wxT("Metroid Password Generator")); +const wxString mpg::APP_VERSION(wxT(PACKAGE_VERSION)); +const wxString mpg::APP_COPYRIGHT(wxT("Copyright (C) 2005 emuWorks")); +const wxString mpg::APP_URL(wxT("http://games.technoplaza.net/")); + +// prototype for InitXmlResource function +void InitXmlResource(); + +bool MPGApp::OnInit() { + // initialize the XRC resources + wxXmlResource::Get()->InitAllHandlers(); + InitXmlResource(); + + MPGFrame *frame = new MPGFrame; + frame->Show(); + + return true; +} + +IMPLEMENT_CLASS(MPGApp, wxApp) +IMPLEMENT_APP(MPGApp) + diff --git a/source/MPGApp.hh b/source/MPGApp.hh new file mode 100644 index 0000000..211f84d --- /dev/null +++ b/source/MPGApp.hh @@ -0,0 +1,45 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: MPGApp.hh,v 1.2 2005/09/27 08:05:00 technoplaza Exp $ + +#ifndef _MPGAPP_HH_ +#define _MPGAPP_HH_ + +/// a namespace for all the classes used by mpg +namespace mpg { + /// The application class and starting point. + class MPGApp : public wxApp { + DECLARE_CLASS(MPGApp) + + public: + /** + * Called to initialize the application. + */ + virtual bool OnInit(); + }; + + DECLARE_APP(MPGApp) +} + +#endif + diff --git a/source/Makefile.am b/source/Makefile.am new file mode 100644 index 0000000..b67fc5a --- /dev/null +++ b/source/Makefile.am @@ -0,0 +1,27 @@ +AUTOMAKE_OPTIONS = subdir-objects +EXTRA_DIST = res/icon32x32.ico res/icon32x32.xpm \ + res/alphabet.xpm res/mpg.xrc +CLEANFILES = res/mpg.cc + +bin_PROGRAMS = mpg + +mpg_SOURCES = AppConstants.hh \ + MPGApp.cc MPGApp.hh \ + exceptions/InvalidPasswordException.cc \ + exceptions/InvalidPasswordException.hh \ + model/Password.cc model/Password.hh \ + view/MPGFrame.cc view/MPGFrame.hh \ + view/PasswordPanel.cc view/PasswordPanel.hh + +nodist_mpg_SOURCES = res/mpg.cc + +if WINDOWS +mpg_SOURCES += res/windows.rc +endif + +.rc.o: + windres @WX_INCLUDES@ -o $@ $< + +.xrc.cc: + wxrc -c -o $@ $< + diff --git a/source/Makefile.in b/source/Makefile.in new file mode 100644 index 0000000..e4afe7a --- /dev/null +++ b/source/Makefile.in @@ -0,0 +1,500 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 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@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +bin_PROGRAMS = mpg$(EXEEXT) +@WINDOWS_TRUE@am__append_1 = res/windows.rc +subdir = source +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(bin_PROGRAMS) +am__mpg_SOURCES_DIST = AppConstants.hh MPGApp.cc MPGApp.hh \ + exceptions/InvalidPasswordException.cc \ + exceptions/InvalidPasswordException.hh model/Password.cc \ + model/Password.hh view/MPGFrame.cc view/MPGFrame.hh \ + view/PasswordPanel.cc view/PasswordPanel.hh res/windows.rc +am__dirstamp = $(am__leading_dot)dirstamp +@WINDOWS_TRUE@am__objects_1 = res/windows.$(OBJEXT) +am_mpg_OBJECTS = MPGApp.$(OBJEXT) \ + exceptions/InvalidPasswordException.$(OBJEXT) \ + model/Password.$(OBJEXT) view/MPGFrame.$(OBJEXT) \ + view/PasswordPanel.$(OBJEXT) $(am__objects_1) +nodist_mpg_OBJECTS = res/mpg.$(OBJEXT) +mpg_OBJECTS = $(am_mpg_OBJECTS) $(nodist_mpg_OBJECTS) +mpg_LDADD = $(LDADD) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +depcomp = $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ + -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(mpg_SOURCES) $(nodist_mpg_SOURCES) +DIST_SOURCES = $(am__mpg_SOURCES_DIST) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EXEEXT = @EXEEXT@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +WINDOWS_FALSE = @WINDOWS_FALSE@ +WINDOWS_TRUE = @WINDOWS_TRUE@ +WX_CFLAGS = @WX_CFLAGS@ +WX_CFLAGS_ONLY = @WX_CFLAGS_ONLY@ +WX_CONFIG_PATH = @WX_CONFIG_PATH@ +WX_CPPFLAGS = @WX_CPPFLAGS@ +WX_CXXFLAGS = @WX_CXXFLAGS@ +WX_CXXFLAGS_ONLY = @WX_CXXFLAGS_ONLY@ +WX_INCLUDES = @WX_INCLUDES@ +WX_LIBS = @WX_LIBS@ +WX_LIBS_STATIC = @WX_LIBS_STATIC@ +WX_VERSION = @WX_VERSION@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ +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@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +AUTOMAKE_OPTIONS = subdir-objects +EXTRA_DIST = res/icon32x32.ico res/icon32x32.xpm \ + res/alphabet.xpm res/mpg.xrc + +CLEANFILES = res/mpg.cc +mpg_SOURCES = AppConstants.hh MPGApp.cc MPGApp.hh \ + exceptions/InvalidPasswordException.cc \ + exceptions/InvalidPasswordException.hh model/Password.cc \ + model/Password.hh view/MPGFrame.cc view/MPGFrame.hh \ + view/PasswordPanel.cc view/PasswordPanel.hh $(am__append_1) +nodist_mpg_SOURCES = res/mpg.cc +all: all-am + +.SUFFIXES: +.SUFFIXES: .cc .o .obj .rc .xrc +$(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 \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu source/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu source/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 +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + ; then \ + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ + else :; fi; \ + done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ + done + +clean-binPROGRAMS: + -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) +exceptions/$(am__dirstamp): + @$(mkdir_p) exceptions + @: > exceptions/$(am__dirstamp) +exceptions/$(DEPDIR)/$(am__dirstamp): + @$(mkdir_p) exceptions/$(DEPDIR) + @: > exceptions/$(DEPDIR)/$(am__dirstamp) +exceptions/InvalidPasswordException.$(OBJEXT): \ + exceptions/$(am__dirstamp) \ + exceptions/$(DEPDIR)/$(am__dirstamp) +model/$(am__dirstamp): + @$(mkdir_p) model + @: > model/$(am__dirstamp) +model/$(DEPDIR)/$(am__dirstamp): + @$(mkdir_p) model/$(DEPDIR) + @: > model/$(DEPDIR)/$(am__dirstamp) +model/Password.$(OBJEXT): model/$(am__dirstamp) \ + model/$(DEPDIR)/$(am__dirstamp) +view/$(am__dirstamp): + @$(mkdir_p) view + @: > view/$(am__dirstamp) +view/$(DEPDIR)/$(am__dirstamp): + @$(mkdir_p) view/$(DEPDIR) + @: > view/$(DEPDIR)/$(am__dirstamp) +view/MPGFrame.$(OBJEXT): view/$(am__dirstamp) \ + view/$(DEPDIR)/$(am__dirstamp) +view/PasswordPanel.$(OBJEXT): view/$(am__dirstamp) \ + view/$(DEPDIR)/$(am__dirstamp) +res/$(am__dirstamp): + @$(mkdir_p) res + @: > res/$(am__dirstamp) +res/$(DEPDIR)/$(am__dirstamp): + @$(mkdir_p) res/$(DEPDIR) + @: > res/$(DEPDIR)/$(am__dirstamp) +res/windows.$(OBJEXT): res/$(am__dirstamp) \ + res/$(DEPDIR)/$(am__dirstamp) +res/mpg.$(OBJEXT): res/$(am__dirstamp) res/$(DEPDIR)/$(am__dirstamp) +mpg$(EXEEXT): $(mpg_OBJECTS) $(mpg_DEPENDENCIES) + @rm -f mpg$(EXEEXT) + $(CXXLINK) $(mpg_LDFLAGS) $(mpg_OBJECTS) $(mpg_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f exceptions/InvalidPasswordException.$(OBJEXT) + -rm -f model/Password.$(OBJEXT) + -rm -f res/mpg.$(OBJEXT) + -rm -f res/windows.$(OBJEXT) + -rm -f view/MPGFrame.$(OBJEXT) + -rm -f view/PasswordPanel.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MPGApp.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@exceptions/$(DEPDIR)/InvalidPasswordException.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@model/$(DEPDIR)/Password.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@res/$(DEPDIR)/mpg.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@view/$(DEPDIR)/MPGFrame.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@view/$(DEPDIR)/PasswordPanel.Po@am__quote@ + +.cc.o: +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \ +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< + +.cc.obj: +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \ +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` +uninstall-info-am: + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(mkdir_p) $(distdir)/res + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$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)$(bindir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -rm -f exceptions/$(DEPDIR)/$(am__dirstamp) + -rm -f exceptions/$(am__dirstamp) + -rm -f model/$(DEPDIR)/$(am__dirstamp) + -rm -f model/$(am__dirstamp) + -rm -f res/$(DEPDIR)/$(am__dirstamp) + -rm -f res/$(am__dirstamp) + -rm -f view/$(DEPDIR)/$(am__dirstamp) + -rm -f view/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) exceptions/$(DEPDIR) model/$(DEPDIR) res/$(DEPDIR) view/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: install-binPROGRAMS + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) exceptions/$(DEPDIR) model/$(DEPDIR) res/$(DEPDIR) view/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS uninstall-info-am + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic ctags distclean distclean-compile \ + distclean-generic distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-binPROGRAMS \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ + uninstall-am uninstall-binPROGRAMS uninstall-info-am + + +.rc.o: + windres @WX_INCLUDES@ -o $@ $< + +.xrc.cc: + wxrc -c -o $@ $< +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/source/exceptions/InvalidPasswordException.cc b/source/exceptions/InvalidPasswordException.cc new file mode 100644 index 0000000..61cc66c --- /dev/null +++ b/source/exceptions/InvalidPasswordException.cc @@ -0,0 +1,32 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: InvalidPasswordException.cc,v 1.1 2005/09/22 09:18:19 technoplaza Exp $ + +#ifdef HAVE_CONFIG_H + #include +#endif + +#include "exceptions/InvalidPasswordException.hh" + +using namespace mpg; + diff --git a/source/exceptions/InvalidPasswordException.hh b/source/exceptions/InvalidPasswordException.hh new file mode 100644 index 0000000..49597b7 --- /dev/null +++ b/source/exceptions/InvalidPasswordException.hh @@ -0,0 +1,72 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: InvalidPasswordException.hh,v 1.6 2005/09/27 09:32:14 technoplaza Exp $ + +#ifndef _INVALIDPASSWORDEXCEPTION_HH_ +#define _INVALIDPASSWORDEXCEPTION_HH_ + +#include +#include + +namespace mpg { + /// enumeration for the invalid password errors + enum PasswordError { + INVALID_ALPHABET, INVALID_CHECKSUM, INVALID_LENGTH + }; + + /** + * Exception thrown when an invalid password is given, such as an invalid + * character (outside the Metroid alphabet), invalid checksum, or invalid + * password length. + */ + class InvalidPasswordException : public std::runtime_error { + private: + enum PasswordError error; + + public: + /** + * Creates a new InvalidPasswordException. + * + * @param message The error messsage. + * @param error The password error. + */ + InvalidPasswordException(const std::string &message, + enum PasswordError error); + + /** + * Gets the error that triggered this InvalidPasswordException. + * + * @return The error. + */ + enum PasswordError getError() const; + }; + + inline InvalidPasswordException::InvalidPasswordException( + const std::string &message, enum PasswordError error) : + std::runtime_error(message), error(error) {} + inline enum PasswordError InvalidPasswordException::getError() const + { return error; } +} + +#endif + diff --git a/source/model/Password.cc b/source/model/Password.cc new file mode 100644 index 0000000..64a8d62 --- /dev/null +++ b/source/model/Password.cc @@ -0,0 +1,244 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: Password.cc,v 1.10 2005/09/27 09:32:14 technoplaza Exp $ + +#ifdef HAVE_CONFIG_H + #include +#endif + +#include + +#include "model/Password.hh" + +using namespace mpg; + +const wxString Password::ALPHABET(wxT("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "abcdefghijklmnopqrstuvwxyz?- ")); + +Password::Password() { + std::memset(data, 0, PASSWORD_LENGTH_BYTES); + encode(); +} + +Password::Password(const wxString &password, bool fixChecksum) + throw(InvalidPasswordException) { + if (password.Length() != PASSWORD_LENGTH) { + throw InvalidPasswordException("Invalid Password Length", + INVALID_LENGTH); + } + + decode(password, fixChecksum); + + // reencode just in case the checksum was fixed + encode(); +} + +bool Password::getBit(int bit) const throw(std::out_of_range) { + if ((bit < 0) || (bit > PASSWORD_BITS)) { + throw std::out_of_range("invalid bit: must be in range [0, 127]"); + } + + int byte = bit / 8; + + return (data[byte] & (1 << (bit % 8))); +} + +void Password::setBit(int bit, bool value) throw(std::out_of_range) { + if ((bit < 0) || (bit > PASSWORD_BITS)) { + throw std::out_of_range("invalid bit: must be in range [0, 127]"); + } + + int byte = bit / 8; + + if (value) { + data[byte] |= (1 << (bit % 8)); + } else { + data[byte] &= ~(1 << (bit % 8)); + } + + encode(); +} + +wxUint32 Password::getGameTime() const { + const wxUint32 *ptr = reinterpret_cast(data + + GAME_TIME_BYTE); + + return wxUINT32_SWAP_ON_BE(*ptr); +} + +void Password::setGameTime(wxUint32 time) { + wxUint32 *ptr = reinterpret_cast(data + GAME_TIME_BYTE); + *ptr = wxUINT32_SWAP_ON_BE(time); + + encode(); +} + +void Password::setMissiles(unsigned char missiles) { + data[MISSILE_COUNT_BYTE] = missiles; + + encode(); +} + +void Password::setShift(unsigned char shift) { + data[SHIFT_BYTE] = shift; + + encode(); +} + +unsigned char Password::calcChecksum() const { + unsigned char checksum = 0; + + for (int i = 16; i >= 0; --i) { + checksum += data[i]; + } + + return checksum; +} + +void Password::decode(const wxString &password, bool fixChecksum) + throw(InvalidPasswordException) { + // convert the password string to the metroid alphabet + unsigned char metroid[PASSWORD_LENGTH]; + + for (unsigned int i = 0; i < PASSWORD_LENGTH; ++i) { + if (password[i] == wxT(' ')) { + metroid[i] = SPACE_VALUE; + } else { + int pos = ALPHABET.Find(password[i]); + + if (pos < 0) { + throw InvalidPasswordException("Invalid Character in Password", + INVALID_ALPHABET); + } + + metroid[i] = pos; + } + } + + // convert metroid password to encoded password data + unsigned char *ptr = data; + + for (int i = 0; i < 6; ++i) { + unsigned char *temp = metroid + (i * 4); + + *ptr = (*temp << 2) | (*(temp + 1) >> 4); + ++ptr; + + *ptr = (*(temp + 1) << 4) | (*(temp + 2) >> 2); + ++ptr; + + *ptr = (*(temp + 2) << 6) | *(temp + 3); + ++ptr; + } + + // decode the password data + short carry = 1, carryTemp; + int count = data[SHIFT_BYTE]; + + for (int i = 0; i < count; ++i) { + unsigned char temp = data[15]; + + for (int j = 15; j >= 0; --j) { + carryTemp = (data[j] & 0x80) >> 7; + data[j] <<= 1; + data[j] |= (carry & 0x1); + carry = carryTemp; + } + + carryTemp = (temp & 0x80) >> 7; + temp <<= 1; + temp |= (carry & 0x1); + carry = carryTemp; + + data[15] = temp; + } + + // confirm the checksum and fix if requested + unsigned char checksum = calcChecksum(); + + if (data[CHECKSUM_BYTE] != checksum) { + if (!fixChecksum) { + throw InvalidPasswordException("Checksum Verification Failed", + INVALID_CHECKSUM); + } + } +} + +void Password::encode() { + // calculate the checksum + data[CHECKSUM_BYTE] = calcChecksum(); + + // copy the raw password data + unsigned char raw[PASSWORD_LENGTH_BYTES]; + std::memcpy(raw, data, PASSWORD_LENGTH_BYTES); + + // encode the password data + short carry = 1, carryTemp; + int count = raw[SHIFT_BYTE]; + + for (int i = 0; i < count; ++i) { + unsigned char temp = *raw; + + for (int j = 0; j < 16; ++j) { + carryTemp = raw[j] & 0x1; + raw[j] >>= 1; + raw[j] |= (carry & 0x1) << 7; + carry = carryTemp; + } + + carryTemp = temp & 0x1; + temp >>= 1; + temp |= (carry & 0x1) << 7; + carry = carryTemp; + + *raw = temp; + } + + // convert it to the metroid alphabet + unsigned char metroid[PASSWORD_LENGTH]; + unsigned char *ptr = metroid; + + for (int i = 0; i < 6; ++i) { + unsigned char *temp = raw + (i * 3); + + *ptr = *temp >> 2; + ++ptr; + + *ptr = ((*temp & 0x3) << 4) | (*(temp + 1) >> 4); + ++ptr; + + *ptr = ((*(temp + 1) & 0xF) << 2) | (*(temp + 2) >> 6); + ++ptr; + + *ptr = (*(temp + 2) & 0x3F); + ++ptr; + } + + // convert metroid password to wxString + encoded.Empty(); + + for (unsigned int i = 0; i < PASSWORD_LENGTH; ++i) { + encoded.Append(ALPHABET[metroid[i]]); + } +} + diff --git a/source/model/Password.hh b/source/model/Password.hh new file mode 100644 index 0000000..4478912 --- /dev/null +++ b/source/model/Password.hh @@ -0,0 +1,193 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: Password.hh,v 1.10 2005/09/27 09:32:14 technoplaza Exp $ + +#ifndef _PASSWORD_HH_ +#define _PASSWORD_HH_ + +#include + +#include "exceptions/InvalidPasswordException.hh" + +namespace mpg { + const int PASSWORD_BITS = 128; + const unsigned int PASSWORD_LENGTH = 24; + const int PASSWORD_LENGTH_BYTES = 18; + + enum { + MARUMARI_TAKEN, MISSILE_BS1, REDDOOR_BS_LONGBEAM, + REDDOOR_BS_TOURIANBRIDGE, ENERGYTANK_BS1, REDDOOR_BS_BOMBS, BOMBS_TAKEN, + REDDOOR_BS_ICEBEAM, MISSILE_BS2, ENERGYTANK_BS2, REDDOOR_BS_VARIA, + VARIA_TAKEN, ENERGYTANK_BS3, MISSILE_NF1, MISSILE_NF2, + REDDOOR_NF_ICEBEAM, MISSILE_NF3, MISSILE_NF4, MISSILE_NF5, MISSILE_NF6, + MISSILE_NF7, MISSILE_NF8, MISSILE_NF9, REDDOOR_NF_HIGHJUMPBOOTS, + HIGHJUMPBOOTS_TAKEN, REDDOOR_NF_SCREWATTACK, SCREWATTACK_TAKEN, + MISSILE_NF10, MISSILE_NF11, REDDOOR_NF_WAVEBEAM, ENERGYTANK_NF, + MISSILE_NF12, REDDOOR_KL1, MISSILE_KL1, MISSILE_KL2, REDDOOR_KL2, + ENERGYTANK_KL, REDDOOR_KL3, REDDOOR_KL4, MISSILE_KL3, MISSILE_KL4, + REDDOOR_KL_KRAID, ENERGYTANK_KL_KRAID, MISSILE_RL1, REDDOOR_RL, + ENERGYTANK_RL, MISSILE_RL2, REDDOOR_RL_RIDLEY, ENERGYTANK_RL_RIDLEY, + MISSILE_RL3, REDDOOR_T1, REDDOOR_T2, REDDOOR_T3, ZEBETITE1, ZEBETITE2, + ZEBETITE3, ZEBETITE4, ZEBETITE5, MOTHERBRAIN, START_NF = 64, START_KL, + START_RL, RESET, SWIMSUIT = 71, BOMBS, HIGHJUMPBOOTS, LONGBEAM, + SCREWATTACK, MARUMARI, VARIA, WAVEBEAM, ICEBEAM, MISSILES, + GAMETIME = 88, RIDLEY = 124, RIDLEY_STATUE, KRAID, KRAID_STATUE + }; + + /// Class to encapsulate a Metroid Password + class Password { + private: + wxString encoded; + unsigned char data[18]; + + static const int MISSILE_COUNT_BYTE = 10; + static const int GAME_TIME_BYTE = 11; + static const int SHIFT_BYTE = 16; + static const int CHECKSUM_BYTE = 17; + static const unsigned char SPACE_VALUE = 0xFF; + + /** + * Calculates the checksum value for this Password. + * + * @return The checksum. + */ + unsigned char calcChecksum() const; + + /** + * Decodes a Metroid password into our raw format. + * + * @param password The password to decode. + * @param fixChecksum true if the checksum should be fixed to force a + * valid password; false to accept only valid + * Metroid passwords. + * + * @throw InvalidPasswordException if the given password is invalid. + */ + void decode(const wxString &password, bool fixChecksum) + throw(InvalidPasswordException); + + /** + * Encodes the raw password data into a Metroid password. + */ + void encode(); + + public: + static const wxString ALPHABET; + + /** + * Creates a new blank password. + */ + Password(); + + /** + * Creates a password from a Metroid password. + * + * @param password The Metroid password. + * @param fixChecksum true if the checksum should be fixed to force a + * valid password; false to accept only valid + * Metroid passwords. + * + * @throw InvalidPasswordException if an invalid password is supplied. + */ + Password(const wxString &password, bool fixChecksum = false) + throw(InvalidPasswordException); + + /** + * Gets a bit from the raw password data. + * + * @param bit The bit to get (1-128). + * + * @return true if the bit is set; false otherwise. + * + * @throw std::out_of_range if the bit is outside the range [0,127]. + */ + bool getBit(int bit) const throw(std::out_of_range); + + /** + * Sets a bit in the raw password data. + * + * @param bit the bit to set (1-128). + * @param value true to set the bit; false to clear it. + * + * @throw std::out_of_range if the bit is outside the range [0,127]. + */ + void setBit(int bit, bool value = true) throw(std::out_of_range); + + /** + * Gets the encoded Metroid password encapsulated by this Password. + * + * @return The Metroid password. + */ + const wxString &getEncoded() const; + + /** + * Gets the game time in ticks (1 tick = ~4 seconds). + * + * @return The game time in ticks. + */ + wxUint32 getGameTime() const; + + /** + * Sets the game time. + * + * @param time The game time in ticks (1 tick = ~4 seconds). + */ + void setGameTime(wxUint32 time); + + /** + * Gets the number of missiles held by Samus. + * + * @return The number of missiles. + */ + unsigned char getMissiles() const; + + /** + * Sets the number of missiles held by Samus. + * + * @param missiles The number of missiles. + */ + void setMissiles(unsigned char missiles); + + /** + * Gets the shift byte used by this Password. + * + * @return The shift byte. + */ + unsigned char getShift() const; + + /** + * Sets the shift byte used by this Password. + * + * @param shift The shift byte. + */ + void setShift(unsigned char shift); + }; + + inline const wxString &Password::getEncoded() const { return encoded; } + inline unsigned char Password::getMissiles() const + { return data[MISSILE_COUNT_BYTE]; } + inline unsigned char Password::getShift() const { return data[SHIFT_BYTE]; } +} + +#endif + diff --git a/source/res/alphabet.xpm b/source/res/alphabet.xpm new file mode 100644 index 0000000..d660b24 --- /dev/null +++ b/source/res/alphabet.xpm @@ -0,0 +1,956 @@ +/* XPM */ +static char * alphabet_xpm[] = { +"400 144 809 2", +" c #000000", +". c #091908", +"+ c #215E1F", +"@ c #308A2D", +"# c #287225", +"$ c #102D0F", +"% c #071407", +"& c #1F591D", +"* c #297626", +"= c #113110", +"- c #061105", +"; c #1E561C", +"> c #2B7A28", +", c #133612", +"' c #040C04", +") c #1C511B", +"! c #2C7F29", +"~ c #143A13", +"{ c #030802", +"] c #1B4D19", +"^ c #2E832B", +"/ c #163F14", +"( c #020401", +"_ c #194918", +": c #2F872C", +"< c #174316", +"[ c #184416", +"} c #30892D", +"| c #194717", +"1 c #010201", +"2 c #164015", +"3 c #2E852B", +"4 c #1A4B19", +"5 c #020602", +"6 c #153C14", +"7 c #2D812A", +"8 c #1C501A", +"9 c #040B04", +"0 c #133812", +"a c #2B7C28", +"b c #1D541B", +"c c #050F05", +"d c #123311", +"e c #2A7827", +"f c #1F581D", +"g c #071306", +"h c #102F0F", +"i c #287426", +"j c #205D1E", +"k c #081808", +"l c #0F2A0E", +"m c #276F24", +"n c #226120", +"o c #0A1C09", +"p c #020502", +"q c #318C2E", +"r c #43C13F", +"s c #45C641", +"t c #49D345", +"u c #40BA3D", +"v c #1F5A1D", +"w c #081707", +"x c #030903", +"y c #061206", +"z c #143912", +"A c #359932", +"B c #4CDC48", +"C c #41BC3E", +"D c #1B4E1A", +"E c #010401", +"F c #061106", +"G c #339330", +"H c #4BD947", +"I c #46CB42", +"J c #44C440", +"K c #49D245", +"L c #246722", +"M c #44C340", +"N c #48D144", +"O c #4BDA47", +"P c #47CC43", +"Q c #3EB23A", +"R c #061005", +"S c #0E270C", +"T c #226421", +"U c #020702", +"V c #4CDB48", +"W c #47CE43", +"X c #42BD3E", +"Y c #205D1F", +"Z c #050E04", +"` c #2A7B28", +" . c #4BDB48", +".. c #48CF44", +"+. c #236420", +"@. c #010301", +"#. c #236621", +"$. c #49D445", +"%. c #48D044", +"&. c #43C23F", +"*. c #47CD43", +"=. c #040A03", +"-. c #091A08", +";. c #308B2D", +">. c #0F2B0E", +",. c #256922", +"'. c #45C942", +"). c #32912F", +"!. c #091808", +"~. c #226320", +"{. c #43C340", +"]. c #44C540", +"^. c #4BD847", +"/. c #349631", +"(. c #133712", +"_. c #1A4B18", +":. c #40B93C", +"<. c #46CA42", +"[. c #4AD746", +"}. c #369D33", +"|. c #153D14", +"1. c #1E571C", +"2. c #3FB73C", +"3. c #46C942", +"4. c #38A335", +"5. c #071406", +"6. c #2D802A", +"7. c #236521", +"8. c #1D531B", +"9. c #256C23", +"0. c #3DB039", +"a. c #39A536", +"b. c #071507", +"c. c #42BF3F", +"d. c #339430", +"e. c #41BD3E", +"f. c #46CB43", +"g. c #3AA737", +"h. c #3BAA38", +"i. c #2B7B28", +"j. c #030702", +"k. c #215F1F", +"l. c #318D2E", +"m. c #0C230B", +"n. c #030803", +"o. c #328E2E", +"p. c #40B73C", +"q. c #1C511A", +"r. c #0E280D", +"s. c #000100", +"t. c #329230", +"u. c #4AD646", +"v. c #3CAE39", +"w. c #38A135", +"x. c #40B93D", +"y. c #32902F", +"z. c #2B7D29", +"A. c #3BAB38", +"B. c #41BC3D", +"C. c #051005", +"D. c #3AA837", +"E. c #3BAA37", +"F. c #42BE3E", +"G. c #359832", +"H. c #39A335", +"I. c #266E24", +"J. c #2B7C29", +"K. c #42C03F", +"L. c #369B32", +"M. c #163F15", +"N. c #379F34", +"O. c #3EB43B", +"P. c #184617", +"Q. c #339531", +"R. c #205B1E", +"S. c #0A1D0A", +"T. c #1A4A18", +"U. c #113210", +"V. c #102D0E", +"W. c #308C2E", +"X. c #3EB13A", +"Y. c #0E270D", +"Z. c #297827", +"`. c #0A1B09", +" + c #226220", +".+ c #010200", +"++ c #41BA3D", +"@+ c #246822", +"#+ c #050D04", +"$+ c #256A22", +"%+ c #205E1F", +"&+ c #46CC43", +"*+ c #2C7F2A", +"=+ c #45C741", +"-+ c #2E842B", +";+ c #081607", +">+ c #2E862C", +",+ c #2A7A28", +"'+ c #091A09", +")+ c #3AA736", +"!+ c #349731", +"~+ c #0C240C", +"{+ c #3FB63C", +"]+ c #0D270D", +"^+ c #2F862C", +"/+ c #0D260D", +"(+ c #359A32", +"_+ c #2F882C", +":+ c #040D04", +"<+ c #3BAC38", +"[+ c #123411", +"}+ c #0B200A", +"|+ c #1D551C", +"1+ c #1B4C19", +"2+ c #328F2F", +"3+ c #49D546", +"4+ c #205A1D", +"5+ c #379E34", +"6+ c #3DB13A", +"7+ c #3EB33A", +"8+ c #3DAF39", +"9+ c #123511", +"0+ c #0B1E0A", +"a+ c #194817", +"b+ c #42BF3E", +"c+ c #277024", +"d+ c #174216", +"e+ c #0E290E", +"f+ c #2D822B", +"g+ c #194818", +"h+ c #0B210B", +"i+ c #318F2F", +"j+ c #123310", +"k+ c #3CAC38", +"l+ c #266C23", +"m+ c #2A7928", +"n+ c #266D24", +"o+ c #2C7E29", +"p+ c #0B1E09", +"q+ c #050E05", +"r+ c #3FB43B", +"s+ c #0F2A0D", +"t+ c #1B4E19", +"u+ c #11300F", +"v+ c #1C521B", +"w+ c #308B2E", +"x+ c #369C33", +"y+ c #153C13", +"z+ c #205C1E", +"A+ c #41BB3D", +"B+ c #2D822A", +"C+ c #0C220B", +"D+ c #174416", +"E+ c #3DB23A", +"F+ c #143812", +"G+ c #256B23", +"H+ c #1E551C", +"I+ c #2F892D", +"J+ c #0B200B", +"K+ c #4AD546", +"L+ c #40B83C", +"M+ c #0D250C", +"N+ c #0F2C0E", +"O+ c #379D33", +"P+ c #0D240C", +"Q+ c #318E2F", +"R+ c #3CAD38", +"S+ c #38A235", +"T+ c #113010", +"U+ c #0C210B", +"V+ c #339230", +"W+ c #43C03F", +"X+ c #359731", +"Y+ c #277125", +"Z+ c #277225", +"`+ c #287326", +" @ c #0B1F0A", +".@ c #287526", +"+@ c #246922", +"@@ c #3CAD39", +"#@ c #133611", +"$@ c #39A436", +"%@ c #3CAF39", +"&@ c #349531", +"*@ c #37A034", +"=@ c #2C802A", +"-@ c #1E571D", +";@ c #277025", +">@ c #297727", +",@ c #174215", +"'@ c #184516", +")@ c #143913", +"!@ c #102E0F", +"~@ c #1C4F1A", +"{@ c #0D260C", +"]@ c #3AA636", +"^@ c #2C7D29", +"/@ c #21601F", +"(@ c #0E2A0E", +"_@ c #0C230C", +":@ c #318C2D", +"<@ c #071206", +"[@ c #44C641", +"}@ c #45C841", +"|@ c #369B33", +"1@ c #3FB53B", +"2@ c #3DB03A", +"3@ c #3BA937", +"4@ c #1D521B", +"5@ c #0E290D", +"6@ c #39A636", +"7@ c #369A32", +"8@ c #3EB33B", +"9@ c #184517", +"0@ c #040B03", +"a@ c #256A23", +"b@ c #297526", +"c@ c #143B13", +"d@ c #091B09", +"e@ c #0A1E0A", +"f@ c #020501", +"g@ c #123210", +"h@ c #133511", +"i@ c #010100", +"j@ c #060F05", +"k@ c #030A03", +"l@ c #081708", +"m@ c #1A4C19", +"n@ c #1B4F1A", +"o@ c #48D245", +"p@ c #33912F", +"q@ c #47CF44", +"r@ c #1D541C", +"s@ c #359B33", +"t@ c #45C842", +"u@ c #1F5B1E", +"v@ c #0D240B", +"w@ c #318E2E", +"x@ c #287325", +"y@ c #174115", +"z@ c #38A134", +"A@ c #2E852C", +"B@ c #163E14", +"C@ c #0C210A", +"D@ c #3FB63B", +"E@ c #050D05", +"F@ c #030703", +"G@ c #236622", +"H@ c #0F2D0F", +"I@ c #287226", +"J@ c #287527", +"K@ c #184417", +"L@ c #297627", +"M@ c #133813", +"N@ c #174116", +"O@ c #143B14", +"P@ c #153E14", +"Q@ c #2A7B29", +"R@ c #297828", +"S@ c #47CE44", +"T@ c #48D045", +"U@ c #4AD747", +"V@ c #4BDA48", +"W@ c #49D346", +"X@ c #061306", +"Y@ c #49D446", +"Z@ c #41BE3F", +"`@ c #081608", +" # c #256C24", +".# c #010406", +"+# c #030A0E", +"@# c #040C10", +"## c #03080A", +"$# c #010202", +"%# c #010405", +"&# c #030A0D", +"*# c #03080B", +"=# c #010203", +"-# c #44C541", +";# c #2F882D", +"># c #216020", +",# c #277226", +"'# c #3FB83C", +")# c #266F25", +"!# c #3BAC39", +"~# c #133913", +"{# c #3AA937", +"]# c #339431", +"^# c #1E591E", +"/# c #329130", +"(# c #0C2734", +"_# c #1D5C7B", +":# c #226A8E", +"<# c #16435A", +"[# c #050E13", +"}# c #0B2430", +"|# c #1C5977", +"1# c #17465E", +"2# c #061218", +"3# c #2C7E2A", +"4# c #1C501B", +"5# c #45C742", +"6# c #2B7E29", +"7# c #154157", +"8# c #3199CD", +"9# c #38B0EC", +"0# c #25749C", +"a# c #0B222E", +"b# c #143F55", +"c# c #329DD3", +"d# c #287DA7", +"e# c #0A202A", +"f# c #2B7B29", +"g# c #359A33", +"h# c #4AD847", +"i# c #123512", +"j# c #0A1E28", +"k# c #17475F", +"l# c #1A526E", +"m# c #1D5B7A", +"n# c #21678A", +"o# c #050F14", +"p# c #0A202B", +"q# c #1B5572", +"r# c #184A63", +"s# c #07161D", +"t# c #0F2C0F", +"u# c #061006", +"v# c #2D832B", +"w# c #0A1C0A", +"x# c #184C66", +"y# c #34A4DC", +"z# c #2678A0", +"A# c #081A23", +"B# c #2981AD", +"C# c #0D2A38", +"D# c #143E53", +"E# c #2E90C1", +"F# c #277BA5", +"G# c #143C14", +"H# c #38A336", +"I# c #236522", +"J# c #1F5A1E", +"K# c #246A23", +"L# c #276F25", +"M# c #2B88B6", +"N# c #38B1ED", +"O# c #33A0D7", +"P# c #0A212C", +"Q# c #206384", +"R# c #1C5774", +"S# c #12394D", +"T# c #051116", +"U# c #113211", +"V# c #1E561D", +"W# c #256D24", +"X# c #071307", +"Y# c #174861", +"Z# c #319ACF", +"`# c #39B4F2", +" $ c #3BBAFA", +".$ c #3BB8F7", +"+$ c #39B2EF", +"@$ c #277AA3", +"#$ c #0D2836", +"$$ c #133A4E", +"%$ c #3097CB", +"&$ c #2A83AF", +"*$ c #0C2531", +"=$ c #308A2E", +"-$ c #1C531C", +";$ c #266E25", +">$ c #113311", +",$ c #226321", +"'$ c #205F20", +")$ c #102F10", +"!$ c #1F591E", +"~$ c #246923", +"{$ c #0D2735", +"]$ c #1F6182", +"^$ c #2679A2", +"/$ c #37AEE9", +"($ c #3198CC", +"_$ c #206486", +":$ c #1D5A79", +"<$ c #216689", +"[$ c #48D145", +"}$ c #46CA43", +"|$ c #071607", +"1$ c #16465E", +"2$ c #34A3DB", +"3$ c #26779F", +"4$ c #081921", +"5$ c #16445C", +"6$ c #34A2DA", +"7$ c #143E54", +"8$ c #329CD1", +"9$ c #287EA9", +"0$ c #164116", +"a$ c #1B501B", +"b$ c #216120", +"c$ c #369D34", +"d$ c #1B4D1A", +"e$ c #0D250D", +"f$ c #3FB73D", +"g$ c #44C441", +"h$ c #154158", +"i$ c #25749B", +"j$ c #0B222D", +"k$ c #174860", +"l$ c #319ACE", +"m$ c #0B232F", +"n$ c #154259", +"o$ c #2F94C6", +"p$ c #26769F", +"q$ c #0A1E29", +"r$ c #113649", +"s$ c #2D8EBE", +"t$ c #0E2C3B", +"u$ c #3EB53B", +"v$ c #318D2F", +"w$ c #153E15", +"x$ c #2F872D", +"y$ c #329030", +"z$ c #1D561D", +"A$ c #123612", +"B$ c #2D812B", +"C$ c #349832", +"D$ c #1F5C1F", +"E$ c #215F20", +"F$ c #205C1F", +"G$ c #16445B", +"H$ c #1F6283", +"I$ c #1B5674", +"J$ c #11374A", +"K$ c #040E13", +"L$ c #081922", +"M$ c #1C5978", +"N$ c #206588", +"O$ c #3CAF3A", +"P$ c #43C441", +"Q$ c #47CD44", +"R$ c #247096", +"S$ c #081820", +"T$ c #144056", +"U$ c #247197", +"V$ c #133B4F", +"W$ c #2F93C5", +"X$ c #25769E", +"Y$ c #113648", +"Z$ c #1E581D", +"`$ c #103010", +" % c #113446", +".% c #040B0F", +"+% c #091E28", +"@% c #16465F", +"#% c #113546", +"$% c #040C0F", +"%% c #091C25", +"&% c #16455C", +"*% c #113749", +"=% c #000102", +"-% c #02070A", +";% c #040B0E", +">% c #020506", +",% c #000101", +"'% c #020709", +")% c #020507", +"!% c #020608", +"~% c #020607", +"{% c #020609", +"]% c #000001", +"^% c #061319", +"/% c #1C5775", +"(% c #040C11", +"_% c #1E5E7E", +":% c #0D2937", +"<% c #0F2F3F", +"[% c #113445", +"}% c #22698C", +"|% c #103142", +"1% c #0E2D3C", +"2% c #143D52", +"3% c #0B212C", +"4% c #297FAA", +"5% c #319BD0", +"6% c #07161E", +"7% c #3CBBFA", +"8% c #3AB5F2", +"9% c #091B24", +"0% c #226C91", +"a% c #34A2D9", +"b% c #1A516C", +"c% c #21688C", +"d% c #39B2EE", +"e% c #1B5470", +"f% c #1B5673", +"g% c #3AB5F3", +"h% c #287FAA", +"i% c #0F2D3D", +"j% c #051016", +"k% c #1D5B79", +"l% c #0C2632", +"m% c #38B0EB", +"n% c #174962", +"o% c #143F54", +"p% c #21688B", +"q% c #1B5471", +"r% c #1F6081", +"s% c #12374A", +"t% c #103344", +"u% c #1A516D", +"v% c #0F2E3D", +"w% c #1F6080", +"x% c #1D5C7C", +"y% c #0E2A39", +"z% c #1F5F80", +"A% c #144055", +"B% c #1E5F7F", +"C% c #154056", +"D% c #184B64", +"E% c #0E2B39", +"F% c #0C2532", +"G% c #3098CC", +"H% c #2779A2", +"I% c #35A7E0", +"J% c #1A506B", +"K% c #051015", +"L% c #33A1D8", +"M% c #257299", +"N% c #37ADE7", +"O% c #194F69", +"P% c #37ACE6", +"Q% c #1B5571", +"R% c #38AFEA", +"S% c #38AEE9", +"T% c #236D92", +"U% c #194D68", +"V% c #339FD6", +"W% c #236F94", +"X% c #091D27", +"Y% c #194D67", +"Z% c #339FD5", +"`% c #236F95", +" & c #15435A", +".& c #2F95C8", +"+& c #0D2835", +"@& c #12394C", +"#& c #3096C9", +"$& c #2A84B1", +"%& c #0C2633", +"&& c #06131A", +"*& c #2778A1", +"=& c #34A1D8", +"-& c #16455D", +";& c #1B5573", +">& c #1F6183", +",& c #040D11", +"'& c #329DD2", +")& c #2C8AB9", +"!& c #0F3041", +"~& c #03090C", +"{& c #3BB8F6", +"]& c #2E8FBF", +"^& c #206587", +"/& c #0F3040", +"(& c #0E2B3A", +"_& c #19506B", +":& c #0C2735", +"<& c #103041", +"[& c #216588", +"}& c #123A4D", +"|& c #010506", +"1& c #21678B", +"2& c #1F6181", +"3& c #1D5B7B", +"4& c #0C2430", +"5& c #0D2938", +"6& c #277BA6", +"7& c #091D26", +"8& c #277BA4", +"9& c #26769E", +"0& c #3097CA", +"a& c #07151D", +"b& c #38B1EE", +"c& c #3AB7F6", +"d& c #3AB7F5", +"e& c #226B8F", +"f& c #184A64", +"g& c #3CBBFB", +"h& c #35A8E1", +"i& c #3BBAF9", +"j& c #36A9E3", +"k& c #1E6080", +"l& c #02080A", +"m& c #184C65", +"n& c #36A9E2", +"o& c #247198", +"p& c #36A8E1", +"q& c #247299", +"r& c #06141B", +"s& c #25739A", +"t& c #07151C", +"u& c #0A1F29", +"v& c #329CD2", +"w& c #287EA8", +"x& c #2B86B4", +"y& c #2D8FBF", +"z& c #277CA6", +"A& c #216688", +"B& c #1D5A78", +"C& c #2B87B5", +"D& c #216789", +"E& c #091D28", +"F& c #1E5E7F", +"G& c #2F93C6", +"H& c #2D8CBC", +"I& c #0B232E", +"J& c #3AB6F4", +"K& c #1A5370", +"L& c #1E5F80", +"M& c #103141", +"N& c #1A536F", +"O& c #34A3DA", +"P& c #277AA4", +"Q& c #2980AB", +"R& c #133C51", +"S& c #35A6DE", +"T& c #174961", +"U& c #226B90", +"V& c #194F6A", +"W& c #1F6284", +"X& c #1E5D7D", +"Y& c #34A4DB", +"Z& c #206688", +"`& c #040E12", +" * c #2677A0", +".* c #226A8D", +"+* c #3BB9F8", +"@* c #0F2F40", +"#* c #2F93C4", +"$* c #154156", +"%* c #16465D", +"&* c #33A2D9", +"** c #38AFEB", +"=* c #040D12", +"-* c #3AB6F5", +";* c #38B0ED", +">* c #133C50", +",* c #0D2734", +"'* c #2F94C7", +")* c #12384B", +"!* c #113548", +"~* c #184B65", +"{* c #2C8BBB", +"]* c #22698D", +"^* c #2E91C3", +"/* c #174A63", +"(* c #35A6DF", +"_* c #194E69", +":* c #36AAE4", +"<* c #1A506C", +"[* c #36A8E2", +"}* c #329ED4", +"|* c #07171F", +"1* c #15445B", +"2* c #113547", +"3* c #0E2D3D", +"4* c #194E68", +"5* c #010304", +"6* c #103243", +"7* c #103446", +"8* c #030B0F", +"9* c #16475F", +"0* c #061117", +"a* c #3CBCFC", +"b* c #133D52", +"c* c #051117", +"d* c #236E94", +"e* c #2678A1", +"f* c #1B5370", +"g* c #0C2431", +"h* c #3095C8", +"i* c #39B4F1", +"j* c #2A85B2", +"k* c #1C5877", +"l* c #0D2A39", +"m* c #010303", +"n* c #103242", +"o* c #0F2E3E", +"p* c #103345", +"q* c #1A526D", +"r* c #2981AC", +"s* c #3199CE", +"t* c #35A7DF", +"u* c #206385", +"v* c #081A22", +"w* c #2A83B0", +"x* c #133B50", +"y* c #25759D", +"z* c #35A5DD", +"A* c #1E5D7C", +"B* c #329ED3", +"C* c #297FAB", +"D* c #2C8BBA", +"E* c #25739B", +"F* c #1C5674", +"G* c #2E8FC0", +"H* c #0B212D", +" . + @ @ @ @ # $ % & @ @ * = - ; @ @ @ @ @ @ @ @ > , ' ) @ @ @ @ @ @ @ @ @ @ ! ~ { ] @ @ @ @ ^ / ( _ @ @ @ @ @ @ @ @ @ @ : < [ } @ @ @ @ @ @ | 1 2 3 @ @ @ @ @ @ @ @ @ @ @ @ 4 5 6 7 @ @ @ @ @ @ @ @ 8 9 0 a @ @ @ @ @ @ @ @ b c d e @ @ @ @ f g h i @ @ @ @ @ @ @ @ @ @ j k l m @ @ @ @ @ @ n o ", +" p g ~ q r r s t u v w x ( y z A B B C D E F d G H I r r r r J K s L . 9 F # r r r r M N B B O P Q ) 1 R S : B B B B N T U i B B V W r r r r r r X Y Z o ` ...r r r r r +.@. #.$.B B %.&.r r r r *.V B B e =. ' -.m ..%.M r r r r P O ;.>.R 1 9 . ,.'.N J r r r r P H ).= - @. =.!.~.{.K ].I ^./.(.y E _.:.B B t ].r r r r <.[.}.|.g p x w 1.2.$.s r r 3.[.4.< 5.", +" . + 6.7.8.8.9.0.W a.# $ b.& /.c.B B C D F ; d.e.f.: 8.8.8.8.~.g.t h.i., j.= 8.8.8.8.k.4.B B N l.] m. n.] o.p.B B B B N T U i B B ^.d.8.8.8.8.8.8.q.r. [ } Q V A b 8.8.8.8.>.s. #.$.B B }.f 8.8.8.8.t.u.B B e =. 6 7 v.[.w.j 8.8.8.8.l.K x.y.8 9 0 z.A.$.a.n 8.8.8.8.} *.B.G b C. d e D.N E.#.3 3.F./.f g _.:.B B v.,.8.8.8.8.6.J r G.j k >.m H.P Q I.8.8.J.K.J L.n ", +"p g M.N.O.P. r.Q.B B u R.w x S.z.].t B B C D k e r r E.T. @.F U.t.B B J ; 1 R V.W.O P X.) 1 R Y.: V *.&.%.B B N T U i B B [.Z.o o o o o o `.Z Z o i.V ..r +.+ v ++r r @+{ #+`.i $.%.&.$+x k.*.B B z.c %+&+B B *+F & =+B B -+;+ 1.J B B >+. =.!.~.{.K ].,+'+P.)+I ^.!+(.y E _.:.B B t.~+ _ {+B B d.]+ x w 1.2.$.s ^+/+ ~ (+r r _+", +"-.+ A &.O.P. r.Q.B B W a.# $ :+, L <+B B C D =.[+8.8._ }+ R |+G C B B J ; ' q.).u N q 1+m. n.] 2+p.3+y.4+5+B B N T U i B B O 6+@ @ @ @ @ @ : < [ } 7+B A b l s. ]+8 8.8.$ @. M.-+8+^.5+& $ E k.*.B B z.c %+&+B B *+F & =+B B -+;+ 1.J B B >+. d e D.N E.7.9+9 0+a+3 '.b+/.f % _.:.B B t.~+ _ {+B B d.]+ >.c+H.P Q I.~ - . d+8.8.~ ", +"e+/.B B O.P. m.f+s t B B {+g+ h+i+B B C D @.F o o j+t.B B H P k+4 @.R V.l.B B P l+-.' 1 R Y.: O *.{+; ' m+B B N T 5 #.r r r r r r r r &...^.m+o Z n+V B B o+p+o o o o o o q+ #+`.i $.%.&.$+x b r+*.O @ s+o o o o I.W N M c+c t+v.P H y.u+o o o o @+=+B B >+. v+K.B B w+S. 8 e.B B l.}+ _.:.B B x+y+o o o o z+A+t s B+C+ D+E+B B A >. ", +"e+/.B B O.P. c F+G+0.B B {+g+ h+i+B B C D - H+@ @ d.C B B P I+T.J+ ' q.).u B B K+k+! ~ x ] 2+L+$.y.D M+' m+B B N T @.N+8.8.8.8.8.8.8.8.; (+O Q _+< n+V B B O.;.@ @ @ @ @ @ | 1 2 3 8+^.O+& $ E P+] Q+t :.y.@ @ @ @ R+u.S++ T+5 U+_.@ W A+V+@ @ @ @ h.t B B >+. v+K.B B w+S. 8 e.B B l.}+ _.:.B B W+X+@ @ @ @ a.W 8+G+0 c D+E+B B A >. ", +"e+/.B B :.v w x ]+Q.B B {+g+ h+i+B B C D @.F d G B B B B H I A.4 F Y+r r r r M N P n+-.' q+` B B N Z+o o S >+B B K `+`.#+ E Z+B B H G+ n+V B B ..r r r r r W B ! @q+ #+`..@3+%.&.+@n. ' -.m ..%.M r r r r P O ;.>.R 1 t+@@r r r r r r P H B B >+. v+K.B B /.#@o o o o +r B B l.}+ _.:.B B t ].r r r r <.[.}.|.g p D+E+B B A >. ", +"e+/.B B *.$@Y+N+ ]+Q.B B {+g+ h+i+B B C D - ; d.e.B B B B P _+T.J+ j.= 8.8.8.8.+ 4.K+R+! ~ q+` B B [.%@@ @ o.2.B B ^.8+-+/ E Z+B B H G+ n+V B B A b 8.8.8.8./.O O.;.| 1 2 3 0.H O+& $ E 6 7 v.[.w.j 8.8.8.8.l.K x.y.8 9 U+_.8.8.8.8.8.8.} *.B B >+. v+K.B B F.&@@ @ @ @ D.%.B B l.}+ _.:.B B v.,.8.8.8.8.6.J r G.j k D+E+B B A >. ", +"P+-+s t B B O.P. ]+Q.[.<.*@M. h+i+B B C D E F d G B B H I r r A._. @.- o o . ' y =@B B I j ' 9.r r r r r r &.%.B B V *.L+-@ s.c o o `.#+ E Z+B B H G+ n+V B B ;@1 G+H B B Y+@. 7.t B B >@x k.*.B B z.c %+&+B B *+F 9 . @+=+N J * ;+ v+K.B B K ].r r r r I ^.B B l.}+ _.:.B B t.~+ _ {+B B d.]+ y+x+3.[.S+,@g 5 n.;+o o 5.", +"C.z l+6+B B O.P. ]+Q.J =@'@`. h+i+B B C D F ; d.e.B B &+: 8.8.T.}+ #+) @ @ o+)@ y =@B B I j p !@8.8.8.8.8.8.4+5+B B K+).~@{@ ( _ @ @ ^+,@ E Z+B B H G+ n+V B B ;@1 G+H B B Y+@. 7.t B B >@x k.*.B B z.c %+&+B B *+F , i.h.t ]@ +j+x v+K.B B E.7.8.8.8.8.3 '.B B l.}+ _.:.B B t.~+ _ {+B B d.]+ -.< ^@r {.(+/@`. (@I.@ @ n ", +" _@-+s t u v o o z :@N.M. ( <@o o z A B B K./@o o !.=. o I+B B B B [@#.o o o o o o . 9 y # M N I 9.o o o o N+W.O P Q ) ' m+B B N T 5 #.&...[.Z.o o o o }+=@V W F.Y /@W+W B o+p+o o o o ,+O ..r +.@. 7.t B B >@x b r+*.O @ s+o o o o I.W N M c+c 9 . o o o o @+}@N J * b. v+K.B B w+S. 8 e.B B l.}+ _.:.B B x+y+o o o o z+A+t s B+C+ y+|@3.[.S+d+o o ; 1@$.s _+", +" c z l+2@*.$@@ @ 6.7.[ `. b.v @ @ /.c.B B %.g.@ @ >@U. o I+B B B B K 3@@ @ @ @ @ @ i., n.= k.$@3+k+@ @ @ @ ).u N l.] m. ' m+B B N T @.N+1.|@O 6+@ @ @ @ q 1@H &@4@r. 5@8.!+V O.;.@ @ @ @ Q V (+H+>.s. 7.t B B >@x P+] Q+t :.y.@ @ @ @ R+u.S++ T+5 0 a @ @ @ @ h.t 6@ +j+x v+K.B B w+S. 8 e.B B l.}+ _.:.B B W+X+@ @ @ @ a.W 8+G+0 c -.< z.r {.7@@ @ 4.f.8@m ~ ", +" _@^ r r r r N./ S.o+r r r r r r r r r r ]@9@ k e r r r r r r r r r r r r k+4 F # r r r r r r r r X.) 0@a@r r p.-@ p #.r r r r r r r r X Y /@W+r r r r r r r r +.@. & x.r r +@n. b r+r r r r r r r r c+c t+@@r r r r r r b@b. a+D.r r ,+-. P.]@r r a o ,@S+r r r r r r r r r r B+U+ c@|@r r r r r r _+Y. ", +" c F+8.8.8.8.[ d@ :+, 8.8.8.8.8.8.8.8.8.8.| e@ =.[+8.8.8.8.8.8.8.8.8.8.8.8.T.J+ j.= 8.8.8.8.8.8.8.8.1+m. f@!@8.8.~@{@ 1 N+8.8.8.8.8.8.8.8.q.r. 5@8.8.8.8.8.8.8.8.8.>.s. {@8 8.8.$ E P+] 8.8.8.8.8.8.8.8.T+5 U+_.8.8.8.8.8.8.g@x @g+8.8.9+9 0+| 8.8.h@' o P.8.8.8.8.8.8.8.8.8.8.0 q+ . < 8.8.8.8.8.8.~ - ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +"p g o o o o o o o o w x ( <@o o o o o o o o o o o o !.=. E F o o o o o o o o o o o o . 9 @.R o o o o o o o o -.' 1 R o o -.' i@j@o o `.#+ s.c o o o o o o o o o o o Z Z o o o o o o o q+ #+`.o o c s. #+`.o o c s. ' -.o o R 1 9 . o o - @. 9 . o o - @. =.!.o o y E =.!.o o y E k@l@o o o o o o o o g p x w o o o o o o o o o o 5.5 ", +"-.+ @ @ @ @ @ @ @ @ # $ ;+v @ @ @ @ @ @ @ @ @ @ @ @ >@U. F ; @ @ @ @ @ @ @ @ @ @ @ @ i., ' q.@ @ @ @ @ @ @ @ ! ~ x ] @ @ B+|. U m@@ @ -+/ E _ @ @ @ @ @ @ @ @ @ @ _+< [ } @ @ @ @ @ @ | 1 2 3 @ @ T.p M.-+@ @ 4 5 6 7 @ @ n@k@ 0 z.@ @ 8.q+ , i.@ @ b C. d e @ @ 1.y U.>@@ @ f % h `+@ @ @ @ @ @ @ @ j k >.c+@ @ @ @ @ @ @ @ @ @ n o ", +"e+/.B B [.<.r r s t u v w x C+y.B B ^.<.r r r r r r r r ]@9@ o I+B B H I r r r r r r r r k+4 @.- $ l.O P r r r r r r Q ) q+` B B .. + 9 m+B B o@T p #.r r &...B B V W r r F.Y k.c.r r W B B B Y+@. #.$.B B >@x #+`.i $.%.&.$+x k.*.B B z.c & =+B B y.u+- @.9 . @+=+B B >+. v+K.B B /.#@y E 8 e.B B l.}+ k@k j e.t ].r r r r <.[.}.|.g p D+E+B B $.s r r r r 3.[.4.< 5.", +"e+/.B B {.! 8.8.9.0.W a.# $ C+y.B B =+^ 8.8.8.8.8.8.8.8.| e@ o I+B B f.: 8.8.8.8.8.8.8.8.T.J+ ' ) p@u %.W.8.8.8.8.8.8.] m. q+` B B .. + 9 m+B B o@T 1 N+8.8.; |@B B H &@8.8.4@r. 5@4@8.8./.O B B Y+@. #.$.B B >@x M.-+8+^.5+& $ E k.*.B B z.c & =+B B A+V+8.c , i.h.t B B >+. v+K.B B F.&@1.g 8 e.B B l.}+ h i ]@q@v.,.8.8.8.8.6.J r G.j k D+E+B B Q I.8.8.8.8.J.K.J L.n ", +"e+/.B B O.P. m.f+s t u R.w x C+y.B B u ] o I+B B r r@ @.- $ l.O P 2@8 q+` B B .. + 9 m+B B o@T p `+B B ^.a@ G+H B B Y+@. #.$.B B >@x #+`.i $.%.&.$+x k.*.B B z.c & =+B B B B y.T+@+}@B B B B >+. v+K.B B B B /., y E 8 e.B B l.}+ _.:.B B t.~+ _ {+B B d.]+ D+E+B B A >. d+8+B B s@", +"e+/.B B O.P. c F+G+0.W a.# $ C+y.B B u ] o I+B B r r@ #+) p@++%.W.1+C+ q+` B B .. + 9 m+B B o@T p `+B B ^.a@ G+H B B Y+@. #.$.B B >@x 2 3 8+^.O+& $ E k.*.B B z.c & =+B B B B A+G h.t B B B B >+. v+K.B B B B F.&@f g 8 e.B B l.}+ _.:.B B t.~+ _ {+B B d.]+ D+E+B B A >. d+8+B B s@", +"e+/.B B O.P. ]+Q.B B {+g+ C+y.B B b+/@o o o o o o !.=. o I+B B ].#.o o o o o o . 9 b.B+B B t@u@ 1 R o o o o -.' q+` B B N Z+o o o o {@>+B B o@T p `+B B ^.a@ G+H B B Y+@. #.$.B B -+v@.@3+%.&.+@n. k.*.B B z.c & =+B B B B B B B B B B B B >+. v+K.B B B B B B /., +r B B l.}+ _.:.B B t.~+x w g p _ {+B B d.]+ D+E+B B A >. d+8+B B s@", +"e+/.B B O.P. ]+Q.B B {+g+ C+y.B B %.)+@ @ @ @ @ @ * U. o I+B B K 3@@ @ @ @ @ @ > , b.B+B B t@u@ ' 8 @ @ @ @ ! ~ q+` B B [.%@@ @ @ @ w@2.B B o@T p `+B B ^.a@ G+H B B Y+@. #.$.B B {+l.0.H O+& $ E k.*.B B z.c & =+B B B B B B B B B B B B >+. v+K.B B B B B B F.&@D.%.B B l.}+ _.:.B B t.~+!@x@z+l@_ {+B B d.]+ D+E+B B A >. d+8+B B s@", +"e+/.B B O.P. ]+Q.B B {+g+ C+y.B B ^.<.r r r r r r a.9@ o I+B B H I r r r r r r A.4 b.B+B B t@u@ - ;@M N B B I j q+` B B O *.r r r r &.%.B B o@T p `+B B ^.a@ Z o o o q+ G+H B B Y+@. #.$.B B B B B B -+P+c s. k.*.B B z.c & =+B B N J P H N J P H B B >+. v+K.B B K ].I ^.B B B B B B l.}+ _.:.B B t.~+y@z@7 J+_ {+B B d.]+ D+E+B B S+,@o o o o ; 1@$.s _+", +"e+/.B B O.P. ]+Q.B B {+g+ C+y.B B =+^ 8.8.8.8.8.8.| e@ o I+B B f.: 8.8.8.8.8.8.T.J+ b.B+B B t@u@ U T++ 4.B B I j q+` B B $.y.8.8.8.8.v 5+B B o@T p `+B B ^.a@ [ } @ @ P.s. G+H B B Y+@. #.$.B B B B B B 2.w@_.5 k.*.B B z.c & =+B B a.n @ W 6@n } *.B B >+. v+K.B B E.7.A@3.B B B B B B l.}+ _.:.B B t.~+o '@(.q+_ {+B B d.]+ D+E+B B {.(+@ @ @ @ 4.f.8@m ~ ", +"e+/.B B O.P. p g B@5+[.<.*@M. C+y.B B u ] o I+B B r r@ y # M N I 9.-.' y =@B B I j q+` B B .. + 9 m+B B o@T p `+B B ^.a@ n+V B B ;@1 G+H B B Y+@. #.$.B B %.&.*.V B B -+P+c s. k.*.B B z.c & =+B B -+;+] R+b@% 1.J B B >+. v+K.B B w+S.| )+I ^.B B B B l.}+ _.:.B B t.~+ _ {+B B d.]+ D+E+B B $.s r r r r r r _+Y. ", +"e+/.B B O.P. . j G.r J =@'@`. C+y.B B u ] o I+B B r r@ n.= k.$@3+k+o+)@ y =@B B I j q+` B B .. + 9 m+B B o@T p `+B B ^.a@ n+V B B ;@1 G+H B B Y+@. #.$.B B }.f V+[.B B 2.w@4 5 k.*.B B z.c & =+B B -+;+U+T.g@x 1.J B B >+. v+K.B B w+S.0+a+3 3.B B B B l.}+ _.:.B B t.~+ _ {+B B d.]+ D+E+B B Q I.8.8.8.8.8.8.~ - ", +"e+/.B B :.v o o / 5+[.<.N.M. C+y.B B b+/@o o o o o o o o !.=. o I+B B r r@ F # M N &+9.o o N+W.B B I j q+` B B .. + 9 m+B B o@T s.c o o C@7 B B ^.e o o o Z /@W+W B o+p+o o o o ,+O ..r +.@. #.$.B B >@x & x.*.V B B 3 M+c s. k.*.B B @ s+o o o o o o R 1 & =+B B -+;+ 1.J B B >+. v+K.B B w+S. P.)+I ^.B B l.}+ ,@S+<.^.x+y+o o o o z+A+t s B+C+ D+E+B B A >. ", +"e+/.B B *.$@@ @ A r J *+[ `. C+y.B B %.)+@ @ @ @ @ @ @ @ >@U. o I+B B r r@ j.= k.H.K+k+@ @ ).u B B I j q+` B B .. + 9 m+B B o@T E _ @ @ q 1@B B O 6+@ @ _+< 5@8.!+V O.;.@ @ @ @ Q V (+H+>.s. #.$.B B >@x {@8 t.u.B B 2.w@4 5 k.*.B B :.y.@ @ @ @ @ @ 8 9 & =+B B -+;+ 1.J B B >+. v+K.B B w+S. 0+a+3 '.B B l.}+ o P.B+[@W+X+@ @ @ @ a.W 8+G+0 c D+E+B B A >. ", +"P+-+r r r r r r r r N./ e@o+r r r r r r r r r r r r ]@9@ k e r r E.T. F Y+r r r r r r r r Q ) ' 9.r r D@; k@a@r r L+-@ p #.r r r r r r r r r r F.Y /@W+r r r r r r r r +.@. v ++r r @+{ f :.r r r r $+x b r+r r r r r r r r r r c+c t+v.r r i 5. m@k+r r * ;+ a+D.r r ,+-. P.]@r r a o ,@w.r r r r r r r r B+U+ y+x+r r ^+{@ ", +"C.z 8.8.8.8.8.8.8.8.[ d@ #+, 8.8.8.8.8.8.8.8.8.8.8.8.| e@ =.[+8.8._ }+ j.= 8.8.8.8.8.8.8.8.] m. p !@8.8.t+M+ E !@8.8.~@{@ 1 N+8.8.8.8.8.8.8.8.8.8.4@r. 5@8.8.8.8.8.8.8.8.8.>.s. ]+8 8.8.$ @. {@~@8.8.8.8.$ E P+] 8.8.8.8.8.8.8.8.8.8.T+5 U+_.8.8.U.n. h+T.8.8.j+x @g+8.8.9+9 0+| 8.8.h@' o 9@8.8.8.8.8.8.8.8.0 q+ -.< 8.8.~ R ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" @.k@q+q+q+q+q+q+q+q+' p 1 x q+q+q+q+q+q+q+q+q+q+' p 1 x q+q+q+q+q+q+' p s.n.q+q+q+q+q+q+q+q+q+q+E@5 s.n.q+q+E@5 s.n.q+q+E@5 F@q+q+q+U F@q+q+q+U U q+q+q+F@ U q+q+q+F@ U q+q+q+n.s. 5 E@q+q+n.s. 5 E@q+q+n.s. 5 E@q+q+n.s. 5 E@q+q+q+q+q+q+q+q+q+q+q+q+x 1 ", +" l@|+J.J.J.J.J.J.J.J.G@5@ g ) J.J.J.J.J.J.J.J.J.J.a@H@ c ] J.J.J.J.J.J.I.T+ 9 _ J.J.J.J.J.J.J.J.J.J.I@[+ n.9@J.J.J@(. 5 K@J.J.L@M@ E N@J.J.m+O@ 1 2 J.J.,+6 P@J.J.J.M.s. |.Q@J.J.2 1 ~ R@J.J.< p )@>@J.J.[ 5 , i J.J.| x 9+`+J.J.g+k@ U.;@J.J.J.J.J.J.J.J.J.J.J.J.m@q+ ", +"@.k@[+|@H K S@S@S@S@T@U@L+v+' p C+y.B B O t S@S@S@S@T@U@F.f ' p 1 x Y.Q+V@W@S@S@%.[.].%+' p X@,+S@S@q@u.B B V Y@S@S@Z@-@ q+` B B .. + 9 m+B B o@T U i B B u.+@ E Z+B B H G+ n+V B B ;@1 G+H B B Y+@. #.$.B B z.`@n.s.5 E@ #t B B e =. k.*.B B z.c %+&+B B *+F 8.u S@S@S@S@S@S@Y@ .B B B B >+. .#+#@#@###$# %#&#*#=# ", +"l@|+Q+F.-#;#>#>#>#>#L@O.f.x+L 5@ C+y.B B '.W.>#>#>#>#,#2@S@N.G+H@ C.] ;#'#*.i+>#>#)#!#N w.I.T+ x ~#>#>#G+{#B B o@]#>#>#^#e+ q+` B B .. + 9 m+B B o@T U i B B u.+@ E Z+B B H G+ n+V B B ;@1 G+H B B Y+@. #.$.B B 2@=@< p )@>@D.^.B B e =. k.*.B B z.c %+&+B B *+F ]+-@>#>#>#>#>#>#/#q@B B B B >+. (#_#:#:#<#[# }#|#1#2# ", +"e+/.B B O.P. ]+Q.B B {+g+ C+y.B B u ] }+w@B B e.n@ o I+B B r r@ k 3#S@S@2.4# g 7 B B <.z+ q+` B B .. + 9 m+B B o@T U i B B u.+@ E Z+B B H G+ n+V B B ;@1 U q+F@ G+H B B Y+@. >#5#3+B B B z.`@ #t B B u.q@Y+k@ k.*.B B z.c %+&+B B *+F 5 :+k.s B B [.%.6#l@ 7#8#9#9#0#a###$# b#c#d#e# %#&#@#@#@#@#*#=# ", +"e+/.B B O.P. ]+Q.B B {+g+ C+y.B B u ] }+w@B B e.n@ o I+B B r r@ 9 O@>#>#|+/+ g 7 B B <.z+ q+` B B .. + 9 m+B B o@T U i B B u.+@ E Z+B B H G+ n+V B B ;@1 |.f#M.i@G+H B B Y+@. H@Y g#h#B B 2@=@D.^.B B $@G@i#p k.*.B B z.c %+&+B B *+F = )#S+K B B <+I.O@9 j#k#l#l#m#n#<#o# b#c#d#e# p#q#:#:#:#:#r#s# ", +"e+/.B B O.P. ]+Q.B B {+g+ C+y.B B u ] 1 x t#G B B e.n@ '+=@%.[.{.Y q+q+q+q+q+q+' p g 7 B B <.z+ q+` B B .. + 9 m+B B o@T U i B B u.;@q+U F@y m+B B H G+ n+V B B >@u#`+O >@u#`+O B B Y+@. >#5#Y@V B B B B u.q@Y+k@ & K.Y@V v#w#q+q+G@*.u.q@>@R 5 :+>#s B B u.%.6#w .#+#@#@#x#y#z#A# b#c#B#C#@#@#*#=# %#&#D#E#9#9#9#9#F#}# ", +"e+/.B B O.P. ]+Q.B B {+g+ C+y.B B u ] y 8 @ u B B e.n@ ' G#)#@@%.w.J.J.J.J.J.J.I.T+ g 7 B B <.z+ q+` B B .. + 9 m+B B o@T U i B B H h.m+O@@.2 3#v.B B H G+ n+V B B @@z.A.V @@z.A.V B B Y+@. H@Y A [.B B B B H#I#i#p (@J#Q.t 8@v#J.J.a.K+D.K#M@n. = L#S+K B B A.I.O@9 (#_#:#:#M#N#z#A# b#c#O#z#:#:#k#2# P#q#Q#R#l#l#l#l#S#T# ", +"e+/.B B O.P.@.k@q+q+U#A B B {+g+ C+y.B B e.V#q+q+$ G O t S@S@6+T. . =@S@S@S@S@S@S@%.[.].+ ' p g 7 B B <.z+ q+` B B .. + 9 m+B B o@T 5 W#S@K+B B [.;@X#m+B B B 3+f.T n+V B B B B B B B B B B B B Y+@. U q+n+$.B B B B o+l@n.s. & K.Y@V B B u.q@>@R 5 :+>#=+B B u...z.w .#+#Y#Z#9#9#`# $z#A# b#c#.$+$9#9#@$#$*#=# $$%$&$*$ ", +"e+/.B B O.P.;+r@J.J.l.e.B B {+g+ C+y.B B *.5+J.J.=$u <.W.>#>#-$_@ ' G#>#>#>#>#>#>#;$!#N S+;$T+ g 7 B B <.z+ q+` B B .. + 9 m+B B o@T @.>$,$w.B B O h.3#v.B B O x+'$)$ n+V B B B B B B B B B B B B Y+@. ~ R@D.^.B B B B 2@=@[ 5 e+!$Q.t B B g.~$M@n. U.L#S+K B B A.n+~ 9 {$_#]$q#l#l#^$/$z#A# b#c#($_$l#l#:$<$k#2# $$%$&$*$ ", +"e+/.B B O.P.M+W.[$U@B B O t A.D+ C+y.B B O t T@U@B B F.-@' p 1 x q+q+' p . : B B J ; g 7 B B <.z+ q+` B B .. + 9 m+B B o@T 5 W#S@K+B B B B B 3+}$T n+V B B B B K+S@3+B B B B B Y+@. U q+I.K+B B u.q@Y@V B B *+k n.s. k.*.B B o+R 5 E@n =+B B u...z.|$ 1$2$3$4$ 5$6$z#A# b#c#d#e# 7$8$9$p# $$%$&$*$ ", +"e+/.B B O.P.F 0$L@O.B B [@I+a$J+ C+y.B B '.W.,#2@B B S@5+a@H@ C.] J.J.n+)$ . : B B J ; g 7 B B <.z+ q+` B B .. + 9 m+B B o@T @.>$,$w.B B B B O x+%+)$ n+V B B B B N.b$c$ .B B B B Y+@. ~ R@{#H B B H#I#A [.B B 6+7 [ 5 k.*.B B o+R U.;@4.K B B A.n+~ k@ 1$2$3$4$ 5$6$z#A# b#c#d#e# 7$8$9$p# $$%$&$*$ ", +"]+l.[$h#{+8 q+q+d A O t !#d$' p C+y.B B u ] @>+T@U@B B F.f ' p '+=@%.[.{.Y q+q+q+q+e$q V@W@f$4# g 7 B B <.z+ :+`+q@u.%.a@q+q+q+q+!.*+V Y@g$Y 5 #S@K+B 3+}$,$ n+V B B K+S@~$1 7.&+3+B B B Y+@. #.$.B B u.q@)#n.%+-#Y@V B B e =. k.*.B B o+R & =+B B B B @ ~+q+q+q+q+q+q+x 1 h$8#i$j$@#@#k$l$0#m$##$# b#c#B#C#@#@#n$o$p$q$ r$s$9$t$@#@#@#@#*#=# ", +"y d+>@u$<.|@J.J.v$e.[@;#I#`+L 5@ C+y.B B u ] q+w$,#2@B B S@N.G+H@ ' G#)#@@%.w.J.J.J.J.x$2.W y$z$/+ g 7 B B <.z+ 5 A$L a.u.g.J.J.J.J.B$6+u.C$D$t# @.U#,$w.H x+%+!@ n+V B B N.b$= s.)$E$c$ .B B Y+@. #.$.B B H#I#[+E t#F$A [.B B e =. k.*.B B o+R & =+B B B B {+>+J.J.J.J.J.J.m@q+ q$k#m#n#:#:#]$q#m#n#G$o# b#c#O#z#:#:#H$I$J$K$ L$n$M$N$:#:#:#:#r#s# ", +" {@l.S@S@S@S@S@S@h.< ~+=$A.D+ J+>+S@S@O$g+ @A@S@S@S@S@6+T. . =@S@S@S@S@S@S@S@S@2.4# y m+S@S@e.; ' `+S@S@S@S@S@S@S@S@P$Y p #'.,$ G@Q$S@S@~$1 7.&+S@S@a@@. >#5#S@S@)#n. %+-#S@S@Y+k@ & K.S@S@L@c 8.u S@S@S@S@S@S@S@S@S@S@S@S@6#l@ 7#8#9#9#R$S$T$%$U$4$ V$W$9#9#9#9#X$q$ Y$s$9#9#9#9#F#}# ", +" y d+>#>#>#>#>#>#n@ @F 0$a$J+ c M.>#>#) C+ q+w$>#>#>#>#-$_@ ' G#>#>#>#>#>#>#>#>#|+/+ n.M@>#>#Z$r. 5 A$>#>#>#>#>#>#>#>#u@t# 1 U#%+!@ `$>#>#>#= s. )$E$>#>#U#1 H@Y >#>#[+E t#F$>#>#i#p e+!$>#>#(.U ]+-@>#>#>#>#>#>#>#>#>#>#>#>#O@9 j#k#l#l# %.%+%@%#%$% %%&%l#l#l#l#*%K$ L$n$l#l#l#l#S#T# ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" =#*#&#%# =%-%@#@#;%>% ,%'%@#@#.%)% ,%'%.%)% !%@#!% ~%$%{%]% )%.%'%,% %#&#@#@#@#@#*#=# ", +" ^%k$/%m$ (%h$:#:#_%:% &#D#:#:#]$t$ !%V$_$<% [%}%r$=% |%<$S#.# 1%H$2%*# p#q#:#:#:#:#r#s# ", +" 3%4%5%D# $###@#@#@#@#+#.# 6%0#7%8%8$G$ ,%'%9%0%9#9#a%b%.%)% .%c%d%e% !%@#!% f%/$:$=# /%g%N$-% )%.%l#y#:#S$'%,% >%;%-%=%>%;%-%=% .#+#@#@###$# %#&#@#@#*#=# S#%$.$+$9#9#h%i%*#=# ", +" 3%4%5%D# j%&%:#:#:#:#k%l% 6%0#m%F#n%p# &#o%p%_#l#l#q%r%]$t$ .%c%d%e% =#s%p%t% #$u%C#,% /%g%N$-% v%Q#w%e%x%c%2%*# y%z%A%.%C#B%C%@# (#_#:#:#<#[# }#|#:#:#k#2# S#%$8$n#l#l#M$N$D%s# ", +" =#*#@#@#E%&$5%D# $###F%p$9#9#9#9#G%1$+#.# =%-%3%H%I%J%@#@#;%>% K%p%L%J%@#@#9%M%N%O%,%'%.%)% .%c%+$:$@#@#.%)% .#x%P%Q% !%@#!% /%g%N$-% )%.%'%,% b%R%0%K$J%S%T%o# >%;%U%V%W%X%Y%Z%`%j#-%=% .#+#Y#Z#9#9#0#a###$# %#&# &.&9#9#@$+&*#=# S#%$&$F% @&#&$&%& ", +" &&Y#:#:#*&=&5%D# j%-&<$:$l#l#l#l#;&>&k%%& ,&h$i$'&+$)&:#:#_%:% -%!&q%r%:#:#U$l$N%O%~&2%H$1% .%c%{&]&:#:#^&/& =#(&_&:& [%}%r$=% /%g%N$-% <&[&}&|& b%R%0%K$J%S%T%o# E%z%r%q%_#1&2&Q%3&1&7#@# {$_#]$q#l#l#m#n#<#o# 4&|#H$f%l#l#:$<$k#2# S#%$&$F% @&#&$&%& ", +" =#*#5&6&9#9#+$.$5%D# 7&8&L%r#@#@#@#@#4&9&0&b# a&T%b&c&7%8%9#9#8$&% K%n#9#9#N#d&/$f%L$e&6$f& .%c%g&g%9#9#h&f%.%)% !%@#!% _#i&r%=# /%g%N$-%~%$%/%j&k&l& b%R%0%K$J%S%T%o# m&n&o&&&D%p&q&r&r#I%s&t& 1$2$3$4$ 5$6$z#A# T$c#d#u& 7$v&w&p# S#%$x&<%@#@#2%y&z&}# ", +" &&Y#A&B&l#l#^&l$5%D# 7&8&m%C&:#:#:#:#D&k%1$E& &#t%F&G&m%F#l#l#n%p# -%/&l#l#m#E#g%H&p%x%m&I& .%c%J&B#l#l#K&L&^&/& =#s%p%t% _#i&r%=# /%g%N$-%M&A&B%N&1%%# b%R%0%K$J%S%T%o# m&n&o&&&D%p&q&r&r#I%s&t& 1$2$3$4$ 5$6$z#A# T$c#d#u& 7$v&w&p# S#%$O&P&:#:#Q#/%}&T# ", +" I&Q&Z#R& 3%4%5%D# 7&8& $`#9#9#9#9#0&o% 6%0#S&T& ,%'%A#U&N#d&N%V& .%c%d%e% &#p%+$q# .#W&{&:$ !%@#!% _#i&r%=# /%g%e&^%X&g%<$*# m&Y&:#S$l#y#Z&`& m&n&o&&&D%p&q&r&r#I%s&t& 1$2$3$4$ 5$6$z#A# T$c#d#u& 7$v&w&p# S#%$.$+$9#9#F#}# ", +" I&Q&Z#R& 3%4%5%D# 7&8&P% *l#l#l#l#1$X% 6%0#S&T& ~&D#p%_#m#E#N%V& .%c%d%e% &#p%+$q# .#W&{&:$ #%.*Y$,% _#i&r%=# /%g%#&T%E#+*<$*# m$x#x%c%w%e%@*{% m&n&o&&&D%p&q&r&r#I%s&t& 1$2$3$4$ 5$6$z#A# T$c#d#u& 7$v&w&p# S#%$8$n#l#l#S#T# ", +" p#z##*$*@#@#E%&$5%D# 9%s&0&%*@#@#@#@#@#@#+#.# 6%0#S&T& o#n#a%b%L$U&&*f& .%c%d%e% &#p%+$q# .#W&{&:$ /%**L&=*@#@#_#/$:$=# /%g%-*;*9#9#^&^%@#@#'%,% )%.%l#y#:#S$@#@#'%,% m&n&o&&&D%p&q&r&r#I%s&t& 1$2$3$4$ 5$6$z#A# >*W$H%,*@#@#n$'*X$q$ S#%$&$F% ", +" o#)*I$W&:#:#*&=&5%D# (%!*f%H$:#:#:#:#:#:#k%%& 6%0#S&T& '%/&q%r%p%_#~*I& .%c%d%e% &#p%+$q# .#W&{&:$ :%l#_%:#:#:#_%l#C#,% /%g%{*I$l#l#X&]*:#:#$$)% v%Q#w%e%x%c%:#:#2%*# m&n&o&&&D%p&q&r&r#I%s&t& 1$2$3$4$ 5$6$z#A# %%&%:$<$:#:#H$f%*%K$ S#%$&$F% ", +" e#z#9#9#9#9#^*}& 9%q&9#9#9#9#9#9#0&b# t&T%5%G$ o#<$&*/* +#H$(*_* ~&]$I%_& .#x%P%Q% R#R%9#9#:$=# l#:*B%'% <*[*9#9#r%*# m&Y&N$=*D%O&9#9#Z&`& k#}*:#2#1$c#e&^%-&'&U&&& h$8#`%|* T$G%R$4$ V$W$9#9#X$+% Y$s$P&m$ ", +" o#)*l#l#l#l#1*9% (%2*l#l#l#l#l#l#1$E& &#t%Y#p# '%/&~*a# >%3*4**$ .#3*4*F% =#(&_&:& #$u%l#l#C#,% %&V&t$5* F%_*l#l#1%%# m$x#<%!%m$x#l#l#@*{% P#/*|%*#P#n%6*~&p#n%6*~& q$k#7*8* +%9* %$% %%&%l#l#*%`& L$n$@&j% ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" 0*T$_%_%Y%q$ *#s%f%(# #$/%Y$'% #$/%r$-% I&u%_%_%_%_%R&=* ", +" I&Q&a*a*Z#b* c*d*P%4* b%R%U&=* J%S%T%o# -&6$a*a*a*a*e*A# ", +" 0*C%_%_%_%_%_%_%U%q$ [#2%_%_%J%3% .%$$_%_%_%_%f*g* *#s%<$h*i*j*f%{$ ~%#%k*C# )%[%M$l* m*n*3&1% $#M&x%v% <%_%/&,% o*X&!&=% t$m#t%%# (&:$p*.# b%R%U&=* J%S%T%o# %&q%_%_%_%_%_%_%_%_%S#+# I&q*_%_%_%_%_%_%_%_%R&`& ", +" I&r*s*R& j$4%5%b* 7&8&a*a*O#n$ |*0#a*a*a*a*t*T& c*`%a*a*a*a*P%O% .%]*N#e% +#p%+$q% )%u*d&B& %#H$.$m# X&g&L&=% _#i&]$5* /%g%N$-% f%i*n#~& b%R%U&=* J%S%T%o# m&n&a*a*a*a*a*a*a*a*s&t& -&2$3$v* G$a%e*9% ", +" I&r*s*R& j$4%5%b* [#2%_%_%_%_%_%_%_%_%<*j$ .%$$_%_%_%_%_%_%f*g* *#s%<$h*i*j*f%{$ .%]*N#e% +#p%+$q% )%u*d&B& %#H$.$m# X&g&L&=%o*X&/&,%_#i&]$5* t$m#_%_%t%%#(&:$_%_%p*.# #$/%_%_%_%_%x&g%T%o# %&q%_%_%_%_%w*+$0&c%S#+# I&q*x*,& G$a%e*9% p#O%_%_%_%_%_%_%_%_%b#j% ", +" I&r*s*R& j$4%5%b* %%@$a*a*a*a*L%G$ |*y*z*k$ c*d*P%4* .%]*N#e% +#p%+$q% )%u*d&B& %#H$.$m# X&g&L&=%A*7%r%=#_#i&]$5* R#8%N$-%f%i*<$*# b%R%a*a*a*a*T%o# r#p&q&t& G$a%e*9% T$c#a*a*a*a*a*a*a*a*9$p# ", +" 0*C%_%_%_%_%`%B*5%b* %%@$S%C*_%_%<*j$ .%$$_%_%_%_%_%_%f*g* c*d*P%4* .%]*N#e% +#p%+$q% m*n*_%_%_#1%=#M&_%_%x%v% X&g&L&=%A*7%r%=#_#i&]$5* (&:$_%_%_%_%t%%# #$/%_%_%x&g%T%o# F%q%_%_%@&+# a#u%>*=*j$b%R&`& p#O%_%_%_%_%_%_%_%_%b#j% ", +" I&Q&a*a*a*a*5%b* %%@$O# & |*0#a*a*a*a*t*T& c*d*P%4* .%]*N#e% +#p%+$q% )%W&{&B&.#H$.$:$ X&g&L&=%A*7%r%=#_#i&]$5* R#8%<$*# J%S%T%o# D%p&q&r& 5$6$z#A# ", +" 0*T$_%_%`%B*5%b*T#b#4*u& %%@$O# & .%$$_%_%_%_%_%_%f**$ c*d*P%4* .%]*N#e% +#p%+$q% )%W&i&D*r%]&.$:$ X&g&L&=%A*7%r%=#_#i&]$5* (&:$_%_%_%_%t%%# #$/%Y$'% J%S%T%o# F%q%_%_%@&&# a#u%>*=* ", +" j$4%5%b*3%9$8$D# %%@$O# & a&E*t*n% c*d*P%4* .%]*N#e% +#p%+$q% )%W&a*a*a*a*.$:$ X&g&L&=%A*7%r%=#_#i&]$5* R#8%N$-%f%i*<$*# b%R%U&=* J%S%T%o# D%n&o&r& ", +" c*A%_%_%_%_%4*u& %%@$O# & .%$$_%_%_%_%_%_%_%_%f**$ *#s%_%_%_%_%F*{$ ~%#%_%_%_%_%_%_%_%_%M$E% m*|%r%G*i&{*x%3* <%_%_%_%_%_%_%_%_%_%!&=% t$m#_%_%t%%#(&:$_%_%p*.# #$/%_%_%_%_%_%_%r$-% %&q%w*+$0&p%_%_%_%_%S#+# a#u%>*=* ", +" 3%4%5%D# %%@$O# & |*y*a*a*a*a*a*a*t*T& j%d*a*a*N%O% .%c%a*a*d%q%&#p%+$q# .#W&{&:$ A*7%L&=%_#i&r%=# /%g%N$-% f%i*n#~& b%R%a*a*0%K$ m&n&a*a*a*a*a*a*a*a*s&t& 5$6$z#A# ", +" T#A%U%u& K$b*J%H* .%$$_%_%_%_%_%_%f*g* *#s%_%_%F*{$ ~% %_%_%|#l*>%[%M$E% =#|%_#3* o*X&/&,%o*X&/&,% t$m#t%%# (&:$p*.# #$/%_%_%Y$'% %&q%_%_%_%_%_%_%_%_%S#+# a#u%>*=* ", +" "}; diff --git a/source/res/icon32x32.ico b/source/res/icon32x32.ico new file mode 100644 index 0000000..66c659d Binary files /dev/null and b/source/res/icon32x32.ico differ diff --git a/source/res/icon32x32.xpm b/source/res/icon32x32.xpm new file mode 100644 index 0000000..1809d98 --- /dev/null +++ b/source/res/icon32x32.xpm @@ -0,0 +1,45 @@ +/* XPM */ +static char * icon32x32_xpm[] = { +"32 32 10 1", +" c None", +". c #3F3928", +"+ c #7E7250", +"@ c #FCE4A0", +"# c #BDAB78", +"$ c #F6AB8E", +"% c #F0727C", +"& c #E40058", +"* c #EA396A", +"= c #000000", +" ", +" ", +" .+++++++. ", +" +@@@@@@@+ ", +" .+++#@$%%%$@#+++. ", +" +@@@@@%&&&%@@@@@+ ", +" .+#@$%%%%%%%$@@@@@#+. ", +" +@@@%&&&%@@@@@@@@@@@+ ", +" +@$%*&&&%@@@@@@@@@@@+ ", +" +@%&&&&&%@@@@@@@@@@@+ ", +" .+#@%&&&*%$@@@@@@@@@@@#+. ", +" +@@@%&&&%@@@@@@@@@@@@@@@+ ", +" +@$%%%%%$@@@@@@@@@@@@@@@+ ", +" +@%&%@@@@@@@@@@@@@@@@@@@+ ", +" +@%&%@@@@@@@@@@@@@@@@@@@+ ", +" +@%&%@@@@@@@@@@@@@@@@@@@+ ", +" +@$%$@@@@@@@@@@@@@@@@@@@+ ", +" +@@@@@@@@@@@@@@@@@@@@@@@+ ", +" +@@@@@@@@@@@@@@@@@@@@@@@+ ", +" +@@@@@@@@@@@@@@@@@@@@@@@+ ", +" .+#@@@@@@@@@@@@@@@#+#@#+. ", +" +@@@@@@@@@@@@@@@+=+@+ ", +" +@@@@@@@@@@@#+++++#@+ ", +" +@@@@@@@@@@@+===+@@@+ ", +" .+#@@@@@#+++.=.+#@#+. ", +" +@@@@@+=====+@@@+ ", +" .+++#@#+++++++++. ", +" +@@@@@@@+ ", +" .+++++++. ", +" ", +" ", +" "}; diff --git a/source/res/mpg.xrc b/source/res/mpg.xrc new file mode 100644 index 0000000..0e0f848 --- /dev/null +++ b/source/res/mpg.xrc @@ -0,0 +1,1213 @@ + + + + + #FFFFFF + 400,300 + Metroid Password Generator + + + + + + Exits Metroid Password Generator + + + + + + + Give Perfect Password + + + + Give the Debug Mode Password + + + + + + Resets The Password + + + + + + + + Best Ending: Samus in Bikini + + + + 2nd Ending: Samus in Swimsuit + + + + 3rd Ending: Samus Without Her Helmet + + + + 4th Ending: Samus in Victory Pose + + + + Worst Ending: Samus in Shame Pose + + + + + + + Give All Items + + + + Give All Missile Containers + + + + Give All Energy Tanks + + + + Open All Red and Yellow Doors + + + + Raise Kraid & Ridley Statues + + + + Kill All Zebetites in Tourian + + + + Kill All Bosses + + + + Fill Samus's Missile Inventory + + + + + + + + About Metroid Password Generator + + + + + wxVERTICAL + + wxGROW|wxALL + 0 + + + + + + + + + wxVERTICAL + + wxALIGN_LEFT|wxTOP + 5 + + wxHORIZONTAL + + wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT + 5 + + + + + + wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT + 5 + + + 0 + 0 + 255 + + + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP + 5 + + wxVERTICAL + + + wxALIGN_CENTER_HORIZONTAL|wxALL + 0 + + 4 + 2 + 0 + 0 + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP + 5 + + wxHORIZONTAL + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_CENTER_HORIZONTAL|wxALL + 0 + + 4 + 3 + 0 + 0 + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + + + wxALIGN_LEFT|wxALL + 5 + + wxVERTICAL + + + wxALIGN_CENTER_HORIZONTAL|wxALL + 0 + + 4 + 2 + 0 + 0 + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + + + + + + + + + + wxVERTICAL + + wxALIGN_LEFT|wxTOP + 5 + + wxHORIZONTAL + + wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT + 5 + + + + + + wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT + 5 + + 0 + + + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxTOP + 5 + + wxHORIZONTAL + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + + + wxALIGN_LEFT|wxRIGHT|wxTOP|wxBOTTOM + 5 + + wxHORIZONTAL + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + + + + Brinstar + Kraid's Lair + Norfair + Ridley's Lair + Tourian + + + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + + + + Space Suit + Swim Suit + + + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + wxALIGN_TOP|wxLEFT|wxRIGHT + 5 + + wxVERTICAL + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + wxALIGN_LEFT|wxLEFT|wxRIGHT|wxBOTTOM + 5 + + + + 0 + + + + + + + + + + + + + + + wxVERTICAL + + wxALIGN_LEFT|wxTOP + 5 + + wxHORIZONTAL + + wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT + 5 + + + + + + wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT + 5 + + + 0 + 0 + 255 + + + + + + wxGROW|wxTOP|wxBOTTOM + 5 + + + wxVERTICAL + + wxALIGN_CENTER_HORIZONTAL + 5 + + + + + + wxGROW|wxLEFT|wxRIGHT|wxTOP + 5 + + + + + Bit 1: Maru Mari Taken + Bit 2: Missile Container (Brinstar) + Bit 3: Red Door to Long Beam + Bit 4: Red Door to Tourian Bridge + Bit 5: Energy Tank (Brinstar) + Bit 6: Red Door to Bombs + Bit 7: Bombs Taken + Bit 8: Red Door to Ice Beam (Brinstar) + Bit 9: Missile Container (Brinstar) + Bit 10: Energy Tank (Brinstar) + Bit 11: Red Door to Varia + Bit 12: Varia Taken + Bit 13: Energy Tank (Brinstar) + Bit 14: Missile Container (Norfair) + Bit 15: Missile Container (Norfair) + Bit 16: Red Door to Ice Beam (Norfair) + Bit 17: Missile Container (Norfair) + Bit 18: Missile Container (Norfair) + Bit 19: Missile Container (Norfair) + Bit 20: Missile Container (Norfair) + Bit 21: Missile Container (Norfair) + Bit 22: Missile Container (Norfair) + Bit 23: Missile Container (Norfair) + Bit 24: Red Door to High Jump Boots + Bit 25: High Jump Boots Taken + Bit 26: Red Door to Screw Attack + Bit 27: Screw Attack Taken + Bit 28: Missile Container (Norfair) + Bit 29: Missile Container (Norfair) + Bit 30: Red Door to Wave Beam + Bit 31: Energy Tank (Norfair) + Bit 32: Missile Container (Norfair) + Bit 33: Red Door (Kraid's Lair) + Bit 34: Missile Container (Kraid's Lair) + Bit 35: Missile Container (Kraid's Lair) + Bit 36: Red Door (Kraid's Lair) + Bit 37: Energy Tank (Kraid's Lair) + Bit 38: Red Door (Kraid's Lair) + Bit 39: Red Door (Kraid's Lair) + Bit 40: Missile Container (Kraid's Lair) + Bit 41: Missile Container (Kraid's Lair) + Bit 42: Red Door to Kraid + Bit 43: Energy Tank in Kraid's Room + Bit 44: Missile Container (Ridley's Lair) + Bit 45: Red Door (Ridley's Lair) + Bit 46: Energy Tank (Ridley's Lair) + Bit 47: Missile Container (Ridley's Lair) + Bit 48: Yellow Door in Ridley's Room + Bit 49: Energy Tank behind Ridley's Room + Bit 50: Missile Container (Ridley's Lair) + Bit 51: Yellow Door (Tourian) + Bit 52: Red Door (Tourian) + Bit 53: Red Door (Tourian) + Bit 54: Zebetite 1 Dead + Bit 55: Zebetite 2 Dead + Bit 56: Zebetite 3 Dead + Bit 57: Zebetite 4 Dead + Bit 58: Zebetite 5 Dead + Bit 59: Mother Brain Dead + Bit 60: Unknown + Bit 61: Unknown + Bit 62: Unknown + Bit 63: Unknown + Bit 64: Unknown + Bit 65: Start in Norfair (+66 = Tourian) + Bit 66: Start in Kraid's Lair (+65 = Tourian) + Bit 67: Start in Ridley's Lair + Bit 68: Reset + Bit 69: Unknown + Bit 70: Unknown + Bit 71: Unknown + Bit 72: Samus in Swim Suit + Bit 73: Have Bombs + Bit 74: Have High Jump Boots + Bit 75: Have Long Beam + Bit 76: Have Screw Attack + Bit 77: Have Maru Mari + Bit 78: Have Varia + Bit 79: Have Wave Beam + Bit 80: Have Ice Beam + Bit 81: Missile Count (+1) + Bit 82: Missile Count (+2) + Bit 83: Missile Count (+4) + Bit 84: Missile Count (+8) + Bit 85: Missile Count (+16) + Bit 86: Missile Count (+32) + Bit 87: Missile Count (+64) + Bit 88: Missile Count (+128) + Bit 89: Game Age (+1) + Bit 90: Game Age (+2) + Bit 91: Game Age (+4) + Bit 92: Game Age (+8) + Bit 93: Game Age (+16) + Bit 94: Game Age (+32) + Bit 95: Game Age (+64) + Bit 96: Game Age (+128) + Bit 97: Game Age (+256) + Bit 98: Game Age (+512) + Bit 99: Game Age (+1024) + Bit 100: Game Age (+2048) + Bit 101: Game Age (+4096) + Bit 102: Game Age (+8192) + Bit 103: Game Age (+16384) + Bit 104: Game Age (+32768) + Bit 105: Game Age (+65536) + Bit 106: Game Age (+131072) + Bit 107: Game Age (+262144) + Bit 108: Game Age (+524288) + Bit 109: Game Age (+1048576) + Bit 110: Game Age (+2097152) + Bit 111: Game Age (+4194304) + Bit 112: Game Age (+8388608) + Bit 113: Game Age (+16777216) + Bit 114: Game Age (+33554432) + Bit 115: Game Age (+67108864) + Bit 116: Game Age (+134217728) + Bit 117: Game Age (+268435456) + Bit 118: Game Age (+536870912) + Bit 119: Game Age (+1073741824) + Bit 120: Game Age (+2147483648) + Bit 121: Unknown + Bit 122: Unknown + Bit 123: Unknown + Bit 124: Unknown + Bit 125: Ridley Dead + Bit 126: Ridley Statue Raised + Bit 127: Kraid Dead + Bit 128: Kraid Statue Raised + + + + + + + + + + + + wxALIGN_CENTER_HORIZONTAL|wxALL + 0 + + wxHORIZONTAL + + wxALIGN_CENTER_VERTICAL|wxRIGHT + 5 + + + + + + wxALIGN_CENTER_VERTICAL|wxTOP + 5 + + wxVERTICAL + + wxALIGN_LEFT|wxALL + 0 + + 216,56 + + #000000 + + + + wxGROW|wxTOP|wxBOTTOM + 5 + + wxHORIZONTAL + + wxALIGN_CENTER_VERTICAL|wxRIGHT + 5 + + + + 10 + modern + + normal + 0 + + 000000 000000 000000 000000 + + + + wxALIGN_CENTER_VERTICAL|wxALL + 0 + + 0 + + + + + + + + + + + + + 1 + + + + diff --git a/source/res/windows.rc b/source/res/windows.rc new file mode 100644 index 0000000..69d36b4 --- /dev/null +++ b/source/res/windows.rc @@ -0,0 +1,28 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: windows.rc,v 1.2 2005/09/22 06:00:21 technoplaza Exp $ + +IDR_ICON ICON DISCARDABLE "res\\icon32x32.ico" + +#include + diff --git a/source/view/MPGFrame.cc b/source/view/MPGFrame.cc new file mode 100644 index 0000000..b0a6274 --- /dev/null +++ b/source/view/MPGFrame.cc @@ -0,0 +1,1545 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: MPGFrame.cc,v 1.30 2005/09/28 01:46:23 technoplaza Exp $ + +#ifdef HAVE_CONFIG_H + #include +#endif + +#include + +#ifndef WX_PRECOMP + #include +#endif + +#include + +#include "AppConstants.hh" +#include "exceptions/InvalidPasswordException.hh" +#include "res/icon32x32.xpm" +#include "view/MPGFrame.hh" +#include "view/PasswordPanel.hh" + +using namespace mpg; + +BEGIN_EVENT_TABLE(MPGFrame, wxFrame) + EVT_BUTTON(XRCID("IDB_CHECKSUM"), MPGFrame::onFixChecksum) + + EVT_CHECKBOX(XRCID("IDC_ITEMS_MARUMARI"), MPGFrame::onItemChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_LONGBEAM"), MPGFrame::onItemChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_WAVEBEAM"), MPGFrame::onItemChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_ICEBEAM"), MPGFrame::onItemChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_BOMBS"), MPGFrame::onItemChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_HIGHJUMPBOOTS"), MPGFrame::onItemChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_SCREWATTACK"), MPGFrame::onItemChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_VARIA"), MPGFrame::onItemChanged) + + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_BS1"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_BS2"), MPGFrame::onMissileContainerChanged) + + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_KL1"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_KL2"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_KL3"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_KL4"), MPGFrame::onMissileContainerChanged) + + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF1"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF2"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF3"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF4"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF5"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF6"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF7"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF8"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF9"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF10"), + MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF11"), + MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_NF12"), + MPGFrame::onMissileContainerChanged) + + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_RL1"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_RL2"), MPGFrame::onMissileContainerChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_MC_RL3"), MPGFrame::onMissileContainerChanged) + + EVT_CHECKBOX(XRCID("IDC_ITEMS_ET_BS1"), MPGFrame::onEnergyTankChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_ET_BS2"), MPGFrame::onEnergyTankChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_ET_BS3"), MPGFrame::onEnergyTankChanged) + + EVT_CHECKBOX(XRCID("IDC_ITEMS_ET_NF"), MPGFrame::onEnergyTankChanged) + + EVT_CHECKBOX(XRCID("IDC_ITEMS_ET_KL"), MPGFrame::onEnergyTankChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_ET_KL_KRAID"), MPGFrame::onEnergyTankChanged) + + EVT_CHECKBOX(XRCID("IDC_ITEMS_ET_RL"), MPGFrame::onEnergyTankChanged) + EVT_CHECKBOX(XRCID("IDC_ITEMS_ET_RL_RIDLEY"), MPGFrame::onEnergyTankChanged) + + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_BS_LONGBEAM"), MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_BS_TOURIANBRIDGE"), + MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_BS_BOMBS"), MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_BS_ICEBEAM"), MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_BS_VARIA"), MPGFrame::onDoorChanged) + + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_KL1"), MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_KL2"), MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_KL3"), MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_KL4"), MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_KL_KRAID"), MPGFrame::onDoorChanged) + + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_NF_HIGHJUMPBOOTS"), + MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_NF_SCREWATTACK"), + MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_NF_WAVEBEAM"), MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_NF_ICEBEAM"), MPGFrame::onDoorChanged) + + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_RL"), MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_RL_RIDLEY"), MPGFrame::onDoorChanged) + + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_T1"), MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_T2"), MPGFrame::onDoorChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_DOORS_T3"), MPGFrame::onDoorChanged) + + EVT_CHECKBOX(XRCID("IDC_MISC_STATUE_KRAID"), MPGFrame::onStatueChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_STATUE_RIDLEY"), MPGFrame::onStatueChanged) + + EVT_CHECKBOX(XRCID("IDC_MISC_ZEBETITE1"), MPGFrame::onZebetiteChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_ZEBETITE2"), MPGFrame::onZebetiteChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_ZEBETITE3"), MPGFrame::onZebetiteChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_ZEBETITE4"), MPGFrame::onZebetiteChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_ZEBETITE5"), MPGFrame::onZebetiteChanged) + + EVT_CHECKBOX(XRCID("IDC_MISC_BOSS_KRAID"), MPGFrame::onBossChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_BOSS_RIDLEY"), MPGFrame::onBossChanged) + EVT_CHECKBOX(XRCID("IDC_MISC_BOSS_MOTHERBRAIN"), MPGFrame::onBossChanged) + + EVT_CHECKLISTBOX(XRCID("IDCLB_RAW_BITS"), MPGFrame::onRawBitChanged) + + EVT_MENU(wxID_EXIT, MPGFrame::onFileExit) + + EVT_MENU(XRCID("IDM_PASSWORD_PERFECTGAME"), + MPGFrame::onPasswordPerfectGame) + EVT_MENU(XRCID("IDM_PASSWORD_DEBUGPASSWORD"), + MPGFrame::onPasswordDebugPassword) + EVT_MENU(XRCID("IDM_PASSWORD_RESET"), MPGFrame::onPasswordReset) + + EVT_MENU(XRCID("IDM_PASSWORD_ENDING1"), MPGFrame::onPasswordEnding) + EVT_MENU(XRCID("IDM_PASSWORD_ENDING2"), MPGFrame::onPasswordEnding) + EVT_MENU(XRCID("IDM_PASSWORD_ENDING3"), MPGFrame::onPasswordEnding) + EVT_MENU(XRCID("IDM_PASSWORD_ENDING4"), MPGFrame::onPasswordEnding) + EVT_MENU(XRCID("IDM_PASSWORD_ENDING5"), MPGFrame::onPasswordEnding) + + EVT_MENU(XRCID("IDM_PASSWORD_GIVE_MISSILES"), + MPGFrame::onPasswordGiveMissiles) + EVT_MENU(XRCID("IDM_PASSWORD_GIVE_ITEMS"), MPGFrame::onPasswordGiveItems) + EVT_MENU(XRCID("IDM_PASSWORD_GIVE_MC"), + MPGFrame::onPasswordGiveMissileContainers) + EVT_MENU(XRCID("IDM_PASSWORD_GIVE_ET"), + MPGFrame::onPasswordGiveEnergyTanks) + EVT_MENU(XRCID("IDM_PASSWORD_GIVE_DOORS"), MPGFrame::onPasswordGiveDoors) + EVT_MENU(XRCID("IDM_PASSWORD_GIVE_STATUES"), + MPGFrame::onPasswordGiveStatues) + EVT_MENU(XRCID("IDM_PASSWORD_GIVE_ZEBETITES"), + MPGFrame::onPasswordGiveZebetites) + EVT_MENU(XRCID("IDM_PASSWORD_GIVE_BOSSES"), MPGFrame::onPasswordGiveBosses) + + EVT_MENU(wxID_ABOUT, MPGFrame::onHelpAbout) + + EVT_RADIOBOX(XRCID("IDRB_MISC_START"), MPGFrame::onStartLocationChanged) + EVT_RADIOBOX(XRCID("IDRB_MISC_ARMOR"), MPGFrame::onArmorChanged) + + EVT_TEXT(XRCID("IDSC_ITEMS_MISSILES"), MPGFrame::onMissilesTextChanged) + EVT_TEXT(XRCID("IDT_MISC_GAMETIME"), MPGFrame::onGameTimeChanged) + EVT_TEXT(XRCID("IDSC_RAW_SHIFT"), MPGFrame::onShiftTextChanged) + EVT_TEXT(XRCID("IDT_PASSWORD"), MPGFrame::onPasswordChanged) +END_EVENT_TABLE() + +MPGFrame::MPGFrame() : fixChecksumButton(NULL), ignoreTextEvent(true) { + SetParent(NULL); + + CreateControls(); + GetSizer()->SetSizeHints(this); + Centre(); +} + +void MPGFrame::CreateControls() { + wxXmlResource::Get()->LoadFrame(this, GetParent(), wxT("IDF_MPG")); + SetIcon(wxIcon(icon32x32_xpm)); + + XRCCTRL(*this, "IDP_PASSWORD", PasswordPanel)->setPassword(&password); + XRCCTRL(*this, "IDT_PASSWORD", wxTextCtrl)->SetMaxLength(27); + + wxTextCtrl *gameTime = XRCCTRL(*this, "IDT_MISC_GAMETIME", wxTextCtrl); + gameTime->SetValidator(wxTextValidator(wxFILTER_NUMERIC)); + gameTime->SetMaxLength(10); + + fixChecksumButton = XRCCTRL(*this, "IDB_CHECKSUM", wxButton); + + updateTextCtrlSizes(); + + ignoreTextEvent = false; +} + +wxString MPGFrame::getUnifiedPassword() const { + wxString temp = XRCCTRL(*this, "IDT_PASSWORD", wxTextCtrl)->GetValue(); + + if (temp.Length() != 27) { + return wxEmptyString; + } + + return wxString(temp.Mid(0, 6) + temp.Mid(7, 6) + + temp.Mid(14, 6) + temp.Mid(21)); +} + +void MPGFrame::updateControls() { + // update the item controls + XRCCTRL(*this, "IDC_ITEMS_MARUMARI", + wxCheckBox)->SetValue(password.getBit(MARUMARI) && + password.getBit(MARUMARI_TAKEN)); + XRCCTRL(*this, "IDC_ITEMS_LONGBEAM", + wxCheckBox)->SetValue(password.getBit(LONGBEAM)); + XRCCTRL(*this, "IDC_ITEMS_WAVEBEAM", + wxCheckBox)->SetValue(password.getBit(WAVEBEAM)); + XRCCTRL(*this, "IDC_ITEMS_ICEBEAM", + wxCheckBox)->SetValue(password.getBit(ICEBEAM)); + XRCCTRL(*this, "IDC_ITEMS_BOMBS", + wxCheckBox)->SetValue(password.getBit(BOMBS) && + password.getBit(BOMBS_TAKEN)); + XRCCTRL(*this, "IDC_ITEMS_HIGHJUMPBOOTS", + wxCheckBox)->SetValue(password.getBit(HIGHJUMPBOOTS) && + password.getBit(HIGHJUMPBOOTS_TAKEN)); + XRCCTRL(*this, "IDC_ITEMS_SCREWATTACK", + wxCheckBox)->SetValue(password.getBit(SCREWATTACK) && + password.getBit(SCREWATTACK_TAKEN)); + XRCCTRL(*this, "IDC_ITEMS_VARIA", + wxCheckBox)->SetValue(password.getBit(VARIA) && + password.getBit(VARIA_TAKEN)); + + // update the missile container controls + XRCCTRL(*this, "IDC_ITEMS_MC_BS1", + wxCheckBox)->SetValue(password.getBit(MISSILE_BS1)); + XRCCTRL(*this, "IDC_ITEMS_MC_BS2", + wxCheckBox)->SetValue(password.getBit(MISSILE_BS2)); + + XRCCTRL(*this, "IDC_ITEMS_MC_KL1", + wxCheckBox)->SetValue(password.getBit(MISSILE_KL1)); + XRCCTRL(*this, "IDC_ITEMS_MC_KL2", + wxCheckBox)->SetValue(password.getBit(MISSILE_KL2)); + XRCCTRL(*this, "IDC_ITEMS_MC_KL3", + wxCheckBox)->SetValue(password.getBit(MISSILE_KL3)); + XRCCTRL(*this, "IDC_ITEMS_MC_KL4", + wxCheckBox)->SetValue(password.getBit(MISSILE_KL4)); + + XRCCTRL(*this, "IDC_ITEMS_MC_NF1", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF1)); + XRCCTRL(*this, "IDC_ITEMS_MC_NF2", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF2)); + XRCCTRL(*this, "IDC_ITEMS_MC_NF3", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF3)); + XRCCTRL(*this, "IDC_ITEMS_MC_NF4", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF4)); + XRCCTRL(*this, "IDC_ITEMS_MC_NF5", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF5)); + XRCCTRL(*this, "IDC_ITEMS_MC_NF6", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF6)); + XRCCTRL(*this, "IDC_ITEMS_MC_NF7", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF7)); + XRCCTRL(*this, "IDC_ITEMS_MC_NF8", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF8)); + XRCCTRL(*this, "IDC_ITEMS_MC_NF9", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF9)); + XRCCTRL(*this, "IDC_ITEMS_MC_NF10", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF10)); + XRCCTRL(*this, "IDC_ITEMS_MC_NF11", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF11)); + XRCCTRL(*this, "IDC_ITEMS_MC_NF12", + wxCheckBox)->SetValue(password.getBit(MISSILE_NF12)); + + XRCCTRL(*this, "IDC_ITEMS_MC_RL1", + wxCheckBox)->SetValue(password.getBit(MISSILE_RL1)); + XRCCTRL(*this, "IDC_ITEMS_MC_RL2", + wxCheckBox)->SetValue(password.getBit(MISSILE_RL2)); + XRCCTRL(*this, "IDC_ITEMS_MC_RL3", + wxCheckBox)->SetValue(password.getBit(MISSILE_RL3)); + + // update the energy tank controls + XRCCTRL(*this, "IDC_ITEMS_ET_BS1", + wxCheckBox)->SetValue(password.getBit(ENERGYTANK_BS1)); + XRCCTRL(*this, "IDC_ITEMS_ET_BS2", + wxCheckBox)->SetValue(password.getBit(ENERGYTANK_BS2)); + XRCCTRL(*this, "IDC_ITEMS_ET_BS3", + wxCheckBox)->SetValue(password.getBit(ENERGYTANK_BS3)); + + XRCCTRL(*this, "IDC_ITEMS_ET_NF", + wxCheckBox)->SetValue(password.getBit(ENERGYTANK_NF)); + + XRCCTRL(*this, "IDC_ITEMS_ET_KL", + wxCheckBox)->SetValue(password.getBit(ENERGYTANK_KL)); + XRCCTRL(*this, "IDC_ITEMS_ET_KL_KRAID", + wxCheckBox)->SetValue(password.getBit(ENERGYTANK_KL_KRAID)); + + XRCCTRL(*this, "IDC_ITEMS_ET_RL", + wxCheckBox)->SetValue(password.getBit(ENERGYTANK_RL)); + XRCCTRL(*this, "IDC_ITEMS_ET_RL_RIDLEY", + wxCheckBox)->SetValue(password.getBit(ENERGYTANK_RL_RIDLEY)); + + // update the red & yellow door controls + XRCCTRL(*this, "IDC_MISC_DOORS_BS_LONGBEAM", + wxCheckBox)->SetValue(password.getBit(REDDOOR_BS_LONGBEAM)); + XRCCTRL(*this, "IDC_MISC_DOORS_BS_TOURIANBRIDGE", + wxCheckBox)->SetValue(password.getBit(REDDOOR_BS_TOURIANBRIDGE)); + XRCCTRL(*this, "IDC_MISC_DOORS_BS_BOMBS", + wxCheckBox)->SetValue(password.getBit(REDDOOR_BS_BOMBS)); + XRCCTRL(*this, "IDC_MISC_DOORS_BS_ICEBEAM", + wxCheckBox)->SetValue(password.getBit(REDDOOR_BS_ICEBEAM)); + XRCCTRL(*this, "IDC_MISC_DOORS_BS_VARIA", + wxCheckBox)->SetValue(password.getBit(REDDOOR_BS_VARIA)); + + XRCCTRL(*this, "IDC_MISC_DOORS_KL1", + wxCheckBox)->SetValue(password.getBit(REDDOOR_KL1)); + XRCCTRL(*this, "IDC_MISC_DOORS_KL2", + wxCheckBox)->SetValue(password.getBit(REDDOOR_KL2)); + XRCCTRL(*this, "IDC_MISC_DOORS_KL3", + wxCheckBox)->SetValue(password.getBit(REDDOOR_KL3)); + XRCCTRL(*this, "IDC_MISC_DOORS_KL4", + wxCheckBox)->SetValue(password.getBit(REDDOOR_KL4)); + XRCCTRL(*this, "IDC_MISC_DOORS_KL_KRAID", + wxCheckBox)->SetValue(password.getBit(REDDOOR_KL_KRAID)); + + XRCCTRL(*this, "IDC_MISC_DOORS_NF_HIGHJUMPBOOTS", + wxCheckBox)->SetValue(password.getBit(REDDOOR_NF_HIGHJUMPBOOTS)); + XRCCTRL(*this, "IDC_MISC_DOORS_NF_SCREWATTACK", + wxCheckBox)->SetValue(password.getBit(REDDOOR_NF_SCREWATTACK)); + XRCCTRL(*this, "IDC_MISC_DOORS_NF_WAVEBEAM", + wxCheckBox)->SetValue(password.getBit(REDDOOR_NF_WAVEBEAM)); + XRCCTRL(*this, "IDC_MISC_DOORS_NF_ICEBEAM", + wxCheckBox)->SetValue(password.getBit(REDDOOR_NF_ICEBEAM)); + + XRCCTRL(*this, "IDC_MISC_DOORS_RL", + wxCheckBox)->SetValue(password.getBit(REDDOOR_RL)); + XRCCTRL(*this, "IDC_MISC_DOORS_RL_RIDLEY", + wxCheckBox)->SetValue(password.getBit(REDDOOR_RL_RIDLEY)); + + XRCCTRL(*this, "IDC_MISC_DOORS_T1", + wxCheckBox)->SetValue(password.getBit(REDDOOR_T1)); + XRCCTRL(*this, "IDC_MISC_DOORS_T2", + wxCheckBox)->SetValue(password.getBit(REDDOOR_T2)); + XRCCTRL(*this, "IDC_MISC_DOORS_T3", + wxCheckBox)->SetValue(password.getBit(REDDOOR_T3)); + + // update the statue controls + XRCCTRL(*this, "IDC_MISC_STATUE_KRAID", + wxCheckBox)->SetValue(password.getBit(KRAID_STATUE)); + XRCCTRL(*this, "IDC_MISC_STATUE_RIDLEY", + wxCheckBox)->SetValue(password.getBit(RIDLEY_STATUE)); + + // update the zebetite controls + XRCCTRL(*this, "IDC_MISC_ZEBETITE1", + wxCheckBox)->SetValue(password.getBit(ZEBETITE1)); + XRCCTRL(*this, "IDC_MISC_ZEBETITE2", + wxCheckBox)->SetValue(password.getBit(ZEBETITE2)); + XRCCTRL(*this, "IDC_MISC_ZEBETITE3", + wxCheckBox)->SetValue(password.getBit(ZEBETITE3)); + XRCCTRL(*this, "IDC_MISC_ZEBETITE4", + wxCheckBox)->SetValue(password.getBit(ZEBETITE4)); + XRCCTRL(*this, "IDC_MISC_ZEBETITE5", + wxCheckBox)->SetValue(password.getBit(ZEBETITE5)); + + // update the boss controls + XRCCTRL(*this, "IDC_MISC_BOSS_KRAID", + wxCheckBox)->SetValue(password.getBit(KRAID)); + XRCCTRL(*this, "IDC_MISC_BOSS_RIDLEY", + wxCheckBox)->SetValue(password.getBit(RIDLEY)); + XRCCTRL(*this, "IDC_MISC_BOSS_MOTHERBRAIN", + wxCheckBox)->SetValue(password.getBit(MOTHERBRAIN)); + + // update the armor control + XRCCTRL(*this, "IDRB_MISC_ARMOR", + wxRadioBox)->SetSelection(password.getBit(SWIMSUIT) ? 1 : 0); + + // update the missile count, gametime, and shift byte controls + unsigned long value = static_cast(password.getGameTime()); + + ignoreTextEvent = true; + XRCCTRL(*this, "IDSC_ITEMS_MISSILES", + wxSpinCtrl)->SetValue(password.getMissiles()); + XRCCTRL(*this, "IDT_MISC_GAMETIME", + wxTextCtrl)->SetValue(wxString::Format(wxT("%lu"), value)); + XRCCTRL(*this, "IDSC_RAW_SHIFT", + wxSpinCtrl)->SetValue(password.getShift()); + ignoreTextEvent = false; + + // update the start location + updateStartLocation(); + + // update the raw password data control + for (int i = 0; i < PASSWORD_BITS; ++i) { + XRCCTRL(*this, "IDCLB_RAW_BITS", + wxCheckListBox)->Check(i, password.getBit(i)); + } + + // warn about invalid passwords due to reset bit + if (password.getBit(RESET)) { + wxMessageBox(wxT("This password is invalid: reset bit is set"), + wxT("Warning: Invalid Password"), + wxICON_EXCLAMATION | wxOK); + } +} + +void MPGFrame::updatePasswordText() { + wxTextCtrl *ctrl = XRCCTRL(*this, "IDT_PASSWORD", wxTextCtrl); + wxString text; + + // separate the password segments with spaces + for (unsigned int i = 0; i < PASSWORD_LENGTH; ++i) { + if ((i > 0) && ((i % 6) == 0)) { + text += wxT(' '); + } + + text += password.getEncoded()[i]; + } + + ignoreTextEvent = true; + ctrl->SetValue(text); + ignoreTextEvent = false; + + XRCCTRL(*this, "IDP_PASSWORD", PasswordPanel)->Refresh(false); + + // warn if they have entered the debug password + if (password.getEncoded().StartsWith(wxT("NARPASSWORD00000"))) { + wxMessageBox(wxT("This password triggers debug mode.\n" + "Because it is Hard Coded, any change will disable " + "debug mode effects."), + wxT("Debug Password"), wxICON_EXCLAMATION | wxOK); + } +} + +void MPGFrame::updateRawGameTime(wxUint32 value) { + wxCheckListBox *ctrl = XRCCTRL(*this, "IDCLB_RAW_BITS", wxCheckListBox); + + for (int i = 0; i < 32; ++i) { + ctrl->Check(GAMETIME + i, (value & (1 << i))); + } +} + +void MPGFrame::updateRawMissiles(unsigned char value) { + wxCheckListBox *ctrl = XRCCTRL(*this, "IDCLB_RAW_BITS", wxCheckListBox); + + for (int i = 0; i < 8; ++i) { + ctrl->Check(MISSILES + i, (value & (1 << i))); + } +} + +void MPGFrame::updateStartLocation() { + bool nf = password.getBit(START_NF); + bool kl = password.getBit(START_KL); + bool rl = password.getBit(START_RL); + + wxRadioBox *ctrl = XRCCTRL(*this, "IDRB_MISC_START", wxRadioBox); + + if (!nf && !kl && !rl) { + // Brinstar + ctrl->SetSelection(BRINSTAR); + } else if (!nf && kl && !rl) { + // Kraid's Lair + ctrl->SetSelection(KRAIDSLAIR); + } else if (nf && !kl && !rl) { + // Norfair + ctrl->SetSelection(NORFAIR); + } else if (!nf && !kl && rl) { + // Ridley's Lair + ctrl->SetSelection(RIDLEYSLAIR); + } else if (nf && kl && !rl) { + // Tourian + ctrl->SetSelection(TOURIAN); + } else { + // invalid start location + wxMessageBox(wxT("This password has an invalid start location."), + wxT("Warning: Invalid Password"), + wxICON_EXCLAMATION | wxOK); + } +} + +void MPGFrame::updateTextCtrlSizes() { + wxClientDC dc(this); + wxTextCtrl *ctrl; + wxCoord width, height; + + ctrl = XRCCTRL(*this, "IDT_MISC_GAMETIME", wxTextCtrl); + dc.SetFont(ctrl->GetFont()); + dc.GetTextExtent(wxT("04294967296"), &width, &height); + + wxSize size(width + 15, height + 5); + ctrl->SetSize(size); + ctrl->SetMinSize(size); + ctrl->SetMaxSize(size); + + ctrl = XRCCTRL(*this, "IDT_PASSWORD", wxTextCtrl); + dc.SetFont(ctrl->GetFont()); + dc.GetTextExtent(ctrl->GetValue(), &width, &height); + + size = wxSize(width + 15, height + 5); + ctrl->SetSize(size); + ctrl->SetMinSize(size); + ctrl->SetMaxSize(size); +} + +void MPGFrame::onArmorChanged(wxCommandEvent &event) { + wxRadioBox *ptr = dynamic_cast(event.GetEventObject()); + bool state = (ptr->GetSelection() == 1); + + XRCCTRL(*this, "IDCLB_RAW_BITS", wxCheckListBox)->Check(SWIMSUIT, state); + password.setBit(SWIMSUIT, state); + + updatePasswordText(); +} + +void MPGFrame::onBossChanged(wxCommandEvent &event) { + int id = event.GetId(); + bool state = event.IsChecked(); + int bit; + + if (id == XRCID("IDC_MISC_BOSS_KRAID")) { + bit = KRAID; + } else if (id == XRCID("IDC_MISC_BOSS_RIDLEY")) { + bit = RIDLEY; + } else { + bit = MOTHERBRAIN; + } + + XRCCTRL(*this, "IDCLB_RAW_BITS", wxCheckListBox)->Check(bit, state); + password.setBit(bit, state); + + updatePasswordText(); +} + +void MPGFrame::onDoorChanged(wxCommandEvent &event) { + int id = event.GetId(); + bool state = event.IsChecked(); + int bit; + + if (id == XRCID("IDC_MISC_DOORS_BS_LONGBEAM")) { + bit = REDDOOR_BS_LONGBEAM; + } else if (id == XRCID("IDC_MISC_DOORS_BS_TOURIANBRIDGE")) { + bit = REDDOOR_BS_TOURIANBRIDGE; + } else if (id == XRCID("IDC_MISC_DOORS_BS_BOMBS")) { + bit = REDDOOR_BS_BOMBS; + } else if (id == XRCID("IDC_MISC_DOORS_BS_ICEBEAM")) { + bit = REDDOOR_BS_ICEBEAM; + } else if (id == XRCID("IDC_MISC_DOORS_BS_VARIA")) { + bit = REDDOOR_BS_VARIA; + } else if (id == XRCID("IDC_MISC_DOORS_KL1")) { + bit = REDDOOR_KL1; + } else if (id == XRCID("IDC_MISC_DOORS_KL2")) { + bit = REDDOOR_KL2; + } else if (id == XRCID("IDC_MISC_DOORS_KL3")) { + bit = REDDOOR_KL3; + } else if (id == XRCID("IDC_MISC_DOORS_KL4")) { + bit = REDDOOR_KL4; + } else if (id == XRCID("IDC_MISC_DOORS_KL_KRAID")) { + bit = REDDOOR_KL_KRAID; + } else if (id == XRCID("IDC_MISC_DOORS_NF_HIGHJUMPBOOTS")) { + bit = REDDOOR_NF_HIGHJUMPBOOTS; + } else if (id == XRCID("IDC_MISC_DOORS_NF_SCREWATTACK")) { + bit = REDDOOR_NF_SCREWATTACK; + } else if (id == XRCID("IDC_MISC_DOORS_NF_WAVEBEAM")) { + bit = REDDOOR_NF_WAVEBEAM; + } else if (id == XRCID("IDC_MISC_DOORS_NF_ICEBEAM")) { + bit = REDDOOR_NF_ICEBEAM; + } else if (id == XRCID("IDC_MISC_DOORS_RL")) { + bit = REDDOOR_RL; + } else if (id == XRCID("IDC_MISC_DOORS_RL_RIDLEY")) { + bit = REDDOOR_RL_RIDLEY; + } else if (id == XRCID("IDC_MISC_DOORS_T1")) { + bit = REDDOOR_T1; + } else if (id == XRCID("IDC_MISC_DOORS_T2")) { + bit = REDDOOR_T2; + } else { + bit = REDDOOR_T3; + } + + XRCCTRL(*this, "IDCLB_RAW_BITS", wxCheckListBox)->Check(bit, state); + password.setBit(bit, state); + + updatePasswordText(); +} + +void MPGFrame::onEnergyTankChanged(wxCommandEvent &event) { + int id = event.GetId(); + bool state = event.IsChecked(); + int bit; + + if (id == XRCID("IDC_ITEMS_ET_BS1")) { + bit = ENERGYTANK_BS1; + } else if (id == XRCID("IDC_ITEMS_ET_BS2")) { + bit = ENERGYTANK_BS2; + } else if (id == XRCID("IDC_ITEMS_ET_BS3")) { + bit = ENERGYTANK_BS3; + } else if (id == XRCID("IDC_ITEMS_ET_NF")) { + bit = ENERGYTANK_NF; + } else if (id == XRCID("IDC_ITEMS_ET_KL")) { + bit = ENERGYTANK_KL; + } else if (id == XRCID("IDC_ITEMS_ET_KL_KRAID")) { + bit = ENERGYTANK_KL_KRAID; + } else if (id == XRCID("IDC_ITEMS_ET_RL")) { + bit = ENERGYTANK_RL; + } else { + bit = ENERGYTANK_RL_RIDLEY; + } + + XRCCTRL(*this, "IDCLB_RAW_BITS", wxCheckListBox)->Check(bit, state); + password.setBit(bit, state); + + updatePasswordText(); +} + +void MPGFrame::onFixChecksum(wxCommandEvent &) { + password = Password(getUnifiedPassword(), true); + updatePasswordText(); + updateControls(); +} + +void MPGFrame::onGameTimeChanged(wxCommandEvent &event) { + if (ignoreTextEvent) { + return; + } + + unsigned long value; + + if (event.GetString().ToULong(&value)) { + wxUint32 ticks = static_cast(value); + + updateRawGameTime(ticks); + password.setGameTime(ticks); + + updatePasswordText(); + } +} + +void MPGFrame::onHelpAbout(wxCommandEvent &) { + wxString message = APP_NAME + wxT(' ') + APP_VERSION + wxT('\n') + + APP_COPYRIGHT + wxT('\n') + APP_URL; + wxString title = wxT("About ") + APP_NAME + wxT("..."); + + wxMessageBox(message, title, wxICON_INFORMATION | wxOK); +} + +void MPGFrame::onItemChanged(wxCommandEvent &event) { + int id = event.GetId(); + bool state = event.IsChecked(); + int b1, b2 = -1; + wxCheckListBox *ctrl = XRCCTRL(*this, "IDCLB_RAW_BITS", wxCheckListBox); + + if (id == XRCID("IDC_ITEMS_MARUMARI")) { + b1 = MARUMARI; + b2 = MARUMARI_TAKEN; + } else if (id == XRCID("IDC_ITEMS_LONGBEAM")) { + b1 = LONGBEAM; + } else if (id == XRCID("IDC_ITEMS_WAVEBEAM")) { + b1 = WAVEBEAM; + + // can't use wave beam and ice beam simultaneously + XRCCTRL(*this, "IDC_ITEMS_ICEBEAM", wxCheckBox)->SetValue(false); + ctrl->Check(ICEBEAM, false); + password.setBit(ICEBEAM, false); + } else if (id == XRCID("IDC_ITEMS_ICEBEAM")) { + b1 = ICEBEAM; + + // can't use wave beam and ice beam simultaneously + XRCCTRL(*this, "IDC_ITEMS_WAVEBEAM", wxCheckBox)->SetValue(false); + ctrl->Check(WAVEBEAM, false); + password.setBit(WAVEBEAM, false); + } else if (id == XRCID("IDC_ITEMS_BOMBS")) { + b1 = BOMBS; + b2 = BOMBS_TAKEN; + } else if (id == XRCID("IDC_ITEMS_HIGHJUMPBOOTS")) { + b1 = HIGHJUMPBOOTS; + b2 = HIGHJUMPBOOTS_TAKEN; + } else if (id == XRCID("IDC_ITEMS_SCREWATTACK")) { + b1 = SCREWATTACK; + b2 = SCREWATTACK_TAKEN; + } else { + b1 = VARIA; + b2 = VARIA_TAKEN; + } + + ctrl->Check(b1, state); + password.setBit(b1, state); + + if (b2 != -1) { + ctrl->Check(b2, state); + password.setBit(b2, state); + } + + updatePasswordText(); +} + +void MPGFrame::onMissileContainerChanged(wxCommandEvent &event) { + int id = event.GetId(); + bool state = event.IsChecked(); + int bit; + + if (id == XRCID("IDC_ITEMS_MC_BS1")) { + bit = MISSILE_BS1; + } else if (id == XRCID("IDC_ITEMS_MC_BS2")) { + bit = MISSILE_BS2; + } else if (id == XRCID("IDC_ITEMS_MC_KL1")) { + bit = MISSILE_KL1; + } else if (id == XRCID("IDC_ITEMS_MC_KL2")) { + bit = MISSILE_KL2; + } else if (id == XRCID("IDC_ITEMS_MC_KL3")) { + bit = MISSILE_KL3; + } else if (id == XRCID("IDC_ITEMS_MC_KL4")) { + bit = MISSILE_KL4; + } else if (id == XRCID("IDC_ITEMS_MC_NF1")) { + bit = MISSILE_NF1; + } else if (id == XRCID("IDC_ITEMS_MC_NF2")) { + bit = MISSILE_NF2; + } else if (id == XRCID("IDC_ITEMS_MC_NF3")) { + bit = MISSILE_NF3; + } else if (id == XRCID("IDC_ITEMS_MC_NF4")) { + bit = MISSILE_NF4; + } else if (id == XRCID("IDC_ITEMS_MC_NF5")) { + bit = MISSILE_NF5; + } else if (id == XRCID("IDC_ITEMS_MC_NF6")) { + bit = MISSILE_NF6; + } else if (id == XRCID("IDC_ITEMS_MC_NF7")) { + bit = MISSILE_NF7; + } else if (id == XRCID("IDC_ITEMS_MC_NF8")) { + bit = MISSILE_NF8; + } else if (id == XRCID("IDC_ITEMS_MC_NF9")) { + bit = MISSILE_NF9; + } else if (id == XRCID("IDC_ITEMS_MC_NF10")) { + bit = MISSILE_NF10; + } else if (id == XRCID("IDC_ITEMS_MC_NF11")) { + bit = MISSILE_NF11; + } else if (id == XRCID("IDC_ITEMS_MC_NF12")) { + bit = MISSILE_NF12; + } else if (id == XRCID("IDC_ITEMS_MC_RL1")) { + bit = MISSILE_RL1; + } else if (id == XRCID("IDC_ITEMS_MC_RL2")) { + bit = MISSILE_RL2; + } else { + bit = MISSILE_RL3; + } + + XRCCTRL(*this, "IDCLB_RAW_BITS", wxCheckListBox)->Check(bit, state); + password.setBit(bit, state); + + updatePasswordText(); +} + +void MPGFrame::onMissilesTextChanged(wxCommandEvent &) { + if (ignoreTextEvent) { + return; + } + + wxSpinCtrl *ctrl = XRCCTRL(*this, "IDSC_ITEMS_MISSILES", wxSpinCtrl); + unsigned char value = static_cast(ctrl->GetValue()); + + password.setMissiles(value); + + updateRawMissiles(value); + updatePasswordText(); +} + +void MPGFrame::onPasswordChanged(wxCommandEvent &) { + if (fixChecksumButton) { + fixChecksumButton->Enable(false); + } + + if (ignoreTextEvent) { + return; + } + + wxString value = getUnifiedPassword(); + + try { + password = Password(value); + + updatePasswordText(); + updateControls(); + } catch (InvalidPasswordException &e) { + if (e.getError() == INVALID_CHECKSUM) { + fixChecksumButton->Enable(true); + } + } +} + +void MPGFrame::onPasswordDebugPassword(wxCommandEvent &) { + wxMessageBox(wxT("The debug password is NARPAS SWORD0 000000 000000\n" + "It is Hard Coded and cannot be edited."), + wxT("Debug Password"), wxICON_INFORMATION | wxOK); +} + +void MPGFrame::onPasswordEnding(wxCommandEvent &event) { + wxTextCtrl *ctrl = XRCCTRL(*this, "IDT_MISC_GAMETIME", wxTextCtrl); + int id = event.GetId(); + + if (id == XRCID("IDM_PASSWORD_ENDING1")) { + ctrl->SetValue(wxT("0")); + } else if (id == XRCID("IDM_PASSWORD_ENDING2")) { + ctrl->SetValue(wxT("1024")); + } else if (id == XRCID("IDM_PASSWORD_ENDING3")) { + ctrl->SetValue(wxT("2560")); + } else if (id == XRCID("IDM_PASSWORD_ENDING4")) { + ctrl->SetValue(wxT("5632")); + } else { + ctrl->SetValue(wxT("31232")); + } +} + +void MPGFrame::onPasswordGiveBosses(wxCommandEvent &) { + password.setBit(KRAID); + password.setBit(RIDLEY); + password.setBit(MOTHERBRAIN); + + updatePasswordText(); + updateControls(); +} + +void MPGFrame::onPasswordGiveDoors(wxCommandEvent &) { + password.setBit(REDDOOR_BS_LONGBEAM); + password.setBit(REDDOOR_BS_TOURIANBRIDGE); + password.setBit(REDDOOR_BS_BOMBS); + password.setBit(REDDOOR_BS_ICEBEAM); + password.setBit(REDDOOR_BS_VARIA); + + password.setBit(REDDOOR_KL1); + password.setBit(REDDOOR_KL2); + password.setBit(REDDOOR_KL3); + password.setBit(REDDOOR_KL4); + password.setBit(REDDOOR_KL_KRAID); + + password.setBit(REDDOOR_NF_HIGHJUMPBOOTS); + password.setBit(REDDOOR_NF_SCREWATTACK); + password.setBit(REDDOOR_NF_WAVEBEAM); + password.setBit(REDDOOR_NF_ICEBEAM); + + password.setBit(REDDOOR_RL); + password.setBit(REDDOOR_RL_RIDLEY); + + password.setBit(REDDOOR_T1); + password.setBit(REDDOOR_T2); + password.setBit(REDDOOR_T3); + + updatePasswordText(); + updateControls(); +} + +void MPGFrame::onPasswordGiveEnergyTanks(wxCommandEvent &) { + password.setBit(ENERGYTANK_BS1); + password.setBit(ENERGYTANK_BS2); + password.setBit(ENERGYTANK_BS3); + + password.setBit(ENERGYTANK_NF); + + password.setBit(ENERGYTANK_KL); + password.setBit(ENERGYTANK_KL_KRAID); + + password.setBit(ENERGYTANK_RL); + password.setBit(ENERGYTANK_RL_RIDLEY); + + updatePasswordText(); + updateControls(); +} + +void MPGFrame::onPasswordGiveItems(wxCommandEvent &) { + password.setBit(MARUMARI); + password.setBit(MARUMARI_TAKEN); + + password.setBit(LONGBEAM); + password.setBit(WAVEBEAM, false); + password.setBit(ICEBEAM); + + password.setBit(BOMBS); + password.setBit(BOMBS_TAKEN); + + password.setBit(HIGHJUMPBOOTS); + password.setBit(HIGHJUMPBOOTS_TAKEN); + + password.setBit(SCREWATTACK); + password.setBit(SCREWATTACK_TAKEN); + + password.setBit(VARIA); + password.setBit(VARIA_TAKEN); + + updatePasswordText(); + updateControls(); +} + +void MPGFrame::onPasswordGiveMissiles(wxCommandEvent &) { + int count = 0; + + if (password.getBit(MISSILE_BS1)) ++count; + if (password.getBit(MISSILE_BS2)) ++count; + if (password.getBit(MISSILE_KL1)) ++count; + if (password.getBit(MISSILE_KL2)) ++count; + if (password.getBit(MISSILE_KL3)) ++count; + if (password.getBit(MISSILE_KL4)) ++count; + if (password.getBit(MISSILE_NF1)) ++count; + if (password.getBit(MISSILE_NF2)) ++count; + if (password.getBit(MISSILE_NF3)) ++count; + if (password.getBit(MISSILE_NF4)) ++count; + if (password.getBit(MISSILE_NF5)) ++count; + if (password.getBit(MISSILE_NF6)) ++count; + if (password.getBit(MISSILE_NF7)) ++count; + if (password.getBit(MISSILE_NF8)) ++count; + if (password.getBit(MISSILE_NF9)) ++count; + if (password.getBit(MISSILE_NF10)) ++count; + if (password.getBit(MISSILE_NF11)) ++count; + if (password.getBit(MISSILE_NF12)) ++count; + if (password.getBit(MISSILE_RL1)) ++count; + if (password.getBit(MISSILE_RL2)) ++count; + if (password.getBit(MISSILE_RL3)) ++count; + if (password.getBit(KRAID) || password.getBit(KRAID_STATUE)) count += 15; + if (password.getBit(RIDLEY) || password.getBit(RIDLEY_STATUE)) count += 15; + + XRCCTRL(*this, "IDSC_ITEMS_MISSILES", wxSpinCtrl)->SetValue(count *= 5); + + #ifndef __WXMSW__ + // SetValue of a wxSpinCtrl on Windows also generates a EVT_TEXT event, + // but on wxGTK it doesn't, so we need to update manually + password.setMissiles(count); + + updateRawMissiles(count); + updatePasswordText(); + #endif +} + +void MPGFrame::onPasswordGiveMissileContainers(wxCommandEvent &) { + password.setBit(MISSILE_BS1); + password.setBit(MISSILE_BS2); + + password.setBit(MISSILE_KL1); + password.setBit(MISSILE_KL2); + password.setBit(MISSILE_KL3); + password.setBit(MISSILE_KL4); + + password.setBit(MISSILE_NF1); + password.setBit(MISSILE_NF2); + password.setBit(MISSILE_NF3); + password.setBit(MISSILE_NF4); + password.setBit(MISSILE_NF5); + password.setBit(MISSILE_NF6); + password.setBit(MISSILE_NF7); + password.setBit(MISSILE_NF8); + password.setBit(MISSILE_NF9); + password.setBit(MISSILE_NF10); + password.setBit(MISSILE_NF11); + password.setBit(MISSILE_NF12); + + password.setBit(MISSILE_RL1); + password.setBit(MISSILE_RL2); + password.setBit(MISSILE_RL3); + + updatePasswordText(); + updateControls(); +} + +void MPGFrame::onPasswordGiveStatues(wxCommandEvent &) { + password.setBit(KRAID_STATUE); + password.setBit(RIDLEY_STATUE); + + updatePasswordText(); + updateControls(); +} + +void MPGFrame::onPasswordGiveZebetites(wxCommandEvent &) { + password.setBit(ZEBETITE1); + password.setBit(ZEBETITE2); + password.setBit(ZEBETITE3); + password.setBit(ZEBETITE4); + password.setBit(ZEBETITE5); + + updatePasswordText(); + updateControls(); +} + +void MPGFrame::onPasswordPerfectGame(wxCommandEvent &) { + password = Password(); + + // Missile Inventory + password.setMissiles(MAX_MISSILES); + + // Start Location + password.setBit(START_NF); + password.setBit(START_KL); + + // Statues + password.setBit(KRAID_STATUE); + password.setBit(RIDLEY_STATUE); + + // Swimsuit Samus + password.setBit(SWIMSUIT); + + // Bosses + password.setBit(KRAID); + password.setBit(RIDLEY); + + // Items + wxCommandEvent event1(wxEVT_COMMAND_MENU_SELECTED, + XRCID("IDM_PASSWORD_GIVE_ITEMS")); + GetEventHandler()->AddPendingEvent(event1); + + // Missile Containers + wxCommandEvent event2(wxEVT_COMMAND_MENU_SELECTED, + XRCID("IDM_PASSWORD_GIVE_MC")); + GetEventHandler()->AddPendingEvent(event2); + + // Energy Tanks + wxCommandEvent event3(wxEVT_COMMAND_MENU_SELECTED, + XRCID("IDM_PASSWORD_GIVE_ET")); + GetEventHandler()->AddPendingEvent(event3); + + // Red & Yellow Doors + wxCommandEvent event4(wxEVT_COMMAND_MENU_SELECTED, + XRCID("IDM_PASSWORD_GIVE_DOORS")); + GetEventHandler()->AddPendingEvent(event4); + + // Zebetites + wxCommandEvent event5(wxEVT_COMMAND_MENU_SELECTED, + XRCID("IDM_PASSWORD_GIVE_ZEBETITES")); + GetEventHandler()->AddPendingEvent(event5); +} + +void MPGFrame::onPasswordReset(wxCommandEvent &) { + int answer = wxMessageBox(wxT("Really Reset Password?"), + wxT("Confirm: Reset Password"), + wxYES_NO | wxICON_QUESTION); + + if (answer == wxYES) { + password = Password(); + + updatePasswordText(); + updateControls(); + } +} + +void MPGFrame::onRawBitChanged(wxCommandEvent &event) { + wxCheckListBox *ptr = + dynamic_cast(event.GetEventObject()); + int bit = event.GetSelection(); + bool state = ptr->IsChecked(bit); + + password.setBit(bit, state); + + switch (bit) { + case MARUMARI: + case MARUMARI_TAKEN: + // Maru Mari not valid unless it's both taken and equipped + state = password.getBit(MARUMARI) && + password.getBit(MARUMARI_TAKEN); + XRCCTRL(*this, "IDC_ITEMS_MARUMARI", wxCheckBox)->SetValue(state); + break; + + case MISSILE_BS1: + XRCCTRL(*this, "IDC_ITEMS_MC_BS1", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_BS_LONGBEAM: + XRCCTRL(*this, "IDC_MISC_DOORS_BS_LONGBEAM", + wxCheckBox)->SetValue(state); + break; + + case REDDOOR_BS_TOURIANBRIDGE: + XRCCTRL(*this, "IDC_MISC_DOORS_BS_TOURIANBRIDGE", + wxCheckBox)->SetValue(state); + break; + + case ENERGYTANK_BS1: + XRCCTRL(*this, "IDC_ITEMS_ET_BS1", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_BS_BOMBS: + XRCCTRL(*this, "IDC_MISC_DOORS_BS_BOMBS", + wxCheckBox)->SetValue(state); + break; + + case BOMBS: + case BOMBS_TAKEN: + // Bombs not valid unless it's both taken and equipped + state = password.getBit(BOMBS) && password.getBit(BOMBS_TAKEN); + XRCCTRL(*this, "IDC_ITEMS_BOMBS", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_BS_ICEBEAM: + XRCCTRL(*this, "IDC_MISC_DOORS_BS_ICEBEAM", + wxCheckBox)->SetValue(state); + break; + + case MISSILE_BS2: + XRCCTRL(*this, "IDC_ITEMS_MC_BS2", wxCheckBox)->SetValue(state); + break; + + case ENERGYTANK_BS2: + XRCCTRL(*this, "IDC_ITEMS_ET_BS2", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_BS_VARIA: + XRCCTRL(*this, "IDC_MISC_DOORS_BS_VARIA", + wxCheckBox)->SetValue(state); + break; + + case VARIA: + case VARIA_TAKEN: + // Varia not valid unless it's both taken and equipped + state = password.getBit(VARIA) && password.getBit(VARIA_TAKEN); + XRCCTRL(*this, "IDC_ITEMS_VARIA", wxCheckBox)->SetValue(state); + break; + + case ENERGYTANK_BS3: + XRCCTRL(*this, "IDC_ITEMS_ET_BS3", wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF1: + XRCCTRL(*this, "IDC_ITEMS_MC_NF1", wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF2: + XRCCTRL(*this, "IDC_ITEMS_MC_NF2", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_NF_ICEBEAM: + XRCCTRL(*this, "IDC_MISC_DOORS_NF_ICEBEAM", + wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF3: + XRCCTRL(*this, "IDC_ITEMS_MC_NF3", wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF4: + XRCCTRL(*this, "IDC_ITEMS_MC_NF4", wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF5: + XRCCTRL(*this, "IDC_ITEMS_MC_NF5", wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF6: + XRCCTRL(*this, "IDC_ITEMS_MC_NF6", wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF7: + XRCCTRL(*this, "IDC_ITEMS_MC_NF7", wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF8: + XRCCTRL(*this, "IDC_ITEMS_MC_NF8", wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF9: + XRCCTRL(*this, "IDC_ITEMS_MC_NF9", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_NF_HIGHJUMPBOOTS: + XRCCTRL(*this, "IDC_MISC_DOORS_NF_HIGHJUMPBOOTS", + wxCheckBox)->SetValue(state); + break; + + case HIGHJUMPBOOTS: + case HIGHJUMPBOOTS_TAKEN: + // High Jump Boots not valid unless both taken and equipped + state = password.getBit(HIGHJUMPBOOTS) && + password.getBit(HIGHJUMPBOOTS_TAKEN); + XRCCTRL(*this, "IDC_ITEMS_HIGHJUMPBOOTS", + wxCheckBox)->SetValue(state); + break; + + case REDDOOR_NF_SCREWATTACK: + XRCCTRL(*this, "IDC_MISC_DOORS_NF_SCREWATTACK", + wxCheckBox)->SetValue(state); + break; + + case SCREWATTACK: + case SCREWATTACK_TAKEN: + // Screw Attack not valid unless both taken and equipped + state = password.getBit(SCREWATTACK) && + password.getBit(SCREWATTACK_TAKEN); + XRCCTRL(*this, "IDC_ITEMS_SCREWATTACK", + wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF10: + XRCCTRL(*this, "IDC_ITEMS_MC_NF10", wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF11: + XRCCTRL(*this, "IDC_ITEMS_MC_NF11", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_NF_WAVEBEAM: + XRCCTRL(*this, "IDC_MISC_DOORS_NF_WAVEBEAM", + wxCheckBox)->SetValue(state); + break; + + case ENERGYTANK_NF: + XRCCTRL(*this, "IDC_ITEMS_ET_NF", wxCheckBox)->SetValue(state); + break; + + case MISSILE_NF12: + XRCCTRL(*this, "IDC_ITEMS_MC_NF12", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_KL1: + XRCCTRL(*this, "IDC_MISC_DOORS_KL1", wxCheckBox)->SetValue(state); + break; + + case MISSILE_KL1: + XRCCTRL(*this, "IDC_ITEMS_MC_KL1", wxCheckBox)->SetValue(state); + break; + + case MISSILE_KL2: + XRCCTRL(*this, "IDC_ITEMS_MC_KL2", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_KL2: + XRCCTRL(*this, "IDC_MISC_DOORS_KL2", wxCheckBox)->SetValue(state); + break; + + case ENERGYTANK_KL: + XRCCTRL(*this, "IDC_ITEMS_ET_KL", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_KL3: + XRCCTRL(*this, "IDC_MISC_DOORS_KL3", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_KL4: + XRCCTRL(*this, "IDC_MISC_DOORS_KL4", wxCheckBox)->SetValue(state); + break; + + case MISSILE_KL3: + XRCCTRL(*this, "IDC_ITEMS_MC_KL3", wxCheckBox)->SetValue(state); + break; + + case MISSILE_KL4: + XRCCTRL(*this, "IDC_ITEMS_MC_KL4", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_KL_KRAID: + XRCCTRL(*this, "IDC_MISC_DOORS_KL_KRAID", + wxCheckBox)->SetValue(state); + break; + + case ENERGYTANK_KL_KRAID: + XRCCTRL(*this, "IDC_ITEMS_ET_KL_KRAID", + wxCheckBox)->SetValue(state); + break; + + case MISSILE_RL1: + XRCCTRL(*this, "IDC_ITEMS_MC_RL1", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_RL: + XRCCTRL(*this, "IDC_MISC_DOORS_RL", wxCheckBox)->SetValue(state); + break; + + case ENERGYTANK_RL: + XRCCTRL(*this, "IDC_ITEMS_ET_RL", wxCheckBox)->SetValue(state); + break; + + case MISSILE_RL2: + XRCCTRL(*this, "IDC_ITEMS_MC_RL2", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_RL_RIDLEY: + XRCCTRL(*this, "IDC_MISC_DOORS_RL_RIDLEY", + wxCheckBox)->SetValue(state); + break; + + case ENERGYTANK_RL_RIDLEY: + XRCCTRL(*this, "IDC_ITEMS_ET_RL_RIDLEY", + wxCheckBox)->SetValue(state); + break; + + case MISSILE_RL3: + XRCCTRL(*this, "IDC_ITEMS_MC_RL3", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_T1: + XRCCTRL(*this, "IDC_MISC_DOORS_T1", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_T2: + XRCCTRL(*this, "IDC_MISC_DOORS_T2", wxCheckBox)->SetValue(state); + break; + + case REDDOOR_T3: + XRCCTRL(*this, "IDC_MISC_DOORS_T3", wxCheckBox)->SetValue(state); + break; + + case ZEBETITE1: + XRCCTRL(*this, "IDC_MISC_ZEBETITE1", wxCheckBox)->SetValue(state); + break; + + case ZEBETITE2: + XRCCTRL(*this, "IDC_MISC_ZEBETITE2", wxCheckBox)->SetValue(state); + break; + + case ZEBETITE3: + XRCCTRL(*this, "IDC_MISC_ZEBETITE3", wxCheckBox)->SetValue(state); + break; + + case ZEBETITE4: + XRCCTRL(*this, "IDC_MISC_ZEBETITE4", wxCheckBox)->SetValue(state); + break; + + case ZEBETITE5: + XRCCTRL(*this, "IDC_MISC_ZEBETITE5", wxCheckBox)->SetValue(state); + break; + + case MOTHERBRAIN: + XRCCTRL(*this, "IDC_MISC_BOSS_MOTHERBRAIN", + wxCheckBox)->SetValue(state); + break; + + case START_NF: + case START_KL: + case START_RL: + updateStartLocation(); + break; + + case RESET: + if (state) { + wxMessageBox(wxT("This bit will produce an invalid password."), + wxT("Warning: Invalid Password"), + wxICON_EXCLAMATION | wxOK); + } + + break; + + case SWIMSUIT: + XRCCTRL(*this, "IDRB_MISC_ARMOR", + wxRadioBox)->SetSelection(state ? 1 : 0); + break; + + case LONGBEAM: + XRCCTRL(*this, "IDC_ITEMS_LONGBEAM", wxCheckBox)->SetValue(state); + break; + + case WAVEBEAM: + XRCCTRL(*this, "IDC_ITEMS_WAVEBEAM", wxCheckBox)->SetValue(state); + break; + + case ICEBEAM: + XRCCTRL(*this, "IDC_ITEMS_ICEBEAM", wxCheckBox)->SetValue(state); + break; + + case MISSILES: + case MISSILES + 1: + case MISSILES + 2: + case MISSILES + 3: + case MISSILES + 4: + case MISSILES + 5: + case MISSILES + 6: + case MISSILES + 7: + ignoreTextEvent = true; + XRCCTRL(*this, "IDSC_ITEMS_MISSILES", + wxSpinCtrl)->SetValue(password.getMissiles()); + ignoreTextEvent = false; + + break; + + case GAMETIME: + case GAMETIME + 1: + case GAMETIME + 2: + case GAMETIME + 3: + case GAMETIME + 4: + case GAMETIME + 5: + case GAMETIME + 6: + case GAMETIME + 7: + case GAMETIME + 8: + case GAMETIME + 9: + case GAMETIME + 10: + case GAMETIME + 11: + case GAMETIME + 12: + case GAMETIME + 13: + case GAMETIME + 14: + case GAMETIME + 15: + case GAMETIME + 16: + case GAMETIME + 17: + case GAMETIME + 18: + case GAMETIME + 19: + case GAMETIME + 20: + case GAMETIME + 21: + case GAMETIME + 22: + case GAMETIME + 23: + case GAMETIME + 24: + case GAMETIME + 25: + case GAMETIME + 26: + case GAMETIME + 27: + case GAMETIME + 28: + case GAMETIME + 29: + case GAMETIME + 30: + case GAMETIME + 31: + { + unsigned long value = + static_cast(password.getGameTime()); + + ignoreTextEvent = true; + XRCCTRL(*this, "IDT_MISC_GAMETIME", + wxTextCtrl)->SetValue(wxString::Format(wxT("%lu"), + value)); + ignoreTextEvent = false; + } + + break; + + case RIDLEY: + XRCCTRL(*this, "IDC_MISC_BOSS_RIDLEY", wxCheckBox)->SetValue(state); + break; + + case RIDLEY_STATUE: + XRCCTRL(*this, "IDC_MISC_STATUE_RIDLEY", + wxCheckBox)->SetValue(state); + break; + + case KRAID: + XRCCTRL(*this, "IDC_MISC_BOSS_KRAID", wxCheckBox)->SetValue(state); + break; + + case KRAID_STATUE: + XRCCTRL(*this, "IDC_MISC_STATUE_KRAID", + wxCheckBox)->SetValue(state); + break; + + default: + // one of the unknowns -- do nothing + break; + } + + updatePasswordText(); +} + +void MPGFrame::onShiftTextChanged(wxCommandEvent &) { + if (ignoreTextEvent) { + return; + } + + wxSpinCtrl *ctrl = XRCCTRL(*this, "IDSC_RAW_SHIFT", wxSpinCtrl); + unsigned char value = static_cast(ctrl->GetValue()); + + password.setShift(value); + + updatePasswordText(); +} + +void MPGFrame::onStartLocationChanged(wxCommandEvent &event) { + wxRadioBox *ptr = dynamic_cast(event.GetEventObject()); + int location = ptr->GetSelection(); + bool nf, kl, rl; + + switch (location) { + case 0: + // Brinstar + nf = false; + kl = false; + rl = false; + break; + + case 1: + // Kraid's Lair + nf = false; + kl = true; + rl = false; + break; + + case 2: + // Norfair + nf = true; + kl = false; + rl = false; + break; + + case 3: + // Ridley's Lair + nf = false; + kl = false; + rl = true; + break; + + default: + // Tourian + nf = true; + kl = true; + rl = false; + break; + }; + + wxCheckListBox *ctrl = XRCCTRL(*this, "IDCLB_RAW_BITS", wxCheckListBox); + ctrl->Check(START_NF, nf); + ctrl->Check(START_KL, kl); + ctrl->Check(START_RL, rl); + + password.setBit(START_NF, nf); + password.setBit(START_KL, kl); + password.setBit(START_RL, rl); + + updatePasswordText(); +} + +void MPGFrame::onStatueChanged(wxCommandEvent &event) { + int id = event.GetId(); + bool state = event.IsChecked(); + int bit; + + if (id == XRCID("IDC_MISC_STATUE_KRAID")) { + bit = KRAID_STATUE; + } else { + bit = RIDLEY_STATUE; + } + + XRCCTRL(*this, "IDCLB_RAW_BITS", wxCheckListBox)->Check(bit, state); + password.setBit(bit, state); + + updatePasswordText(); +} + +void MPGFrame::onZebetiteChanged(wxCommandEvent &event) { + int id = event.GetId(); + bool state = event.IsChecked(); + int bit; + + if (id == XRCID("IDC_MISC_ZEBETITE1")) { + bit = ZEBETITE1; + } else if (id == XRCID("IDC_MISC_ZEBETITE2")) { + bit = ZEBETITE2; + } else if (id == XRCID("IDC_MISC_ZEBETITE3")) { + bit = ZEBETITE3; + } else if (id == XRCID("IDC_MISC_ZEBETITE4")) { + bit = ZEBETITE4; + } else { + bit = ZEBETITE5; + } + + XRCCTRL(*this, "IDCLB_RAW_BITS", wxCheckListBox)->Check(bit, state); + password.setBit(bit, state); + + updatePasswordText(); +} + +IMPLEMENT_CLASS(MPGFrame, wxFrame) + diff --git a/source/view/MPGFrame.hh b/source/view/MPGFrame.hh new file mode 100644 index 0000000..75d260a --- /dev/null +++ b/source/view/MPGFrame.hh @@ -0,0 +1,313 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: MPGFrame.hh,v 1.27 2005/09/28 03:43:33 technoplaza Exp $ + +#ifndef _MPGFRAME_HH_ +#define _MPGFRAME_HH_ + +#include + +#include "model/Password.hh" + +namespace mpg { + class PasswordPanel; + + /// The main application frame + class MPGFrame : public wxFrame { + DECLARE_CLASS(MPGFrame) + DECLARE_EVENT_TABLE() + + private: + wxButton *fixChecksumButton; + Password password; + bool ignoreTextEvent; + + enum { + BRINSTAR, KRAIDSLAIR, NORFAIR, RIDLEYSLAIR, TOURIAN + }; + + static const int MAX_MISSILES = 255; + + /** + * Creates the controls for this MPGFrame. + */ + void CreateControls(); + + /** + * Gets the metroid password from the password text control removing the + * separating spaces. + * + * @return The password sans separating spaces. + */ + wxString getUnifiedPassword() const; + + /** + * Updates all the controls based on the current password data. + */ + void updateControls(); + + /** + * Updates the text password when the password data has changed. + */ + void updatePasswordText(); + + /** + * Updates the raw game time bits. + * + * @param value The game time value. + */ + void updateRawGameTime(wxUint32 value); + + /** + * Updates the raw missile bits. + * + * @param value The missile count value. + */ + void updateRawMissiles(unsigned char value); + + /** + * Updates the start location radio box control. + */ + void updateStartLocation(); + + /** + * Updates the sizes for the text controls so they are wide enough. + */ + void updateTextCtrlSizes(); + + /** + * Called when Samus's armor is changed. + * + * @param event The triggering wxCommandEvent. + */ + void onArmorChanged(wxCommandEvent &event); + + /** + * Called when a boss checkbox is changed. + * + * @param event The triggering wxCommandEvent. + */ + void onBossChanged(wxCommandEvent &event); + + /** + * Called when a door checkbox is changed. + * + * @param event The triggering wxCommandEvent. + */ + void onDoorChanged(wxCommandEvent &event); + + /** + * Called when an energy tank checkbox is changed. + * + * @param event The triggering wxCommandEvent. + */ + void onEnergyTankChanged(wxCommandEvent &event); + + /** + * Called when exit is selected from the file menu. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onFileExit(wxCommandEvent &event); + + /** + * Called when the fix checksum button is pressed. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onFixChecksum(wxCommandEvent &event); + + /** + * Called when the game time is changed. + * + * @param event The triggering wxCommandEvent. + */ + void onGameTimeChanged(wxCommandEvent &event); + + /** + * Called when about from the help menu is selected. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onHelpAbout(wxCommandEvent &event); + + /** + * Called when an item checkbox is changed. + * + * @param event The triggering wxCommandEvent. + */ + void onItemChanged(wxCommandEvent &event); + + /** + * Called when a missile container checkbox is changed. + * + * @param event The triggering wxCommandEvent. + */ + void onMissileContainerChanged(wxCommandEvent &event); + + /** + * Called when the missile count text is changed. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onMissilesTextChanged(wxCommandEvent &event); + + /** + * Called when the metroid password is changed. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onPasswordChanged(wxCommandEvent &event); + + /** + * Called when debug password from the password menu is selected. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onPasswordDebugPassword(wxCommandEvent &event); + + /** + * Called when an ending is selected from the password menu. + * + * @param event The triggering wxCommandEvent. + */ + void onPasswordEnding(wxCommandEvent &event); + + /** + * Called when bosses is selected from the password's give menu. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onPasswordGiveBosses(wxCommandEvent &event); + + /** + * Called when doors is selected from the password's give menu. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onPasswordGiveDoors(wxCommandEvent &event); + + /** + * Called when energy tanks is selected from the password's give menu. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onPasswordGiveEnergyTanks(wxCommandEvent &event); + + /** + * Called when items is selected from the password's give menu. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onPasswordGiveItems(wxCommandEvent &event); + + /** + * Called when missiles is selected from the password's give menu. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onPasswordGiveMissiles(wxCommandEvent &event); + + /** + * Called when missile containers is selected from the password's give + * menu. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onPasswordGiveMissileContainers(wxCommandEvent &event); + + /** + * Called when statues is selected from the password's give menu. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onPasswordGiveStatues(wxCommandEvent &event); + + /** + * Called when zebetites is selected from the password's give menu. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onPasswordGiveZebetites(wxCommandEvent &event); + + /** + * Called when perfect game from the password menu is selected. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onPasswordPerfectGame(wxCommandEvent &event); + + /** + * Called when reset from the password menu is selected. + * + * @param event The triggerin wxCommandEvent (unused). + */ + void onPasswordReset(wxCommandEvent &event); + + /** + * Called when on of the bits in the raw bitlist is changed. + * + * @param event The triggering wxCommandEvent. + */ + void onRawBitChanged(wxCommandEvent &event); + + /** + * Called when the shift text is changed. + * + * @param event The triggering wxCommandEvent (unused). + */ + void onShiftTextChanged(wxCommandEvent &event); + + /** + * Called when the start location is changed. + * + * @param event The triggering wxCommandEvent. + */ + void onStartLocationChanged(wxCommandEvent &event); + + /** + * Called when a statue checkbox is changed. + * + * @param event The triggering wxCommandEvent. + */ + void onStatueChanged(wxCommandEvent &event); + + /** + * Called when a zebetite checkbox is changed. + * + * @param event The triggering wxCommandEvent. + */ + void onZebetiteChanged(wxCommandEvent &event); + + public: + /** + * Creates a new MPGFrame. + */ + MPGFrame(); + }; + + inline void MPGFrame::onFileExit(wxCommandEvent &) { Close(); } +} + +#endif + diff --git a/source/view/PasswordPanel.cc b/source/view/PasswordPanel.cc new file mode 100644 index 0000000..1a9fdac --- /dev/null +++ b/source/view/PasswordPanel.cc @@ -0,0 +1,95 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: PasswordPanel.cc,v 1.2 2005/09/27 09:06:12 technoplaza Exp $ + +#ifdef HAVE_CONFIG_H + #include +#endif + +#include + +#ifndef WX_PRECOMP + #include +#endif + +#include + +#include "model/Password.hh" +#include "res/alphabet.xpm" +#include "view/PasswordPanel.hh" + +using namespace mpg; + +BEGIN_EVENT_TABLE(PasswordPanel, wxPanel) + EVT_ERASE_BACKGROUND(PasswordPanel::onEraseBackground) + EVT_PAINT(PasswordPanel::onPaint) +END_EVENT_TABLE() + +PasswordPanel::PasswordPanel() : alphabet(alphabet_xpm), password(NULL) {} + +wxPoint PasswordPanel::getLetterPos(wxChar letter) const { + int index = Password::ALPHABET.Find(letter); + + return wxPoint(((index % CHARS_PER_ROW) * CHAR_WIDTH * 2), + ((index / CHARS_PER_ROW) * CHAR_HEIGHT * 2)); +} + +void PasswordPanel::onPaint(wxPaintEvent &) { + wxBufferedPaintDC dc(this); + + dc.SetBackground(wxBrush(GetBackgroundColour())); + dc.Clear(); + + if (password) { + wxMemoryDC xpm; + xpm.SelectObject(alphabet); + const wxString &encoded = password->getEncoded(); + + // offset display at (8,8) + wxPoint pos(START_X, START_Y); + + // two rows + for (int row = 0; row < 2; ++row) { + // of 12 password character + for (int col = 0; col < 12; ++col) { + // separated in the middle with a space + if (col == 6) { + pos.x += CHAR_WIDTH; + } + + // (row * 12) + col = [0, 23] + wxPoint letter = getLetterPos(encoded[(row * 12) + col]); + dc.Blit(pos.x, pos.y, CHAR_WIDTH, CHAR_HEIGHT, + &xpm, letter.x, letter.y); + + pos.x += CHAR_WIDTH; + } + + pos.x = START_X; + pos.y = START_Y + (2 * CHAR_HEIGHT); + } + } +} + +IMPLEMENT_DYNAMIC_CLASS(PasswordPanel, wxPanel) + diff --git a/source/view/PasswordPanel.hh b/source/view/PasswordPanel.hh new file mode 100644 index 0000000..8ad2a89 --- /dev/null +++ b/source/view/PasswordPanel.hh @@ -0,0 +1,85 @@ +/* + * Metroid Password Generator + * Copyright (C) 2005 emuWorks + * http://games.technoplaza.net/ + * + * This file is part of Metroid Password Generator. + * + * Metroid Password Generator 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. + * + * Metroid Password Generator 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 Metroid Password Generator; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +// $Id: PasswordPanel.hh,v 1.4 2005/09/27 09:32:14 technoplaza Exp $ + +namespace mpg { + class Password; + + /// class to display a password in Metroid font and style + class PasswordPanel : public wxPanel { + DECLARE_DYNAMIC_CLASS(PasswordPanel) + DECLARE_EVENT_TABLE() + + private: + wxBitmap alphabet; + const Password *password; + + static const int START_X = 4; + static const int START_Y = 4; + static const int CHARS_PER_ROW = 13; + static const int CHAR_WIDTH = 16; + static const int CHAR_HEIGHT = 16; + + /** + * Gets the upper-left corner position of a letter in the alphabet + * bitmap. + * + * @param letter The letter to find. + * + * @return The (x,y) position of the letter. + */ + wxPoint getLetterPos(wxChar letter) const; + + /** + * Called to erase the background on this PasswordPanel. + * + * @param event The triggering wxEraseEvent (unused). + */ + void onEraseBackground(wxEraseEvent &event); + + /** + * Called to paint this PasswordPanel. + * + * @param event The triggering wxPaintEvent (unused). + */ + void onPaint(wxPaintEvent &event); + + public: + /** + * Creates a new PasswordPanel. + */ + PasswordPanel(); + + /** + * Sets the password string drawn by this PasswordPanel. + * + * @param password The password. + */ + void setPassword(const Password *password); + }; + + inline void PasswordPanel::setPassword(const Password *password) + { this->password = password; } + inline void PasswordPanel::onEraseBackground(wxEraseEvent &) {} +} +